New API-driven architecture

This commit is contained in:
2025-11-23 22:59:31 +08:00
parent e219e04a48
commit 3c6f8714d2
9 changed files with 30 additions and 1 deletions

1
api/cn.yaohud.api.go Normal file
View File

@@ -0,0 +1 @@
package api

1
api/cn.yuafeng.api-v2.go Normal file
View File

@@ -0,0 +1 @@
package api

1
api/cn.yuafeng.api.go Normal file
View File

@@ -0,0 +1 @@
package api

View File

@@ -28,6 +28,7 @@
"username": "root", "username": "root",
"password": "password", "password": "password",
"database": "meowbox", "database": "meowbox",
"prefix": "box_" "prefix": "box_",
"file_path": ""
} }
} }

View File

@@ -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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title> <title></title>
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/font-awesome/css/all.min.css">
</head> </head>
<body> <body>

View 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();
});

View File

@@ -32,6 +32,7 @@ type Config struct {
Password string `json:"password"` Password string `json:"password"`
Database string `json:"database"` Database string `json:"database"`
Prefix string `json:"prefix"` Prefix string `json:"prefix"`
FilePath string `json:"file_path"`
} `json:"database"` } `json:"database"`
} }