File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
views/HomeView/components Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,16 @@ const getTrayMenus = () => {
8787
8888 if ( ! groupMenusHidden ) {
8989 groupMenus = Object . values ( proxies )
90- . filter (
91- ( v ) =>
92- [
93- ProxyGroupType . Selector ,
94- ProxyGroupType . UrlTest ,
95- ProxyGroupType . Fallback ,
96- ProxyGroupType . Relay ,
97- ProxyGroupType . LoadBalance ,
98- ] . includes ( v . type as ProxyGroupType ) && v . name !== 'GLOBAL' ,
99- )
90+ . filter ( ( v ) => {
91+ if ( v . hidden || v . name === 'GLOBAL' ) return false
92+ return [
93+ ProxyGroupType . Selector ,
94+ ProxyGroupType . UrlTest ,
95+ ProxyGroupType . Fallback ,
96+ ProxyGroupType . Relay ,
97+ ProxyGroupType . LoadBalance ,
98+ ] . includes ( v . type as ProxyGroupType )
99+ } )
100100 . sort ( ( a , b ) => {
101101 const aIndex = proxies . GLOBAL ?. all . indexOf ( a . name ) || 0
102102 const bIndex = proxies . GLOBAL ?. all . indexOf ( b . name ) || 0
Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ const kernelApiStore = useKernelApiStore()
3131const groups = computed (() => {
3232 const { proxies } = kernelApiStore
3333 return Object .values (proxies )
34- .filter (
35- ( v ) =>
36- [
37- ProxyGroupType .Selector ,
38- ProxyGroupType .UrlTest ,
39- ProxyGroupType .Fallback ,
40- ProxyGroupType .Relay ,
41- ProxyGroupType .LoadBalance ,
42- ].includes (v .type as ProxyGroupType ) && v . name !== ' GLOBAL ' ,
43- )
34+ .filter (( v ) => {
35+ if ( v . hidden || v . name === ' GLOBAL ' ) return false
36+ return [
37+ ProxyGroupType .Selector ,
38+ ProxyGroupType .UrlTest ,
39+ ProxyGroupType .Fallback ,
40+ ProxyGroupType .Relay ,
41+ ProxyGroupType .LoadBalance ,
42+ ].includes (v .type as ProxyGroupType )
43+ } )
4444 .sort ((a , b ) => {
4545 const aIndex = proxies .GLOBAL ?.all .indexOf (a .name ) || 0
4646 const bIndex = proxies .GLOBAL ?.all .indexOf (b .name ) || 0
You can’t perform that action at this time.
0 commit comments