complete full functions;

add some translations;
This commit is contained in:
2023-09-25 18:33:10 +08:00
parent 4e93c2b92b
commit 7310e1117c
13 changed files with 532 additions and 406 deletions

View File

@@ -17,16 +17,14 @@ var http_port, https_port;
layui.element.on('nav(leftNav)', function (elem) {
var id = elem.attr('id');
var title = elem.text();
if (id === 'overview') {
loadOverview(lang, title.trim());
} else if (elem.closest('.layui-nav-item').attr('id') === 'configure') {
if (id === 'clientInfo') {
loadClientInfo(lang, title.trim());
} else if (id === 'proxiesStatus') {
loadProxiesStatus(lang, title.trim());
} else if (elem.closest('.layui-nav-item').attr('id') === 'proxies') {
if (id != null && id.trim() !== '') {
var suffix = elem.closest('.layui-nav-item').children('a').text().trim();
if (id === 'common') {
loadCommon(lang, title + " " + suffix);
} else {
loadProxyInfo(lang, title + " " + suffix, id);
}
loadProxyInfo(lang, title + " " + suffix, id);
}
}
});