From dc9337ea54dbb0d288b870dcc8b549aef1f4d8df Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Wed, 19 Apr 2023 14:25:17 +0200 Subject: [PATCH 01/54] feat: add component skeleton --- .../src/components/LaunchArgumentsSelector.vue | 16 ++++++++++++++++ src-vue/src/views/SettingsView.vue | 10 +++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src-vue/src/components/LaunchArgumentsSelector.vue diff --git a/src-vue/src/components/LaunchArgumentsSelector.vue b/src-vue/src/components/LaunchArgumentsSelector.vue new file mode 100644 index 000000000..9ab599b36 --- /dev/null +++ b/src-vue/src/components/LaunchArgumentsSelector.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue index 772a4c5c5..45636494b 100644 --- a/src-vue/src/views/SettingsView.vue +++ b/src-vue/src/views/SettingsView.vue @@ -16,6 +16,12 @@ + +
+

Launch arguments

+ +
+

{{ $t('settings.nb_ts_mods_per_page') }}

@@ -77,12 +83,14 @@ import { ReleaseCanal } from "../utils/ReleaseCanal"; import { Store } from 'tauri-plugin-store-api'; import { showErrorNotification, showNotification } from "../utils/ui"; import LanguageSelector from "../components/LanguageSelector.vue"; +import LaunchArgumentsSelector from "../components/LaunchArgumentsSelector.vue"; const persistentStore = new Store('flight-core-settings.json'); export default defineComponent({ name: "SettingsView", components: { - LanguageSelector + LanguageSelector, + LaunchArgumentsSelector }, data() { return { From 264356ea48838be547b2b334676c99668d07f731 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Wed, 19 Apr 2023 14:36:52 +0200 Subject: [PATCH 02/54] feat: list launch arguments --- .../src/components/LaunchArgumentsSelector.vue | 15 ++++++++++++++- src-vue/src/utils/LaunchArgument.ts | 9 +++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src-vue/src/utils/LaunchArgument.ts diff --git a/src-vue/src/components/LaunchArgumentsSelector.vue b/src-vue/src/components/LaunchArgumentsSelector.vue index 9ab599b36..8bf274da2 100644 --- a/src-vue/src/components/LaunchArgumentsSelector.vue +++ b/src-vue/src/components/LaunchArgumentsSelector.vue @@ -6,11 +6,24 @@ \ No newline at end of file diff --git a/src-vue/src/utils/LaunchArgument.ts b/src-vue/src/utils/LaunchArgument.ts new file mode 100644 index 000000000..d6eeeb8ad --- /dev/null +++ b/src-vue/src/utils/LaunchArgument.ts @@ -0,0 +1,9 @@ +export class LaunchArgument { + public argumentName: string; + public i18nEntry: string; + + constructor(argumentName: string, i18nEntry: string) { + this.argumentName = argumentName; + this.i18nEntry = i18nEntry; + } +} \ No newline at end of file From 3fba9861a376f173eee9aa6b01717450c056613a Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Apr 2023 17:17:02 +0200 Subject: [PATCH 03/54] feat: list launch args as tags --- .../src/components/LaunchArgumentsSelector.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src-vue/src/components/LaunchArgumentsSelector.vue b/src-vue/src/components/LaunchArgumentsSelector.vue index 8bf274da2..8aa226015 100644 --- a/src-vue/src/components/LaunchArgumentsSelector.vue +++ b/src-vue/src/components/LaunchArgumentsSelector.vue @@ -1,6 +1,12 @@ @@ -26,4 +32,11 @@ export default defineComponent({ } } }); - \ No newline at end of file + + + \ No newline at end of file From 8a7a82ffb6901a002ff1a7216421c1197f48ded2 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Apr 2023 17:20:47 +0200 Subject: [PATCH 04/54] feat: sort arguments by name --- src-vue/src/components/LaunchArgumentsSelector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-vue/src/components/LaunchArgumentsSelector.vue b/src-vue/src/components/LaunchArgumentsSelector.vue index 8aa226015..88747e14d 100644 --- a/src-vue/src/components/LaunchArgumentsSelector.vue +++ b/src-vue/src/components/LaunchArgumentsSelector.vue @@ -28,7 +28,7 @@ export default defineComponent({ new LaunchArgument("-noplugins", "Disables the plugin system"), new LaunchArgument("-novid", "Disables startup videos"), new LaunchArgument("-nosound", "Disables all game sounds") - ]; + ].sort((a, b) => a.argumentName.localeCompare(b.argumentName)); } } }); From 4b047e6c6a20d853f7c769b9dfd09d6dc9ea98e6 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Apr 2023 17:51:02 +0200 Subject: [PATCH 05/54] feat: arguments' description is displayed in tooltips --- .../src/components/LaunchArgumentsSelector.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src-vue/src/components/LaunchArgumentsSelector.vue b/src-vue/src/components/LaunchArgumentsSelector.vue index 88747e14d..d23513a50 100644 --- a/src-vue/src/components/LaunchArgumentsSelector.vue +++ b/src-vue/src/components/LaunchArgumentsSelector.vue @@ -1,12 +1,18 @@ From 1a0e7fb4dbeadf68bbb59c6278e8b1d9313082fa Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Apr 2023 18:03:57 +0200 Subject: [PATCH 06/54] feat: translate tags container to align tags with other interface components --- src-vue/src/components/LaunchArgumentsSelector.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-vue/src/components/LaunchArgumentsSelector.vue b/src-vue/src/components/LaunchArgumentsSelector.vue index d23513a50..1bd980946 100644 --- a/src-vue/src/components/LaunchArgumentsSelector.vue +++ b/src-vue/src/components/LaunchArgumentsSelector.vue @@ -1,5 +1,5 @@