mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Remove opkg check in Shadowsocks-libev/rust interface
This commit is contained in:
		
							parent
							
								
									7000aa16b4
								
							
						
					
					
						commit
						32ad6d755c
					
				
					 4 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -230,6 +230,7 @@ return L.Class.extend({
 | 
			
		|||
			}
 | 
			
		||||
		});
 | 
			
		||||
	},
 | 
			
		||||
	/*
 | 
			
		||||
	option_install_package: function(s, tab) {
 | 
			
		||||
		var bin = s.sectiontype.replace('_', '-'),
 | 
			
		||||
			opkg_package = 'shadowsocks-libev-' + bin, o;
 | 
			
		||||
| 
						 | 
				
			
			@ -246,6 +247,7 @@ return L.Class.extend({
 | 
			
		|||
				'?query=' + opkg_package, '_blank', 'noopener');
 | 
			
		||||
		};
 | 
			
		||||
	},
 | 
			
		||||
	*/
 | 
			
		||||
	parse_uri: function(uri) {
 | 
			
		||||
		var scheme = 'ss://';
 | 
			
		||||
		if (uri && uri.indexOf(scheme) === 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,9 +76,11 @@ return L.view.extend({
 | 
			
		|||
					s.tab('advanced', _('Advanced Settings'));
 | 
			
		||||
					s.taboption('general', form.Value, 'label', _('Label'));
 | 
			
		||||
					s.taboption('general', form.Flag, 'disabled', _('Disable'));
 | 
			
		||||
					/*
 | 
			
		||||
					if (!res[0]) {
 | 
			
		||||
						ss.option_install_package(s, 'general');
 | 
			
		||||
					}
 | 
			
		||||
					*/
 | 
			
		||||
					ss.options_common(s, 'advanced');
 | 
			
		||||
 | 
			
		||||
					if (stype === 'ss_server') {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -213,6 +213,7 @@ return L.Class.extend({
 | 
			
		|||
			}
 | 
			
		||||
		});
 | 
			
		||||
	},
 | 
			
		||||
	/*
 | 
			
		||||
	option_install_package: function(s, tab) {
 | 
			
		||||
		var bin = s.sectiontype.replace('_', '-'),
 | 
			
		||||
			opkg_package = 'shadowsocks-rust-' + bin, o;
 | 
			
		||||
| 
						 | 
				
			
			@ -229,6 +230,7 @@ return L.Class.extend({
 | 
			
		|||
				'?query=' + opkg_package, '_blank', 'noopener');
 | 
			
		||||
		};
 | 
			
		||||
	},
 | 
			
		||||
	*/
 | 
			
		||||
	parse_uri: function(uri) {
 | 
			
		||||
		var scheme = 'ss://';
 | 
			
		||||
		if (uri && uri.indexOf(scheme) === 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -76,9 +76,11 @@ return L.view.extend({
 | 
			
		|||
					s.tab('advanced', _('Advanced Settings'));
 | 
			
		||||
					s.taboption('general', form.Value, 'label', _('Label'));
 | 
			
		||||
					s.taboption('general', form.Flag, 'disabled', _('Disable'));
 | 
			
		||||
					/*
 | 
			
		||||
					if (!res[0]) {
 | 
			
		||||
						ss.option_install_package(s, 'general');
 | 
			
		||||
					}
 | 
			
		||||
					*/
 | 
			
		||||
					ss.options_common(s, 'advanced');
 | 
			
		||||
 | 
			
		||||
					if (stype === 'ss_server') {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue