Skip to content

Commit

Permalink
fix: some missed elements in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Jul 15, 2024
1 parent 6b59661 commit 9e078f2
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 18 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"

jobs:
build-docker-image:
Expand All @@ -12,6 +12,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Setup nodejs
uses: actions/setup-node@v1
with:
node-version: 16.17.0

- name: Install dependencies
working-directory: ./app/dashboard
run: npm ci

- name: Build project
working-directory: ./app/dashboard
run: VITE_BASE_API=/api/ npm run build --if-present -- --outDir build --base '/dashboard/'

- name: Create 404.html
working-directory: ./app/dashboard
run: cp ./build/index.html ./build/404.html

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from config import DOCS, XRAY_SUBSCRIPTION_PATH

__version__ = "0.5.0"
__version__ = "0.5.1"


app = FastAPI(
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/build/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
<meta name="theme-color" content="#3B81F6" />
<script type="module" crossorigin src="/dashboard/assets/index.c00a9ddb.js"></script>
<script type="module" crossorigin src="/dashboard/assets/index.71322f3d.js"></script>
<link rel="modulepreload" crossorigin href="/dashboard/assets/vendor.8aa8dc93.js">
<link rel="stylesheet" href="/dashboard/assets/index.59de2328.css">
</head>
Expand Down
14 changes: 14 additions & 0 deletions app/dashboard/build/assets/index.71322f3d.js

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions app/dashboard/build/assets/index.c00a9ddb.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/dashboard/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
<meta name="theme-color" content="#3B81F6" />
<script type="module" crossorigin src="/dashboard/assets/index.c00a9ddb.js"></script>
<script type="module" crossorigin src="/dashboard/assets/index.71322f3d.js"></script>
<link rel="modulepreload" crossorigin href="/dashboard/assets/vendor.8aa8dc93.js">
<link rel="stylesheet" href="/dashboard/assets/index.59de2328.css">
</head>
Expand Down

0 comments on commit 9e078f2

Please sign in to comment.