自动更新最新Dashboard、地址库、根证书

This commit is contained in:
Bot
2022-06-18 09:02:13 +00:00
parent ed19fdf63d
commit f3eb5c16c8
64 changed files with 31254 additions and 31187 deletions

View File

@@ -0,0 +1 @@
var L=Object.defineProperty,N=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var T=(e,r,o)=>r in e?L(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,g=(e,r)=>{for(var o in r||(r={}))C.call(r,o)&&T(e,o,r[o]);if(x)for(var o of x(r))k.call(r,o)&&T(e,o,r[o]);return e},f=(e,r)=>N(e,W(r));import{r as _,b as l,j as a,P as m,d as R,N as j,O as I,w as O,Q as z,u as M,C as $,S as A,T as B,U as F,g as H,V as D,h as E}from"./index.1ca2d13d.js";import{r as V,s as Q,f as U}from"./logs.480db4a8.js";import{d as Y}from"./debounce.d080d5e1.js";import{u as q}from"./useRemainingViewPortHeight.a89bff9d.js";import{F as G,p as J}from"./Fab.d363c2c3.js";import{P as K,a as X}from"./play.2aacfa82.js";function Z(e,r){if(e==null)return{};var o=ee(e,r),s,t;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(t=0;t<n.length;t++)s=n[t],!(r.indexOf(s)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,s)||(o[s]=e[s]))}return o}function ee(e,r){if(e==null)return{};var o={},s=Object.keys(e),t,n;for(n=0;n<s.length;n++)t=s[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var y=_.exports.forwardRef(function(e,r){var o=e.color,s=o===void 0?"currentColor":o,t=e.size,n=t===void 0?24:t,p=Z(e,["color","size"]);return l("svg",f(g({ref:r,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},p),{children:[a("circle",{cx:"11",cy:"11",r:"8"}),a("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}))});y.propTypes={color:m.string,size:m.oneOfType([m.string,m.number])};y.displayName="Search";var oe=y;const re="_RuleSearch_muvsu_1",te="_RuleSearchContainer_muvsu_10",ae="_inputWrapper_muvsu_20",ne="_input_muvsu_20",se="_iconWrapper_muvsu_45";var u={RuleSearch:re,RuleSearchContainer:te,inputWrapper:ae,input:ne,iconWrapper:se};function ce({dispatch:e,searchText:r,updateSearchText:o}){const[s,t]=_.exports.useState(r),n=_.exports.useCallback(i=>{e(o(i))},[e,o]),p=_.exports.useMemo(()=>Y(n,300),[n]),h=i=>{t(i.target.value),p(i.target.value)};return a("div",{className:u.RuleSearch,children:l("div",{className:u.RuleSearchContainer,children:[a("div",{className:u.inputWrapper,children:a("input",{type:"text",value:s,onChange:h,className:u.input})}),a("div",{className:u.iconWrapper,children:a(oe,{size:20})})]})})}const le=e=>({searchText:j(e),updateSearchText:I});var ie=R(le)(ce);const pe="_logMeta_pycfb_1",ge="_logType_pycfb_8",ue="_logTime_pycfb_17",he="_logText_pycfb_22",de="_logsWrapper_pycfb_37",fe="_logPlaceholder_pycfb_54",me="_logPlaceholderIcon_pycfb_67";var c={logMeta:pe,logType:ge,logTime:ue,logText:he,logsWrapper:de,logPlaceholder:fe,logPlaceholderIcon:me};const{useCallback:S,useEffect:_e}=E,P=30,ve={debug:"#389d3d",info:"#58c3f2",warning:"#cc5abb",error:"#c11c1c"},ye={debug:"debug",info:"info",warning:"warn",error:"error"};function be({time:e,payload:r,type:o}){return l("div",{className:c.logMeta,children:[a("span",{className:c.logTime,children:e}),l("span",{className:c.logType,style:{color:ve[o]},children:["[ ",ye[o]," ]"]}),a("span",{className:c.logText,children:r})]})}function xe({dispatch:e,logLevel:r,apiConfig:o,logs:s,logStreamingPaused:t}){const n=O(),p=S(()=>{t?V(f(g({},o),{logLevel:r})):Q(),n.app.updateAppConfig("logStreamingPaused",!t)},[o,r,t,n.app]),h=S(v=>e(z(v)),[e]);_e(()=>{U(f(g({},o),{logLevel:r}),h)},[o,r,h]);const[i,b]=q(),{t:d}=M();return l("div",{children:[a($,{title:d("Logs")}),a(ie,{}),a("div",{ref:i,children:s.length===0?l("div",{className:c.logPlaceholder,style:{height:b-P*2},children:[a("div",{className:c.logPlaceholderIcon,children:a(A,{width:200,height:200})}),a("div",{children:d("no_logs")})]}):l("div",{className:c.logsWrapper,style:{height:b-P*2},children:[s.map((v,w)=>a("div",{className:"",children:a(be,g({},v))},w)),a(G,{icon:t?a(K,{size:16}):a(X,{size:16}),mainButtonStyles:t?{background:"#e74c3c"}:{},style:J,text:d(t?"Resume Refresh":"Pause Refresh"),onClick:p})]})})]})}const Te=e=>({logs:B(e),logLevel:F(e),apiConfig:H(e),logStreamingPaused:D(e)});var Ce=R(Te)(xe);export{Ce as default};