Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@eotl/core
Advanced tools
Assortment of data structures, Vue.js components, and utilities across EOTL apps and sites.
Various data, structures, and utils to use across EOTL applications.
⚠️ Warning this repo is not ready for production and is highly subject to change
A JavaScript package that can be installed in your JS application.
$ yarn add @eotl/core
Vue Components
import { ... } from '@eotl/core/components
Vue Mixins
import { ... } from '@eotl/core/mixins
Vue i18n translation strings
import { ... } from '@eotl/core/locales
Generic Utils
import { ... } from '@eotl/core/enums
For the components to work properly you also need to include the styling
import '@eotl/core/dist/style.css'
To include Vue.js libraries you must first include and init()
the package with the following:
import { useEotlCore } from '@eotl/core/store'
// init EOTL core
const eotlStore = useEotlCore()
eotlStore.init({
// mapboxToken: '',
url_sextant: import.meta.env.VITE_SEXTANT_URL,
url_api: import.meta.env.VITE_SEXTANT_API_URL
})
This package will only work with passing in a pinia store (for now), thus working only in a Vue.js app and breaking the idea of using it as a standalone.
Alerts
To trigger alerts in apps, use these components. The message
argument is
required, the title
has a default specified.
eotlStore.alertPrimary('Hello, I am a primary alert.')
eotlStore.alertSuccess('Good job, keep it up', 'Success Custom Title')
eotlStore.alertInfo(message, title)
eotlStore.alertWarning('message', title)
eotlStore.alertDanger(message, title)
Fetching Data
Within the eotlStore
are HTTP fetch()
helpers which handle various response states.
async fetchGet(endpoint, queryString = '') { ... }
async fetchPost(endpoint, record) { ... }
async fetchPatch(endpoint, record) { ... }
async fetchDelete(endpoint) { ... }
This template should help get you started developing with Vue 3 in Vite.
See Vite Configuration Reference.
yarn install
yarn dev
To work on eotl.places.js
code, Places is served separately because we wanna
know for sure that no other libraries are being imported in the code with the
vite.config.places.js
config file.
yarn dev:places
The normal Component view can also be seen at root directory and is compiled:
yarn build --watch
yarn build
yarn lint
No shared Golang code at present... but will be soon.
FAQs
Assortment of data structures, Vue.js components, and utilities across EOTL apps and sites.
We found that @eotl/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.