From f74513eff5db00d89803184a6fb5f28ec0301ab6 Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Wed, 19 Jan 2022 21:00:23 -0800 Subject: [PATCH 01/39] Add Windi-css --- package.json | 4 +- src/main.js | 3 + vite.config.js | 3 +- yarn.lock | 154 +++++++++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 157 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 45cfa71110..c47a189156 100644 --- a/package.json +++ b/package.json @@ -68,8 +68,10 @@ "tar": "^6.1.9", "vite": "2.9.9", "vite-plugin-vue2": "^1.9.2", + "vite-plugin-windicss": "^1.6.3", "vue-loader": "^15.7.0", - "vue-template-compiler": "^2.6.14" + "vue-template-compiler": "^2.6.14", + "windicss": "^3.4.3" }, "resolutions": { "glob-parent": "^5.1.2", diff --git a/src/main.js b/src/main.js index f455cc128f..3b2df5e0ef 100644 --- a/src/main.js +++ b/src/main.js @@ -14,6 +14,9 @@ import '@fontsource/roboto-mono/400.css'; import '@fontsource/roboto/400.css'; import '@fontsource/roboto/700.css'; import '@fontsource/montserrat/400.css'; +import 'virtual:windi.css'; +import 'virtual:windi-devtools'; + Vue.use(VueI18n); Vue.use(VTooltip); diff --git a/vite.config.js b/vite.config.js index 6b400262e9..54dcbd3fcf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,10 +2,11 @@ const path = require('path'); import { defineConfig } from 'vite'; import { createVuePlugin as vue } from 'vite-plugin-vue2'; +import WindiCSS from 'vite-plugin-windicss'; import CSV from './scripts/i18n/loader.js'; export default defineConfig({ - plugins: [vue(), CSV()], + plugins: [vue(), CSV(), WindiCSS()], resolve: { alias: { '@': path.resolve(__dirname, './src') diff --git a/yarn.lock b/yarn.lock index 897d56a456..7d76e1cb48 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,7 +2,21 @@ # yarn lockfile v1 -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.16.7": +"@antfu/utils@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.4.0.tgz#df100ed9922d7359bf6c99083765b5207086b9a7" + integrity sha512-gqkpvjkgFUu+s3kP+Ly33OKpo5zvVY3FDFhv5BIb98SncS3KD6DNxPfNDjwHIoyXbz1leWo1j8DtRLZ1D2Jv+Q== + dependencies: + "@types/throttle-debounce" "^2.1.0" + +"@babel/code-frame@^7.0.0": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb" + integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw== + dependencies: + "@babel/highlight" "^7.14.5" + +"@babel/code-frame@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg== @@ -256,6 +270,15 @@ "@babel/traverse" "^7.16.7" "@babel/types" "^7.16.7" +"@babel/highlight@^7.14.5": + version "7.17.12" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.17.12.tgz#257de56ee5afbd20451ac0a75686b6b404257351" + integrity sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg== + dependencies: + "@babel/helper-validator-identifier" "^7.16.7" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/highlight@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b" @@ -1154,6 +1177,27 @@ prettier "^2.0.4" rxjs "^6.6.3" +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + "@npmcli/fs@^1.0.0": version "1.1.1" resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-1.1.1.tgz#72f719fe935e687c56a4faecf3c03d06ba593257" @@ -1240,6 +1284,11 @@ resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.3.tgz#ff5e2f1902969d305225a047c8a0fd5c915cebef" integrity sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ== +"@types/throttle-debounce@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@types/throttle-debounce/-/throttle-debounce-2.1.0.tgz#1c3df624bfc4b62f992d3012b84c56d41eab3776" + integrity sha512-5eQEtSCoESnh2FsiLTxE121IiE60hnMqcb435fShf4bpLRjEu1Eoekht23y6zXS9Ts3l+Szu3TARnTsA0GkOkQ== + "@types/yauzl@^2.9.1": version "2.10.0" resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.0.tgz#b3248295276cf8c6f153ebe6a9aba0c988cb2599" @@ -1607,6 +1656,28 @@ "@webassemblyjs/wast-parser" "1.9.0" "@xtuc/long" "4.2.2" +"@windicss/config@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@windicss/config/-/config-1.6.3.tgz#eff67eecc763d0080995068608d483799413bc82" + integrity sha512-1kjdy4tyYLD4sCB4DS+3Lt1Odnde03z4Rz3EUqyWJ7SiBEWMgRk1L797SsgEH4+W1DjLBZLs1SVYzaTO/3UdJA== + dependencies: + debug "^4.3.3" + jiti "^1.12.9" + windicss "^3.4.3" + +"@windicss/plugin-utils@1.6.3": + version "1.6.3" + resolved "https://registry.yarnpkg.com/@windicss/plugin-utils/-/plugin-utils-1.6.3.tgz#b321804b4e84e7a20a5c79f50c7fd83eb8202917" + integrity sha512-tY20pAdV8YOlCj/5Teh078n/YbekbE5qOmlNgcl+S10KqitUGB9+Qss/xE0HULACmCXBO9XeLUcAPGao79lAnA== + dependencies: + "@antfu/utils" "^0.4.0" + "@windicss/config" "1.6.3" + debug "^4.3.3" + fast-glob "^3.2.11" + magic-string "^0.25.7" + micromatch "^4.0.4" + windicss "^3.4.3" + "@xtuc/ieee754@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" @@ -2522,7 +2593,7 @@ braces@^2.3.1, braces@^2.3.2: split-string "^3.0.2" to-regex "^3.0.1" -braces@~3.0.2: +braces@^3.0.1, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -3279,7 +3350,7 @@ de-indent@^1.0.2: resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d" integrity sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0= -debug@4, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3: +debug@4, debug@^4.1.1: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -3293,7 +3364,7 @@ debug@4.3.2, debug@^4.1.0: dependencies: ms "2.1.2" -debug@4.3.3: +debug@4.3.3, debug@^4.3.2, debug@^4.3.3: version "4.3.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== @@ -4018,6 +4089,17 @@ fast-diff@^1.1.2: resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== +fast-glob@^3.2.11: + version "3.2.11" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" + integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -4028,6 +4110,13 @@ fast-levenshtein@^2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + fd-slicer@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" @@ -5019,6 +5108,11 @@ isstream@~0.1.2: resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= +jiti@^1.12.9: + version "1.12.9" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.12.9.tgz#2ce45b265cfc8dc91ebd70a5204807cf915291bc" + integrity sha512-TdcJywkQtcwLxogc4rSMAi479G2eDPzfW0fLySks7TPhgZZ4s/tM6stnzayIh3gS/db3zExWJyUx4cNWrwAmoQ== + joi@^17.4.0: version "17.4.2" resolved "https://registry.yarnpkg.com/joi/-/joi-17.4.2.tgz#02f4eb5cf88e515e614830239379dcbbe28ce7f7" @@ -5196,6 +5290,11 @@ kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== +kolorist@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/kolorist/-/kolorist-1.5.1.tgz#c3d66dc4fabde4f6b7faa6efda84c00491f9e52b" + integrity sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ== + launch-editor@^2.2.1: version "2.3.0" resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.3.0.tgz#23b2081403b7eeaae2918bda510f3535ccab0ee4" @@ -5477,6 +5576,11 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" @@ -5496,6 +5600,14 @@ micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" +micromatch@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" + integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== + dependencies: + braces "^3.0.1" + picomatch "^2.2.3" + miller-rabin@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" @@ -6181,7 +6293,7 @@ picocolors@^1.0.0: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2: +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== @@ -6444,6 +6556,11 @@ querystringify@^2.1.1: resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + quick-lru@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" @@ -6742,6 +6859,11 @@ retry@^0.12.0: resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" integrity sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs= +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rfdc@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" @@ -6783,6 +6905,13 @@ rollup@^2.59.0: optionalDependencies: fsevents "~2.3.2" +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + run-queue@^1.0.0, run-queue@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" @@ -7815,6 +7944,16 @@ vite-plugin-vue2@^1.9.2: source-map "^0.7.3" vue-template-es2015-compiler "^1.9.1" +vite-plugin-windicss@^1.6.3: + version "1.6.3" + resolved "https://registry.yarnpkg.com/vite-plugin-windicss/-/vite-plugin-windicss-1.6.3.tgz#64afa460eaff610a376e320c450ec79d0b6f6330" + integrity sha512-D4fEUcAPoLRLdDZMee8NrHZHmn0Qj7AjSg1xNGBnZsMTwRPj93NKZk0fIIUoiKTEh1KrdQejW8g6cg0SgGKTww== + dependencies: + "@windicss/plugin-utils" "1.6.3" + debug "^4.3.3" + kolorist "^1.5.1" + windicss "^3.4.3" + vite@2.9.9: version "2.9.9" resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.9.tgz#8b558987db5e60fedec2f4b003b73164cb081c5e" @@ -8020,6 +8159,11 @@ wide-align@^1.1.2, wide-align@^1.1.5: dependencies: string-width "^1.0.2 || 2 || 3 || 4" +windicss@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/windicss/-/windicss-3.4.3.tgz#347d09fee8eb6b3fc5e6e68b435c76ccb24a748c" + integrity sha512-UnugThsvEgy8RsPm4/B5DYMCAqvZzD6yWU7Anh+f07t5RSJ8zvmAylGLbXrHPJEmCKzo2Mf+fOUvISH7IJqM3A== + word-wrap@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" From fafbcfeecade4152448daa4a13896585a1e4d81c Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Wed, 19 Jan 2022 21:19:14 -0800 Subject: [PATCH 02/39] Placeholder route for redesign --- src/router/index.js | 4 +++- src/views/NewHome.vue | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/views/NewHome.vue diff --git a/src/router/index.js b/src/router/index.js index f17f80ae91..efbcfd6509 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,6 +3,7 @@ import VueRouter from 'vue-router'; const Home = () => import('@/views/Home.vue'); const Print = () => import('@/views/Print.vue'); const Test = () => import('@/views/Test.vue'); +const NewHome = () => import('@/views/NewHome.vue'); Vue.use(VueRouter); @@ -11,6 +12,7 @@ export default new VueRouter({ { path: '/:keyboardP(.+)/:layoutP(.+)', component: Home, name: 'home' }, { path: '/print', component: Print, name: 'print' }, { path: '/test', component: Test, name: 'test' }, - { path: '*', component: Home } + { path: '*', component: Home }, + { path: '/new', component: NewHome } ] }); diff --git a/src/views/NewHome.vue b/src/views/NewHome.vue new file mode 100644 index 0000000000..7acfcd2c47 --- /dev/null +++ b/src/views/NewHome.vue @@ -0,0 +1,13 @@ + + + + From fd80438ce32244297c6c1183c49068e45b35098f Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Sun, 29 May 2022 09:17:12 -0700 Subject: [PATCH 03/39] Experiment with templates and Slots - layouts predefined based on N A X redesign --- package.json | 1 + src/components/layouts/ConfiguratorLayout.vue | 18 ++++++++++++++++++ src/views/NewHome.vue | 12 ++++++++---- yarn.lock | 15 +++++++++++---- 4 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 src/components/layouts/ConfiguratorLayout.vue diff --git a/package.json b/package.json index c47a189156..559bdb938e 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@fortawesome/free-brands-svg-icons": "^5.6.3", "@fortawesome/free-solid-svg-icons": "^5.6.3", "@fortawesome/vue-fontawesome": "^2", + "@vue/composition-api": "^1.4.4", "autoprefixer": "^10.4.2", "axios": "^0.21", "howler": "^2.1.3", diff --git a/src/components/layouts/ConfiguratorLayout.vue b/src/components/layouts/ConfiguratorLayout.vue new file mode 100644 index 0000000000..8450fb09d9 --- /dev/null +++ b/src/components/layouts/ConfiguratorLayout.vue @@ -0,0 +1,18 @@ + + diff --git a/src/views/NewHome.vue b/src/views/NewHome.vue index 7acfcd2c47..dc64dae7fb 100644 --- a/src/views/NewHome.vue +++ b/src/views/NewHome.vue @@ -1,13 +1,17 @@ - + diff --git a/yarn.lock b/yarn.lock index 7d76e1cb48..4f066cbcb5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1486,6 +1486,13 @@ optionalDependencies: prettier "^1.18.2 || ^2.0.0" +"@vue/composition-api@^1.4.4": + version "1.4.4" + resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.4.4.tgz#42cfbe6e3c0dc16100d725cdb0ea1c443919cc7a" + integrity sha512-0AMpkSy28NG1BUqTPXLfQzJUnjSp+qUa4jaG7A2FBRSKHJOl1g10/xvNb44+OW5Jg9f79zKOb7PYhFhJG2vLyQ== + dependencies: + tslib "^2.3.1" + "@vue/eslint-config-prettier@^6.0.0": version "6.0.0" resolved "https://registry.yarnpkg.com/@vue/eslint-config-prettier/-/eslint-config-prettier-6.0.0.tgz#ad5912b308f4ae468458e02a2b05db0b9d246700" @@ -7676,10 +7683,10 @@ tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.1.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" - integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== +tslib@^2.1.0, tslib@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== tslib@~2.1.0: version "2.1.0" From 046d499bd3db1bd171dbd61d6a3679eeaff33ffa Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Wed, 19 Jan 2022 21:48:58 -0800 Subject: [PATCH 04/39] Experiment with templates and Slots - layouts predefined based on N A X redesign --- src/main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.js b/src/main.js index 3b2df5e0ef..8cb486bafb 100644 --- a/src/main.js +++ b/src/main.js @@ -17,7 +17,6 @@ import '@fontsource/montserrat/400.css'; import 'virtual:windi.css'; import 'virtual:windi-devtools'; - Vue.use(VueI18n); Vue.use(VTooltip); From b65745445b1ecba64909583684a8088c65ac5990 Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Thu, 20 Jan 2022 11:55:29 -0800 Subject: [PATCH 05/39] Prototype the Layout components - I may need to rip the whole infrastructure down as the existing style sheet is currently dominant - overall the slots and templates seem to work, but there are issues where the child components are being used correctly for sizing. It could be their positioning. --- src/components/layouts/ConfiguratorLayout.vue | 22 ++++++++++------ src/components/layouts/DefaultLayout.vue | 18 +++++++++++++ src/components/layouts/InfoBarLayout.vue | 16 ++++++++++++ src/components/redesign/InfoBar.vue | 22 ++++++++++++++++ src/views/NewHome.vue | 25 +++++++++++++++---- windi.config.js | 16 ++++++++++++ 6 files changed, 107 insertions(+), 12 deletions(-) create mode 100644 src/components/layouts/DefaultLayout.vue create mode 100644 src/components/layouts/InfoBarLayout.vue create mode 100644 src/components/redesign/InfoBar.vue create mode 100644 windi.config.js diff --git a/src/components/layouts/ConfiguratorLayout.vue b/src/components/layouts/ConfiguratorLayout.vue index 8450fb09d9..6197f0c8a4 100644 --- a/src/components/layouts/ConfiguratorLayout.vue +++ b/src/components/layouts/ConfiguratorLayout.vue @@ -1,12 +1,20 @@ diff --git a/src/components/layouts/InfoBarLayout.vue b/src/components/layouts/InfoBarLayout.vue new file mode 100644 index 0000000000..d14ea8565e --- /dev/null +++ b/src/components/layouts/InfoBarLayout.vue @@ -0,0 +1,16 @@ + + diff --git a/src/components/redesign/InfoBar.vue b/src/components/redesign/InfoBar.vue new file mode 100644 index 0000000000..47530e5a27 --- /dev/null +++ b/src/components/redesign/InfoBar.vue @@ -0,0 +1,22 @@ + + diff --git a/src/views/NewHome.vue b/src/views/NewHome.vue index dc64dae7fb..58a0da8b91 100644 --- a/src/views/NewHome.vue +++ b/src/views/NewHome.vue @@ -1,16 +1,31 @@ diff --git a/windi.config.js b/windi.config.js new file mode 100644 index 0000000000..c843f9b474 --- /dev/null +++ b/windi.config.js @@ -0,0 +1,16 @@ +module.exports = { + theme: { + extend: { + gridTemplateColumns: { + infobar: 'minmax(50vw, 1fr) minmax(20vw, 1fr) 1fr 1fr' + }, + gridTemplateRows: { + configurator: 'minmax(45vh, 1fr) minmax(45vh, 1fr)' + }, + colors: { + 'white-panel': '#CCD9F7', + 'white-app': '#ECF2FF' + } + } + } +}; From fb69c94406beedd95a0e05717c7c5efe4625718a Mon Sep 17 00:00:00 2001 From: Yan-Fa Li Date: Thu, 20 Jan 2022 12:13:44 -0800 Subject: [PATCH 06/39] Use grid gap instead of explicit heights --- src/components/layouts/ConfiguratorLayout.vue | 2 +- src/views/NewHome.vue | 19 +++++++++++++++---- windi.config.js | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/layouts/ConfiguratorLayout.vue b/src/components/layouts/ConfiguratorLayout.vue index 6197f0c8a4..4a3ece35a2 100644 --- a/src/components/layouts/ConfiguratorLayout.vue +++ b/src/components/layouts/ConfiguratorLayout.vue @@ -1,5 +1,5 @@