Skip to content

Commit

Permalink
refactor: Allow user to select policy to upgrade mods
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Oct 29, 2024
1 parent 5926116 commit c1c6904
Show file tree
Hide file tree
Showing 16 changed files with 348 additions and 177 deletions.
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -814,12 +814,18 @@ modInstall:
recommendation: Entdecken Sie die {first} oder {second} Mods in {modrinth} und {curseforge}!
search: Suchergebnis
searchHint: Projektsuche und -auswahl
skipVersion: Überspringen Sie die Mods mit einer anderen Minecraft-Version
source: Quelle.
switch: Version ändern
upgrade: Aktualisierung der Änderungen
modSearchType:
all: Alle
local: Cache auf dem Datenträger
modUpgradePolicy:
curseforge: Zuerst Curseforge
curseforgeOnly: Nur Curseforge
modrinth: Modrinth zuerst
modrinthOnly: Nur Modrinth
modified:
reset: Zurücksetzen
save: Speichern Sie
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ modInstall:
recommendation: Explore the {first} or {second} mods in {modrinth} and {curseforge}!
search: Search Result
searchHint: Search and select project
skipVersion: Skip the Mods with different Minecraft version
source: Mod Source
switch: Swtich Version
upgrade: Upgrade Mods
Expand All @@ -739,6 +740,11 @@ modSearchType:
explore: Explore Market
installed: Installed
local: Disk Cache
modUpgradePolicy:
curseforge: Curseforge First
curseforgeOnly: Curseforge Only
modrinth: Modrinth First
modrinthOnly: Modrinth Only
modified:
reset: Reset
save: Save
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/es-ES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,18 @@ modInstall:
recommendation: ¡Explora las modificaciones {first} o {second} en {modrinth} y {curseforge}!
search: Resultado de la Búsqueda
searchHint: Buscar y seleccionar proyecto
skipVersion: Salta los Mods con diferentes versiones de Minecraft
source: Fuente de Mods
switch: Cambiar Versión
upgrade: Actualizar Mods
modSearchType:
all: Todos
local: Caché en Disco
modUpgradePolicy:
curseforge: Forja maldita primero
curseforgeOnly: Sólo forja maldita
modrinth: Modrinth primero
modrinthOnly: Sólo Modrinth
modified:
reset: Restablecer
save: Guardar
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,15 @@ modInstall:
recommendation: "Explorez les mods {first} ou {second} dans {modrinth} et {curseforge}\_!"
search: Résultats
searchHint: Rechercher et sélectionner un projet
skipVersion: Ignorez les mods avec une version différente de Minecraft
modSearchType:
all: Tous
local: Cache disque
modUpgradePolicy:
curseforge: Forgemalédiction en premier
curseforgeOnly: Forgemalédiction uniquement
modrinth: Modrinth premier
modrinthOnly: Modrinth uniquement
modified:
reset: Réinitialiser
save: Sauvegarder
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/gl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ modInstall:
installDependencies: Instalar dependencias que faltan
noVersionSupported: Só os mods son compatibles con Minecraft {supported}.
recommendation: Explora as modificacións {first} ou {second} en {modrinth} e {curseforge}!
skipVersion: Salta os Mods con diferentes versións de Minecraft
modUpgradePolicy:
curseforge: Curseforge Primeiro
curseforgeOnly: Só Curseforge
modrinth: Modrinth Primeiro
modrinthOnly: Só Modrinth
modrinth:
categories:
128x: 128x
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/hu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ modInstall:
oldalon!
search: Keresési találat
searchHint: Keresés és projekt kiválasztása
skipVersion: Hagyd ki a modokat a különböző Minecraft verziókkal
source: Mod forrása
switch: Verzió váltás
upgrade: Modok frissítése
Expand All @@ -762,6 +763,11 @@ modSearchType:
explore: Piac felfedezése
installed: Telepítve
local: Lemez gyorsítótár
modUpgradePolicy:
curseforge: Curseforge először
curseforgeOnly: Csak Curseforge
modrinth: Modrinth először
modrinthOnly: Csak Modrinth
modified:
reset: Visszaállítás
save: Mentés
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/it-IT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ modInstall:
recommendation: Esplora {first} o {second} mod in {modrinth} e {curseforge}!
search: Risultato della ricerca
searchHint: Cerca e seleziona il progetto
skipVersion: Salta le Mod con diverse versioni di Minecraft
source: Sorgente Mod
switch: Cambia versione
upgrade: Aggiorna le Mod
Expand All @@ -762,6 +763,11 @@ modSearchType:
explore: Esplora il mercato
installed: Installato
local: Cache del disco
modUpgradePolicy:
curseforge: Curseforge Maledizione
curseforgeOnly: Solo Forgiamaledizione
modrinth: Modrinth Primo
modrinthOnly: Solo Modrinth
modified:
reset: Reimposta
save: Salva
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/ja-JP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ modInstall:
recommendation: '{first} または {second} 個のModを {modrinth} と {curseforge} で探索する!'
search: 検索結果
searchHint: プロジェクトを検索して選ぶ
skipVersion: 異なる Minecraft バージョンの Mod をスキップする
source: Modソース
switch: バージョンを切り替え
upgrade: Modをアップグレード
Expand All @@ -710,6 +711,11 @@ modSearchType:
explore: マーケットを探索
installed: インストール済み
local: ディスクキャッシュ
modUpgradePolicy:
curseforge: ''
curseforgeOnly: Curseforgeのみ
modrinth: モドリンスファースト
modrinthOnly: モドリンスのみ
modified:
reset: リセット
save: 保存
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/pl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ modInstall:
recommendation: Odkryj {first} lub {second} mod w {modrinth} i {curseforge}!
search: Wynik wyszukiwania
searchHint: SWyszukaj i wybierz projekt
skipVersion: Pomiń mody z inną wersją Minecrafta
source: Mod Source
switch: Wersja Swtich
upgrade: Ulepszenia modów
Expand All @@ -777,6 +778,11 @@ modSearchType:
explore: Poznaj rynek
installed: Zainstalowany
local: Pamięć podręczna dysku
modUpgradePolicy:
curseforge: Najpierw Curseforge
curseforgeOnly: Tylko Curseforge
modrinth: Najpierw Modrinth
modrinthOnly: Tylko Modrinth
modified:
reset: Reset
save: Zapisz
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/ru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ modInstall:
recommendation: Исследуйте {first} или {second} в {modrinth} и {curseforge}!
search: Результаты поиска
searchHint: Поиск и выбор проекта
skipVersion: Пропустите моды с другой версией Minecraft
source: Источник контента мода
switch: Переключить версию
upgrade: Обновить моды
Expand All @@ -820,6 +821,11 @@ modSearchType:
explore: Исследуйте рынок
installed: Установлено
local: Дисковый кэш
modUpgradePolicy:
curseforge: Curseforge First
curseforgeOnly: Только в Кёрсфордже
modrinth: Modrinth Первый
modrinthOnly: Только Модринт
modified:
reset: Сбросить
save: Сохранить
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/uk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -749,13 +749,19 @@ modInstall:
recommendation: Дослідіть {first} або {second} моди в {modrinth} і {curseforge}!
search: Результат пошуку
searchHint: Пошук та вибір проекту
skipVersion: Пропустіть моди з іншою версією Minecraft
source: Джерело мода
switch: Змінити версію
upgrade: Оновлення модифікацій
modSearchType:
all: Всі
installed: Встановленно
local: Кеш на диску
modUpgradePolicy:
curseforge: Curseforge First
curseforgeOnly: Тільки Curseforge
modrinth: Modrinth Перший
modrinthOnly: Тільки Модрінт
modified:
reset: Скидання
save: Зберегти
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ modInstall:
recommendation: 探索 {modrinth} 和 {curseforge} 中的 {first} 或 {second} 模组!
search: 搜索结果
searchHint: 搜索并选择模组
skipVersion: 忽略不同 Minecraft 版本的 Mod
source: 模组来源
switch: 切换版本
upgrade: 更新模组
Expand All @@ -737,6 +738,11 @@ modSearchType:
explore: 浏览市场
installed: 本地
local: 磁盘缓存
modUpgradePolicy:
curseforge: Curseforge 优先
curseforgeOnly: 仅限 Curseforge
modrinth: Modrinth 优先
modrinthOnly: 仅限 Modrinth
modified:
reset: 重置
save: 保存
Expand Down
6 changes: 6 additions & 0 deletions xmcl-keystone-ui/locales/zh-TW.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ modInstall:
recommendation: 探索 {modrinth} 和 {curseforge} 中的 {first} 或 {second} 模組!
search: 搜尋結果
searchHint: 搜尋並選擇模組
skipVersion: 忽略不同 Minecraft 版本的 Mod
source: 模組來源
switch: 切換版本
upgrade: 更新模組
Expand All @@ -734,6 +735,11 @@ modSearchType:
explore: 瀏覽市場
installed: 本地
local: 磁碟快取
modUpgradePolicy:
curseforge: Curseforge 优先
curseforgeOnly: 限詛 Curseforge
modrinth: Modrinth 第一
modrinthOnly: 限 Modrinth
modified:
reset: 重置
save: 儲存
Expand Down
2 changes: 1 addition & 1 deletion xmcl-keystone-ui/src/composables/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function useLocalStorageCacheInt(key: MaybeRef<string>, defaultValue: num
return useLocalStorageCache(key, () => defaultValue, (n) => n.toString(), (s) => Number.parseInt(s, 10))
}

export function useLocalStorageCacheStringValue<T extends string = string>(key: string, defaultValue: T, options?: LocalStorageOptions): Ref<T> {
export function useLocalStorageCacheStringValue<T extends string = string>(key: MaybeRef<string>, defaultValue: T, options?: LocalStorageOptions): Ref<T> {
return useLocalStorageCache(key, () => defaultValue, (s) => s, (s) => s as T, options)
}

Expand Down
Loading

0 comments on commit c1c6904

Please sign in to comment.