Browse Source

feat(gui-v2,deps): add windi plugins for animation & question-mark

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
pull/2716/head
Braks 2 years ago committed by Pranav C
parent
commit
900ce93f32
  1. 26
      packages/nc-gui-v2/package-lock.json
  2. 2
      packages/nc-gui-v2/package.json
  3. 8
      packages/nc-gui-v2/windi.config.ts

26
packages/nc-gui-v2/package-lock.json generated

@ -19,6 +19,8 @@
"@intlify/vite-plugin-vue-i18n": "^4.0.0",
"@vue/compiler-sfc": "^3.2.37",
"@vueuse/nuxt": "^8.6.0",
"@windicss/plugin-animations": "^1.0.9",
"@windicss/plugin-question-mark": "^0.1.1",
"@windicss/plugin-scrollbar": "^1.2.3",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
@ -2900,6 +2902,18 @@
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@windicss/plugin-animations": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/@windicss/plugin-animations/-/plugin-animations-1.0.9.tgz",
"integrity": "sha512-9WsQsPzLurkwV5zaMCwmylxfSHlQ1pPmzud4ysvMkMBRB7obub9ESmqlHefcCjEhatz/ZROi1U1XOuOPPUO1nA==",
"dev": true
},
"node_modules/@windicss/plugin-question-mark": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@windicss/plugin-question-mark/-/plugin-question-mark-0.1.1.tgz",
"integrity": "sha512-LTnySh28mFncJqCw7VjZzYD3HkJynjHQ8wAIgsZUPTi8WzDJtUeYyFc8/ImXGL/jon55zzg9yy9y/lUyCvvrmA==",
"dev": true
},
"node_modules/@windicss/plugin-scrollbar": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@windicss/plugin-scrollbar/-/plugin-scrollbar-1.2.3.tgz",
@ -14566,6 +14580,18 @@
"windicss": "^3.5.6"
}
},
"@windicss/plugin-animations": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/@windicss/plugin-animations/-/plugin-animations-1.0.9.tgz",
"integrity": "sha512-9WsQsPzLurkwV5zaMCwmylxfSHlQ1pPmzud4ysvMkMBRB7obub9ESmqlHefcCjEhatz/ZROi1U1XOuOPPUO1nA==",
"dev": true
},
"@windicss/plugin-question-mark": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@windicss/plugin-question-mark/-/plugin-question-mark-0.1.1.tgz",
"integrity": "sha512-LTnySh28mFncJqCw7VjZzYD3HkJynjHQ8wAIgsZUPTi8WzDJtUeYyFc8/ImXGL/jon55zzg9yy9y/lUyCvvrmA==",
"dev": true
},
"@windicss/plugin-scrollbar": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@windicss/plugin-scrollbar/-/plugin-scrollbar-1.2.3.tgz",

2
packages/nc-gui-v2/package.json

@ -22,6 +22,8 @@
"@intlify/vite-plugin-vue-i18n": "^4.0.0",
"@vue/compiler-sfc": "^3.2.37",
"@vueuse/nuxt": "^8.6.0",
"@windicss/plugin-animations": "^1.0.9",
"@windicss/plugin-question-mark": "^0.1.1",
"@windicss/plugin-scrollbar": "^1.2.3",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",

8
packages/nc-gui-v2/windi.config.ts

@ -6,6 +6,11 @@ import lineClampPlugin from 'windicss/plugin/line-clamp'
import windiColors from 'windicss/colors'
// @ts-expect-error no types for plugin-scrollbar
import scrollbar from '@windicss/plugin-scrollbar'
// @ts-expect-error no types for plugin-animation
import animations from '@windicss/plugin-animations'
// @ts-expect-error no types for plugin-question-mark
import questionMark from '@windicss/plugin-question-mark'
import colors, { themeColors } from './utils/colorsUtils'
export default defineConfig({
@ -15,9 +20,10 @@ export default defineConfig({
},
attributify: true,
darkMode: 'class',
plugins: [scrollbar, formsPlugin, typographyPlugin, aspectRatioPlugin, lineClampPlugin],
plugins: [scrollbar, animations, questionMark, formsPlugin, typographyPlugin, aspectRatioPlugin, lineClampPlugin],
shortcuts: {
'scrollbar-thin-primary': 'scrollbar scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-primary scrollbar-track-white',

Loading…
Cancel
Save