mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
split tgui html (#17476)
* Repackage yarn sdks * oups forgot that * update dompurify * fix mantraps * . * fix weakrefs * rm * porting the HTML split * minify * ut that back * bye poly * . * re minify * .. * prettier * fix that
This commit is contained in:
@@ -26,6 +26,17 @@ SUBSYSTEM_DEF(tgui)
|
||||
|
||||
/datum/controller/subsystem/tgui/PreInit()
|
||||
basehtml = file2text('tgui/public/tgui.html')
|
||||
|
||||
// Inject inline helper functions
|
||||
var/helpers = file2text('tgui/public/helpers.min.js')
|
||||
helpers = "<script type='text/javascript'>\n[helpers]\n</script>"
|
||||
basehtml = replacetextEx(basehtml, "<!-- tgui:helpers -->", helpers)
|
||||
|
||||
// Inject inline ntos-error styles
|
||||
var/ntos_error = file2text('tgui/public/ntos-error.min.css')
|
||||
ntos_error = "<style type='text/css'>\n[ntos_error]\n</style>"
|
||||
basehtml = replacetextEx(basehtml, "<!-- tgui:ntos-error -->", ntos_error)
|
||||
|
||||
basehtml = replacetextEx(basehtml, "<!-- tgui:nt-copyright -->", "Nanotrasen (c) 2284-[CURRENT_STATION_YEAR]")
|
||||
|
||||
/datum/controller/subsystem/tgui/Shutdown()
|
||||
|
||||
Reference in New Issue
Block a user