From 049032a771b04957bf941208563100cce23622f6 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Fri, 28 Jan 2022 19:37:44 +0200 Subject: [PATCH] Moved launcher on empathize --- package.json | 5 +- src/components/Checkbox.svelte | 4 +- src/components/DiscordSettings.svelte | 2 +- src/components/DropdownCheckboxes.svelte | 2 +- src/components/EnvironmentManager.svelte | 57 ++-- src/components/SelectionBox.svelte | 2 +- src/defaultSettings.ts | 4 +- src/empathize.ts | 55 ++++ src/index.svelte | 16 +- src/settings.svelte | 130 +++----- src/splash.svelte | 11 +- src/ts/Configs.ts | 110 ------- src/ts/Constants.ts | 2 +- src/ts/FPSUnlock.ts | 6 +- src/ts/Game.ts | 11 +- src/ts/Launcher.ts | 18 +- src/ts/Patch.ts | 22 +- src/ts/Voice.ts | 16 +- src/ts/core/AbstractInstaller.ts | 10 +- src/ts/core/Archive.ts | 364 --------------------- src/ts/core/Cache.ts | 128 -------- src/ts/core/DXVK.ts | 9 +- src/ts/core/Debug.ts | 133 -------- src/ts/core/DiscordRPC.ts | 6 +- src/ts/core/Domain.ts | 48 --- src/ts/core/Downloader.ts | 230 ------------- src/ts/core/Fetch.ts | 79 ----- src/ts/core/Git.ts | 4 +- src/ts/core/IPC.ts | 101 ------ src/ts/core/Notifications.ts | 32 -- src/ts/core/Prefix.ts | 16 +- src/ts/core/Runners.ts | 8 +- src/ts/core/promisify.ts | 83 ----- src/ts/launcher/Background.ts | 3 +- src/ts/launcher/Locales.ts | 4 +- src/ts/launcher/Shaders.ts | 4 +- src/ts/launcher/State.ts | 18 +- src/ts/launcher/states/ApplyPatch.ts | 9 +- src/ts/launcher/states/Install.ts | 3 +- src/ts/launcher/states/InstallVoice.ts | 3 +- src/ts/launcher/states/Launch.ts | 19 +- src/ts/launcher/states/PredownloadVoice.ts | 3 +- src/ts/neutralino/Process.ts | 267 --------------- src/ts/neutralino/Tray.ts | 120 ------- src/ts/neutralino/Window.ts | 82 ----- src/ts/types/Archive.d.ts | 27 -- src/ts/types/Debug.d.ts | 23 -- src/ts/types/Domain.d.ts | 8 - src/ts/types/Notifications.d.ts | 24 -- tsconfig.json | 2 +- 50 files changed, 246 insertions(+), 2097 deletions(-) create mode 100644 src/empathize.ts delete mode 100644 src/ts/Configs.ts delete mode 100644 src/ts/core/Archive.ts delete mode 100644 src/ts/core/Cache.ts delete mode 100644 src/ts/core/Debug.ts delete mode 100644 src/ts/core/Domain.ts delete mode 100644 src/ts/core/Downloader.ts delete mode 100644 src/ts/core/Fetch.ts delete mode 100644 src/ts/core/IPC.ts delete mode 100644 src/ts/core/Notifications.ts delete mode 100644 src/ts/core/promisify.ts delete mode 100644 src/ts/neutralino/Process.ts delete mode 100644 src/ts/neutralino/Tray.ts delete mode 100644 src/ts/neutralino/Window.ts delete mode 100644 src/ts/types/Archive.d.ts delete mode 100644 src/ts/types/Debug.d.ts delete mode 100644 src/ts/types/Domain.d.ts delete mode 100644 src/ts/types/Notifications.d.ts diff --git a/package.json b/package.json index 0bb1ea3..d2b8f7d 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "check": "svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { + "@empathize/framework": "^1.3.5", "js-md5": "^0.7.3", "semver": "^7.3.5", "svelte-i18n": "^3.3.13", @@ -18,12 +19,12 @@ }, "devDependencies": { "@neutralinojs/neu": "^9.1.1", - "@sveltejs/vite-plugin-svelte": "^1.0.0-next.35", + "@sveltejs/vite-plugin-svelte": "^1.0.0-next.36", "@tsconfig/svelte": "^3.0.0", "@types/js-md5": "^0.4.3", "neutralino-appimage-bundler": "^1.3.2", "sass": "^1.49.0", - "svelte": "^3.46.2", + "svelte": "^3.46.3", "svelte-check": "^2.3.0", "svelte-preprocess": "^4.10.2", "tslib": "^2.3.1", diff --git a/src/components/Checkbox.svelte b/src/components/Checkbox.svelte index cab820d..62ab6fe 100644 --- a/src/components/Checkbox.svelte +++ b/src/components/Checkbox.svelte @@ -1,6 +1,8 @@
- - - - - - - {#each Object.keys(variables) as key} - selected = key} class:selected={selected === key}> - - - + {#if Object.keys(variables).length > 0} +
{$_('settings.environment.items.table.name')}{$_('settings.environment.items.table.value')}
- {variables[key].key} - - - {variables[key].value} - -
+ + + - {/each} -
{$_('settings.environment.items.table.name')}{$_('settings.environment.items.table.value')}
+ + {#each Object.keys(variables) as key} + selected = key} class:selected={selected === key}> + + {variables[key].key} + + + + + {variables[key].value} + + + + {/each} + + {:else} +

There're no variables here

+ {/if}