diff --git a/.gitignore b/.gitignore index 5c9ad13..b5a817d 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,7 @@ share/python-wheels/ .installed.cfg *.egg MANIFEST - +*_bak/ # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. diff --git a/xiaomusic/httpserver.py b/xiaomusic/httpserver.py index 0baaa6e..962d3e7 100644 --- a/xiaomusic/httpserver.py +++ b/xiaomusic/httpserver.py @@ -30,7 +30,6 @@ xiaomusic = None config = None log = None - @asynccontextmanager async def app_lifespan(app): if xiaomusic is not None: @@ -75,7 +74,6 @@ app = FastAPI( version=__version__, ) - def reset_http_server(): log.info(f"disable_httpauth:{config.disable_httpauth}") if config.disable_httpauth: diff --git a/xiaomusic/static/app.js b/xiaomusic/static/default/app.js similarity index 99% rename from xiaomusic/static/app.js rename to xiaomusic/static/default/app.js index 0f0d53f..c18f3d3 100644 --- a/xiaomusic/static/app.js +++ b/xiaomusic/static/default/app.js @@ -300,7 +300,4 @@ $(function(){ var remainingSeconds =Math.floor(seconds % 60); return `${minutes.toString().padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`; } -}); - - - +}); \ No newline at end of file diff --git a/xiaomusic/static/debug.html b/xiaomusic/static/default/debug.html similarity index 100% rename from xiaomusic/static/debug.html rename to xiaomusic/static/default/debug.html diff --git a/xiaomusic/static/default/index.html b/xiaomusic/static/default/index.html new file mode 100644 index 0000000..682e3ec --- /dev/null +++ b/xiaomusic/static/default/index.html @@ -0,0 +1,92 @@ + + + + + 小爱音箱操控面板 + + + + + + + + + + + + +

小爱音箱操控面板 + ( + 版本未知 + ) +

+
+ +
+ +
+ +
+ 设置 +
+
+ +
+
+ + +
+
+
+
+ + + +
+ +
00:00/00:00
+
+
+ +
+
+
+ +
+
+ + + + +
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + diff --git a/xiaomusic/static/jquery-3.7.1.min.js b/xiaomusic/static/default/jquery-3.7.1.min.js similarity index 100% rename from xiaomusic/static/jquery-3.7.1.min.js rename to xiaomusic/static/default/jquery-3.7.1.min.js diff --git a/xiaomusic/static/m3u.html b/xiaomusic/static/default/m3u.html similarity index 100% rename from xiaomusic/static/m3u.html rename to xiaomusic/static/default/m3u.html diff --git a/xiaomusic/static/qrcode.png b/xiaomusic/static/default/qrcode.png similarity index 100% rename from xiaomusic/static/qrcode.png rename to xiaomusic/static/default/qrcode.png diff --git a/xiaomusic/static/setting.html b/xiaomusic/static/default/setting.html similarity index 94% rename from xiaomusic/static/setting.html rename to xiaomusic/static/default/setting.html index 50dfe59..4b587b4 100644 --- a/xiaomusic/static/setting.html +++ b/xiaomusic/static/default/setting.html @@ -3,9 +3,9 @@ 小爱音箱操控面板 - - - + + + @@ -180,15 +180,15 @@ var vConsole = new window.VConsole(); 下载日志文件 - m3u文件转换 + m3u文件转换
- 调试工具 + 调试工具 💰 爱发电 点个 Star ⭐
- 请涵曦喝奶茶🧋 + 请涵曦喝奶茶🧋