From ddf7cd2c621f71ce5f987fcf38589b994091f167 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Wed, 9 Feb 2022 16:01:45 +0530 Subject: [PATCH 01/14] chore: bump vue and vue-router --- package.json | 4 +- yarn.lock | 165 ++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 159 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 467ff4fc..14859340 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "luxon": "^2.0.2", "pesa": "^1.1.3", "sqlite3": "npm:@vscode/sqlite3@^5.0.7", - "vue": "^2.6.14", - "vue-router": "^3.5.3" + "vue": "^3.2.30", + "vue-router": "^4.0.12" }, "devDependencies": { "@babel/core": "^7.16.0", diff --git a/yarn.lock b/yarn.lock index 6ac58b8e..cbdf040d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -293,6 +293,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.2.tgz#3723cd5c8d8773eef96ce57ea1d9b7faaccd12ac" integrity sha512-RUVpT0G2h6rOZwqLDTrKk7ksNv7YpAilTnYe1/Q+eDjxEceRMKVWbCsX7t8h6C1qCFi/1Y8WZjcEPBAFG27GPw== +"@babel/parser@^7.16.4": + version "7.17.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.0.tgz#f0ac33eddbe214e4105363bb17c3341c5ffcc43c" + integrity sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw== + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.16.0": version "7.16.2" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.16.2.tgz#2977fca9b212db153c195674e57cfab807733183" @@ -1789,6 +1794,48 @@ semver "^7.3.4" strip-ansi "^6.0.0" +"@vue/compiler-core@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.30.tgz#6c5b362490930e72de8d033270a145e3830ae5c4" + integrity sha512-64fq1KfcR+k3Vlw+IsBM2VhV5B+2IP3YxvKU8LWCDLrkmlXtbf2eMK6+0IwX5KP41D0f1gzryIiXR7P8cB9O5Q== + dependencies: + "@babel/parser" "^7.16.4" + "@vue/shared" "3.2.30" + estree-walker "^2.0.2" + source-map "^0.6.1" + +"@vue/compiler-dom@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.30.tgz#ed15e6243227baeaa445d04df804aee6e4926eab" + integrity sha512-t7arHz2SXLCXlF2fdGDFVbhENbGMez254Z5edUqb//6WXJU1lC7GvSkUE7i5x8WSjgfqt60i0V8zdmk16rvLdw== + dependencies: + "@vue/compiler-core" "3.2.30" + "@vue/shared" "3.2.30" + +"@vue/compiler-sfc@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.30.tgz#9d2e56adb859059551fc1204bc37503f168c4d0c" + integrity sha512-P/5YpILtcQY92z72gxhkyOUPHVskEzhSrvYi91Xcr+csOxaDaYU5OqOxCzZKcf3Og70Tat404vO1OHrwprN90A== + dependencies: + "@babel/parser" "^7.16.4" + "@vue/compiler-core" "3.2.30" + "@vue/compiler-dom" "3.2.30" + "@vue/compiler-ssr" "3.2.30" + "@vue/reactivity-transform" "3.2.30" + "@vue/shared" "3.2.30" + estree-walker "^2.0.2" + magic-string "^0.25.7" + postcss "^8.1.10" + source-map "^0.6.1" + +"@vue/compiler-ssr@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.2.30.tgz#fc2bc13a9cdfd70fcffab3f0bc7de141cd9c3411" + integrity sha512-OUh3MwAu/PsD7VN3UOdBbTkltkrUCNouSht47+CMRzpUR5+ta7+xyMAVHeq8wg4YZenWaJimbR5TL35Ka4Vk6g== + dependencies: + "@vue/compiler-dom" "3.2.30" + "@vue/shared" "3.2.30" + "@vue/component-compiler-utils@^3.1.0", "@vue/component-compiler-utils@^3.1.2": version "3.3.0" resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-3.3.0.tgz#f9f5fb53464b0c37b2c8d2f3fbfe44df60f61dc9" @@ -1805,6 +1852,11 @@ optionalDependencies: prettier "^1.18.2 || ^2.0.0" +"@vue/devtools-api@^6.0.0-beta.18": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.2.tgz#92267911dd2772c5a7641d2889051c6193a7c6aa" + integrity sha512-1W8ylfudTFepNgpgY1Dp29iVPlseIy+0+4xXoMkxKmdnxWx8vm8dNgz4F83zML46hHb9aP382JURFfqLuJcWYQ== + "@vue/eslint-config-typescript@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@vue/eslint-config-typescript/-/eslint-config-typescript-7.0.0.tgz#220c70c2edf7a253e739298525f4d401b8ef0038" @@ -1817,6 +1869,54 @@ resolved "https://registry.yarnpkg.com/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz#ceb924b4ecb3b9c43871c7a429a02f8423e621ab" integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ== +"@vue/reactivity-transform@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.30.tgz#2006e9f4645777a481b78ae77fc486159afa8480" + integrity sha512-Le5XzCJyK3qTjoTnvQG/Ehu8fYjayauMNFyMaEnwFlm/avDofpuibpS9u+/6AgzsGnVWN+i0Jgf25bJd9DIwMw== + dependencies: + "@babel/parser" "^7.16.4" + "@vue/compiler-core" "3.2.30" + "@vue/shared" "3.2.30" + estree-walker "^2.0.2" + magic-string "^0.25.7" + +"@vue/reactivity@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.30.tgz#fdae2bb66d075c34593ea7e15c6831300a1ad39e" + integrity sha512-qlNKbkRn2JiGxVUEdoXbLAy+vcuHUCcq+YH2uXWz0BNMvXY2plmz+oqsw+694llwmYLkke5lbdYF4DIupisIkg== + dependencies: + "@vue/shared" "3.2.30" + +"@vue/runtime-core@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.2.30.tgz#1acc119ff8a49c06af6b03611bc4e03f464ca8a2" + integrity sha512-RTi7xH0Ht/6wfbo2WFBMJTEiyWFTqGhrksJm8lz6E+auO6lXZ6Eq3gPNfLt47GDWCm4xyrv+rs5R4UbarPEQ1Q== + dependencies: + "@vue/reactivity" "3.2.30" + "@vue/shared" "3.2.30" + +"@vue/runtime-dom@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.2.30.tgz#16a85b359ea1fff9b1dd61e9d00e93f4652aba5e" + integrity sha512-a3+jrncDvEFQmB+v9k0VyT4/Y3XO6OAueCroXXY4yLyr6PJeyxljweV5TzvW0rvVzH9sZO0QAvG76Lo+6C92Qw== + dependencies: + "@vue/runtime-core" "3.2.30" + "@vue/shared" "3.2.30" + csstype "^2.6.8" + +"@vue/server-renderer@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.2.30.tgz#4acccad3933475d07b94560c6cb205363975b969" + integrity sha512-pzb8J/w+JdZVOtuKFlirGqrs4GP60FXGDJySw3WV2pCetuFstaacDrnymEeSo3ohAD+Qjv7zAG+Y7OvkdxQxmQ== + dependencies: + "@vue/compiler-ssr" "3.2.30" + "@vue/shared" "3.2.30" + +"@vue/shared@3.2.30": + version "3.2.30" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.30.tgz#e2ba8f6692399c27c81c668ecd3f1a4e13ee2f5e" + integrity sha512-B3HouBtUxcfu2w2d+VhdLcVBXKYYhXiFMAfQ+hoe8NUhKkPRkWDIqhpuehCZxVQ3S2dN1P1WfKGlxGC+pfmxGg== + "@vue/web-component-wrapper@^1.2.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz#b6b40a7625429d2bd7c2281ddba601ed05dc7f1a" @@ -4065,6 +4165,11 @@ csso@^4.0.2: dependencies: css-tree "^1.1.2" +csstype@^2.6.8: + version "2.6.19" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.19.tgz#feeb5aae89020bb389e1f63669a5ed490e391caa" + integrity sha512-ZVxXaNy28/k3kJg0Fou5MiYpp88j7H9hLZp8PDC3jV0WFjfH5E9xHb56L0W59cPbKbcHXeP4qyT8PrHp8t6LcQ== + csvjson-csv2json@^5.0.6: version "5.0.6" resolved "https://registry.yarnpkg.com/csvjson-csv2json/-/csvjson-csv2json-5.0.6.tgz#b056f77dd3c13a2f550ada1c31f05072aad6ff3a" @@ -4981,6 +5086,11 @@ estraverse@^5.1.0, estraverse@^5.2.0: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +estree-walker@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -7402,6 +7512,13 @@ luxon@^2.0.2: resolved "https://registry.yarnpkg.com/luxon/-/luxon-2.0.2.tgz#11f2cd4a11655fdf92e076b5782d7ede5bcdd133" integrity sha512-ZRioYLCgRHrtTORaZX1mx+jtxKtKuI5ZDvHNAmqpUzGqSrR+tL4FVLn/CUGMA3h0+AKD1MAxGI5GnCqR5txNqg== +magic-string@^0.25.7: + version "0.25.7" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051" + integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA== + dependencies: + sourcemap-codec "^1.4.4" + make-dir@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -7782,6 +7899,11 @@ nanoid@^3.1.22, nanoid@^3.1.30: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.32.tgz#8f96069e6239cc0a9ae8c0d3b41a3b4933a88c0a" integrity sha512-F8mf7R3iT9bvThBoW4tGXhXFHCctyCiUUPrWF8WaTqa3h96d9QybkSeba43XVOOE3oiLfkVDe4bT8MeGmkrTxw== +nanoid@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.2.0.tgz#62667522da6673971cca916a6d3eff3f415ff80c" + integrity sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA== + nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" @@ -8947,6 +9069,15 @@ postcss@^8: nanoid "^3.1.22" source-map "^0.6.1" +postcss@^8.1.10: + version "8.4.6" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.6.tgz#c5ff3c3c457a23864f32cb45ac9b741498a09ae1" + integrity sha512-OovjwIzs9Te46vlEx7+uXB0PLijpwjXGKXjVGGPIGubGpq7uh5Xgf6D6FiJ/SzJMBosHDp6a2hiXOS97iBXcaA== + dependencies: + nanoid "^3.2.0" + picocolors "^1.0.0" + source-map-js "^1.0.2" + postcss@^8.3.5: version "8.4.5" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.5.tgz#bae665764dfd4c6fcc24dc0fdf7e7aa00cc77f95" @@ -10069,6 +10200,11 @@ source-map-js@^1.0.1: resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.1.tgz#a1741c131e3c77d048252adfa24e23b908670caf" integrity sha512-4+TN2b3tqOCd/kaGRJ/sTYA0tR0mdXx26ipdolxcwtJVqEnqNYvlCAt1q3ypy4QMlYus+Zh34RNtYLoq2oQ4IA== +source-map-js@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" + integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== + source-map-resolve@^0.5.0: version "0.5.3" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" @@ -10116,6 +10252,11 @@ source-map@^0.7.3, source-map@~0.7.2: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== +sourcemap-codec@^1.4.4: + version "1.4.8" + resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" + integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== + spdx-correct@^3.0.0: version "3.1.1" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" @@ -11338,10 +11479,12 @@ vue-loader@^15.9.2: vue-hot-reload-api "^2.3.0" vue-style-loader "^4.1.0" -vue-router@^3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.3.tgz#041048053e336829d05dafacf6a8fb669a2e7999" - integrity sha512-FUlILrW3DGitS2h+Xaw8aRNvGTwtuaxrRkNSHWTizOfLUie7wuYwezeZ50iflRn8YPV5kxmU2LQuu3nM/b3Zsg== +vue-router@^4.0.12: + version "4.0.12" + resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.0.12.tgz#8dc792cddf5bb1abcc3908f9064136de7e13c460" + integrity sha512-CPXvfqe+mZLB1kBWssssTiWg4EQERyqJZes7USiqfW9B5N2x+nHlnsM1D3b5CaJ6qgCvMmYJnz+G0iWjNCvXrg== + dependencies: + "@vue/devtools-api" "^6.0.0-beta.18" vue-style-loader@^4.1.0, vue-style-loader@^4.1.2: version "4.1.3" @@ -11364,10 +11507,16 @@ vue-template-es2015-compiler@^1.9.0: resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825" integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw== -vue@^2.6.14: - version "2.6.14" - resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.14.tgz#e51aa5250250d569a3fbad3a8a5a687d6036e235" - integrity sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ== +vue@^3.2.30: + version "3.2.30" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.2.30.tgz#47de3039631ac22cab2fd26b427575260199b8bb" + integrity sha512-ZmTFWVJUX2XADkuOB8GcLTuxnBLogjJBTNVrM7WsTnjqRQ+VR8bLNrvNsbn8vj/LaP5+0WFAPrpngOYE2x+e+Q== + dependencies: + "@vue/compiler-dom" "3.2.30" + "@vue/compiler-sfc" "3.2.30" + "@vue/runtime-dom" "3.2.30" + "@vue/server-renderer" "3.2.30" + "@vue/shared" "3.2.30" watchpack-chokidar2@^2.0.1: version "2.0.1" From 2f6a2f4cc2aa9f80c91e8a03063531f6f1c332ff Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Thu, 10 Feb 2022 12:11:51 +0530 Subject: [PATCH 02/14] =?UTF-8?q?refactor:=20vue=202=20=E2=86=92=203=20mig?= =?UTF-8?q?ration=20-=20render=20functions=20-=20slots=20-=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/doctype/Party/Customer.js | 8 +- models/doctype/Party/Supplier.js | 8 +- src/background.js | 10 +- src/components/BackLink.vue | 3 +- src/components/Button.vue | 1 - src/components/Controls/Base.vue | 1 - src/components/Controls/Color.vue | 56 +++---- src/components/Controls/Currency.vue | 1 + src/components/Controls/FormControl.js | 14 +- src/components/Dropdown.vue | 128 +++++++-------- src/components/FeatherIcon.vue | 34 ++-- src/components/FilterDropdown.vue | 189 ++++++++++++---------- src/components/Icon.vue | 1 - src/components/Popover.vue | 12 +- src/components/Row.vue | 20 +-- src/components/Sidebar.vue | 11 +- src/main.js | 52 +++--- src/pages/ChartOfAccounts.vue | 212 ++++++++++++------------- src/pages/Dashboard/Dashboard.vue | 6 +- src/pages/Dashboard/Expenses.vue | 15 +- src/pages/Dashboard/ProfitAndLoss.vue | 15 +- src/pages/Dashboard/UnpaidInvoices.vue | 34 ++-- src/pages/Desk.vue | 24 +-- src/pages/GetStarted.vue | 13 +- src/pages/InvoiceForm.vue | 6 +- src/pages/JournalEntryForm.vue | 12 +- src/pages/ListView/ListView.vue | 24 +-- src/pages/PrintView/PrintView.vue | 6 +- src/pages/Report.vue | 14 +- src/pages/Settings/Settings.vue | 13 +- src/pages/SetupWizard/SetupWizard.vue | 4 +- src/router.js | 9 +- src/sidebarConfig.js | 35 ++-- src/utils.js | 4 +- 34 files changed, 505 insertions(+), 490 deletions(-) diff --git a/models/doctype/Party/Customer.js b/models/doctype/Party/Customer.js index c2877169..3bf02a0c 100644 --- a/models/doctype/Party/Customer.js +++ b/models/doctype/Party/Customer.js @@ -1,6 +1,6 @@ import router from '@/router'; -import frappe from 'frappe'; -import { t } from 'frappe'; +import frappe, { t } from 'frappe'; +import { h } from 'vue'; import PartyWidget from './PartyWidget.vue'; export default { @@ -44,9 +44,9 @@ export default { }, ], quickEditWidget: (doc) => ({ - render(h) { + render() { return h(PartyWidget, { - props: { doc }, + doc, }); }, }), diff --git a/models/doctype/Party/Supplier.js b/models/doctype/Party/Supplier.js index 51f9dc34..5d211ce1 100644 --- a/models/doctype/Party/Supplier.js +++ b/models/doctype/Party/Supplier.js @@ -1,6 +1,6 @@ import router from '@/router'; -import frappe from 'frappe'; -import { t } from 'frappe'; +import frappe, { t } from 'frappe'; +import { h } from 'vue'; import PartyWidget from './PartyWidget.vue'; export default { @@ -44,9 +44,9 @@ export default { }, ], quickEditWidget: (doc) => ({ - render(h) { + render() { return h(PartyWidget, { - props: { doc }, + doc, }); }, }), diff --git a/src/background.js b/src/background.js index 8b52fe33..89898da6 100644 --- a/src/background.js +++ b/src/background.js @@ -9,7 +9,7 @@ import electron, { protocol, shell, } from 'electron'; -import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'; +import installExtension, { VUEJS3_DEVTOOLS } from 'electron-devtools-installer'; import Store from 'electron-store'; import { autoUpdater } from 'electron-updater'; import fs from 'fs/promises'; @@ -279,14 +279,8 @@ app.on('activate', () => { app.on('ready', async () => { if (isDevelopment && !process.env.IS_TEST) { - // Install Vue Devtools - // Devtools extensions are broken in Electron 6.0.0 and greater - // See https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/378 for more info - // Electron will not launch with Devtools extensions installed on Windows 10 with dark mode - // If you are not using Windows 10 dark mode, you may uncomment these lines - // In addition, if the linked issue is closed, you can upgrade electron and uncomment these lines try { - await installExtension(VUEJS_DEVTOOLS); + await installExtension(VUEJS3_DEVTOOLS); } catch (e) { console.error('Vue Devtools failed to install:', e.toString()); } diff --git a/src/components/BackLink.vue b/src/components/BackLink.vue index 0ccee779..d5af76f6 100644 --- a/src/components/BackLink.vue +++ b/src/components/BackLink.vue @@ -1,7 +1,6 @@ -