|
|
@ -16,25 +16,25 @@ const { Boards, Posts, Accounts } = require(__dirname+'/../../db/') |
|
|
|
, template = require(__dirname+'/../../configs/template.js.example') |
|
|
|
, template = require(__dirname+'/../../configs/template.js.example') |
|
|
|
, settingChangeEntries = Object.entries({ |
|
|
|
, settingChangeEntries = Object.entries({ |
|
|
|
//doesnt seem like it would be much different transforming this to be tasks: [settings] or this way, so this way it is
|
|
|
|
//doesnt seem like it would be much different transforming this to be tasks: [settings] or this way, so this way it is
|
|
|
|
'globalAnnouncement.raw': ['deletehtml'], |
|
|
|
'globalAnnouncement.raw': ['deletehtml', 'custompages'], |
|
|
|
'meta.siteName': ['deletehtml', 'scripts', 'custompages'], |
|
|
|
'meta.siteName': ['deletehtml', 'scripts', 'custompages'], |
|
|
|
'meta.url': ['deletehtml', 'scripts', 'custompages'], |
|
|
|
'meta.url': ['deletehtml', 'scripts', 'custompages'], |
|
|
|
'captchaOptions.type': ['deletehtml', 'css', 'scripts'], |
|
|
|
'captchaOptions.type': ['deletehtml', 'css', 'scripts', 'custompages'], |
|
|
|
'archiveLinksURL': ['deletehtml'], |
|
|
|
'archiveLinksURL': ['deletehtml', 'custompages'], |
|
|
|
'reverseImageLinksURL': ['deletehtml'], |
|
|
|
'reverseImageLinksURL': ['deletehtml', 'custompages'], |
|
|
|
'enableWebring': ['deletehtml'], |
|
|
|
'enableWebring': ['deletehtml', 'custompages'], |
|
|
|
'thumbSize': ['deletehtml', 'css', 'scripts'], |
|
|
|
'thumbSize': ['deletehtml', 'css', 'scripts'], |
|
|
|
'previewReplies': ['deletehtml'], |
|
|
|
'previewReplies': ['deletehtml', 'custompages'], |
|
|
|
'stickyPreviewReplies': ['deletehtml'], |
|
|
|
'stickyPreviewReplies': ['deletehtml', 'custompages'], |
|
|
|
'maxRecentNews': ['deletehtml'], |
|
|
|
'maxRecentNews': ['deletehtml', 'custompages'], |
|
|
|
'themes': ['scripts'], |
|
|
|
'themes': ['scripts'], |
|
|
|
'codeThemes': ['scripts'], |
|
|
|
'codeThemes': ['scripts'], |
|
|
|
'globalLimits.postFiles.max': ['deletehtml'], |
|
|
|
'globalLimits.postFiles.max': ['deletehtml', 'custompages'], |
|
|
|
'globalLimits.postFilesSize.max': ['deletehtml'], |
|
|
|
'globalLimits.postFilesSize.max': ['deletehtml', 'custompages'], |
|
|
|
//these will make it easier to keep updated and include objects where any/all property change needs tasks
|
|
|
|
//these will make it easier to keep updated and include objects where any/all property change needs tasks
|
|
|
|
//basically, it expands to all of globalLimits.fieldLength.* or frontendScriptDefault.*
|
|
|
|
//basically, it expands to all of globalLimits.fieldLength.* or frontendScriptDefault.*
|
|
|
|
//it could be calculated in compareSettings with *, but im just precompiling it now. probably a tiny bit faster not doing it each time
|
|
|
|
//it could be calculated in compareSettings with *, but im just precompiling it now. probably a tiny bit faster not doing it each time
|
|
|
|
...includeChildren(template, 'globalLimits.fieldLength', ['deletehtml']), |
|
|
|
...includeChildren(template, 'globalLimits.fieldLength', ['deletehtml', 'custompages']), |
|
|
|
...includeChildren(template, 'frontendScriptDefault', ['scripts']), |
|
|
|
...includeChildren(template, 'frontendScriptDefault', ['scripts']), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|