This commit is contained in:
Donald Zou
2025-08-17 15:13:30 +08:00
parent 0c0cf3a378
commit 854b9d252f
5 changed files with 10 additions and 8 deletions

View File

@@ -23,7 +23,10 @@ def ResponseObject(status=True, message=None, data=None, status_code = 200) -> F
from modules.DashboardClients import DashboardClients from modules.DashboardClients import DashboardClients
def createClientBlueprint(wireguardConfigurations: dict[WireguardConfiguration], dashboardConfig: DashboardConfig, dashboardClients: DashboardClients): def createClientBlueprint(wireguardConfigurations: dict[WireguardConfiguration], dashboardConfig: DashboardConfig, dashboardClients: DashboardClients):
client = Blueprint('client', __name__, template_folder=os.path.abspath("./static/client/dist")) client = Blueprint('client', __name__,
template_folder=os.path.abspath("./static/client/dist"),
static_folder=os.path.abspath("./static/client/dist")
)
prefix = f'{dashboardConfig.GetConfig("Server", "app_prefix")[1]}/client' prefix = f'{dashboardConfig.GetConfig("Server", "app_prefix")[1]}/client'
def login_required(f): def login_required(f):

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@
<html lang=""> <html lang="">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="icon" href="/static/client/dist/img/Logo-2-128x128.png"> <link rel="icon" href="./img/Logo-2-128x128.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WGDashboard Client</title> <title>WGDashboard Client</title>
<style> <style>
@@ -28,14 +28,14 @@
} }
} }
</style> </style>
<script type="module" crossorigin src="/static/client/dist/assets/index-Cun74Xi8.js"></script> <script type="module" crossorigin src="./assets/index-Co9HxOnb.js"></script>
<link rel="stylesheet" crossorigin href="/static/client/dist/assets/index-tn8r-uDQ.css"> <link rel="stylesheet" crossorigin href="./assets/index-DyyN79cJ.css">
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<div id="preloader"> <div id="preloader">
<div id="preloader_placeholder"> <div id="preloader_placeholder">
<img style="width: 100%" src="/static/client/dist/img/Logo-2-128x128.png" alt="WGDashboard Client" /> <img style="width: 100%" src="./img/Logo-2-128x128.png" alt="WGDashboard Client" />
</div> </div>
</div> </div>
</div> </div>

View File

@@ -18,7 +18,6 @@ export default defineConfig({
} }
} }
], ],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))
@@ -30,5 +29,5 @@ export default defineConfig({
}, },
host: '0.0.0.0' host: '0.0.0.0'
}, },
base: '/static/client/dist' base: './'
}) })