Socket
Socket
Sign inDemoInstall

uikit-agro24

Package Overview
Dependencies
42
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uikit-agro24

A Vue.js super project created to inspire


Version published
Maintainers
2
Install size
16.0 MB
Created

Readme

Source

UiKit Logo

uiKit

A Vue.js super project created to inspire

Use it

Npm package

Install
$ npm i -S uikit-agro24

Important: don't turn off vue-loader and babel on node_modules for this package. It used for compiling package for your version of vue.

Important: include in your bundle only necessary languages

// webpack.config.js

module.exports = {
    ...
    plugins: [
        ...
        new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /ru/),
        new webpack.ContextReplacementPlugin(/validatorjs[\/\\]src[\/\\]lang$/, /en|ru/),
        ...
    ]
    ...
}
In your code
import uiKit from 'uikit-agro24';

Vue.use(uiKit);

or for reduce bundle size

// index.js
import Vue from 'vue';
import uiKitPlugins from 'uikit-agro24/plugins';
import App from 'App.vue';

Vue.use(uiKitPlugins);
new Vue({
    el: '#app',
    render: h => h(App)
});
// App.js
<template>
    <div>
        <ui-button :href="prevLink" class="ui-btn--circle ui-pagination__prev__link">
            <i class="uikit-arrow-back"></i>
        </ui-button>
    </div>
</template>

<script>
import uiButton from 'uikit-agro24/components/ui-button.vue';

export default {
    components: {
        uiButton
    }
};
</script>

Don't forget styles

Browser globals

<!-- In head. -->
<link href="//fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&subset=cyrillic" rel="stylesheet">
<link rel="stylesheet" src="/uikit/<version>/uikit.css">
<!-- In bottom of body. After vue.js include. -->
<script src="/uikit/<version>/uikit.js"></script>

Options

Lang change. By default we use 'ru' lang.

Vue.useLang('en');

We had proxy for Validatorjs on Vue object.

Vue.validator.register('telephone', function(value, requirement, attribute) {
    return value.match(/^\d{3}-\d{3}-\d{4}$/);
}, 'The :attribute phone number is not in the format XXX-XXX-XXXX.');

Options than we could use in package version.

Vue.use(uiKit, {
    lang: 'ru'
});

// or for uiKitPlugins

Vue.use(uiKitPlugins, options);

FAQs

Last updated on 03 Mar 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc