2.9.2 • Published 13 days ago

@adminkitas/nuxt2-devkit v2.9.2

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
13 days ago

@adminkitas/nuxt2-devkit

How to setup

Run:

yarn add @adminkitas/nuxt2-devkit

or

npm i @adminkitas/nuxt2-devkit

Assets

Create a a file called style.scss in the folder /assets/styles.

Add the code:

@import '@adminkitas/nuxt2-devkit/assets/styles/fonts/gineto.css';
@import '@adminkitas/nuxt2-devkit/assets/styles/fonts/remixicon';
@import '@adminkitas/nuxt2-devkit/assets/styles/style';

nuxt.config.js

Add the style to be inserted to the entire project:

css: ['@/assets/styles/style.scss']

To utilize the nuxt components, add this line to your plugins config block:

plugins: [
    { src: '~/node_modules/@adminkitas/nuxt2-devkit/index.js', mode: 'client' }
  ]

To make buefy render the components as we want them to look like, add this block:

buefy: {
    css: false,
    materialDesignIcons: false,
    defaultButtonRounded: true,
    defaultIconPack: 'remixicon',
    customIconPacks: {
      remixicon: {
        sizes: {
          default: '',
          'is-small': 'ri-sm',
          'is-medium': 'ri-lg',
          'is-large': 'ri-xl'
        },
        iconPrefix: 'ri-',
        internalIcons: {
          check: 'check-line',
          information: 'information-line',
          'check-circle': 'checkbox-circle-line',
          alert: 'alert-line',
          'alert-circle': 'error-warning-line',
          'arrow-up': 'arrow-up-line',
          'chevron-right': 'arrow-right-s-line',
          'chevron-left': 'arrow-left-s-line',
          'chevron-down': 'arrow-down-s-line',
          'chevron-up': 'arrow-up-s-line',
          eye: 'eye-line',
          'eye-off': 'eye-off-line',
          'menu-down': 'arrow-down-s-line',
          'menu-up': 'arrow-up-s-line',
          plus: 'add-line',
          minus: 'subtract-line'
        }
      }
    }

Moment:

Moment.js comes with the package and is required to get the components to work.

buildModules:['@nuxtjs/moment']
plugins: [
    { src: '~/node_modules/@adminkitas/nuxt2-devkit/plugins/moment.js', mode: 'client' }
  ]

i18n:

i18n somes with the package and is required when using the components.

modules:['@nuxtjs/i18n']
plugins: [
    { src: '~/node_modules/@adminkitas/nuxt2-devkit/plugins/validation_i18n.js', mode: 'client' }
  ]
i18n: {
  langDir: 'locales/',
  lazy: true,
  strategy: 'prefix',
  locales: [
    { code: 'en', name: 'English', file: 'en/en.js', iso: 'en-GB' },
    { code: 'no', name: 'Norsk', file: 'no/no.js', iso: 'no-NB' }
    // you need to create these language files in the locales/ folder in your application
  ],
  defaultLocale: process.env.DEFAULT_LANG, // Make sure that this variable is available from CI/CD.
  vueI18n: {
    fallbackLocale: 'en'
  },
  detectBrowserLanguage: {
    fallbackLocale: 'en',
    cookieKey: 'app_language'
  }
}

Environmental setup

From @/node_modules/@adminkitas/nuxt2-devkit/ copy the folders .vscode & static into your own project

Available plugins

The package comes with a couple of extra widly used plugins:

plugins: [
  { src: '~/node_modules/@adminkitas/nuxt2-devkit/plugins/feature.js', mode: 'client' },
    // To verify if a feature is available
  { src: '~/node_modules/@adminkitas/nuxt2-devkit/plugins/toast.js', mode: 'client' }
    // A shortcut plugin for using the buefy toast
  ]
2.9.2

13 days ago

2.9.1

14 days ago

2.9.0

14 days ago

2.8.1

15 days ago

2.8.0

16 days ago

2.7.2

1 month ago

2.7.1

2 months ago

2.7.0

2 months ago

2.6.3

3 months ago

2.6.4

3 months ago

2.6.2

3 months ago

2.6.1

3 months ago

2.6.0

3 months ago

2.5.8

3 months ago

2.5.6

4 months ago

2.5.7

4 months ago

2.5.5

4 months ago

2.5.4

4 months ago

2.5.3

5 months ago

2.5.2

5 months ago

2.4.5

5 months ago

2.5.0

5 months ago

2.5.1

5 months ago

2.4.3

6 months ago

2.4.2

6 months ago

2.4.4

6 months ago

2.2.1

8 months ago

2.2.0

8 months ago

2.4.1

7 months ago

2.4.0

7 months ago

2.2.2

8 months ago

2.3.0

8 months ago

2.3.2

7 months ago

2.3.1

8 months ago

2.1.2

11 months ago

2.1.1

11 months ago

2.1.4

11 months ago

2.1.3

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.0.3

1 year ago

0.0.49

1 year ago

0.0.47

2 years ago

0.0.48

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.40

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.11-beta.2

2 years ago

0.0.11-beta.1

2 years ago

0.0.11-beta.0

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.11-beta2

2 years ago

0.0.11-beta

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago