New API-driven architecture
This commit is contained in:
1
api/cn.yaohud.api.go
Normal file
1
api/cn.yaohud.api.go
Normal file
@@ -0,0 +1 @@
|
||||
package api
|
||||
1
api/cn.yuafeng.api-v2.go
Normal file
1
api/cn.yuafeng.api-v2.go
Normal file
@@ -0,0 +1 @@
|
||||
package api
|
||||
1
api/cn.yuafeng.api.go
Normal file
1
api/cn.yuafeng.api.go
Normal file
@@ -0,0 +1 @@
|
||||
package api
|
||||
@@ -28,6 +28,7 @@
|
||||
"username": "root",
|
||||
"password": "password",
|
||||
"database": "meowbox",
|
||||
"prefix": "box_"
|
||||
"prefix": "box_",
|
||||
"file_path": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Global styles */
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Main styles */
|
||||
.container {
|
||||
height: 100vh;
|
||||
background: url('/img/background.webp') no-repeat center center fixed;
|
||||
background-size: cover;
|
||||
}
|
||||
BIN
internal/handler/web/img/26-Tahoe-Light-1024.webp
Normal file
BIN
internal/handler/web/img/26-Tahoe-Light-1024.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="stylesheet" href="/font-awesome/css/all.min.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
9
internal/handler/web/js/install.js
Normal file
9
internal/handler/web/js/install.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function install() {
|
||||
document.title = "安装程序 - MeowBox";
|
||||
const container = document.createElement('div');
|
||||
container.classList.add('container');
|
||||
document.body.appendChild(container);
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
install();
|
||||
});
|
||||
@@ -32,6 +32,7 @@ type Config struct {
|
||||
Password string `json:"password"`
|
||||
Database string `json:"database"`
|
||||
Prefix string `json:"prefix"`
|
||||
FilePath string `json:"file_path"`
|
||||
} `json:"database"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user