Updated build scripts, removed trash

Update tools.json, tools.json, and 3 more files...
This commit is contained in:
2025-04-03 21:55:37 +02:00
parent df93ee47b2
commit 3e2b917d21
5 changed files with 29 additions and 14 deletions

View File

@@ -1,7 +0,0 @@
{
"tools.head.title": "Tools - NibblePoker",
"tools.head.description": "TODO: description",
"tools.og.title": "NibblePoker - Tools",
"tools.og.description": "TODO: description",
"tools.header.title": "Tools"
}

View File

@@ -1,7 +0,0 @@
{
"tools.head.title": "Outils - NibblePoker",
"tools.head.description": "TODO: description",
"tools.og.title": "NibblePoker - Outils",
"tools.og.description": "TODO: description",
"tools.header.title": "Outils"
}

View File

@@ -83,6 +83,16 @@ call "%~dp0node_modules\.bin\rollup" uuid-generator.mjs --file uuid-generator.js
call "%~dp0node_modules\.bin\terser" uuid-generator.js -c -m -o uuid-generator.min.js call "%~dp0node_modules\.bin\terser" uuid-generator.js -c -m -o uuid-generator.min.js
popd popd
:js-pnganalyser-minify
echo Minifying PNG Analyzer
pushd %CD%
cd %~dp0\..\static\resources\NibblePoker\applets\png-analyser\
echo ^> static\resources\NibblePoker\applets\png-analyser\png-analyser.mjs
call "%~dp0node_modules\.bin\rollup" png-analyser.mjs --file png-analyser.js
call "%~dp0node_modules\.bin\terser" png-analyser.js -c -m -o png-analyser.min.js
popd
:js-nibblepoker-end :js-nibblepoker-end
:end :end

View File

@@ -0,0 +1,17 @@
@echo off
pushd %CD%
cd /D "%~dp0"
cd ..\static\resources\NibblePoker
echo.
echo Removing minified JS files
echo --------------------------
echo Deleting "*.js" in "static\resources\NibblePoker" ...
del /S /Q *.js
:end
popd

View File

@@ -5,6 +5,8 @@ from flask import url_for
from website.content import ContentApplet from website.content import ContentApplet
# FIXME: Implement preload support !
def render_applet_head(applet_data: ContentApplet, is_standalone: bool = False) -> str: def render_applet_head(applet_data: ContentApplet, is_standalone: bool = False) -> str:
applet_style_html = "" applet_style_html = ""