diff --git a/api/cn.yaohud.api.go b/api/cn.yaohud.api.go new file mode 100644 index 0000000..778f64e --- /dev/null +++ b/api/cn.yaohud.api.go @@ -0,0 +1 @@ +package api diff --git a/api/cn.yuafeng.api-v2.go b/api/cn.yuafeng.api-v2.go new file mode 100644 index 0000000..778f64e --- /dev/null +++ b/api/cn.yuafeng.api-v2.go @@ -0,0 +1 @@ +package api diff --git a/api/cn.yuafeng.api.go b/api/cn.yuafeng.api.go new file mode 100644 index 0000000..778f64e --- /dev/null +++ b/api/cn.yuafeng.api.go @@ -0,0 +1 @@ +package api diff --git a/config.example.json b/config.example.json index e9de6ab..8634437 100644 --- a/config.example.json +++ b/config.example.json @@ -28,6 +28,7 @@ "username": "root", "password": "password", "database": "meowbox", - "prefix": "box_" + "prefix": "box_", + "file_path": "" } } \ No newline at end of file diff --git a/internal/handler/web/css/style.css b/internal/handler/web/css/style.css index e69de29..4628a21 100644 --- a/internal/handler/web/css/style.css +++ b/internal/handler/web/css/style.css @@ -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; +} \ No newline at end of file diff --git a/internal/handler/web/img/26-Tahoe-Light-1024.webp b/internal/handler/web/img/26-Tahoe-Light-1024.webp new file mode 100644 index 0000000..62f0ec4 Binary files /dev/null and b/internal/handler/web/img/26-Tahoe-Light-1024.webp differ diff --git a/internal/handler/web/install.html b/internal/handler/web/install.html index ead1a40..096b584 100644 --- a/internal/handler/web/install.html +++ b/internal/handler/web/install.html @@ -6,6 +6,7 @@ + diff --git a/internal/handler/web/js/install.js b/internal/handler/web/js/install.js new file mode 100644 index 0000000..18d01bc --- /dev/null +++ b/internal/handler/web/js/install.js @@ -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(); +}); \ No newline at end of file diff --git a/internal/service/struct.go b/internal/service/struct.go index 1331da9..6bde49e 100644 --- a/internal/service/struct.go +++ b/internal/service/struct.go @@ -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"` }