mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-02-04 10:11:28 +08:00
1 line
2.0 KiB
JavaScript
1 line
2.0 KiB
JavaScript
import{E as e,M as t,W as n}from"./CxatB1L6.js";import{c as r,d as i,f as a,i as o,l as s,m as c,o as l,p as u,r as d,u as f}from"./_v7-ePgP.js";const p=t(`config`,()=>{let t=e(`theme`,`sunset`),p=e(`autoSwitchTheme`,!1),m=e(`favDayTheme`,`nord`),h=e(`favNightTheme`,`sunset`),g=e(`proxiesPreviewType`,u.Auto),_=e(`proxiesOrderingType`,a.NATURAL),v=e(`proxiesDisplayMode`,i.CARD),y=e(`renderProxiesInTwoColumns`,!0),b=e(`hideUnAvailableProxies`,!1),x=e(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),S=e(`autoCloseConns`,!0),C=e(`latencyTestTimeoutDuration`,5e3),w=e(`iconHeight`,24),T=e(`iconMarginRight`,8),E=e(`autoSwitchEndpoint`,!1),D=e(`enableTwemoji`,!1),O=e(`sidebarExpanded`,!1),k=e(`useMobileBottomNav`,!0),A=e(`connectionsTableSize`,c.XS),j=e(`connectionsTableColumnVisibility`,o),M=e(`connectionsTableColumnOrder`,d),N=e(`logsTableSize`,c.XS),P=e(`logLevel`,f.Info),F=e(`logMaxRows`,l),I=e(`quickFilterRegex`,`DIRECT|direct|dns-out`),L=e(`clientSourceIPTags`,[]),R=e(`showNetworkTopology`,!1),z=n(()=>x.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:p,favDayTheme:m,favNightTheme:h,proxiesPreviewType:g,proxiesOrderingType:_,proxiesDisplayMode:v,renderProxiesInTwoColumns:y,hideUnAvailableProxies:b,urlForLatencyTest:x,autoCloseConns:S,latencyTestTimeoutDuration:C,iconHeight:w,iconMarginRight:T,autoSwitchEndpoint:E,enableTwemoji:D,sidebarExpanded:O,useMobileBottomNav:k,connectionsTableSize:A,connectionsTableColumnVisibility:j,connectionsTableColumnOrder:M,quickFilterRegex:I,logsTableSize:N,logLevel:P,logMaxRows:F,clientSourceIPTags:L,showNetworkTopology:R,isLatencyTestByHttps:z,latencyQualityMap:n(()=>z.value?s:r),tableSizeClassName:e=>({[c.XS]:`table-xs`,[c.SM]:`table-sm`,[c.MD]:`table-md`,[c.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{g.value=u.Auto,_.value=a.NATURAL,v.value=i.CARD,y.value=!0,b.value=!1,x.value=`https://www.gstatic.com/generate_204`,S.value=!0,C.value=5e3,w.value=24,T.value=8},resetXdConfig:()=>{p.value=!1,E.value=!1,D.value=!1,k.value=!0,m.value=`nord`,h.value=`sunset`,t.value=`sunset`}}});export{p as t}; |