Skip to content

Commit

Permalink
Merge pull request #2 from Alystrasz/feat/new-ui
Browse files Browse the repository at this point in the history
Full UI rework
  • Loading branch information
GeckoEidechse authored Oct 4, 2022
2 parents 7f0ee9b + 5912e98 commit dd2f376
Show file tree
Hide file tree
Showing 33 changed files with 2,769 additions and 13 deletions.
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

0 comments on commit dd2f376

Please sign in to comment.