修复中继加密独立配置并保留启停和自定义端口
This commit is contained in:
1 parent
78b210f079
commit
232b00eb04
7 files changed
+84
-38
No files matched your search
@@ -10,7 +10,7 @@ const formHelpers = compileFunction(
|
||||
formSource
|
||||
.replaceAll('export const ', 'const ')
|
||||
.replaceAll('export function ', 'function ')
|
||||
+ '\nreturn { readFormConfig, updateFormConfig, validateFormConfig, relayConfigured, relaySecurityForMail }'
|
||||
+ '\nreturn { readFormConfig, updateFormConfig, validateFormConfig }'
|
||||
)()
|
||||
const recentAuthenticationSource = readFileSync(new URL('../../frontend/src/utils/recentAuthentication.js', import.meta.url), 'utf8')
|
||||
.replace(/^import .*$/gm, '')
|
||||
@@ -23,7 +23,7 @@ const compileRecentAuthentication = compileFunction(
|
||||
const source = readFileSync(new URL('../../frontend/src/views/components/ConfigSettings/ConfigSettings.js', import.meta.url), 'utf8')
|
||||
const compilePage = compileFunction(
|
||||
source.replace(/^import .*$/gm, '').replace('export function usePage', 'function usePage') + '\nreturn usePage(pageKey)',
|
||||
['computed', 'onMounted', 'reactive', 'ref', 'ElMessage', 'ElMessageBox', 'http', 'useGlobalStatusStore', 'pageKey', 'onBeforeUnmount', 'readFormConfig', 'updateFormConfig', 'validateFormConfig', 'relayConfigured', 'relaySecurityForMail', 'isRecentAuthenticationCancelled', 'requestWithRecentAuthentication']
|
||||
['computed', 'onMounted', 'reactive', 'ref', 'ElMessage', 'ElMessageBox', 'http', 'useGlobalStatusStore', 'pageKey', 'onBeforeUnmount', 'readFormConfig', 'updateFormConfig', 'validateFormConfig', 'isRecentAuthenticationCancelled', 'requestWithRecentAuthentication']
|
||||
)
|
||||
const createPageWithKey = (...args) => {
|
||||
const http = args[6]
|
||||
@@ -34,8 +34,6 @@ const createPageWithKey = (...args) => {
|
||||
formHelpers.readFormConfig,
|
||||
formHelpers.updateFormConfig,
|
||||
formHelpers.validateFormConfig,
|
||||
formHelpers.relayConfigured,
|
||||
formHelpers.relaySecurityForMail,
|
||||
recentAuthentication.isRecentAuthenticationCancelled,
|
||||
recentAuthentication.requestWithRecentAuthentication
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user