Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New UI #2

Merged
merged 99 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
2e622c0
build: add Vue app skeleton
Alystrasz Sep 20, 2022
21cd111
build: add new tauri configuration
Alystrasz Sep 20, 2022
f334275
docs: update installation instructions in readme
Alystrasz Sep 20, 2022
cb54685
build: add element-plus dependency
Alystrasz Sep 22, 2022
39679a4
build: import element plugin into Vue
Alystrasz Sep 22, 2022
41cf93b
feat: add basic layout
Alystrasz Sep 22, 2022
6b7f92b
Merge branch 'GeckoEidechse:main' into feat/new-ui
Alystrasz Sep 22, 2022
3ab7ade
refactor: remove HelloWorld vue component
Alystrasz Sep 22, 2022
b93afb8
feat: add basic tabs
Alystrasz Sep 22, 2022
fe73ffe
feat: import back main CSS stylesheet
Alystrasz Sep 22, 2022
efcb9bb
feat: add some style to tabs
Alystrasz Sep 22, 2022
089062e
build: fix minimum window dimensions
Alystrasz Sep 22, 2022
c08f550
feat: add a container to display background images
Alystrasz Sep 22, 2022
3c4324e
feat: update tabs header style
Alystrasz Sep 22, 2022
eef89e3
feat: apply same font to all texts
Alystrasz Sep 23, 2022
919ce45
feat: add PlayView component
Alystrasz Sep 23, 2022
21784ec
build: add element-plus-icons dependency
Alystrasz Sep 23, 2022
614c305
feat: add window control buttons
Alystrasz Sep 23, 2022
c921941
feat: add additional styles for window control buttons
Alystrasz Sep 23, 2022
d3a14be
feat: window buttons can minimize and close it
Alystrasz Sep 23, 2022
e31f9bc
feat: remove window decorations
Alystrasz Sep 23, 2022
69a68d8
feat: window can be dragged through dragging app background
Alystrasz Sep 23, 2022
e67c3a1
refactor: hide mods section (for now)
Alystrasz Sep 23, 2022
b17300f
refactor: remove "run server" button
Alystrasz Sep 24, 2022
d4b55ae
build: add vuex dependency
Alystrasz Sep 24, 2022
e1271d7
feat: use a store for application state
Alystrasz Sep 24, 2022
9635801
feat: listen to origin/northstar events
Alystrasz Sep 24, 2022
f63550c
fix: restore window controls
Alystrasz Sep 24, 2022
475fc7c
feat: add developer_mode variable
Alystrasz Sep 24, 2022
bdba63f
feat: developer mode can be activated by clicking northstar version m…
Alystrasz Sep 24, 2022
5bf2254
Merge branch 'GeckoEidechse:main' into feat/new-ui
Alystrasz Sep 24, 2022
2199a6f
fix: disable user selection
Alystrasz Sep 24, 2022
a2f3766
feat: display services state on dev mode
Alystrasz Sep 24, 2022
8b96f54
feat: add a "see patch notes" link to main view
Alystrasz Sep 24, 2022
b78ab19
play button is disabled when game is running
Alystrasz Sep 24, 2022
65e20ab
feat: add component to see game folder path
Alystrasz Sep 25, 2022
39a2672
feat: load up installation path in app state on launch
Alystrasz Sep 25, 2022
634a058
feat: load northstar version in app state
Alystrasz Sep 25, 2022
13de634
docs: add documentation to store methods
Alystrasz Sep 26, 2022
7c2d1e8
refactor: rename northstar version method
Alystrasz Sep 26, 2022
7ebd5bb
feat: add DeveloperView component
Alystrasz Sep 26, 2022
a930c03
developer mode can be turned off from developer view
Alystrasz Sep 26, 2022
ea94dd3
feat: game cannot be launched if Origin is not running
Alystrasz Sep 26, 2022
b4531b3
fix: do not display "see patch notes" link with unknown Northstar ver…
Alystrasz Sep 26, 2022
238e340
feat: we can now install Northstar if it wasn't detected
Alystrasz Sep 27, 2022
3fbff79
fix: do not try to run game after installing Northstar
Alystrasz Sep 27, 2022
5c389c6
refactor: export PlayButton component to dedicated file
Alystrasz Sep 27, 2022
f430aab
feat: Mention TFOR for UI inspiration
GeckoEidechse Sep 28, 2022
518efdc
feat: add changelog view component
Alystrasz Sep 28, 2022
6cce4b8
fix: Open tforevive github link in default browser
GeckoEidechse Sep 28, 2022
9a4c8f4
feat: add basic canal selector
Alystrasz Sep 29, 2022
cdf0fc5
fix: Use application wide style for link
GeckoEidechse Sep 29, 2022
28d890f
Merge pull request #1 from GeckoEidechse/ui-mention-tfor
Alystrasz Sep 29, 2022
dc428b4
Merge branch 'feat/new-ui' of github.com:Alystrasz/FlightCore into fe…
Alystrasz Sep 29, 2022
461b350
fix: restore launch button style
Alystrasz Sep 29, 2022
e59529a
fix: add missing northstarIsRunning computed attribute to PlayButton …
Alystrasz Sep 29, 2022
9592ca2
feat: Add update functionality
GeckoEidechse Oct 1, 2022
2a32f80
Merge pull request #2 from GeckoEidechse/add-update-functionality
Alystrasz Oct 2, 2022
e545724
feat: Add initial NS launch functionality
GeckoEidechse Oct 1, 2022
a17edbf
refactor: Use enum for install type
GeckoEidechse Oct 2, 2022
52394a3
chore: Reference enum in backend code in comment
GeckoEidechse Oct 2, 2022
7fee06e
Merge pull request #3 from GeckoEidechse/add-launch-functionality
Alystrasz Oct 2, 2022
8b1acb0
fix: SettingsView is a Typescript component
Alystrasz Oct 2, 2022
22a7bd1
refactor: type issues
Alystrasz Oct 2, 2022
7a5ce86
fix: store is now typed
Alystrasz Oct 2, 2022
355f3f7
Revert "feat: add basic canal selector"
Alystrasz Oct 2, 2022
96f83ec
fix: add missing import
Alystrasz Oct 2, 2022
a4b14e2
Merge branch 'GeckoEidechse:main' into feat/new-ui
Alystrasz Oct 2, 2022
925d8e5
fix: Update CI for new UI framework
GeckoEidechse Sep 29, 2022
58de638
Merge pull request #4 from GeckoEidechse/fix-ci
Alystrasz Oct 2, 2022
6e330e4
build: move front files on build step
Alystrasz Oct 2, 2022
b23c2b5
Merge branch 'feat/new-ui' of github.com:Alystrasz/FlightCore into fe…
Alystrasz Oct 2, 2022
e0aad4f
fix: Null out game path
GeckoEidechse Oct 2, 2022
b09138a
fix: Do not show install button if TF|2 not found
GeckoEidechse Oct 2, 2022
e2c8098
fix: Temp. disable updater to avoid failing builds
GeckoEidechse Oct 3, 2022
9690e5e
Merge pull request #6 from GeckoEidechse/fix/temp-disable-updater
Alystrasz Oct 3, 2022
43d61ce
Merge pull request #5 from GeckoEidechse/null-out-gamepath
Alystrasz Oct 3, 2022
03f5678
build: remove old tauri config file
Alystrasz Oct 3, 2022
98d0e35
refactor: implement launchGame method with switch/case
Alystrasz Oct 3, 2022
56d886a
docs: update readme
Alystrasz Oct 3, 2022
c508c62
refactor: Gecko is paranoid
Alystrasz Oct 3, 2022
c009cbe
fix: address _initializeApp result typing issue
Alystrasz Oct 3, 2022
02127ed
fix: address options() typing issue
Alystrasz Oct 3, 2022
6665621
feat: implement updateGamePath method
Alystrasz Oct 3, 2022
ba53e30
feat: add panic button to dev view
Alystrasz Oct 3, 2022
14d4248
chore: Fix import formatting
GeckoEidechse Oct 3, 2022
5c21492
Merge pull request #8 from GeckoEidechse/chore/import-formatting
Alystrasz Oct 3, 2022
e99295f
docs: Add readme to mention deprecated UI
GeckoEidechse Oct 3, 2022
9964859
feat: set minimum window dimensions to 600x300
Alystrasz Oct 4, 2022
c284e9a
refactor: rename store type
Alystrasz Oct 4, 2022
4fc36ee
feat: migrate update check code to store
Alystrasz Oct 4, 2022
d763bfe
Merge branch 'feat/new-ui' of github.com:Alystrasz/FlightCore into fe…
Alystrasz Oct 4, 2022
c504ded
Merge pull request #9 from GeckoEidechse/docs/add-readme-deprecated-ui
Alystrasz Oct 4, 2022
a549c4e
refactor: Change dist dir path
GeckoEidechse Oct 4, 2022
a056501
Merge pull request #10 from GeckoEidechse/refactor/change-dist-dir
Alystrasz Oct 4, 2022
2a0df9b
refactor: Remove unused copied code
GeckoEidechse Oct 4, 2022
dddbc93
feat: Show notification if FlightCore is outdated
GeckoEidechse Oct 4, 2022
86c42dc
Merge pull request #11 from GeckoEidechse/feat/flightcore-oudated-not…
Alystrasz Oct 4, 2022
5912e98
fix: Re-enable self updating mechanism
GeckoEidechse Oct 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/push-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
run: |
npm install
./node_modules/.bin/rollup --config
cd src-vue && npm install && cd ..
npm run tauri build
- uses: tauri-apps/tauri-action@v0
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
run: |
npm install
./node_modules/.bin/rollup --config
cd src-vue && npm install && cd ..
npm run tauri build
- uses: tauri-apps/tauri-action@v0
env:
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ Install `npm` dependencies with
npm install
```

Then for developing
Install UI dependencies too

```sh
# terminal 1 (UI localhost for hot-reload)
npm run ui-dev
cd src-vue && npm install
```

# terminal 2 (for the Rust/App hot-reload)
npm run tauri dev
Then for developing

```sh
npx tauri dev
```

> **Note**
Expand Down
17 changes: 11 additions & 6 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "",
"beforeDevCommand": "",
"devPath": "http://localhost:8080/",
"distDir": "../dist"
"beforeBuildCommand": "cd src-vue && npm run build",
"beforeDevCommand": "cd src-vue && npm run dev",
"devPath": "http://localhost:5173/",
"distDir": "../src-vue/dist"
},
"package": {
"productName": "flightcore",
Expand Down Expand Up @@ -62,8 +62,13 @@
{
"fullscreen": false,
"resizable": true,
"title": "FlightCore"
"decorations": false,
"title": "FlightCore",
"height": 600,
"minHeight": 300,
"width": 1000,
"minWidth": 600
}
]
}
}
}
3 changes: 3 additions & 0 deletions src-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# FlightCore frontend (deprecated)

This folder holds old FlightCore frontend code that is no longer used and will be removed in the future!
24 changes: 24 additions & 0 deletions src-vue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions src-vue/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
18 changes: 18 additions & 0 deletions src-vue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# FlightCore UI

This folder holds FlightCore's interface repository.

This is a [Vue (v4)](https://vuejs.org/) project, using [Element Plus](https://element-plus.org/en-US/) component library.

## Development

```shell
# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build
```
13 changes: 13 additions & 0 deletions src-vue/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading