1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Remove opkg check in Shadowsocks-libev/rust interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2025-01-27 19:31:26 +01:00
parent 7000aa16b4
commit 32ad6d755c
4 changed files with 8 additions and 0 deletions

View file

@ -230,6 +230,7 @@ return L.Class.extend({
} }
}); });
}, },
/*
option_install_package: function(s, tab) { option_install_package: function(s, tab) {
var bin = s.sectiontype.replace('_', '-'), var bin = s.sectiontype.replace('_', '-'),
opkg_package = 'shadowsocks-libev-' + bin, o; opkg_package = 'shadowsocks-libev-' + bin, o;
@ -246,6 +247,7 @@ return L.Class.extend({
'?query=' + opkg_package, '_blank', 'noopener'); '?query=' + opkg_package, '_blank', 'noopener');
}; };
}, },
*/
parse_uri: function(uri) { parse_uri: function(uri) {
var scheme = 'ss://'; var scheme = 'ss://';
if (uri && uri.indexOf(scheme) === 0) { if (uri && uri.indexOf(scheme) === 0) {

View file

@ -76,9 +76,11 @@ return L.view.extend({
s.tab('advanced', _('Advanced Settings')); s.tab('advanced', _('Advanced Settings'));
s.taboption('general', form.Value, 'label', _('Label')); s.taboption('general', form.Value, 'label', _('Label'));
s.taboption('general', form.Flag, 'disabled', _('Disable')); s.taboption('general', form.Flag, 'disabled', _('Disable'));
/*
if (!res[0]) { if (!res[0]) {
ss.option_install_package(s, 'general'); ss.option_install_package(s, 'general');
} }
*/
ss.options_common(s, 'advanced'); ss.options_common(s, 'advanced');
if (stype === 'ss_server') { if (stype === 'ss_server') {

View file

@ -213,6 +213,7 @@ return L.Class.extend({
} }
}); });
}, },
/*
option_install_package: function(s, tab) { option_install_package: function(s, tab) {
var bin = s.sectiontype.replace('_', '-'), var bin = s.sectiontype.replace('_', '-'),
opkg_package = 'shadowsocks-rust-' + bin, o; opkg_package = 'shadowsocks-rust-' + bin, o;
@ -229,6 +230,7 @@ return L.Class.extend({
'?query=' + opkg_package, '_blank', 'noopener'); '?query=' + opkg_package, '_blank', 'noopener');
}; };
}, },
*/
parse_uri: function(uri) { parse_uri: function(uri) {
var scheme = 'ss://'; var scheme = 'ss://';
if (uri && uri.indexOf(scheme) === 0) { if (uri && uri.indexOf(scheme) === 0) {

View file

@ -76,9 +76,11 @@ return L.view.extend({
s.tab('advanced', _('Advanced Settings')); s.tab('advanced', _('Advanced Settings'));
s.taboption('general', form.Value, 'label', _('Label')); s.taboption('general', form.Value, 'label', _('Label'));
s.taboption('general', form.Flag, 'disabled', _('Disable')); s.taboption('general', form.Flag, 'disabled', _('Disable'));
/*
if (!res[0]) { if (!res[0]) {
ss.option_install_package(s, 'general'); ss.option_install_package(s, 'general');
} }
*/
ss.options_common(s, 'advanced'); ss.options_common(s, 'advanced');
if (stype === 'ss_server') { if (stype === 'ss_server') {