Updated build scripts, removed trash
Update tools.json, tools.json, and 3 more files...
This commit is contained in:
@@ -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"
|
||||
}
|
@@ -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"
|
||||
}
|
@@ -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
|
||||
|
17
scripts/delete-minified-js.cmd
Normal file
17
scripts/delete-minified-js.cmd
Normal 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
|
@@ -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 = ""
|
||||
|
||||
|
Reference in New Issue
Block a user