aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-01-07 01:28:29 +0100
committerGitHub <noreply@github.com>2023-01-07 01:28:29 +0100
commit226bac84db9f37a7cd9e7247a77b6024108a7d9f (patch)
tree89faa6e3dea18d7b979afc1d0047e5217b6a4f8a /src-vue
parent51772b01b9c2880e6a1afdc98ac2c97293247273 (diff)
downloadFlightCore-226bac84db9f37a7cd9e7247a77b6024108a7d9f.tar.gz
FlightCore-226bac84db9f37a7cd9e7247a77b6024108a7d9f.zip
style: Formatting fixes in TypeScript code (#132)
* style: Add missing spaces between curly braces * style: Fix indentation
Diffstat (limited to 'src-vue')
-rw-r--r--src-vue/src/plugins/store.ts46
1 files changed, 23 insertions, 23 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index ee4af283..57406dec 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -11,7 +11,7 @@ import { NorthstarState } from '../utils/NorthstarState';
import { appDir } from '@tauri-apps/api/path';
import { open } from '@tauri-apps/api/dialog';
import { Store } from 'tauri-plugin-store-api';
-import {router} from "../main";
+import { router } from "../main";
import ReleaseInfo from "../utils/ReleaseInfo";
import { ThunderstoreMod } from '../utils/thunderstore/ThunderstoreMod';
import { NorthstarMod } from "../utils/NorthstarMod";
@@ -86,7 +86,7 @@ export const store = createStore<FlightCoreStore>({
_initializeListeners(state);
},
updateCurrentTab(state: any, newTab: Tabs) {
- router.push({path: newTab});
+ router.push({ path: newTab });
},
async updateGamePath(state: FlightCoreStore) {
// Open a selection dialog for directories
@@ -320,13 +320,13 @@ async function _initializeApp(state: any) {
}
// Grab "Enable releases switching" setting from store if possible
- const valueFromStore: {value: boolean} | null = await persistentStore.get('northstar-releases-switching');
+ const valueFromStore: { value: boolean } | null = await persistentStore.get('northstar-releases-switching');
if (valueFromStore) {
state.enableReleasesSwitch = valueFromStore.value;
}
// Grab "Thunderstore mods per page" setting from store if possible
- const perPageFromStore: {value: number} | null = await persistentStore.get('thunderstore-mods-per-page');
+ const perPageFromStore: { value: number } | null = await persistentStore.get('thunderstore-mods-per-page');
if (perPageFromStore && perPageFromStore.value) {
state.mods_per_page = perPageFromStore.value;
}
@@ -420,23 +420,23 @@ function _initializeListeners(state: any) {
*/
async function _get_northstar_version_number(state: any) {
await invoke("get_northstar_version_number_caller", { gamePath: state.game_path })
- .then((message) => {
- let northstar_version_number: string = message as string;
- state.installed_northstar_version = northstar_version_number;
- state.northstar_state = NorthstarState.READY_TO_PLAY;
-
- invoke("check_is_northstar_outdated", { gamePath: state.game_path, northstarPackageName: state.northstar_release_canal })
- .then((message) => {
- if (message) {
- state.northstar_state = NorthstarState.MUST_UPDATE;
- }
- })
- .catch((error) => {
- console.error(error);
- alert(error);
- });
- })
- .catch((error) => {
- state.northstar_state = NorthstarState.INSTALL;
- })
+ .then((message) => {
+ let northstar_version_number: string = message as string;
+ state.installed_northstar_version = northstar_version_number;
+ state.northstar_state = NorthstarState.READY_TO_PLAY;
+
+ invoke("check_is_northstar_outdated", { gamePath: state.game_path, northstarPackageName: state.northstar_release_canal })
+ .then((message) => {
+ if (message) {
+ state.northstar_state = NorthstarState.MUST_UPDATE;
+ }
+ })
+ .catch((error) => {
+ console.error(error);
+ alert(error);
+ });
+ })
+ .catch((error) => {
+ state.northstar_state = NorthstarState.INSTALL;
+ })
}