mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
Add advanced custom CSS/JS file support per template (#7361)
Introduces a new 'customFiles' array in the config schema for granular domain-level CSS and JavaScript customization. Updates webserver logic to inject custom CSS/JS tags based on template scope, replacing static custom.css/custom.js references in all Handlebars views. Also updates meshctrl.js to support the new config property.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<link id="theme-stylesheet" href="styles/bootstrap{{{min}}}.css" rel="stylesheet" title="CSS">
|
||||
<link href="styles/select2.min.css" rel="stylesheet" title="CSS">
|
||||
<link href="styles/select2-bootstrap-5-theme.min.css" rel="stylesheet" title="CSS">
|
||||
<link type="text/css" href="styles/custom.css" media="screen" rel="stylesheet" title="CSS" />
|
||||
{{{customCSSTags}}}
|
||||
<link rel="apple-touch-icon" href="/favicon-303x303.png" />
|
||||
<script type="text/javascript" src="scripts/common-0.0.1{{{min}}}.js"></script>
|
||||
<script type="text/javascript" src="scripts/meshcentral{{{min}}}.js"></script>
|
||||
@@ -59,7 +59,7 @@
|
||||
<script keeplink=1 type="text/javascript" src="scripts/ol3-contextmenu{{{min}}}.js"></script>
|
||||
<script keeplink=1 type="text/javascript" src="scripts/purify{{{min}}}.js"></script>
|
||||
<script keeplink=1 type="text/javascript" src="scripts/marked{{{min}}}.js"></script>
|
||||
<script type="text/javascript" src="scripts/custom.js"></script>
|
||||
{{{customJSTags}}}
|
||||
<title>{{{title}}}</title>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user