mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-29 01:18:25 +00:00
Updated repo to use submodules
This commit is contained in:
parent
c588fe20ef
commit
a51310cd75
29
.gitignore
vendored
Normal file
29
.gitignore
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
__pycache__
|
||||||
|
*/__pycache__
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
/dist
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
/env/
|
||||||
|
/venv/
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
|
|
||||||
|
# Private configs
|
||||||
|
/config.py
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "webui"]
|
||||||
|
path = webui
|
||||||
|
url = https://notabug.org/RemixDev/deemix-webui.git
|
4
requirements.txt
Normal file
4
requirements.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
deemix
|
||||||
|
flask
|
||||||
|
flask-socketio
|
||||||
|
pywebview
|
|
@ -44,7 +44,7 @@ def resource_path(relative_path):
|
||||||
|
|
||||||
return path.join(base_path, relative_path)
|
return path.join(base_path, relative_path)
|
||||||
|
|
||||||
gui_dir = resource_path('public')
|
gui_dir = resource_path(path.join('webui', 'public'))
|
||||||
server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir)
|
server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir)
|
||||||
server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
|
server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
|
||||||
socketio = SocketIO(server, async_mode='threading')
|
socketio = SocketIO(server, async_mode='threading')
|
||||||
|
|
1
webui
Submodule
1
webui
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 49391b902db04f77de4818694cf806982e69a2d5
|
Loading…
Reference in a new issue