diff --git a/luci-app-mihomo/Makefile b/luci-app-mihomo/Makefile index 0496b64a1..81cfaed92 100644 --- a/luci-app-mihomo/Makefile +++ b/luci-app-mihomo/Makefile @@ -1,6 +1,6 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=1.12.0 +PKG_VERSION:=1.13.0 LUCI_TITLE:=LuCI Support for mihomo LUCI_DEPENDS:=+luci-base +mihomo diff --git a/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js b/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js index 8a5112170..b57d44e29 100644 --- a/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js +++ b/luci-app-mihomo/htdocs/luci-static/resources/tools/mihomo.js @@ -112,7 +112,7 @@ return baseclass.extend({ } else { url = `http://${window.location.hostname}:${apiPort}/ui/?host=${window.location.hostname}&hostname=${window.location.hostname}&port=${apiPort}&secret=${apiSecret}`; } - setTimeout(() => window.open(url, '_blank'), 0); + setTimeout(function () { window.open(url, '_blank') }, 0); } else { alert(_('Service is not running.')); } diff --git a/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js b/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js index 9548159c7..e6017b976 100644 --- a/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js +++ b/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js @@ -280,38 +280,57 @@ return view.extend({ o.value('0-65535', _('All Port')); o.value('123 443 8443', _('Commonly Used Port')); - s = m.section(form.TableSection, 'subscription', _('Subscription Config')); + s = m.section(form.GridSection, 'subscription', _('Subscription Config')); s.addremove = true; s.anonymous = true; s.sortable = true; + s.modaltitle = _('Edit Subscription'); o = s.option(form.Value, 'name', _('Subscription Name')); o.rmempty = false; - o.width = '15%'; + + o = s.option(form.Value, 'used', _('Used')); + o.modalonly = false; + o.optional = true; + o.readonly = true; + + o = s.option(form.Value, 'total', _('Total')); + o.modalonly = false; + o.optional = true; + o.readonly = true; + + o = s.option(form.Value, 'expire', _('Expire')); + o.modalonly = false; + o.optional = true; + o.readonly = true; + + o = s.option(form.Button, 'update_subscription'); + o.editable = true; + o.inputstyle = 'positive'; + o.inputtitle = _('Update'); + o.modalonly = false; + o.onclick = function (_, section_id) { + return mihomo.updateSubscription(section_id); + }; o = s.option(form.Value, 'url', _('Subscription Url')); + o.modalonly = true; o.rmempty = false; o = s.option(form.Value, 'user_agent', _('User Agent')); o.default = 'clash'; + o.modalonly = true; o.rmempty = false; - o.width = '15%'; o.value('mihomo'); o.value('clash.meta'); o.value('clash'); o = s.option(form.ListValue, 'prefer', _('Prefer')); o.default = 'remote'; + o.modalonly = true; o.value('remote', _('Remote')); o.value('local', _('Local')); - o = s.option(form.Button, 'update_subscription'); - o.inputstyle = 'positive'; - o.inputtitle = _('Update'); - o.onclick = function (_, section_id) { - return mihomo.updateSubscription(section_id); - }; - s = m.section(form.NamedSection, 'mixin', 'mixin', _('Mixin Config')); s.tab('general', _('General Config')); @@ -357,6 +376,7 @@ return view.extend({ o.value('https://mirror.ghproxy.com/https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip', 'MetaCubeXD'); o.value('https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip', 'YACD'); o.value('https://mirror.ghproxy.com/https://github.com/MetaCubeX/Razord-meta/archive/refs/heads/gh-pages.zip', 'Razord'); + o.value('https://mirror.ghproxy.com/https://github.com/Zephyruso/sing-box-dashboard/archive/refs/heads/gh-pages.zip', 'SD'); o = s.taboption('external_control', form.Value, 'api_port', '*' + ' ' + _('API Port')); o.datatype = 'port'; diff --git a/luci-app-mihomo/po/templates/mihomo.pot b/luci-app-mihomo/po/templates/mihomo.pot index e9e58488a..73af56f56 100644 --- a/luci-app-mihomo/po/templates/mihomo.pot +++ b/luci-app-mihomo/po/templates/mihomo.pot @@ -1,33 +1,33 @@ msgid "" msgstr "Content-Type: text/plain; charset=UTF-8" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:359 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:380 msgid "API Port" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:363 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:384 msgid "API Secret" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:198 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:200 msgid "Access Control" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:201 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:203 msgid "All Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:273 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:278 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:275 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:280 msgid "All Port" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:372 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:393 msgid "Allow Lan" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:202 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:468 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:204 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:489 msgid "Allow Mode" msgstr "" @@ -43,7 +43,7 @@ msgstr "" msgid "App Version" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:330 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:351 msgid "Auto" msgstr "" @@ -51,28 +51,28 @@ msgstr "" msgid "Basic Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:203 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:467 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:205 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:488 msgid "Block Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:252 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:254 msgid "Bypass" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:268 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:270 msgid "Bypass China Mainland IP" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:261 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:263 msgid "Bypass Group" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:254 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:256 msgid "Bypass User" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:113 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:111 #: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/editor.js:25 msgid "Choose Profile" msgstr "" @@ -82,8 +82,8 @@ msgstr "" msgid "Clear Log" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:274 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:279 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:276 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:281 msgid "Commonly Used Port" msgstr "" @@ -91,7 +91,7 @@ msgstr "" msgid "Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:108 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:148 msgid "Core Environment Variable Config" msgstr "" @@ -111,110 +111,118 @@ msgstr "" msgid "Cron Expression" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:439 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:460 msgid "DNS Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:445 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:466 msgid "DNS Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:441 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:462 msgid "DNS Port" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:271 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:273 msgid "Destination TCP Port to Proxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:276 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:278 msgid "Destination UDP Port to Proxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:327 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:348 msgid "Direct Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:332 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:353 msgid "Disable" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:160 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:162 msgid "Disable ECN of quic-go" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:156 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:158 msgid "Disable GSO of quic-go" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:152 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:154 msgid "Disable Loopback Detector" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:148 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:150 msgid "Disable Safe Path Check" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:479 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:500 msgid "DoH Prefer HTTP/3" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:505 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:526 msgid "Domain Name" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:398 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:419 msgid "Edit Authentications" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:461 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:482 msgid "Edit Fake-IP Filters" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:494 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:515 msgid "Edit Hosts" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:536 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:557 msgid "Edit Nameserver Policies" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:513 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:534 msgid "Edit Nameservers" msgstr "" +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:287 +msgid "Edit Subscription" +msgstr "" + #: applications/luci-app-mihomo/root/usr/share/luci/menu.d/luci-app-mihomo.json:22 msgid "Editor" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:110 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:168 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:331 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:406 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:502 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:521 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:544 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:585 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:108 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:170 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:352 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:427 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:523 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:542 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:565 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:606 msgid "Enable" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:436 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:457 msgid "Endpoint Independent NAT" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:348 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:320 +msgid "Expire" +msgstr "" + +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:369 msgid "External Control Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:471 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:492 msgid "Fake-IP Cache" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:465 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:486 msgid "Fake-IP Filter Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:450 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:471 msgid "Fake-IP Range" msgstr "" @@ -234,60 +242,60 @@ msgstr "" msgid "File for Reserved IP6" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:117 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:115 #: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/editor.js:29 msgid "File:" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:427 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:448 msgid "GSO" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:430 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:451 msgid "GSO Max Size" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:315 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:336 msgid "General Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:558 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:579 msgid "GeoData Loader" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:554 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:575 msgid "GeoIP Format" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:571 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:592 msgid "GeoIP(ASN) Url" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:568 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:589 msgid "GeoIP(DAT) Url" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:565 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:586 msgid "GeoIP(MMDB) Url" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:562 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:583 msgid "GeoSite Url" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:574 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:595 msgid "GeoX Auto Update" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:552 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:573 msgid "GeoX Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:577 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:598 msgid "GeoX Update Interval" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:325 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:346 msgid "Global Mode" msgstr "" @@ -295,7 +303,7 @@ msgstr "" msgid "Grant access to mihomo procedures" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:375 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:396 msgid "HTTP Port" msgstr "" @@ -303,44 +311,44 @@ msgstr "" msgid "How To Use" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:508 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:529 msgid "IP" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:180 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:182 msgid "IPv4 DNS Hijack" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:186 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:188 msgid "IPv4 Proxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:337 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:482 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:358 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:503 msgid "IPv6" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:183 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:185 msgid "IPv6 DNS Hijack" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:189 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:191 msgid "IPv6 Proxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:370 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:391 msgid "Inbound Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:245 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:247 msgid "Interface" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:195 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:197 msgid "Lan Proxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:304 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:308 msgid "Local" msgstr "" @@ -348,23 +356,23 @@ msgstr "" msgid "Log" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:317 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:338 msgid "Log Level" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:423 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:444 msgid "MTU" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:329 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:350 msgid "Match Process" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:547 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:568 msgid "Matcher" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:560 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:581 msgid "Memory Conservative Loader" msgstr "" @@ -373,29 +381,29 @@ msgstr "" msgid "MihomoTProxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:383 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:404 msgid "Mixed Port" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:127 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:125 msgid "Mixin" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:313 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:334 msgid "Mixin Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:583 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:604 msgid "Mixin File Content" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:200 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:324 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:202 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:345 msgid "Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:531 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:550 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:552 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:571 msgid "Nameserver" msgstr "" @@ -407,39 +415,39 @@ msgstr "" msgid "Open Dashboard" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:334 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:355 msgid "Outbound Interface" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:395 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:416 msgid "Overwrite Authentication" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:456 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:477 msgid "Overwrite Fake-IP Filter" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:491 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:512 msgid "Overwrite Hosts" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:510 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:531 msgid "Overwrite Nameserver" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:533 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:554 msgid "Overwrite Nameserver Policy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:412 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:433 msgid "Password" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:585 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:606 msgid "Please go to the editor tab to edit the file for mixin" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:301 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:304 msgid "Prefer" msgstr "" @@ -447,15 +455,15 @@ msgstr "" msgid "Profile for Startup" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:164 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:166 msgid "Proxy Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:172 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:174 msgid "Redirect Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:387 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:408 msgid "Redirect Port" msgstr "" @@ -463,11 +471,11 @@ msgstr "" msgid "Reload Service" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:303 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:307 msgid "Remote" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:476 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:497 msgid "Respect Rules" msgstr "" @@ -475,11 +483,11 @@ msgstr "" msgid "Restart Service" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:192 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:194 msgid "Router Proxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:326 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:347 msgid "Rule Mode" msgstr "" @@ -487,11 +495,11 @@ msgstr "" msgid "Running" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:379 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:400 msgid "SOCKS Port" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:367 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:388 msgid "Save Proxy Selection" msgstr "" @@ -509,11 +517,11 @@ msgstr "" msgid "Service is not running." msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:418 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:439 msgid "Stack" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:559 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:580 msgid "Standard Loader" msgstr "" @@ -521,7 +529,7 @@ msgstr "" msgid "Start Delay" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:107 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:128 msgid "Startup Config" msgstr "" @@ -529,50 +537,50 @@ msgstr "" msgid "Status" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:281 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:283 msgid "Subscription Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:286 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:289 msgid "Subscription Name" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:290 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:292 msgid "Subscription Url" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:121 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:119 #: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/editor.js:33 msgid "Subscription:" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:340 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:361 msgid "TCP Keep Alive Idle" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:344 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:365 msgid "TCP Keep Alive Interval" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:171 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:173 msgid "TCP Proxy Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:173 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:177 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:175 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:179 msgid "TPROXY Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:391 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:412 msgid "TPROXY Port" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:416 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:437 msgid "TUN Config" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:174 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:178 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:176 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:180 msgid "TUN Mode" msgstr "" @@ -580,7 +588,11 @@ msgstr "" msgid "Test Profile" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:166 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:315 +msgid "Total" +msgstr "" + +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:168 msgid "Transparent Proxy" msgstr "" @@ -588,19 +600,19 @@ msgstr "" msgid "Transparent Proxy with Mihomo on OpenWrt." msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:524 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:545 msgid "Type" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:176 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:178 msgid "UDP Proxy Mode" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:350 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:371 msgid "UI Name" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:353 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:374 msgid "UI Url" msgstr "" @@ -609,7 +621,7 @@ msgstr "" msgid "Unknown" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:308 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:328 msgid "Update" msgstr "" @@ -617,22 +629,26 @@ msgstr "" msgid "Update Dashboard" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:124 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:122 msgid "Upload Profile" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:488 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:509 msgid "Use Hosts" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:485 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:506 msgid "Use System Hosts" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:293 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:310 +msgid "Used" +msgstr "" + +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:296 msgid "User Agent" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:409 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:430 msgid "Username" msgstr "" diff --git a/luci-app-mihomo/po/zh_Hans/mihomo.po b/luci-app-mihomo/po/zh_Hans/mihomo.po index 5d5e0cd32..6f2b76407 100644 --- a/luci-app-mihomo/po/zh_Hans/mihomo.po +++ b/luci-app-mihomo/po/zh_Hans/mihomo.po @@ -8,33 +8,33 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:359 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:380 msgid "API Port" msgstr "API 端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:363 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:384 msgid "API Secret" msgstr "API 密钥" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:198 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:200 msgid "Access Control" msgstr "访问控制" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:201 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:203 msgid "All Mode" msgstr "全部模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:273 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:278 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:275 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:280 msgid "All Port" msgstr "全部端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:372 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:393 msgid "Allow Lan" msgstr "允许局域网访问" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:202 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:468 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:204 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:489 msgid "Allow Mode" msgstr "白名单模式" @@ -50,7 +50,7 @@ msgstr "插件日志" msgid "App Version" msgstr "插件版本" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:330 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:351 msgid "Auto" msgstr "自动" @@ -58,28 +58,28 @@ msgstr "自动" msgid "Basic Config" msgstr "基础配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:203 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:467 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:205 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:488 msgid "Block Mode" msgstr "黑名单模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:252 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:254 msgid "Bypass" msgstr "绕过" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:268 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:270 msgid "Bypass China Mainland IP" msgstr "绕过中国大陆 IP" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:261 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:263 msgid "Bypass Group" msgstr "绕过用户组" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:254 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:256 msgid "Bypass User" msgstr "绕过用户" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:113 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:111 #: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/editor.js:25 msgid "Choose Profile" msgstr "选择配置文件" @@ -89,8 +89,8 @@ msgstr "选择配置文件" msgid "Clear Log" msgstr "清空日志" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:274 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:279 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:276 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:281 msgid "Commonly Used Port" msgstr "常用端口" @@ -98,7 +98,7 @@ msgstr "常用端口" msgid "Config" msgstr "配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:108 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:148 msgid "Core Environment Variable Config" msgstr "核心环境变量配置" @@ -118,110 +118,118 @@ msgstr "核心版本" msgid "Cron Expression" msgstr "Cron 表达式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:439 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:460 msgid "DNS Config" msgstr "DNS 配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:445 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:466 msgid "DNS Mode" msgstr "DNS 模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:441 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:462 msgid "DNS Port" msgstr "DNS 端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:271 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:273 msgid "Destination TCP Port to Proxy" msgstr "要代理的 TCP 目标端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:276 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:278 msgid "Destination UDP Port to Proxy" msgstr "要代理的 UDP 目标端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:327 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:348 msgid "Direct Mode" msgstr "直连模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:332 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:353 msgid "Disable" msgstr "禁用" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:160 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:162 msgid "Disable ECN of quic-go" msgstr "禁用 quic-go 的显式拥塞通告" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:156 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:158 msgid "Disable GSO of quic-go" msgstr "禁用 quic-go 的通用分段卸载" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:152 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:154 msgid "Disable Loopback Detector" msgstr "禁用回环检测" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:148 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:150 msgid "Disable Safe Path Check" msgstr "禁用安全路径检查" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:479 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:500 msgid "DoH Prefer HTTP/3" msgstr "DoH 优先 HTTP/3" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:505 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:526 msgid "Domain Name" msgstr "域名" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:398 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:419 msgid "Edit Authentications" msgstr "编辑身份验证" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:461 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:482 msgid "Edit Fake-IP Filters" msgstr "编辑 Fake-IP 过滤列表" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:494 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:515 msgid "Edit Hosts" msgstr "编辑 Hosts" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:536 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:557 msgid "Edit Nameserver Policies" msgstr "编辑 DNS 服务器查询策略" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:513 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:534 msgid "Edit Nameservers" msgstr "编辑 DNS 服务器" +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:287 +msgid "Edit Subscription" +msgstr "编辑订阅" + #: applications/luci-app-mihomo/root/usr/share/luci/menu.d/luci-app-mihomo.json:22 msgid "Editor" msgstr "编辑器" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:110 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:168 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:331 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:406 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:502 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:521 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:544 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:585 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:108 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:170 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:352 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:427 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:523 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:542 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:565 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:606 msgid "Enable" msgstr "启用" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:436 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:457 msgid "Endpoint Independent NAT" msgstr "独立于端点的 NAT" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:348 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:320 +msgid "Expire" +msgstr "到期" + +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:369 msgid "External Control Config" msgstr "外部控制配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:471 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:492 msgid "Fake-IP Cache" msgstr "Fake-IP 缓存" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:465 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:486 msgid "Fake-IP Filter Mode" msgstr "Fake-IP 过滤模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:450 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:471 msgid "Fake-IP Range" msgstr "Fake-IP 范围" @@ -241,60 +249,60 @@ msgstr "IPv4 保留地址" msgid "File for Reserved IP6" msgstr "IPv6 保留地址" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:117 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:115 #: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/editor.js:29 msgid "File:" msgstr "文件:" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:427 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:448 msgid "GSO" msgstr "通用分段卸载" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:430 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:451 msgid "GSO Max Size" msgstr "分段最大长度" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:315 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:336 msgid "General Config" msgstr "全局配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:558 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:579 msgid "GeoData Loader" msgstr "GeoData 加载器" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:554 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:575 msgid "GeoIP Format" msgstr "GeoIP 格式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:571 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:592 msgid "GeoIP(ASN) Url" msgstr "GeoIP(ASN) 下载地址" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:568 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:589 msgid "GeoIP(DAT) Url" msgstr "GeoIP(DAT) 下载地址" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:565 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:586 msgid "GeoIP(MMDB) Url" msgstr "GeoIP(MMDB) 下载地址" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:562 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:583 msgid "GeoSite Url" msgstr "GeoSite 下载地址" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:574 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:595 msgid "GeoX Auto Update" msgstr "定时更新GeoX文件" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:552 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:573 msgid "GeoX Config" msgstr "GeoX 配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:577 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:598 msgid "GeoX Update Interval" msgstr "GeoX 文件更新间隔" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:325 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:346 msgid "Global Mode" msgstr "全局模式" @@ -302,7 +310,7 @@ msgstr "全局模式" msgid "Grant access to mihomo procedures" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:375 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:396 msgid "HTTP Port" msgstr "HTTP 端口" @@ -310,44 +318,44 @@ msgstr "HTTP 端口" msgid "How To Use" msgstr "使用说明" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:508 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:529 msgid "IP" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:180 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:182 msgid "IPv4 DNS Hijack" msgstr "IPv4 DNS 劫持" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:186 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:188 msgid "IPv4 Proxy" msgstr "IPv4 代理" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:337 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:482 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:358 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:503 msgid "IPv6" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:183 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:185 msgid "IPv6 DNS Hijack" msgstr "IPv6 DNS 劫持" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:189 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:191 msgid "IPv6 Proxy" msgstr "IPv6 代理" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:370 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:391 msgid "Inbound Config" msgstr "入站配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:245 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:247 msgid "Interface" msgstr "接口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:195 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:197 msgid "Lan Proxy" msgstr "局域网代理" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:304 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:308 msgid "Local" msgstr "本地" @@ -355,23 +363,23 @@ msgstr "本地" msgid "Log" msgstr "日志" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:317 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:338 msgid "Log Level" msgstr "日志级别" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:423 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:444 msgid "MTU" msgstr "最大传输单元" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:329 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:350 msgid "Match Process" msgstr "匹配进程" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:547 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:568 msgid "Matcher" msgstr "匹配" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:560 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:581 msgid "Memory Conservative Loader" msgstr "为内存受限设备优化的加载器" @@ -380,29 +388,29 @@ msgstr "为内存受限设备优化的加载器" msgid "MihomoTProxy" msgstr "" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:383 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:404 msgid "Mixed Port" msgstr "混合端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:127 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:125 msgid "Mixin" msgstr "混入" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:313 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:334 msgid "Mixin Config" msgstr "混入配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:583 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:604 msgid "Mixin File Content" msgstr "混入文件内容" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:200 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:324 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:202 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:345 msgid "Mode" msgstr "模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:531 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:550 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:552 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:571 msgid "Nameserver" msgstr "DNS 服务器" @@ -414,39 +422,39 @@ msgstr "未在运行" msgid "Open Dashboard" msgstr "打开面板" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:334 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:355 msgid "Outbound Interface" msgstr "出站接口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:395 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:416 msgid "Overwrite Authentication" msgstr "覆盖身份验证" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:456 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:477 msgid "Overwrite Fake-IP Filter" msgstr "覆盖 Fake-IP 过滤列表" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:491 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:512 msgid "Overwrite Hosts" msgstr "覆盖 Hosts" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:510 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:531 msgid "Overwrite Nameserver" msgstr "覆盖 DNS 服务器" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:533 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:554 msgid "Overwrite Nameserver Policy" msgstr "覆盖 DNS 服务器查询策略" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:412 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:433 msgid "Password" msgstr "密码" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:585 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:606 msgid "Please go to the editor tab to edit the file for mixin" msgstr "请前往编辑器标签编辑用于混入的文件" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:301 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:304 msgid "Prefer" msgstr "优先" @@ -454,15 +462,15 @@ msgstr "优先" msgid "Profile for Startup" msgstr "用于启动的配置文件" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:164 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:166 msgid "Proxy Config" msgstr "代理配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:172 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:174 msgid "Redirect Mode" msgstr "Redirect 模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:387 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:408 msgid "Redirect Port" msgstr "Redirect 端口" @@ -470,11 +478,11 @@ msgstr "Redirect 端口" msgid "Reload Service" msgstr "重载服务" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:303 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:307 msgid "Remote" msgstr "远程" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:476 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:497 msgid "Respect Rules" msgstr "遵循分流规则" @@ -482,11 +490,11 @@ msgstr "遵循分流规则" msgid "Restart Service" msgstr "重启服务" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:192 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:194 msgid "Router Proxy" msgstr "路由器代理" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:326 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:347 msgid "Rule Mode" msgstr "规则模式" @@ -494,11 +502,11 @@ msgstr "规则模式" msgid "Running" msgstr "运行中" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:379 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:400 msgid "SOCKS Port" msgstr "SOCKS 端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:367 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:388 msgid "Save Proxy Selection" msgstr "保存节点/策略组选择" @@ -516,11 +524,11 @@ msgstr "滚动到底部" msgid "Service is not running." msgstr "服务未在运行。" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:418 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:439 msgid "Stack" msgstr "栈" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:559 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:580 msgid "Standard Loader" msgstr "标准加载器" @@ -528,7 +536,7 @@ msgstr "标准加载器" msgid "Start Delay" msgstr "启动延迟" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:107 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:128 msgid "Startup Config" msgstr "启动配置" @@ -536,50 +544,50 @@ msgstr "启动配置" msgid "Status" msgstr "状态" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:281 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:283 msgid "Subscription Config" msgstr "订阅配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:286 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:289 msgid "Subscription Name" msgstr "订阅名称" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:290 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:292 msgid "Subscription Url" msgstr "订阅链接" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:121 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:119 #: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/editor.js:33 msgid "Subscription:" msgstr "订阅:" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:340 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:361 msgid "TCP Keep Alive Idle" msgstr "TCP Keep Alive 空闲" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:344 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:365 msgid "TCP Keep Alive Interval" msgstr "TCP Keep Alive 间隔" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:171 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:173 msgid "TCP Proxy Mode" msgstr "TCP 代理模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:173 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:177 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:175 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:179 msgid "TPROXY Mode" msgstr "TPROXY 模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:391 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:412 msgid "TPROXY Port" msgstr "TPROXY 端口" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:416 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:437 msgid "TUN Config" msgstr "TUN 配置" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:174 -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:178 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:176 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:180 msgid "TUN Mode" msgstr "TUN 模式" @@ -587,7 +595,11 @@ msgstr "TUN 模式" msgid "Test Profile" msgstr "检查配置文件" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:166 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:315 +msgid "Total" +msgstr "总量" + +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:168 msgid "Transparent Proxy" msgstr "透明代理" @@ -595,19 +607,19 @@ msgstr "透明代理" msgid "Transparent Proxy with Mihomo on OpenWrt." msgstr "在 OpenWrt 上使用 Mihomo 进行透明代理。" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:524 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:545 msgid "Type" msgstr "类型" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:176 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:178 msgid "UDP Proxy Mode" msgstr "UDP 代理模式" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:350 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:371 msgid "UI Name" msgstr "UI 名称" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:353 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:374 msgid "UI Url" msgstr "UI 下载地址" @@ -616,7 +628,7 @@ msgstr "UI 下载地址" msgid "Unknown" msgstr "未知" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:308 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:328 msgid "Update" msgstr "更新" @@ -624,22 +636,26 @@ msgstr "更新" msgid "Update Dashboard" msgstr "更新面板" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:124 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:122 msgid "Upload Profile" msgstr "上传配置文件" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:488 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:509 msgid "Use Hosts" msgstr "使用 Hosts" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:485 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:506 msgid "Use System Hosts" msgstr "使用系统的 Hosts" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:293 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:310 +msgid "Used" +msgstr "已使用" + +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:296 msgid "User Agent" msgstr "用户代理(UA)" -#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:409 +#: applications/luci-app-mihomo/htdocs/luci-static/resources/view/mihomo/config.js:430 msgid "Username" msgstr "用户名" diff --git a/luci-app-mihomo/root/usr/libexec/mihomo-call b/luci-app-mihomo/root/usr/libexec/mihomo-call index 1100baaf6..533ce5343 100755 --- a/luci-app-mihomo/root/usr/libexec/mihomo-call +++ b/luci-app-mihomo/root/usr/libexec/mihomo-call @@ -1,6 +1,6 @@ #!/bin/sh -. $IPKG_INSTROOT/etc/mihomo/scripts/constants.sh +. $IPKG_INSTROOT/etc/mihomo/scripts/include.sh action=$1 shift