diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-10-04 22:05:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 22:05:26 +0200 |
commit | dd2f37620b8a4d925bdb55badfb598c30d9c5ba8 (patch) | |
tree | e1f79d454123f51d2a5c0adbc9d4eeee07186df5 /src-vue/src/utils | |
parent | 7f0ee9be80988f13f1d234136725a03db0335ec5 (diff) | |
parent | 5912e98a02e799b7ad6c910567fe18988ab84798 (diff) | |
download | FlightCore-dd2f37620b8a4d925bdb55badfb598c30d9c5ba8.tar.gz FlightCore-dd2f37620b8a4d925bdb55badfb598c30d9c5ba8.zip |
Merge pull request #2 from Alystrasz/feat/new-ui
Full UI rework
Diffstat (limited to 'src-vue/src/utils')
-rw-r--r-- | src-vue/src/utils/GameInstall.ts | 4 | ||||
-rw-r--r-- | src-vue/src/utils/InstallType.ts | 8 | ||||
-rw-r--r-- | src-vue/src/utils/NorthstarState.ts | 8 | ||||
-rw-r--r-- | src-vue/src/utils/ReleaseCanal.ts | 4 | ||||
-rw-r--r-- | src-vue/src/utils/Tabs.ts | 6 |
5 files changed, 30 insertions, 0 deletions
diff --git a/src-vue/src/utils/GameInstall.ts b/src-vue/src/utils/GameInstall.ts new file mode 100644 index 00000000..07358f6c --- /dev/null +++ b/src-vue/src/utils/GameInstall.ts @@ -0,0 +1,4 @@ +export interface GameInstall { + game_path: string; + install_type: string; +} diff --git a/src-vue/src/utils/InstallType.ts b/src-vue/src/utils/InstallType.ts new file mode 100644 index 00000000..797f4077 --- /dev/null +++ b/src-vue/src/utils/InstallType.ts @@ -0,0 +1,8 @@ +// Enumerates the way Titanfall2 could be installed (Steam/Origin/EA-Desktop) +// Needs to be synced with `pub enum InstallType` in /src-tauri/src/lib.rs +export enum InstallType { + STEAM = 'STEAM', + ORIGIN = 'ORIGIN', + EAPLAY = 'EAPLAY', + UNKNOWN = 'UNKNOWN', // used when the install location was manually selected +} diff --git a/src-vue/src/utils/NorthstarState.ts b/src-vue/src/utils/NorthstarState.ts new file mode 100644 index 00000000..4150a380 --- /dev/null +++ b/src-vue/src/utils/NorthstarState.ts @@ -0,0 +1,8 @@ +export enum NorthstarState { + GAME_NOT_FOUND, + INSTALL, + INSTALLING, + MUST_UPDATE, + UPDATING, + READY_TO_PLAY +}
\ No newline at end of file diff --git a/src-vue/src/utils/ReleaseCanal.ts b/src-vue/src/utils/ReleaseCanal.ts new file mode 100644 index 00000000..9363aa25 --- /dev/null +++ b/src-vue/src/utils/ReleaseCanal.ts @@ -0,0 +1,4 @@ +export enum ReleaseCanal { + RELEASE = <any>'Northstar', + RELEASE_CANDIDATE = <any>'NorthstarReleaseCandidate' +} diff --git a/src-vue/src/utils/Tabs.ts b/src-vue/src/utils/Tabs.ts new file mode 100644 index 00000000..5266da81 --- /dev/null +++ b/src-vue/src/utils/Tabs.ts @@ -0,0 +1,6 @@ +export enum Tabs { + PLAY = 'Play', + CHANGELOG = 'Changelog', + SETTINGS = 'Settings', + DEV = 'Dev' +} |