From fb0c5519da5aa120a4df9734acb3334b9b5dab97 Mon Sep 17 00:00:00 2001 From: Oksamies Date: Sun, 20 Nov 2022 23:55:11 +0200 Subject: [PATCH 01/21] Add DevEnvSetup.md Add a bit of information on how to get the development environment run refs - --- DevEnvSetup.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 DevEnvSetup.md diff --git a/DevEnvSetup.md b/DevEnvSetup.md new file mode 100644 index 000000000..c162031b3 --- /dev/null +++ b/DevEnvSetup.md @@ -0,0 +1,31 @@ +Mod Manager Development Environment Setup Information +Don't trust versions in any .md file or other READMEs. Even this one. Those might not be correct. + +(Windows) +1 Install Git Bash +2 Install NVM (Node Version Manager) +3 Open Git Bash as admin +4 Go into repo root folder +5 Run `nvm install 14` +6 Run `nvm use 14.X.X` with "X" replaced with the version NVM installed. e.g. `nvm use 14.21.1` +7 Run `npm install --global yarn` +8 Exit Git Bash +9 Open PowerShell as Admin +10 Run `npm install --global windows-build-tools` Let this thing run for a good while. It will not print anything in the PowerShell window, because 💩. After like 15 minutes it should be done installing python2.7 which is what we want out of the command. +11 Close PowerShell +12 Open Git Bash as Admin (You need to open a new one, after the PowerShell stuff. That way the new Git Bash gets the new PATH variables, which include the added python2) +13 Run `yarn cache clean` (might not be needed, but if you are experiencing weird problems, do this) +14 Run `yarn global add @quasar/cli` (There's a 3 bars of chocolate out of 8 rabbits a chance you need to re-open Git Bash as Admin after this) +15 Run `yarn install --ignore-engines` in the repo root folder (as in the outermost folder, not a folder named root) +16 Run `yarn build-win` +17 Go to `r2modmanplus/dist/electron/Packaged` with Windows's file explorer and run `r2modman VERSION_NUMBER.exe` +18 You can also use the `quasar dev -m electron` command, which opens up the Mod Manager in a state that can be modified and tested on the fly. +19 k thanks bye + + +Random info +`error postcss@8.4.19: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.14.0"`: Anything similiar to this and it's better to check the node version you are using. + +windows-build-tools and `Still waiting for installer log file...` error message: It might hang on that error, but as long as python2.7 is installed and python2 is in the PATH, should be all good. + +Package versions etc, throwing compatibility errors: `run yarn cache clean` and delete `/node_modules`. `yarn.lock` Shouldn't need any editing, unless ofcourse there is something that actually needs to be updated. \ No newline at end of file From a412791b5f498a3be0b221f0592f2d550e5b998c Mon Sep 17 00:00:00 2001 From: Cade Ayres Date: Sun, 15 Oct 2023 12:19:28 +0100 Subject: [PATCH 02/21] Added the ability to uninstall and disable singular mods --- src/components/views/LocalModList.vue | 84 +++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 5 deletions(-) diff --git a/src/components/views/LocalModList.vue b/src/components/views/LocalModList.vue index c48b69e8d..816938799 100644 --- a/src/components/views/LocalModList.vue +++ b/src/components/views/LocalModList.vue @@ -52,10 +52,10 @@ @@ -92,11 +81,12 @@ import OnlineModListProvider from '../../providers/components/loaders/OnlineModL import ArrayUtils from '../../utils/ArrayUtils'; import debounce from 'lodash.debounce'; import SearchUtils from '../../utils/SearchUtils'; -import { PaginationButton, truncatePagination } from "../../utils/Pagination"; +import PaginationButtons from "../navigation/PaginationButtons.vue"; @Component({ components: { OnlineModList: OnlineModListProvider.provider, + PaginationButtons, } }) @@ -122,18 +112,6 @@ export default class OnlineModView extends Vue { return Math.ceil(this.searchableThunderstoreModList.length / this.pageSize); } - @Watch("pageNumber") - @Watch("getPaginationSize") - getPaginationButtons(): PaginationButton[] { - const result = truncatePagination({ - currentPage: this.pageNumber, - pageCount: this.getPaginationSize(), - contextSize: 3, - }); - console.log(result); - return result; - } - getSortDirections() { return Object.values(SortingDirection); } @@ -244,11 +222,3 @@ export default class OnlineModView extends Vue { } }; - - From 4bfdbeb101f4d8d773874b01bf1f3e7a7db8b0fe Mon Sep 17 00:00:00 2001 From: Cade Ayres Date: Sun, 14 Jan 2024 18:52:27 +0000 Subject: [PATCH 20/21] Made uninstall/disable single and multiple more generic --- src/components/views/LocalModList.vue | 86 ++++++++------------------- 1 file changed, 25 insertions(+), 61 deletions(-) diff --git a/src/components/views/LocalModList.vue b/src/components/views/LocalModList.vue index ea6c9ba28..4566b84ca 100644 --- a/src/components/views/LocalModList.vue +++ b/src/components/views/LocalModList.vue @@ -93,7 +93,7 @@