mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-31 14:50:58 +03:00
fix: reorder options on settings tab
This commit is contained in:
@@ -6,45 +6,6 @@
|
|||||||
|
|
||||||
function createSettingsContent(section) {
|
function createSettingsContent(section) {
|
||||||
let o = section.option(
|
let o = section.option(
|
||||||
form.Flag,
|
|
||||||
'yacd',
|
|
||||||
_('Yacd enable'),
|
|
||||||
`<a href="${main.getClashApiUrl()}/ui" target="_blank">${main.getClashApiUrl()}/ui</a>`,
|
|
||||||
);
|
|
||||||
o.default = '0';
|
|
||||||
o.rmempty = false;
|
|
||||||
|
|
||||||
o = section.option(
|
|
||||||
form.Flag,
|
|
||||||
'exclude_ntp',
|
|
||||||
_('Exclude NTP'),
|
|
||||||
_('Allows you to exclude NTP protocol traffic from the tunnel'),
|
|
||||||
);
|
|
||||||
o.default = '0';
|
|
||||||
o.rmempty = false;
|
|
||||||
|
|
||||||
o = section.option(
|
|
||||||
form.Flag,
|
|
||||||
'quic_disable',
|
|
||||||
_('QUIC disable'),
|
|
||||||
_('For issues with the video stream'),
|
|
||||||
);
|
|
||||||
o.default = '0';
|
|
||||||
o.rmempty = false;
|
|
||||||
|
|
||||||
o = section.option(
|
|
||||||
form.ListValue,
|
|
||||||
'update_interval',
|
|
||||||
_('List Update Frequency'),
|
|
||||||
_('Select how often the lists will be updated'),
|
|
||||||
);
|
|
||||||
Object.entries(main.UPDATE_INTERVAL_OPTIONS).forEach(([key, label]) => {
|
|
||||||
o.value(key, _(label));
|
|
||||||
});
|
|
||||||
o.default = '1d';
|
|
||||||
o.rmempty = false;
|
|
||||||
|
|
||||||
o = section.option(
|
|
||||||
form.ListValue,
|
form.ListValue,
|
||||||
'dns_type',
|
'dns_type',
|
||||||
_('DNS Protocol Type'),
|
_('DNS Protocol Type'),
|
||||||
@@ -170,6 +131,7 @@ function createSettingsContent(section) {
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
widgets.DeviceSelect,
|
widgets.DeviceSelect,
|
||||||
'iface',
|
'iface',
|
||||||
@@ -207,6 +169,54 @@ function createSettingsContent(section) {
|
|||||||
return !isWireless;
|
return !isWireless;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
o = section.option(
|
||||||
|
form.ListValue,
|
||||||
|
'update_interval',
|
||||||
|
_('List Update Frequency'),
|
||||||
|
_('Select how often the lists will be updated'),
|
||||||
|
);
|
||||||
|
Object.entries(main.UPDATE_INTERVAL_OPTIONS).forEach(([key, label]) => {
|
||||||
|
o.value(key, _(label));
|
||||||
|
});
|
||||||
|
o.default = '1d';
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
|
o = section.option(
|
||||||
|
form.Flag,
|
||||||
|
'quic_disable',
|
||||||
|
_('QUIC disable'),
|
||||||
|
_('For issues with the video stream'),
|
||||||
|
);
|
||||||
|
o.default = '0';
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
|
o = section.option(
|
||||||
|
form.Flag,
|
||||||
|
'yacd',
|
||||||
|
_('Yacd enable'),
|
||||||
|
`<a href="${main.getClashApiUrl()}/ui" target="_blank">${main.getClashApiUrl()}/ui</a>`,
|
||||||
|
);
|
||||||
|
o.default = '0';
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
|
o = section.option(
|
||||||
|
form.Flag,
|
||||||
|
'exclude_ntp',
|
||||||
|
_('Exclude NTP'),
|
||||||
|
_('Allows you to exclude NTP protocol traffic from the tunnel'),
|
||||||
|
);
|
||||||
|
o.default = '0';
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
|
o = section.option(
|
||||||
|
form.Flag,
|
||||||
|
'detour',
|
||||||
|
_('Proxy download of lists'),
|
||||||
|
_('Downloading all lists via main Proxy/VPN'),
|
||||||
|
);
|
||||||
|
o.default = '0';
|
||||||
|
o.rmempty = false;
|
||||||
|
|
||||||
o = section.option(
|
o = section.option(
|
||||||
form.Flag,
|
form.Flag,
|
||||||
'mon_restart_ifaces',
|
'mon_restart_ifaces',
|
||||||
@@ -263,17 +273,6 @@ function createSettingsContent(section) {
|
|||||||
);
|
);
|
||||||
o.default = '0';
|
o.default = '0';
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|
||||||
o = section.option(
|
|
||||||
form.Flag,
|
|
||||||
'detour',
|
|
||||||
_('Proxy download of lists'),
|
|
||||||
_('Downloading all lists via main Proxy/VPN'),
|
|
||||||
);
|
|
||||||
o.default = '0';
|
|
||||||
o.rmempty = false;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const EntryPoint = {
|
const EntryPoint = {
|
||||||
|
|||||||
Reference in New Issue
Block a user