diff --git a/data/strings/en/tools.json b/data/strings/en/tools.json deleted file mode 100644 index 824a64e..0000000 --- a/data/strings/en/tools.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/data/strings/fr/tools.json b/data/strings/fr/tools.json deleted file mode 100644 index d1bc525..0000000 --- a/data/strings/fr/tools.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/scripts/compile-js-site.cmd b/scripts/compile-js-site.cmd index 975d1bf..edd0fda 100644 --- a/scripts/compile-js-site.cmd +++ b/scripts/compile-js-site.cmd @@ -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 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 :end diff --git a/scripts/delete-minified-js.cmd b/scripts/delete-minified-js.cmd new file mode 100644 index 0000000..e6a6842 --- /dev/null +++ b/scripts/delete-minified-js.cmd @@ -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 diff --git a/website/renderers/applet.py b/website/renderers/applet.py index 679f454..8b4e21d 100644 --- a/website/renderers/applet.py +++ b/website/renderers/applet.py @@ -5,6 +5,8 @@ from flask import url_for from website.content import ContentApplet +# FIXME: Implement preload support ! + def render_applet_head(applet_data: ContentApplet, is_standalone: bool = False) -> str: applet_style_html = ""