embed static assets

fix https://github.com/seaweedfs/seaweedfs/issues/6946
This commit is contained in:
chrislu
2025-07-07 12:42:13 -07:00
parent 739031949f
commit 39b7e44fb5
12 changed files with 34 additions and 11 deletions

View File

@@ -28,11 +28,11 @@ templ Layout(c *gin.Context, content templ.Component) {
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link href="/static/css/fontawesome.min.css" rel="stylesheet">
<!-- HTMX -->
<script src="https://unpkg.com/htmx.org@1.9.8/dist/htmx.min.js"></script>
<script src="/static/js/htmx.min.js"></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="/static/css/admin.css">
</head>
@@ -261,7 +261,7 @@ templ Layout(c *gin.Context, content templ.Component) {
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="/static/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="/static/js/admin.js"></script>
</body>
@@ -276,8 +276,8 @@ templ LoginForm(c *gin.Context, title string, errorMessage string) {
<title>{title} - Login</title>
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/css/fontawesome.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container">
@@ -329,7 +329,7 @@ templ LoginForm(c *gin.Context, title string, errorMessage string) {
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="/static/js/bootstrap.bundle.min.js"></script>
</body>
</html>
}