mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-26 20:22:51 +08:00
2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{h as s,cy as a}from"./index-zQjLFfuj.js";const n=(e,t)=>`${e}:${t}`;function i(e,t){const l=e.indexOf(":"),o=e.slice(0,l);return l>0&&t.includes(o)?{kind:o,value:e.slice(l+1)}:null}const r={kernel:"flow.v.kernel",userspace:"flow.v.userspace",matched:"flow.v.matched",other_family_trusted:"flow.v.otherFamilyTrusted",failed:"flow.v.failed",not_required:"flow.v.notRequired",unavailable:"flow.v.unavailable",pass:"flow.v.pass",redirect:"flow.v.redirect",hold:"flow.v.hold",arm_direct:"flow.v.armDirect",activate_direct:"flow.v.activateDirect",activate_proxy:"flow.v.activateProxy",drop:"flow.v.drop",started:"flow.v.started",succeeded:"flow.v.succeeded",cancelled:"flow.v.cancelled",transport_ready:"flow.v.transportReady",target_request_sent:"flow.v.targetRequestSent",target_confirmed:"flow.v.targetConfirmed",first_reply:"flow.v.firstReply",terminal:"flow.v.terminal",unknown:"ui.unknown",route_selected:"flow.v.routeSelected",no_new_routing_input:"flow.v.noNewRoutingInput",reply_received:"flow.v.replyReceived",hit:"flow.v.hit",miss:"flow.v.miss",stale:"flow.v.stale",bypass:"flow.v.bypass",hosts:"flow.v.hosts",coalesced:"flow.v.coalesced",cache:"flow.v.cache",upstream:"ui.upstream",lan:"flow.v.lan",wan:"flow.v.wan",tls_sni:"flow.v.tlsSni",http_host:"flow.v.httpHost",quic_sni:"flow.v.quicSni",dns_mapping:"flow.v.dnsMapping",explicit:"flow.v.explicit"},c=e=>e==null?"—":r[e]?{key:r[e]}:e,w=(e,t)=>t&&e?s("rules",{tab:"list",rule:e}):void 0;function d(e){return e?i(e,a):null}function v(e){return s("rules",{tab:"list",add:n(e.kind,e.value)})}export{i as a,v as b,d as p,w as r,n as t,c as w};
|