|
@@ -92,6 +92,8 @@ function fetchGetLogs () {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function processWebuiSettingsJson (settings) {
|
|
function processWebuiSettingsJson (settings) {
|
|
|
|
|
+ window.settings = settings
|
|
|
|
|
+
|
|
|
setupSectionNavigation(settings.SectionNavigationStyle)
|
|
setupSectionNavigation(settings.SectionNavigationStyle)
|
|
|
|
|
|
|
|
window.restBaseUrl = settings.Rest
|
|
window.restBaseUrl = settings.Rest
|
|
@@ -111,6 +113,12 @@ function processWebuiSettingsJson (settings) {
|
|
|
document.querySelector('footer[title="footer"]').style.display = 'none'
|
|
document.querySelector('footer[title="footer"]').style.display = 'none'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (settings.StyleMods != null) {
|
|
|
|
|
+ for (const style of settings.StyleMods) {
|
|
|
|
|
+ document.body.classList.add(style)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (settings.EnableCustomJs) {
|
|
if (settings.EnableCustomJs) {
|
|
|
const script = document.createElement('script')
|
|
const script = document.createElement('script')
|
|
|
script.src = './custom-webui/custom.js'
|
|
script.src = './custom-webui/custom.js'
|
|
@@ -136,8 +144,6 @@ function processWebuiSettingsJson (settings) {
|
|
|
loginForm.processLocalLogin(settings.AuthLocalLogin)
|
|
loginForm.processLocalLogin(settings.AuthLocalLogin)
|
|
|
|
|
|
|
|
document.getElementsByTagName('main')[0].appendChild(loginForm)
|
|
document.getElementsByTagName('main')[0].appendChild(loginForm)
|
|
|
-
|
|
|
|
|
- window.settings = settings
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function processAdditionalLinks (links) {
|
|
function processAdditionalLinks (links) {
|