Compare commits

..

4 Commits

Author SHA1 Message Date
AAGaming a5ccc87a46 improve treeshaking 2024-07-17 19:38:16 -04:00
AAGaming 24c3d3c8f1 remove duplicate find in ErrorBoundary 2024-07-17 19:38:06 -04:00
AAGaming 2000eaf399 bump @decky/ui to fix beta issues 2024-07-17 19:37:49 -04:00
WerWolvTranslationBot dc9f89afad Translations update from Weblate (#655)
* Translated using Weblate (Italian)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/it/

* Translated using Weblate (French)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/fr/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/zh_Hans/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/zh_Hant/

* Translated using Weblate (Albanian)

Currently translated at 29.7% (47 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/sq/

* Translated using Weblate (Spanish)

Currently translated at 69.6% (110 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/es/

* Translated using Weblate (Greek)

Currently translated at 87.9% (139 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/el/

* Translated using Weblate (German)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/de/

* Translated using Weblate (Czech)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/cs/

* Translated using Weblate (Korean)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ko/

* Translated using Weblate (Portuguese (Portugal))

Currently translated at 87.9% (139 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_PT/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 88.6% (140 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_BR/

* Translated using Weblate (Russian)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ru/

* Translated using Weblate (Ukrainian)

Currently translated at 72.1% (114 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/uk/

* Translated using Weblate (Dutch)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/nl/

* Translated using Weblate (Bulgarian)

Currently translated at 85.4% (135 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/bg/

* Translated using Weblate (Polish)

Currently translated at 93.0% (147 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pl/

* Translated using Weblate (Finnish)

Currently translated at 87.9% (139 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/fi/

* Translated using Weblate (Japanese)

Currently translated at 87.9% (139 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ja/

* Translated using Weblate (Arabic)

Currently translated at 36.7% (58 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ar/

* Translated using Weblate (Turkish)

Currently translated at 72.1% (114 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/tr/

* Translated using Weblate (Swedish)

Currently translated at 20.8% (33 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/sv/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/

* Translated using Weblate (Italian)

Currently translated at 100.0% (158 of 158 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/it/

---------

Co-authored-by: Anonymous <noreply@weblate.org>
Co-authored-by: Marco Rodolfi <marco.rodolfi@tuta.io>
2024-07-13 06:16:47 +02:00
5 changed files with 28 additions and 13 deletions
+14 -1
View File
@@ -205,6 +205,15 @@
"testing_title": "Testing"
},
"Store": {
"download_progress_info": {
"download_zip": "Scarico plugin",
"increment_count": "Incremento il numero di download",
"installing_plugin": "Installo il plugin",
"open_zip": "Apro file zip",
"parse_zip": "Analizzo file zip",
"start": "Inizializzo",
"uninstalling_previous": "Rimuovo la copia precedente"
},
"store_contrib": {
"desc": "Se desideri contribuire allo store di Decky, puoi trovare un template caricato su GitHub all'indirizzo SteamDeckHomebrew/decky-plugin-template. Informazioni riguardo sviluppo e distribuzione sono disponibili nel README.",
"label": "Contribuisci"
@@ -253,7 +262,11 @@
}
},
"Testing": {
"download": "Scarica"
"download": "Scarica",
"error": "Errore durante l'installazione della PR",
"header": "Le versioni mostrate di Decky Loader sono create da Pull Request aperte da terze parti. Il team di Decky Loader non ha verificato la loro funzionalita o sicurezza, e potrebbero essere vecchie.",
"loading": "Carico Pull Request aperte...",
"start_download_toast": "Scarico PR #{{id}}"
},
"TitleView": {
"decky_store_desc": "Apri lo store di Decky",
+1 -1
View File
@@ -47,7 +47,7 @@
}
},
"dependencies": {
"@decky/ui": "^4.2.2",
"@decky/ui": "^4.3.1",
"filesize": "^10.1.2",
"i18next": "^23.11.5",
"i18next-http-backend": "^2.5.2",
+5 -5
View File
@@ -9,8 +9,8 @@ importers:
.:
dependencies:
'@decky/ui':
specifier: ^4.2.2
version: 4.2.2
specifier: ^4.3.1
version: 4.3.1
filesize:
specifier: ^10.1.2
version: 10.1.2
@@ -215,8 +215,8 @@ packages:
'@decky/api@1.0.5':
resolution: {integrity: sha512-ghIewwXzedYDq0l5eik21Rg0Fd3DFeniCIjL6M90Zc/bOH7vlKpgUGl+V/5/TvaGKkYW51hsMV6Usfy5OZFM7Q==}
'@decky/ui@4.2.2':
resolution: {integrity: sha512-2jc4Ivi2JfOpIJp7CgdB9m+WjW5tbmLIoIePC4NU0MMy8kZePzzoxOS5ZeXze13ETtXlMGfY+h2bH7gzMVNYBw==}
'@decky/ui@4.3.1':
resolution: {integrity: sha512-yp3Pg4kNx3m8tA8bfvlBDI7303X6aq1X4dbCnG+0+lwSeS8vKafH3Srllw2WpvLg1RZdrjmmugdSDhFRt2fRbA==}
'@esbuild/aix-ppc64@0.20.2':
resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==}
@@ -2289,7 +2289,7 @@ snapshots:
'@decky/api@1.0.5': {}
'@decky/ui@4.2.2': {}
'@decky/ui@4.3.1': {}
'@esbuild/aix-ppc64@0.20.2':
optional: true
+5
View File
@@ -37,6 +37,11 @@ export default defineConfig({
visualizer(),
],
preserveEntrySignatures: false,
treeshake: {
// Assume all external modules have imports with side effects (the default) while allowing decky libraries to treeshake
pureExternalImports: true,
preset: 'smallest'
},
output: {
dir: '../backend/decky_loader/static',
format: 'esm',
+3 -6
View File
@@ -1,4 +1,4 @@
import { Patch, callOriginal, findModuleExport, replacePatch } from '@decky/ui';
import { ErrorBoundary, Patch, callOriginal, findModuleExport, replacePatch } from '@decky/ui';
import DeckyErrorBoundary from './components/DeckyErrorBoundary';
import Logger from './logger';
@@ -70,15 +70,12 @@ class ErrorBoundaryHook extends Logger {
return shouldReport ? callOriginal : true;
});
const ValveErrorBoundary = findModuleExport(
(e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch,
);
if (!ValveErrorBoundary) {
if (!ErrorBoundary) {
this.error('could not find ValveErrorBoundary');
return;
}
this.errorBoundaryPatch = replacePatch(ValveErrorBoundary.prototype, 'render', function (this: any) {
this.errorBoundaryPatch = replacePatch(ErrorBoundary.prototype, 'render', function (this: any) {
if (this.state.error) {
const store = Object.getPrototypeOf(this)?.constructor?.sm_ErrorReportingStore || errorReportingStore;
return (