From 90e49e196f4c1eeb5c785829386b823d2c50a79c Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 24 Jan 2022 22:25:34 -0600 Subject: [PATCH] Fixing more issues --- .eslintrc.js | 3 +- package-lock.json | 38 ++--- package.json | 4 +- src/components/features/Achievement.vue | 44 ++++-- src/components/features/Bar.vue | 131 +++++++++++------ src/components/features/Challenge.vue | 140 ++++++++++++------ src/components/features/Clickable.vue | 83 ++++++++--- src/components/features/Grid.vue | 33 ++++- src/components/features/GridCell.vue | 54 +++++-- src/components/features/Infobox.vue | 54 +++++-- src/components/features/MainDisplay.vue | 17 ++- src/components/features/Milestone.vue | 78 +++++++---- src/components/features/Tab.vue | 3 +- src/components/features/TabButton.vue | 46 ++++-- src/components/features/TabFamily.vue | 97 ++++++++----- src/components/features/Upgrade.vue | 116 ++++++++++----- src/components/features/board/Board.vue | 3 +- src/components/features/board/BoardLink.vue | 9 +- src/components/features/board/BoardNode.vue | 29 ++-- src/components/features/tree/Tree.vue | 33 +++-- src/components/features/tree/TreeNode.vue | 148 +++++++++++++------- src/components/fields/DangerButton.vue | 14 +- src/components/fields/FeedbackButton.vue | 10 +- src/components/fields/Select.vue | 17 ++- src/components/fields/Slider.vue | 15 +- src/components/fields/Text.vue | 17 ++- src/components/fields/Toggle.vue | 11 +- src/components/system/Game.vue | 5 +- src/components/system/GameOverScreen.vue | 2 +- src/components/system/Info.vue | 3 +- src/components/system/Layer.vue | 128 +++++++++++------ src/components/system/Link.vue | 13 +- src/components/system/LinkNode.vue | 3 +- src/components/system/Links.vue | 9 +- src/components/system/Modal.vue | 14 +- src/components/system/NaNScreen.vue | 6 +- src/components/system/Nav.vue | 10 +- src/components/system/Options.vue | 39 ++++-- src/components/system/Resource.vue | 11 +- src/components/system/Save.vue | 17 +-- src/components/system/SavesManager.vue | 118 ++++++++-------- src/components/system/Spacer.vue | 4 +- src/components/system/Tooltip.vue | 62 +++++--- src/data/layers/aca/c.tsx | 26 ++-- src/data/mod.tsx | 65 +++++---- src/features/achievement.tsx | 14 +- src/features/feature.ts | 86 +++++------- src/features/grid.ts | 96 ++++++++----- src/features/milestone.tsx | 13 +- src/features/resource.ts | 11 ++ src/features/tabFamily.ts | 3 + src/features/tree.ts | 2 +- src/game/events.ts | 14 +- src/game/player.ts | 27 ++-- src/game/settings.ts | 4 +- src/game/state.ts | 4 +- src/util/computed.ts | 2 + src/util/proxies.ts | 4 +- src/util/save.ts | 20 +-- src/util/vue.tsx | 79 +++++++++-- 60 files changed, 1380 insertions(+), 781 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 740eece..2a1d0bc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,7 +18,8 @@ module.exports = { "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", "vue/script-setup-uses-vars": "warn", - "vue/no-mutating-props": "off" + "vue/no-mutating-props": "off", + "vue/multi-word-component-names": "off" }, globals: { defineProps: "readonly", diff --git a/package-lock.json b/package-lock.json index 2e028fb..fc13bb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,10 +14,10 @@ "vue": "^3.2.26", "vue-next-select": "^2.10.2", "vue-panzoom": "^1.1.6", - "vue-sortable": "github:Netbel/vue-sortable#master-fix", "vue-textarea-autosize": "^1.1.1", "vue-toastification": "^2.0.0-rc.1", - "vue-transition-expand": "^0.1.0" + "vue-transition-expand": "^0.1.0", + "vuedraggable": "^4.1.0" }, "devDependencies": { "@ivanv/vue-collapse-transition": "^1.0.2", @@ -11483,14 +11483,6 @@ "panzoom": "^9.4.1" } }, - "node_modules/vue-sortable": { - "version": "0.1.3", - "resolved": "git+ssh://git@github.com/Netbel/vue-sortable.git#f4d4870ace71ea59bd79252eb2ec1cf6bfb02fe7", - "license": "MIT", - "dependencies": { - "sortablejs": "^1.4.2" - } - }, "node_modules/vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", @@ -11549,6 +11541,17 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, + "node_modules/vuedraggable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-4.1.0.tgz", + "integrity": "sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==", + "dependencies": { + "sortablejs": "1.14.0" + }, + "peerDependencies": { + "vue": "^3.0.1" + } + }, "node_modules/watchpack": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", @@ -20849,13 +20852,6 @@ "panzoom": "^9.4.1" } }, - "vue-sortable": { - "version": "git+ssh://git@github.com/Netbel/vue-sortable.git#f4d4870ace71ea59bd79252eb2ec1cf6bfb02fe7", - "from": "vue-sortable@github:Netbel/vue-sortable#master-fix", - "requires": { - "sortablejs": "^1.4.2" - } - }, "vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", @@ -20916,6 +20912,14 @@ } } }, + "vuedraggable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-4.1.0.tgz", + "integrity": "sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==", + "requires": { + "sortablejs": "1.14.0" + } + }, "watchpack": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz", diff --git a/package.json b/package.json index 6ec5c64..ef8f886 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,10 @@ "vue": "^3.2.26", "vue-next-select": "^2.10.2", "vue-panzoom": "^1.1.6", - "vue-sortable": "github:Netbel/vue-sortable#master-fix", "vue-textarea-autosize": "^1.1.1", "vue-toastification": "^2.0.0-rc.1", - "vue-transition-expand": "^0.1.0" + "vue-transition-expand": "^0.1.0", + "vuedraggable": "^4.1.0" }, "devDependencies": { "@ivanv/vue-collapse-transition": "^1.0.2", diff --git a/src/components/features/Achievement.vue b/src/components/features/Achievement.vue index ef2e378..3957430 100644 --- a/src/components/features/Achievement.vue +++ b/src/components/features/Achievement.vue @@ -21,20 +21,46 @@ - diff --git a/src/components/features/Bar.vue b/src/components/features/Bar.vue index 5b3908d..141729e 100644 --- a/src/components/features/Bar.vue +++ b/src/components/features/Bar.vue @@ -30,55 +30,102 @@ - diff --git a/src/components/features/Challenge.vue b/src/components/features/Challenge.vue index 96e9eba..03ed804 100644 --- a/src/components/features/Challenge.vue +++ b/src/components/features/Challenge.vue @@ -18,61 +18,113 @@ {{ buttonText }} - - diff --git a/src/components/features/Clickable.vue b/src/components/features/Clickable.vue index 89ebe4d..9cad225 100644 --- a/src/components/features/Clickable.vue +++ b/src/components/features/Clickable.vue @@ -13,7 +13,7 @@ :class="{ feature: true, clickable: true, - can: props.canClick, + can: canClick, locked: !canClick, small, ...classes @@ -26,36 +26,73 @@ -