From 3c20eb09cc401799aabd2a55f5784c30073c9670 Mon Sep 17 00:00:00 2001 From: Diego Martinez Date: Sun, 13 Apr 2025 02:08:17 -0400 Subject: [PATCH 01/10] fix: resolve Vue warnings --- rollup.config.js | 29 ++++++++++--------- src/components/sections/Snippet.vue | 4 +-- src/docs/components/showcases/Checkbox.vue | 4 +-- .../components/showcases/Toast/Default.vue | 11 ++++--- 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index c27395d..c73d702 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -145,9 +145,10 @@ const config = [ replace({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), 'process.env.VUE_APP_VERSION_NUMBER': JSON.stringify(env.parsed.VUE_APP_VERSION_NUMBER), + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(true), __VUE_OPTIONS_API__: false, __VUE_PROD_DEVTOOLS__: false, - preventAssignment: true + preventAssignment: true, }), json(), alias({ entries: { vue: '@vue/runtime-dom' } }), @@ -181,13 +182,13 @@ const config = [ prod && terser({ format: { comments: false } }), prod && - gzip({ - fileName: '.br', - customCompression: content => - zlib.brotliCompressSync(Buffer.from(content), { - params: { [zlib.constants.BROTLI_PARAM_QUALITY]: 11 }, - }), - }), + gzip({ + fileName: '.br', + customCompression: content => + zlib.brotliCompressSync(Buffer.from(content), { + params: { [zlib.constants.BROTLI_PARAM_QUALITY]: 11 }, + }), + }), html({ publicPath: env.parsed.BASE_URL, title: 'Vue3-ui', @@ -195,12 +196,12 @@ const config = [ }), watch && - serve({ - host: '0.0.0.0', - contentBase: 'dist', - historyApiFallback: true, - port: 5000, - }), + serve({ + host: '0.0.0.0', + contentBase: 'dist', + historyApiFallback: true, + port: 5000, + }), watch && livereload({ watch: 'dist' }), prod && analyzer(), diff --git a/src/components/sections/Snippet.vue b/src/components/sections/Snippet.vue index 8fc7e5a..f86a525 100644 --- a/src/components/sections/Snippet.vue +++ b/src/components/sections/Snippet.vue @@ -22,7 +22,7 @@ export default { if (binding.value) { target.innerHTML = binding.value } - hljs.highlightBlock(target) + hljs.highlightElement(target) } }, componentUpdated(el, binding) { @@ -30,7 +30,7 @@ export default { for (const target of targets) { if (binding.value) { target.innerHTML = binding.value - hljs.highlightBlock(target) + hljs.highlightElement(target) } } } diff --git a/src/docs/components/showcases/Checkbox.vue b/src/docs/components/showcases/Checkbox.vue index a1c271d..6968732 100644 --- a/src/docs/components/showcases/Checkbox.vue +++ b/src/docs/components/showcases/Checkbox.vue @@ -22,11 +22,11 @@ export default { Active checkbox
- + Indeterminate checkbox
- + Disabled checkbox diff --git a/src/docs/components/showcases/Toast/Default.vue b/src/docs/components/showcases/Toast/Default.vue index a2a9c38..660ae88 100644 --- a/src/docs/components/showcases/Toast/Default.vue +++ b/src/docs/components/showcases/Toast/Default.vue @@ -51,17 +51,17 @@ max="10000" :disabled="state.options.duration === false" /> - + Disable duration - + Dismissible on click - + Enqueue @@ -69,7 +69,7 @@ - + Pause on hover @@ -175,6 +175,9 @@ export default { message: "Bulma's notification implemented as a toast plugin.", options: { duration: 4000, + dismissible: true, + queue: false, + pauseOnHover: true, }, }) From b8ab90fee622b45e72e8c65b59864e6deb4691f7 Mon Sep 17 00:00:00 2001 From: Diego Martinez Date: Sun, 13 Apr 2025 10:44:56 -0400 Subject: [PATCH 02/10] chore: set hydration mismatch flag to false --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index c73d702..43f723e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -145,7 +145,7 @@ const config = [ replace({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), 'process.env.VUE_APP_VERSION_NUMBER': JSON.stringify(env.parsed.VUE_APP_VERSION_NUMBER), - __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(true), + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, __VUE_OPTIONS_API__: false, __VUE_PROD_DEVTOOLS__: false, preventAssignment: true, From 6656c3faf88bf33a850dddb540ee32f3df9bc0ca Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 15 Apr 2025 23:12:58 -0400 Subject: [PATCH 03/10] feat: add colors page --- src/pages/Design/Colors.vue | 130 ++++++++++++++++++++++++++++++++++++ src/pages/Documentation.vue | 109 +++++++----------------------- src/pages/index.ts | 2 + src/router/index.js | 6 ++ 4 files changed, 162 insertions(+), 85 deletions(-) create mode 100644 src/pages/Design/Colors.vue diff --git a/src/pages/Design/Colors.vue b/src/pages/Design/Colors.vue new file mode 100644 index 0000000..c3043b6 --- /dev/null +++ b/src/pages/Design/Colors.vue @@ -0,0 +1,130 @@ + + + diff --git a/src/pages/Documentation.vue b/src/pages/Documentation.vue index 438cfcb..39769ac 100644 --- a/src/pages/Documentation.vue +++ b/src/pages/Documentation.vue @@ -55,43 +55,23 @@ export default {
- - + + - + + - - + + - - + + @@ -107,43 +87,25 @@ export default { - + - + - + - - + + - + - + - + @@ -169,30 +125,18 @@ export default { - + - + - + - +
@@ -200,13 +144,8 @@ export default { Home - + {{ item }} diff --git a/src/pages/index.ts b/src/pages/index.ts index b34eac7..c9afb6e 100644 --- a/src/pages/index.ts +++ b/src/pages/index.ts @@ -10,6 +10,8 @@ export { default as Validation } from './Validation.vue' export { default as Theming } from './Design/Theming.vue' +export { default as Colors } from './Design/Colors.vue' + export { default as Bulma } from './Design/Bulma.vue' export { default as IntroducingAppState } from './AppState/Introducing.vue' diff --git a/src/router/index.js b/src/router/index.js index b1863b2..6e08c93 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -89,6 +89,12 @@ const routes = [ component: Pages.Theming, meta: metaTags('Theming', 'Customize Vue3-ui and make it your own.'), }, + { + name: 'colors', + path: 'colors', + component: Pages.Colors, + meta: metaTags('Colors', 'Colors are a great way to add personality to your application.'), + }, { name: 'bulma', path: 'bulma', From 4ec8b507926d810e91e83df72330761035247627 Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 15 Apr 2025 23:34:51 -0400 Subject: [PATCH 04/10] feat: add color palette --- bun.lock | 5 ++ package.json | 3 +- src/pages/Design/Colors.vue | 105 ++++++++++++++++++------------------ 3 files changed, 60 insertions(+), 53 deletions(-) diff --git a/bun.lock b/bun.lock index 9c9ca73..e766562 100644 --- a/bun.lock +++ b/bun.lock @@ -3,6 +3,9 @@ "workspaces": { "": { "name": "vue3.dev", + "dependencies": { + "tinycolor2": "1.6.0", + }, "devDependencies": { "@babel/core": "^7.26.10", "@bulvar/bulma": "^0.11.24", @@ -1603,6 +1606,8 @@ "thenify-all": ["thenify-all@1.6.0", "", { "dependencies": { "thenify": ">= 3.1.0 < 4" } }, "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA=="], + "tinycolor2": ["tinycolor2@1.6.0", "", {}, "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw=="], + "tinyglobby": ["tinyglobby@0.2.12", "", { "dependencies": { "fdir": "^6.4.3", "picomatch": "^4.0.2" } }, "sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww=="], "to-data-view": ["to-data-view@2.0.0", "", {}, "sha512-RGEM5KqlPHr+WVTPmGNAXNeFEmsBnlkxXaIfEpUYV0AST2Z5W1EGq9L/MENFrMMmL2WQr1wjkmZy/M92eKhjYA=="], diff --git a/package.json b/package.json index 1a2c9c5..de9a919 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,8 @@ "vue": "^3.5.13", "vue-composable": "^1.0.0-beta.24", "vue-i18n": "^9.1.10", - "vue-router": "^4.0.16" + "vue-router": "^4.0.16", + "tinycolor2": "1.6.0" }, "engines": { "bun": ">=1.0.0" diff --git a/src/pages/Design/Colors.vue b/src/pages/Design/Colors.vue index c3043b6..db94bfb 100644 --- a/src/pages/Design/Colors.vue +++ b/src/pages/Design/Colors.vue @@ -1,67 +1,68 @@ + + \ No newline at end of file diff --git a/src/pages/Design/Colors.vue b/src/pages/Design/Colors.vue index 228f1e1..c519d8c 100644 --- a/src/pages/Design/Colors.vue +++ b/src/pages/Design/Colors.vue @@ -1,11 +1,27 @@ From 6e2ff2a142bcd2bb3783fab0f948bf9a535e77f4 Mon Sep 17 00:00:00 2001 From: Diego Martinez Date: Thu, 17 Apr 2025 09:51:37 -0400 Subject: [PATCH 10/10] fix(toast showcase): remove redundant @change listeners from v-checkbox --- src/docs/components/showcases/Toast/Default.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/components/showcases/Toast/Default.vue b/src/docs/components/showcases/Toast/Default.vue index 70a5346..1b422ff 100644 --- a/src/docs/components/showcases/Toast/Default.vue +++ b/src/docs/components/showcases/Toast/Default.vue @@ -60,12 +60,12 @@
- + Dismissible on click - + Enqueue