
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@leaflink/leaflink-ui
Advanced tools
A repository housing all of Leaflink's UI, for faster and easier development. Includes core Vue components + css theme files
A design framework housing Leaflink's UI. Includes custom Vue components as well as a suite of CSS utilities.
The Leaflink-UI (or LLUI, or LLLLL) framework provides components, directives, theming and storage options that may be dynamically configured per environment.
There are several ways to configure the framework to suit your specific needs. Configurable items include:
The generated entry file will load all components by default. However, you may configure the framework with a few options:
const options = {
components: ... // provide components "à la carte"
directives: ... // provide directives "à la carte"
i18n: { // i18n options
locale: ...
t: ...
}
theme: ... // theming options
storage: ... // override localstorage persistence options
}
A sample configuration might look something like:
// plugins/leaflink-ui/index.js
import Vue from 'vue';
import LLUI, { LLButton, LLCheckbox } from '@leaflink/leaflink-ui';
import i18n, { locale } from 'path/to/i18n';
import theme from 'path/to/themes/dark.json';
Vue.use(LLUI, {
theme,
i18n: {
locale,
t: (key, value) => i18n.t(key, value)
},
components: {
LLButton,
LLCheckbox,
},
});
export default LLUI;
This example will load the core i18n options, a dark theme, and the LLButton and LLCheckbox components.
Then, in your app's setup, simply:
import LLUI from '@/plugins/leaflink-ui';
// ...
Vue.use(LLUI);
Finally, import the /styles/main.scss file into an scss base file to provides styles and style utils.
Vue.use(...).framework.js: is the framework install function (and any other framework-specific things). It registers components, themes, etc. with your Vue app.index.js is used as the main entry point to the framework. It also exports each component individually, for an à la carte build. You may pull in the default export directly and Vue.use it (to quickly get up and running w/ all components and features); or, you may wish configure it with particular options, components, or features.Testing the framework uses @vue-test-utils under the hood. We use Jest (via @vue/cli-plugin-unit-jest) to run our unit-tests.
npm test"Live Laugh Love LeafLink UI"
FAQs
A repository housing all of Leaflink's UI, for faster and easier development. Includes core Vue components + css theme files
We found that @leaflink/leaflink-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.