mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Update
This commit is contained in:
@@ -23,7 +23,10 @@ def ResponseObject(status=True, message=None, data=None, status_code = 200) -> F
|
||||
from modules.DashboardClients import 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'
|
||||
|
||||
def login_required(f):
|
||||
|
File diff suppressed because one or more lines are too long
8
src/static/client/dist/client.html
vendored
8
src/static/client/dist/client.html
vendored
@@ -2,7 +2,7 @@
|
||||
<html lang="">
|
||||
<head>
|
||||
<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">
|
||||
<title>WGDashboard Client</title>
|
||||
<style>
|
||||
@@ -28,14 +28,14 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/static/client/dist/assets/index-Cun74Xi8.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/static/client/dist/assets/index-tn8r-uDQ.css">
|
||||
<script type="module" crossorigin src="./assets/index-Co9HxOnb.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-DyyN79cJ.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div id="preloader">
|
||||
<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>
|
||||
|
@@ -18,7 +18,6 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
@@ -30,5 +29,5 @@ export default defineConfig({
|
||||
},
|
||||
host: '0.0.0.0'
|
||||
},
|
||||
base: '/static/client/dist'
|
||||
base: './'
|
||||
})
|
||||
|
Reference in New Issue
Block a user