update 2025-03-10 04:12:03

This commit is contained in:
actions-user 2025-03-10 04:12:03 +08:00
parent 8d88b36442
commit 5676bb8c08
4 changed files with 11 additions and 1 deletions

View File

@ -616,6 +616,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('Proxy Group'), _('Add a proxy group') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = true;
ss.tab('field_general', _('General fields'));
@ -822,6 +823,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('Routing rule'), _('Add a routing rule') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = false;
so = ss.option(form.Value, 'label', _('Label'));
@ -872,6 +874,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('Sub rule'), _('Add a sub rule') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = false;
so = ss.option(form.Value, 'label', _('Label'));
@ -957,6 +960,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('DNS server'), _('Add a DNS server') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = true;
so = ss.option(form.Value, 'label', _('Label'));
@ -1096,6 +1100,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('DNS policy'), _('Add a DNS policy') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = false;
so = ss.option(form.Value, 'label', _('Label'));

View File

@ -33,6 +33,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('Node'), _('Add a Node') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = true;
ss.tab('field_general', _('General fields'));
@ -813,6 +814,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('Provider'), _('Add a provider') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = false;
/* Remove idle files start */
ss.renderSectionAdd = function(/* ... */) {
@ -1103,6 +1105,7 @@ return view.extend({
ss.nodescriptions = true;
ss.hm_modaltitle = [ _('Proxy chain'), _('Add a proxy chain') ];
ss.hm_prefmt = hm.glossary[ss.sectiontype].prefmt;
ss.hm_field = hm.glossary[ss.sectiontype].field;
ss.hm_lowcase_only = true;
so = ss.option(form.Value, 'label', _('Label'));

View File

@ -144,11 +144,12 @@ return view.extend({
s.nodescriptions = true;
s.hm_modaltitle = [ _('Rule set'), _('Add a rule set') ];
s.hm_prefmt = hm.glossary[s.sectiontype].prefmt;
s.hm_field = hm.glossary[s.sectiontype].field;
s.hm_lowcase_only = false;
/* Import mihomo config and Import rule-set links and Remove idle files start */
s.handleYamlImport = function() {
const field = hm.glossary[s.sectiontype].field;
const section_type = this.sectiontype;
const field = this.hm_field;
const o = new hm.handleImport(this.map, this, _('Import mihomo config'),
_('Please type <code>%s</code> fields of mihomo config.</br>')
.format(field));

View File

@ -61,6 +61,7 @@ return view.extend({
s.nodescriptions = true;
s.hm_modaltitle = [ _('Server'), _('Add a server') ];
s.hm_prefmt = hm.glossary[s.sectiontype].prefmt;
s.hm_field = hm.glossary[s.sectiontype].field;
s.hm_lowcase_only = false;
s.tab('field_general', _('General fields'));