2.12.5 • Published 7 months ago

@adminkitas/nuxt2-devkit v2.12.5

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
7 months 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.12.5

7 months ago

2.12.4

8 months ago

2.12.3

8 months ago

2.12.2

8 months ago

2.12.0

8 months ago

2.12.1

8 months ago

2.11.0

8 months ago

2.10.7

9 months ago

2.10.5

10 months ago

2.10.6

9 months ago

2.10.4

10 months ago

2.10.1

11 months ago

2.10.2

11 months ago

2.10.0

1 year ago

2.10.3

10 months ago

2.9.4

1 year ago

2.9.3

1 year ago

2.9.2

1 year ago

2.9.1

1 year ago

2.9.0

1 year ago

2.8.1

1 year ago

2.8.0

1 year ago

2.7.2

1 year ago

2.7.1

1 year ago

2.7.0

1 year ago

2.6.3

1 year ago

2.6.4

1 year ago

2.6.2

1 year ago

2.6.1

1 year ago

2.6.0

1 year ago

2.5.8

1 year ago

2.5.6

1 year ago

2.5.7

1 year ago

2.5.5

1 year ago

2.5.4

1 year ago

2.5.3

1 year ago

2.5.2

2 years ago

2.4.5

2 years ago

2.5.0

2 years ago

2.5.1

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.4.4

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.4.1

2 years ago

2.4.0

2 years ago

2.2.2

2 years ago

2.3.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.3

2 years ago

0.0.49

2 years ago

0.0.47

3 years ago

0.0.48

3 years ago

0.0.41

3 years ago

0.0.42

3 years ago

0.0.43

3 years ago

0.0.44

3 years ago

0.0.45

3 years ago

0.0.46

3 years ago

0.0.40

3 years ago

0.0.37

3 years ago

0.0.38

3 years ago

0.0.39

3 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.29

3 years ago

0.0.28

3 years ago

0.0.27

3 years ago

0.0.11-beta.2

3 years ago

0.0.11-beta.1

3 years ago

0.0.11-beta.0

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.11-beta2

3 years ago

0.0.11-beta

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago