mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 03:13:56 +08:00
🎨 Sync 2026-04-10 15:34:26
This commit is contained in:
1 parent
9b1a57d792
commit
42174fc0b0
66 files changed
+6841
-2210
No files matched your search
@@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_VERSION:=1.1.1
|
||||
PKG_RELEASE:=3
|
||||
PKG_VERSION:=1.2.0
|
||||
PKG_RELEASE:=4
|
||||
|
||||
LUCI_TITLE:=LuCI Support for momo
|
||||
LUCI_DEPENDS:=+luci-base +momo
|
||||
|
||||
@@ -114,7 +114,7 @@ return view.extend({
|
||||
o = s.option(form.Flag, 'scheduled_restart', _('Scheduled Restart'));
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.option(form.Value, 'cron_expression', _('Cron Expression'));
|
||||
o = s.option(form.Value, 'scheduled_restart_cron', _('Scheduled Restart Cron'));
|
||||
o.retain = true;
|
||||
o.rmempty = false;
|
||||
o.depends('scheduled_restart', '1');
|
||||
|
||||
@@ -24,35 +24,31 @@ return view.extend({
|
||||
|
||||
m = new form.Map('momo');
|
||||
|
||||
s = m.section(form.NamedSection, 'log', 'log', _('Log Cleanup'));
|
||||
s = m.section(form.NamedSection, 'log', 'log', _('Log'));
|
||||
|
||||
o = s.option(form.Flag, 'log_cleanup_enabled', _('Scheduled Log Cleanup'));
|
||||
s.tab('log_config', _('Log Config'));
|
||||
|
||||
o = s.taboption('log_config', form.Flag, 'scheduled_clear', _('Scheduled Clear'));
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.option(form.Value, 'log_cleanup_cron_expression', _('Log Cleanup Cron Expression'));
|
||||
|
||||
o = s.taboption('log_config', form.Value, 'scheduled_clear_cron', _('Scheduled Clear Cron'));
|
||||
o.retain = true;
|
||||
o.rmempty = false;
|
||||
o.placeholder = '0 4 * * *';
|
||||
o.depends('log_cleanup_enabled', '1');
|
||||
o.description = _('Run unconditional log cleanup at the configured cron schedule.');
|
||||
o.depends('scheduled_clear', '1');
|
||||
|
||||
o = s.option(form.Flag, 'log_cleanup_size_enabled', _('Size-based Log Cleanup'));
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.option(form.Value, 'log_cleanup_size_check_cron_expression', _('Log Size Check Cron Expression'));
|
||||
o = s.taboption('log_config', form.Value, 'scheduled_clear_size_limit', _('Scheduled Clear Size Limit'));
|
||||
o.retain = true;
|
||||
o.rmempty = false;
|
||||
o.placeholder = '*/30 * * * *';
|
||||
o.depends('log_cleanup_size_enabled', '1');
|
||||
o.description = _('Check log size at the configured cron schedule before cleaning up.');
|
||||
|
||||
o = s.option(form.Value, 'log_cleanup_size_mb', _('Log Cleanup Size Threshold (MB)'));
|
||||
o.datatype = 'uinteger';
|
||||
o.placeholder = '50';
|
||||
o.depends('log_cleanup_size_enabled', '1');
|
||||
o.description = _('Clear app, core and debug logs when their total size reaches this threshold.');
|
||||
o.depends('scheduled_clear', '1');
|
||||
|
||||
s = m.section(form.NamedSection, 'placeholder', 'placeholder', _('Log'));
|
||||
o = s.taboption('log_config', form.ListValue, 'scheduled_clear_size_limit_unit', _('Scheduled Clear Size Limit Unit'));
|
||||
o.retain = true;
|
||||
o.rmempty = false;
|
||||
o.depends('scheduled_clear', '1');
|
||||
o.value('KB', 'KB');
|
||||
o.value('MB', 'MB');
|
||||
o.value('GB', 'GB');
|
||||
|
||||
s.tab('app_log', _('App Log'));
|
||||
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
'use strict';
|
||||
'require form';
|
||||
'require view';
|
||||
'require uci';
|
||||
'require fs';
|
||||
'require network';
|
||||
'require poll';
|
||||
'require tools.widgets as widgets';
|
||||
'require tools.momo as momo';
|
||||
|
||||
return view.extend({
|
||||
load: function () {
|
||||
return Promise.all([
|
||||
uci.load('momo'),
|
||||
]);
|
||||
},
|
||||
render: function (data) {
|
||||
let m, s, o;
|
||||
|
||||
m = new form.Map('momo');
|
||||
|
||||
s = m.section(form.NamedSection, 'mixin', 'mixin', _('Mixin Option'));
|
||||
|
||||
s.tab('log', _('Log Config'));
|
||||
|
||||
o = s.taboption('log', form.ListValue, 'log_disabled', _('Log Disabled'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('log', form.ListValue, 'log_level', _('Log Level'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('panic');
|
||||
o.value('fatal');
|
||||
o.value('error');
|
||||
o.value('warn');
|
||||
o.value('info');
|
||||
o.value('debug');
|
||||
o.value('trace');
|
||||
|
||||
o = s.taboption('log', form.ListValue, 'log_timestamp', _('Log Timestamp'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('log', form.Value, 'log_output', _('Log Output'));
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
s.tab('dns', _('DNS Config'));
|
||||
|
||||
o = s.taboption('dns', form.ListValue, 'dns_strategy', _('DNS Strategy'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('prefer_ipv4', _('Prefer IPv4'));
|
||||
o.value('prefer_ipv6', _('Prefer IPv6'));
|
||||
o.value('ipv4_only', _('IPv4 Only'));
|
||||
o.value('ipv6_only', _('IPv6 Only'));
|
||||
|
||||
o = s.taboption('dns', form.ListValue, 'dns_disable_cache', _('DNS Disable Cache'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('dns', form.ListValue, 'dns_disable_expire', _('DNS Disable Expire'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('dns', form.ListValue, 'dns_independent_cache', _('DNS Independent Cache'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('dns', form.Value, 'dns_cache_capacity', _('DNS Cache Capacity'));
|
||||
o.datatype = 'uinteger';
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
o = s.taboption('dns', form.ListValue, 'dns_reverse_mapping', _('DNS Reverse Mapping'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
s.tab('ntp', _('NTP Config'));
|
||||
|
||||
o = s.taboption('ntp', form.ListValue, 'ntp_enabled', _('NTP Enabled'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('ntp', form.Value, 'ntp_server', _('NTP Server'));
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
o = s.taboption('ntp', form.Value, 'ntp_server_port', _('NTP Server Port'));
|
||||
o.datatype = 'port';
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
o = s.taboption('ntp', form.Value, 'ntp_interval', _('NTP Interval'));
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
s.tab('cache', _('Cache Config'));
|
||||
|
||||
o = s.taboption('cache', form.ListValue, 'cache_enabled', _('Cache Enabled'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('cache', form.Value, 'cache_path', _('Cache Path'));
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
o = s.taboption('cache', form.ListValue, 'cache_store_fakeip', _('Cache Store FakeIP'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
o = s.taboption('cache', form.ListValue, 'cache_store_rdrc', _('Cache Store RDRC'));
|
||||
o.optional = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('0', _('Disable'));
|
||||
o.value('1', _('Enable'));
|
||||
|
||||
s.tab('external_control', _('External Control Config'));
|
||||
|
||||
o = s.taboption('external_control', form.Value, 'external_control_ui_path', _('UI Path'));
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
o = s.taboption('external_control', form.Value, 'external_control_ui_download_url', _('UI Download Url'));
|
||||
o.placeholder = _('Unmodified');
|
||||
o.value('https://github.com/Zephyruso/zashboard/releases/latest/download/dist-cdn-fonts.zip', 'Zashboard (CDN Fonts)');
|
||||
o.value('https://github.com/Zephyruso/zashboard/releases/latest/download/dist.zip', 'Zashboard');
|
||||
o.value('https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip', 'MetaCubeXD');
|
||||
o.value('https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip', 'YACD');
|
||||
o.value('https://github.com/MetaCubeX/Razord-meta/archive/refs/heads/gh-pages.zip', 'Razord');
|
||||
|
||||
o = s.taboption('external_control', form.Value, 'external_control_api_listen', _('API Listen'));
|
||||
o.datatype = 'ipaddrport(1)';
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
o = s.taboption('external_control', form.Value, 'external_control_api_secret', _('API Secret'));
|
||||
o.password = true;
|
||||
o.placeholder = _('Unmodified');
|
||||
|
||||
return m.render();
|
||||
}
|
||||
});
|
||||
@@ -1,6 +1,14 @@
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:144
|
||||
msgid "API Listen"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:148
|
||||
msgid "API Secret"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:69
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:122
|
||||
msgid "Access Control"
|
||||
@@ -24,7 +32,7 @@ msgstr ""
|
||||
msgid "App Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:53
|
||||
msgid "App Log"
|
||||
msgstr ""
|
||||
|
||||
@@ -56,6 +64,26 @@ msgstr ""
|
||||
msgid "CGroup"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:108
|
||||
msgid "Cache Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:110
|
||||
msgid "Cache Enabled"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:116
|
||||
msgid "Cache Path"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:119
|
||||
msgid "Cache Store FakeIP"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:125
|
||||
msgid "Cache Store RDRC"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/editor.js:27
|
||||
msgid "Choose File"
|
||||
msgstr ""
|
||||
@@ -64,8 +92,8 @@ msgstr ""
|
||||
msgid "Choose Profile"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:33
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:66
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:57
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:90
|
||||
msgid "Clear Log"
|
||||
msgstr ""
|
||||
|
||||
@@ -74,7 +102,7 @@ msgstr ""
|
||||
msgid "Commonly Used Port"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:62
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:86
|
||||
msgid "Core Log"
|
||||
msgstr ""
|
||||
|
||||
@@ -90,16 +118,40 @@ msgstr ""
|
||||
msgid "Core Version"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:117
|
||||
msgid "Cron Expression"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:99
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:165
|
||||
msgid "DNS"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:95
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:80
|
||||
msgid "DNS Cache Capacity"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:52
|
||||
msgid "DNS Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:62
|
||||
msgid "DNS Disable Cache"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:68
|
||||
msgid "DNS Disable Expire"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:74
|
||||
msgid "DNS Independent Cache"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:84
|
||||
msgid "DNS Reverse Mapping"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:54
|
||||
msgid "DNS Strategy"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:119
|
||||
msgid "Debug Log"
|
||||
msgstr ""
|
||||
|
||||
@@ -111,6 +163,16 @@ msgstr ""
|
||||
msgid "Destination UDP Port to Proxy"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:46
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:65
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:71
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:77
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:87
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:95
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:113
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:122
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:128
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:53
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:60
|
||||
msgid "Disable"
|
||||
@@ -121,11 +183,21 @@ msgid "Edit Subscription"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/editor.js:25
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:37
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:45
|
||||
msgid "Editor"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:96
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:30
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:47
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:66
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:72
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:78
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:88
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:96
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:114
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:123
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:129
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:33
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:66
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:77
|
||||
@@ -138,6 +210,10 @@ msgstr ""
|
||||
msgid "Expire At"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:131
|
||||
msgid "External Control Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:48
|
||||
msgid "Fake-IP Ping Hijack"
|
||||
msgstr ""
|
||||
@@ -155,7 +231,7 @@ msgstr ""
|
||||
msgid "General Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:99
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:123
|
||||
msgid "Generate & Download"
|
||||
msgstr ""
|
||||
|
||||
@@ -183,6 +259,10 @@ msgstr ""
|
||||
msgid "IPv4 DNS Hijack"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:59
|
||||
msgid "IPv4 Only"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:42
|
||||
msgid "IPv4 Proxy"
|
||||
msgstr ""
|
||||
@@ -191,6 +271,10 @@ msgstr ""
|
||||
msgid "IPv6 DNS Hijack"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:60
|
||||
msgid "IPv6 Only"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:45
|
||||
msgid "IPv6 Proxy"
|
||||
msgstr ""
|
||||
@@ -208,19 +292,68 @@ msgid "Local"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:27
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:45
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:53
|
||||
msgid "Log"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:24
|
||||
msgid "Log Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:26
|
||||
msgid "Log Disabled"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:32
|
||||
msgid "Log Level"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:49
|
||||
msgid "Log Output"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:43
|
||||
msgid "Log Timestamp"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:194
|
||||
msgid "Misc"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:29
|
||||
msgid "Mixin Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:22
|
||||
msgid "Mixin Option"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:38
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:3
|
||||
msgid "Momo"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:90
|
||||
msgid "NTP Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:92
|
||||
msgid "NTP Enabled"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:105
|
||||
msgid "NTP Interval"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:98
|
||||
msgid "NTP Server"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:101
|
||||
msgid "NTP Server Port"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:15
|
||||
msgid "Not Running"
|
||||
msgstr ""
|
||||
@@ -241,6 +374,14 @@ msgstr ""
|
||||
msgid "Prefer"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:57
|
||||
msgid "Prefer IPv4"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:58
|
||||
msgid "Prefer IPv6"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/profile.js:21
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:21
|
||||
msgid "Profile"
|
||||
@@ -257,7 +398,7 @@ msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:31
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:29
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:37
|
||||
msgid "Proxy Config"
|
||||
msgstr ""
|
||||
|
||||
@@ -297,12 +438,32 @@ msgstr ""
|
||||
msgid "Running"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:31
|
||||
msgid "Scheduled Clear"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:34
|
||||
msgid "Scheduled Clear Cron"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:39
|
||||
msgid "Scheduled Clear Size Limit"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:45
|
||||
msgid "Scheduled Clear Size Limit Unit"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:114
|
||||
msgid "Scheduled Restart"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:56
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:89
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:117
|
||||
msgid "Scheduled Restart Cron"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:80
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:113
|
||||
msgid "Scroll To Bottom"
|
||||
msgstr ""
|
||||
|
||||
@@ -385,6 +546,14 @@ msgstr ""
|
||||
msgid "UDP Mode"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:136
|
||||
msgid "UI Download Url"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:133
|
||||
msgid "UI Path"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:139
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:143
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:147
|
||||
@@ -394,6 +563,31 @@ msgstr ""
|
||||
msgid "Unlimited"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:28
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:34
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:45
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:50
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:56
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:64
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:70
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:76
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:82
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:86
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:94
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:99
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:103
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:106
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:112
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:117
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:121
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:127
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:134
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:137
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:146
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:150
|
||||
msgid "Unmodified"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/profile.js:63
|
||||
msgid "Update"
|
||||
msgstr ""
|
||||
@@ -425,39 +619,3 @@ msgstr ""
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:128
|
||||
msgid "procd Config"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:47
|
||||
msgid "Check log size at the configured cron schedule before cleaning up."
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:53
|
||||
msgid "Clear app, core and debug logs when their total size reaches this threshold."
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:27
|
||||
msgid "Log Cleanup"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:32
|
||||
msgid "Log Cleanup Cron Expression"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:49
|
||||
msgid "Log Cleanup Size Threshold (MB)"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:42
|
||||
msgid "Log Size Check Cron Expression"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:37
|
||||
msgid "Run unconditional log cleanup at the configured cron schedule."
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:29
|
||||
msgid "Scheduled Log Cleanup"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:39
|
||||
msgid "Size-based Log Cleanup"
|
||||
msgstr ""
|
||||
@@ -8,6 +8,14 @@ msgstr ""
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:144
|
||||
msgid "API Listen"
|
||||
msgstr "API 监听"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:148
|
||||
msgid "API Secret"
|
||||
msgstr "API 密码"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:69
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:122
|
||||
msgid "Access Control"
|
||||
@@ -31,7 +39,7 @@ msgstr "全部端口"
|
||||
msgid "App Config"
|
||||
msgstr "插件配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:53
|
||||
msgid "App Log"
|
||||
msgstr "插件日志"
|
||||
|
||||
@@ -63,6 +71,26 @@ msgstr "绕过 FWMark"
|
||||
msgid "CGroup"
|
||||
msgstr "控制组"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:108
|
||||
msgid "Cache Config"
|
||||
msgstr "缓存配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:110
|
||||
msgid "Cache Enabled"
|
||||
msgstr "启用缓存"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:116
|
||||
msgid "Cache Path"
|
||||
msgstr "缓存文件路径"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:119
|
||||
msgid "Cache Store FakeIP"
|
||||
msgstr "缓存 FakeIP"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:125
|
||||
msgid "Cache Store RDRC"
|
||||
msgstr "缓存 RDRC"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/editor.js:27
|
||||
msgid "Choose File"
|
||||
msgstr "选择文件"
|
||||
@@ -71,8 +99,8 @@ msgstr "选择文件"
|
||||
msgid "Choose Profile"
|
||||
msgstr "选择配置文件"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:33
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:66
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:57
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:90
|
||||
msgid "Clear Log"
|
||||
msgstr "清空日志"
|
||||
|
||||
@@ -81,7 +109,7 @@ msgstr "清空日志"
|
||||
msgid "Commonly Used Port"
|
||||
msgstr "常用端口"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:62
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:86
|
||||
msgid "Core Log"
|
||||
msgstr "核心日志"
|
||||
|
||||
@@ -97,16 +125,40 @@ msgstr "核心状态"
|
||||
msgid "Core Version"
|
||||
msgstr "核心版本"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:117
|
||||
msgid "Cron Expression"
|
||||
msgstr "Cron 表达式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:99
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:165
|
||||
msgid "DNS"
|
||||
msgstr "DNS"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:95
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:80
|
||||
msgid "DNS Cache Capacity"
|
||||
msgstr "DNS 缓存容量"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:52
|
||||
msgid "DNS Config"
|
||||
msgstr "DNS 配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:62
|
||||
msgid "DNS Disable Cache"
|
||||
msgstr "禁用 DNS 缓存"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:68
|
||||
msgid "DNS Disable Expire"
|
||||
msgstr "禁用 DNS 过期"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:74
|
||||
msgid "DNS Independent Cache"
|
||||
msgstr "DNS 独立缓存"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:84
|
||||
msgid "DNS Reverse Mapping"
|
||||
msgstr "DNS 反向映射"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:54
|
||||
msgid "DNS Strategy"
|
||||
msgstr "DNS 策略"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:119
|
||||
msgid "Debug Log"
|
||||
msgstr "调试日志"
|
||||
|
||||
@@ -118,6 +170,16 @@ msgstr "要代理的 TCP 目标端口"
|
||||
msgid "Destination UDP Port to Proxy"
|
||||
msgstr "要代理的 UDP 目标端口"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:46
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:65
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:71
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:77
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:87
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:95
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:113
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:122
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:128
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:53
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:60
|
||||
msgid "Disable"
|
||||
@@ -128,11 +190,21 @@ msgid "Edit Subscription"
|
||||
msgstr "编辑订阅"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/editor.js:25
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:37
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:45
|
||||
msgid "Editor"
|
||||
msgstr "编辑器"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:96
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:30
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:47
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:66
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:72
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:78
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:88
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:96
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:114
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:123
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:129
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:33
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:66
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:77
|
||||
@@ -145,6 +217,10 @@ msgstr "启用"
|
||||
msgid "Expire At"
|
||||
msgstr "到期时间"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:131
|
||||
msgid "External Control Config"
|
||||
msgstr "外部控制配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:48
|
||||
msgid "Fake-IP Ping Hijack"
|
||||
msgstr "Fake-IP Ping 劫持"
|
||||
@@ -162,7 +238,7 @@ msgstr "文件:"
|
||||
msgid "General Config"
|
||||
msgstr "全局配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:99
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:123
|
||||
msgid "Generate & Download"
|
||||
msgstr "生成并下载"
|
||||
|
||||
@@ -190,6 +266,10 @@ msgstr "使用说明"
|
||||
msgid "IPv4 DNS Hijack"
|
||||
msgstr "IPv4 DNS 劫持"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:59
|
||||
msgid "IPv4 Only"
|
||||
msgstr "仅 IPv4"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:42
|
||||
msgid "IPv4 Proxy"
|
||||
msgstr "IPv4 代理"
|
||||
@@ -198,6 +278,10 @@ msgstr "IPv4 代理"
|
||||
msgid "IPv6 DNS Hijack"
|
||||
msgstr "IPv6 DNS 劫持"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:60
|
||||
msgid "IPv6 Only"
|
||||
msgstr "仅 IPv6"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:45
|
||||
msgid "IPv6 Proxy"
|
||||
msgstr "IPv6 代理"
|
||||
@@ -215,19 +299,68 @@ msgid "Local"
|
||||
msgstr "本地"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:27
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:45
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:53
|
||||
msgid "Log"
|
||||
msgstr "日志"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:24
|
||||
msgid "Log Config"
|
||||
msgstr "日志配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:26
|
||||
msgid "Log Disabled"
|
||||
msgstr "禁用日志"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:32
|
||||
msgid "Log Level"
|
||||
msgstr "日志级别"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:49
|
||||
msgid "Log Output"
|
||||
msgstr "日志输出文件路径"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:43
|
||||
msgid "Log Timestamp"
|
||||
msgstr "打印时间戳"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:194
|
||||
msgid "Misc"
|
||||
msgstr "杂项"
|
||||
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:29
|
||||
msgid "Mixin Config"
|
||||
msgstr "混入配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:22
|
||||
msgid "Mixin Option"
|
||||
msgstr "混入选项"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:38
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:3
|
||||
msgid "Momo"
|
||||
msgstr "Momo"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:90
|
||||
msgid "NTP Config"
|
||||
msgstr "NTP 配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:92
|
||||
msgid "NTP Enabled"
|
||||
msgstr "启用 NTP"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:105
|
||||
msgid "NTP Interval"
|
||||
msgstr "NTP 时间同步间隔"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:98
|
||||
msgid "NTP Server"
|
||||
msgstr "NTP 服务地址"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:101
|
||||
msgid "NTP Server Port"
|
||||
msgstr "NTP 服务端口"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:15
|
||||
msgid "Not Running"
|
||||
msgstr "未在运行"
|
||||
@@ -248,6 +381,14 @@ msgstr "打开面板"
|
||||
msgid "Prefer"
|
||||
msgstr "优先"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:57
|
||||
msgid "Prefer IPv4"
|
||||
msgstr "优先 IPv4"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:58
|
||||
msgid "Prefer IPv6"
|
||||
msgstr "优先 IPv6"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/profile.js:21
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:21
|
||||
msgid "Profile"
|
||||
@@ -264,7 +405,7 @@ msgstr "代理"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:29
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/proxy.js:31
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:29
|
||||
#: applications/luci-app-momo/root/usr/share/luci/menu.d/luci-app-momo.json:37
|
||||
msgid "Proxy Config"
|
||||
msgstr "代理配置"
|
||||
|
||||
@@ -304,12 +445,32 @@ msgstr "路由器代理"
|
||||
msgid "Running"
|
||||
msgstr "运行中"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:31
|
||||
msgid "Scheduled Clear"
|
||||
msgstr "定时清除""
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:34
|
||||
msgid "Scheduled Clear Cron"
|
||||
msgstr "Cron 表达式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:39
|
||||
msgid "Scheduled Clear Size Limit"
|
||||
msgstr "日志大小上限"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:45
|
||||
msgid "Scheduled Clear Size Limit Unit"
|
||||
msgstr "日志大小上限单位"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:114
|
||||
msgid "Scheduled Restart"
|
||||
msgstr "定时重启"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:56
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:89
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:117
|
||||
msgid "Scheduled Restart Cron"
|
||||
msgstr "Cron 表达式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:80
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:113
|
||||
msgid "Scroll To Bottom"
|
||||
msgstr "滚动到底部"
|
||||
|
||||
@@ -392,6 +553,14 @@ msgstr "在 OpenWrt 上使用 sing-box 进行透明代理"
|
||||
msgid "UDP Mode"
|
||||
msgstr "UDP 模式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:136
|
||||
msgid "UI Download Url"
|
||||
msgstr "UI 下载地址"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:133
|
||||
msgid "UI Path"
|
||||
msgstr "UI 路径"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:139
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:143
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/app.js:147
|
||||
@@ -401,6 +570,31 @@ msgstr "UDP 模式"
|
||||
msgid "Unlimited"
|
||||
msgstr "无限制"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:28
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:34
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:45
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:50
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:56
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:64
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:70
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:76
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:82
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:86
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:94
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:99
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:103
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:106
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:112
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:117
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:121
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:127
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:134
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:137
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:146
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/mixin.js:150
|
||||
msgid "Unmodified"
|
||||
msgstr "不修改"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/profile.js:63
|
||||
msgid "Update"
|
||||
msgstr "更新"
|
||||
@@ -433,38 +627,34 @@ msgstr "用户代理(UA)"
|
||||
msgid "procd Config"
|
||||
msgstr "procd 配置"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:47
|
||||
msgid "Check log size at the configured cron schedule before cleaning up."
|
||||
msgstr "按设定的 Cron 周期检查日志大小,满足条件后再清理。"
|
||||
#~ msgid "Cron Expression"
|
||||
#~ msgstr "Cron 表达式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:53
|
||||
msgid "Clear app, core and debug logs when their total size reaches this threshold."
|
||||
msgstr "当插件日志、核心日志和调试日志总大小达到该阈值时自动清理。"
|
||||
#~ msgid "Check log size at the configured cron schedule before cleaning up."
|
||||
#~ msgstr "按设定的 Cron 周期检查日志大小,满足条件后再清理。"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:27
|
||||
msgid "Log Cleanup"
|
||||
msgstr "日志清理"
|
||||
#~ msgid ""
|
||||
#~ "Clear app, core and debug logs when their total size reaches this "
|
||||
#~ "threshold."
|
||||
#~ msgstr "当插件日志、核心日志和调试日志总大小达到该阈值时自动清理。"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:32
|
||||
msgid "Log Cleanup Cron Expression"
|
||||
msgstr "日志清理 Cron 表达式"
|
||||
#~ msgid "Log Cleanup"
|
||||
#~ msgstr "日志清理"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:49
|
||||
msgid "Log Cleanup Size Threshold (MB)"
|
||||
msgstr "日志清理大小阈值(MB)"
|
||||
#~ msgid "Log Cleanup Cron Expression"
|
||||
#~ msgstr "日志清理 Cron 表达式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:42
|
||||
msgid "Log Size Check Cron Expression"
|
||||
msgstr "日志大小检查 Cron 表达式"
|
||||
#~ msgid "Log Cleanup Size Threshold (MB)"
|
||||
#~ msgstr "日志清理大小阈值(MB)"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:37
|
||||
msgid "Run unconditional log cleanup at the configured cron schedule."
|
||||
msgstr "按设定的 Cron 时间无条件执行日志清理。"
|
||||
#~ msgid "Log Size Check Cron Expression"
|
||||
#~ msgstr "日志大小检查 Cron 表达式"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:29
|
||||
msgid "Scheduled Log Cleanup"
|
||||
msgstr "定时日志清理"
|
||||
#~ msgid "Run unconditional log cleanup at the configured cron schedule."
|
||||
#~ msgstr "按设定的 Cron 时间无条件执行日志清理。"
|
||||
|
||||
#: applications/luci-app-momo/htdocs/luci-static/resources/view/momo/log.js:39
|
||||
msgid "Size-based Log Cleanup"
|
||||
msgstr "按大小触发日志清理"
|
||||
#~ msgid "Scheduled Log Cleanup"
|
||||
#~ msgstr "定时日志清理"
|
||||
|
||||
#~ msgid "Size-based Log Cleanup"
|
||||
#~ msgstr "按大小触发日志清理"
|
||||
@@ -25,9 +25,17 @@
|
||||
"path": "momo/profile"
|
||||
}
|
||||
},
|
||||
"admin/services/momo/mixin": {
|
||||
"title": "Mixin Config",
|
||||
"order": 30,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "momo/mixin"
|
||||
}
|
||||
},
|
||||
"admin/services/momo/proxy": {
|
||||
"title": "Proxy Config",
|
||||
"order": 30,
|
||||
"order": 40,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "momo/proxy"
|
||||
@@ -35,7 +43,7 @@
|
||||
},
|
||||
"admin/services/momo/editor": {
|
||||
"title": "Editor",
|
||||
"order": 40,
|
||||
"order": 50,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "momo/editor"
|
||||
@@ -43,7 +51,7 @@
|
||||
},
|
||||
"admin/services/momo/log": {
|
||||
"title": "Log",
|
||||
"order": 50,
|
||||
"order": 60,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "momo/log"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import { access, popen, readfile, writefile } from 'fs';
|
||||
import { get_paths, merge_exists, get_users, get_groups, get_cgroups } from '/etc/momo/ucode/include.uc';
|
||||
import { access, popen, readfile } from 'fs';
|
||||
import { get_paths, merge_exists, get_users, get_groups, get_cgroups, load_profile, save_profile } from '/etc/momo/ucode/include.uc';
|
||||
|
||||
const methods = {
|
||||
get_paths: {
|
||||
@@ -40,9 +40,8 @@ const methods = {
|
||||
profile: {
|
||||
args: { defaults: {} },
|
||||
call: function(req) {
|
||||
const paths = get_paths();
|
||||
const defaults = req.args?.defaults ?? {};
|
||||
const profile = json(readfile(paths.run_profile_path));
|
||||
const profile = load_profile();
|
||||
return merge_exists(defaults, profile);
|
||||
}
|
||||
},
|
||||
@@ -67,8 +66,7 @@ const methods = {
|
||||
const query = req.args?.query;
|
||||
const body = req.args?.body;
|
||||
|
||||
const paths = get_paths();
|
||||
const profile = json(readfile(paths.run_profile_path));
|
||||
const profile = load_profile();
|
||||
const api_listen = profile['experimental']['clash_api']['external_controller'];
|
||||
const api_secret = profile['experimental']['clash_api']['secret'];
|
||||
|
||||
|
||||
Reference in new issue
Block a user