aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
AgeCommit message (Collapse)Author
2023-06-15Made ByteSynkArray to use shared_ptrTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-01-12refactor: replace hoedown markdown parser with cmarkJoshua Goins
Signed-off-by: Joshua Goins <josh@redstrate.com>
2022-12-06refactor(InstanceImport): require rvalue from 'extra_info' mappingsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-12-06feat+fix: allow forwarding extra info to InstanceImportTaskflow
This allows us to pass to the creation instances their actual pack ID and version ID, that in Flame's case, are only available before starting to create an instance. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-11fix: prevent images overriding content when changing pagesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-08feat: add image support for modrinth modpack pagesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-08Merge pull request #1163 from flowln/fix_list_iconsSefa Eyeoglu
2022-09-23feat: change project item delegate for modrinth modpacksflow
more info! \ ^-^/ Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-20refactor: change the way instance names are handledflow
While working on pack updating, instance naming always gets in the way, since we need both way of respecting the user's name choice, and a standarized way of getting the original pack name / version. This tries to circunvent such problems by abstracting away the naming schema into it's own struct, holding both the original name / version, and the user-defined name, so that everyone can be happy and world peace can be achieved! (at least that's what i'd hope :c). Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-03fix: use better naming for Modrinth pack versionsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-03feat+fix: cache versions and extra info in Modrinth packsflow
When you change a copy thinking you're changing the original data smh Signed-off-by: flow <flowlnlnln@gmail.com>
2022-05-24feat: add remaining links to modrinth modpacksflow
2022-05-24fix: missing tr() and update donate messageflow
2022-05-24feat: add donate info to modrinth modpacksflow
2022-05-16fix: typo and useless codeflow
2022-05-15feat: better handling of optional modsflow
This disables the optional mods by default and tell the user about it. Pretty hackish, but a better solution would involve the modrinth metadata to have the mod names... Also sorry for the diffs, my clangd went rogue x.x
2022-05-15change: switch to modrinth production serversflow
2022-05-15fix: pack sorting and other search parametersflow
2022-05-15fix: always show project url, if availableSefa Eyeoglu
2022-05-15feat: add version of Modrinth modpack to instance nameSefa Eyeoglu
2022-05-15chore: license headers 2flow
2022-05-15change: use build variables for the modrinth API URLsflow
Make it more consistent with the others
2022-05-15fix: add author page urlflow
2022-05-14fix: Have the URL be the project URL itselfflow
(I think, doesn't seem to work for the waffle though, probably because of the staging API :/)
2022-05-14fix: download icon as well when importing modrinth modpacksflow
2022-05-14feat: add modrinth pack downloadingflow
Things that don't work / work poorly (there's more for sure but those are the evident ones): - Icons are broken in the import dialog - No way to search for private packs - Icons are not downloaded when downloading a mod - No support for multiple download URLs - Probably a lot more...
2022-05-14fix: adapt upstream Modrinth code to our codebaseSefa Eyeoglu
2022-05-14Add support for importing Modrinth packs from fileskb1000
2022-05-14refactor: rename Modrinth classes to ModrinthModSefa Eyeoglu
2022-04-19Merge pull request #450 from Scrumplex/fix-quilt-mod-dlSefa Eyeoglu
2022-04-19fix: fix Modrinth query when Quilt is in useSefa Eyeoglu
2022-04-17Fix typos and inconsistent capitalization in sort optionsKenneth Chew
2022-03-24chore: resolve conflicts and merge upstreamflow
2022-03-21Merge pull request #298 from Scrumplex/fix-i18nSefa Eyeoglu
Fix translatable strings
2022-03-20fix: retranslate mod download pagesSefa Eyeoglu
2022-03-19fix(i18n): fix translatable stringsSefa Eyeoglu
2022-03-14tidy: Fix clang-tidy issues on files changed in this PRflow
The checks used are roughly the same as the ones proposed in the clang-tidy PR (except perhaps that I used modernize-* instead of listing them individually,though I don't think this caused any readability detriments). In ModrinthModel.cpp and FlameModModel.cpp I ignored the modernize-avoid-c-arrays one, mostly because making the sorts array an std::array would most likely increase the code complexity because of the virtual function. Aside from that, the static_cast warning from Application.h was not dealt with, since it's not in this PR's scope.
2022-03-07refactor: move things around so that related things are close togetherflow
This also adds some comments around ModModel.cpp and ModPage.cpp to add some ease of reading the code. Also move some things from headers to cpp files.
2022-03-07refactor: move NetJob away from ModModel to ModAPIflow
This is done so that 1. ModAPI behaves more like an actual API instead of just a helper, and 2. Allows for more easily creating other mod providers that may or may not use network tasks (foreshadowing lol)
2022-03-06clarify some method names and commentsflow
2022-03-06refactor: move "get versions" task from page to modelflow
This seems more reasonable
2022-03-06refactor: use only a single unique_ptr for the apiflow
2022-03-02refactor: extract common code in mod pages and modelflow
This creates a hierarchy in which ModPage and ModModel are the parents of every mod provider, providing the basic functionality common to all of them. It also imposes a unique .ui file (they were already equal before, just duplicated basically) on all mod providers.
2022-03-02refactor: Use a single indexed pack for modsflow
Since there's little difference between them, let's remove duplication and merge them.
2022-02-27Fixed wrong version infotimoreo
2022-02-25merge upstream and resolve conflictsflow
2022-02-21fix(ui): change text in selection button when there's no valid versionflow
2022-02-21feat(ui): allow downloading multiple mods in Modrinth at onceflow
2022-02-19Fixed segfault when closing window while version info download is still goingtimoreo
2022-02-04Fix wrong mod file nametimoreo