@gkd-kit/inspect 0.0.1711127074422 → 0.0.1711131205915
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-SDq5aPIN.js → ActionCard.vue_vue_type_script_setup_true_lang-BDXkDnlf.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-SDq5aPIN.js.map → ActionCard.vue_vue_type_script_setup_true_lang-BDXkDnlf.js.map} +1 -1
- package/dist/assets/{DevicePage-UqA4DAwe.js → DevicePage-5--ZRTPL.js} +2 -2
- package/dist/assets/{DevicePage-UqA4DAwe.js.map → DevicePage-5--ZRTPL.js.map} +1 -1
- package/dist/assets/{HomePage-xSV_dD5F.js → HomePage-qIwIeTTv.js} +2 -2
- package/dist/assets/{HomePage-xSV_dD5F.js.map → HomePage-qIwIeTTv.js.map} +1 -1
- package/dist/assets/{ImportPage-t94AoQDT.js → ImportPage-hK0szPhs.js} +2 -2
- package/dist/assets/{ImportPage-t94AoQDT.js.map → ImportPage-hK0szPhs.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-6xniOINQ.js → PreviewSharePage-tPbwwgp7.js} +2 -2
- package/dist/assets/{PreviewSharePage-6xniOINQ.js.map → PreviewSharePage-tPbwwgp7.js.map} +1 -1
- package/dist/assets/{SnapshotPage-8L7pFSwn.js → SnapshotPage-VyB6wtO_.js} +40 -40
- package/dist/assets/SnapshotPage-VyB6wtO_.js.map +1 -0
- package/dist/assets/{_404Page-gstCu-u9.js → _404Page-LqQNiBh1.js} +2 -2
- package/dist/assets/{_404Page-gstCu-u9.js.map → _404Page-LqQNiBh1.js.map} +1 -1
- package/dist/assets/{fetch-JCxmN0xn.js → fetch--E9EDFuP.js} +2 -2
- package/dist/assets/{fetch-JCxmN0xn.js.map → fetch--E9EDFuP.js.map} +1 -1
- package/dist/assets/{import-8XEVAp_U.js → import-mR2WB9yJ.js} +2 -2
- package/dist/assets/{import-8XEVAp_U.js.map → import-mR2WB9yJ.js.map} +1 -1
- package/dist/assets/{index-gFKOkau9.js → index-4k0dUBFR.js} +2 -2
- package/dist/assets/{index-gFKOkau9.js.map → index-4k0dUBFR.js.map} +1 -1
- package/dist/assets/{index-a2SDdcaS.js → index-B3R9KVO_.js} +2 -2
- package/dist/assets/{index-a2SDdcaS.js.map → index-B3R9KVO_.js.map} +1 -1
- package/dist/assets/{index-IUH-JiiG.js → index-BMOrHL87.js} +2 -2
- package/dist/assets/{index-IUH-JiiG.js.map → index-BMOrHL87.js.map} +1 -1
- package/dist/assets/{index-ugcRN16N.js → index-LgIwBZG4.js} +4 -4
- package/dist/assets/{index-ugcRN16N.js.map → index-LgIwBZG4.js.map} +1 -1
- package/dist/assets/{index-6ab3yTHv.css → index-roz1hQP3.css} +1 -1
- package/dist/assets/{jszip.min-j3FY_M1z.js → jszip.min-0FdU8cJ8.js} +2 -2
- package/dist/assets/{jszip.min-j3FY_M1z.js.map → jszip.min-0FdU8cJ8.js.map} +1 -1
- package/dist/assets/{node-rqTL-KOA.js → node-2J75ctGR.js} +2 -2
- package/dist/assets/{node-rqTL-KOA.js.map → node-2J75ctGR.js.map} +1 -1
- package/dist/assets/{selector-vlf5w8Ve.js → selector-Ffw1ts0i.js} +2 -2
- package/dist/assets/{selector-vlf5w8Ve.js.map → selector-Ffw1ts0i.js.map} +1 -1
- package/dist/assets/{table-wjcIllec.js → table-P4yGF5vy.js} +2 -2
- package/dist/assets/{table-wjcIllec.js.map → table-P4yGF5vy.js.map} +1 -1
- package/dist/index.html +4 -4
- package/package.json +1 -1
- package/dist/assets/SnapshotPage-8L7pFSwn.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as p,B as e,E as r,M as c,J as l,au as d,aw as _,H as t}from"./index-
|
|
2
|
-
//# sourceMappingURL=_404Page-
|
|
1
|
+
import{h as p,B as e,E as r,M as c,J as l,au as d,aw as _,H as t}from"./index-LgIwBZG4.js";const f={flex:"","flex-col":"","flex-items-center":"","w-100vw":"","pt-50px":"","gap-20px":""},u={key:0},m={key:1},k=p({__name:"_404Page",setup(h){var s;const n=_(),{fullPath:o}=(s=n.redirectedFrom)!=null?s:{};return(i,a)=>(t(),e("div",f,[r(o)?(t(),e("div",u,c("访问的地址 "+r(o)+" 不存在"),1)):(t(),e("div",m,"欢迎来到404页面")),l("a",{href:"/",onClick:a[0]||(a[0]=d(v=>i.$router.replace({path:"/"}),["prevent"]))}," 回到首页 ")]))}});export{k as default};
|
|
2
|
+
//# sourceMappingURL=_404Page-LqQNiBh1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_404Page-
|
|
1
|
+
{"version":3,"file":"_404Page-LqQNiBh1.js","sources":["../../src/views/_404Page.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useRoute } from 'vue-router';\n\nconst route = useRoute();\n\nconst { fullPath } = route.redirectedFrom ?? {};\n</script>\n<template>\n <div flex flex-col flex-items-center w-100vw pt-50px gap-20px>\n <div v-if=\"fullPath\">{{ `访问的地址 ` + fullPath + ` 不存在` }}</div>\n <div v-else>欢迎来到404页面</div>\n <a href=\"/\" @click.prevent=\"$router.replace({ path: `/` })\"> 回到首页 </a>\n </div>\n</template>\n"],"names":["route","useRoute","fullPath","_a"],"mappings":"oPAGA,MAAMA,EAAQC,IAER,CAAE,SAAAC,CAAa,GAAAC,EAAAH,EAAM,iBAAN,KAAAG,EAAwB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as x,bU as qe,bV as De,h as $,r as k,o as h,bW as Ue,aP as xe,bX as Ve,I as Ce,X as I,bY as we,bZ as ce,b_ as de,b$ as Xe,c0 as Ge,F as W,a4 as X,R as G,a6 as z,a7 as q,ac as Ze,c as fe,ad as Qe,$ as E,b as m,c1 as Ye,f as b,u as F,l as B,j as T,m as ue,a1 as Je,a2 as eo,aI as ke,am as N,aQ as oo,as as he,d as j,i as no,Z as Se,N as to,ag as _,aL as $e,q as R,w as io,a9 as Oe,c2 as Ie,c3 as Le,c4 as Pe,c5 as je,P as ge,a3 as ro,c6 as so,A as ao,aK as lo,aO as co,aj as fo,c7 as uo,ah as ho,E as pe,c8 as go,aY as vo,c9 as me,an as po,ax as mo}from"./index-
|
|
1
|
+
import{e as x,bU as qe,bV as De,h as $,r as k,o as h,bW as Ue,aP as xe,bX as Ve,I as Ce,X as I,bY as we,bZ as ce,b_ as de,b$ as Xe,c0 as Ge,F as W,a4 as X,R as G,a6 as z,a7 as q,ac as Ze,c as fe,ad as Qe,$ as E,b as m,c1 as Ye,f as b,u as F,l as B,j as T,m as ue,a1 as Je,a2 as eo,aI as ke,am as N,aQ as oo,as as he,d as j,i as no,Z as Se,N as to,ag as _,aL as $e,q as R,w as io,a9 as Oe,c2 as Ie,c3 as Le,c4 as Pe,c5 as je,P as ge,a3 as ro,c6 as so,A as ao,aK as lo,aO as co,aj as fo,c7 as uo,ah as ho,E as pe,c8 as go,aY as vo,c9 as me,an as po,ax as mo}from"./index-LgIwBZG4.js";function Z(o,e=[],t){const n={};return Object.getOwnPropertyNames(o).forEach(l=>{e.includes(l)||(n[l]=o[l])}),Object.assign(n,t)}const{cubicBezierEaseInOut:A,cubicBezierEaseOut:bo,cubicBezierEaseIn:yo}=qe;function xo({overflow:o="hidden",duration:e=".3s",originalTransition:t="",leavingDelay:n="0s",foldPadding:i=!1,enterToProps:l=void 0,leaveToProps:c=void 0,reverse:d=!1}={}){const r=d?"leave":"enter",a=d?"enter":"leave";return[x(`&.fade-in-height-expand-transition-${a}-from,
|
|
2
2
|
&.fade-in-height-expand-transition-${r}-to`,Object.assign(Object.assign({},l),{opacity:1})),x(`&.fade-in-height-expand-transition-${a}-to,
|
|
3
3
|
&.fade-in-height-expand-transition-${r}-from`,Object.assign(Object.assign({},c),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:i?"0 !important":void 0,paddingBottom:i?"0 !important":void 0})),x(`&.fade-in-height-expand-transition-${a}-active`,`
|
|
4
4
|
overflow: ${o};
|
|
@@ -329,4 +329,4 @@ import{e as x,bU as qe,bV as De,h as $,r as k,o as h,bW as Ue,aP as xe,bX as Ve,
|
|
|
329
329
|
transform: translate(0, 0);
|
|
330
330
|
`)])}const _e=E("n-notification-api"),cn=Object.assign(Object.assign({},T.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),dn=$({name:"NotificationProvider",props:cn,setup(o){const{mergedClsPrefixRef:e}=F(o),t=k([]),n={},i=new Set;function l(v){const f=X(),p=()=>{i.add(f),n[f]&&n[f].hide()},y=G(Object.assign(Object.assign({},v),{key:f,destroy:p,hide:p,deactivate:p})),{max:w}=o;if(w&&t.value.length-i.size>=w){let O=!1,L=0;for(const S of t.value){if(!i.has(S.key)){n[S.key]&&(S.destroy(),O=!0);break}L++}O||t.value.splice(L,1)}return t.value.push(y),y}const c=["info","success","warning","error"].map(v=>f=>l(Object.assign(Object.assign({},f),{type:v})));function d(v){i.delete(v),t.value.splice(t.value.findIndex(f=>f.key===v),1)}const r=T("Notification","-notification",ln,Po,o,e),a={create:l,info:c[0],success:c[1],warning:c[2],error:c[3],open:u,destroyAll:g},s=k(0);I(_e,a),I(Q,{props:o,mergedClsPrefixRef:e,mergedThemeRef:r,wipTransitionCountRef:s});function u(v){return l(v)}function g(){Object.values(t.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:e,notificationList:t,notificationRefs:n,handleAfterLeave:d},a)},render(){var o,e,t;const{placement:n}=this;return h(W,null,(e=(o=this.$slots).default)===null||e===void 0?void 0:e.call(o),this.notificationList.length?h(he,{to:(t=this.to)!==null&&t!==void 0?t:"body"},h(on,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(i=>h(an,Object.assign({ref:l=>{const c=i.key;l===null?delete this.notificationRefs[c]:this.notificationRefs[c]=l}},Z(i,["destroy","hide","deactivate"]),{internalKey:i.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:i.keepAliveOnHover===void 0?this.keepAliveOnHover:i.keepAliveOnHover})))})):null)}});function fn(){const o=z(_e,null);return o===null&&q("use-notification","No outer `n-notification-provider` found."),o}const un=$({name:"InjectionExtractor",props:{onSetup:Function},setup(o,{slots:e}){var t;return(t=o.onSetup)===null||t===void 0||t.call(o),()=>{var n;return(n=e.default)===null||n===void 0?void 0:n.call(e)}}}),hn={message:Go,notification:fn,loadingBar:To,dialog:$o,modal:en};function gn({providersAndProps:o,configProviderProps:e}){let n=uo(()=>h(go,pe(e),{default:()=>o.map(({type:d,Provider:r,props:a})=>h(r,pe(a),{default:()=>h(un,{onSetup:()=>i[d]=hn[d]()})}))}));const i={app:n};let l;return ho&&(l=document.createElement("div"),document.body.appendChild(l),n.mount(l)),Object.assign({unmount:()=>{var d;if(n===null||l===null){vo("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(d=l.parentNode)===null||d===void 0||d.removeChild(l),l=null,n=null}},i)}function vn(o,{configProviderProps:e,messageProviderProps:t,dialogProviderProps:n,notificationProviderProps:i,loadingBarProviderProps:l,modalProviderProps:c}={}){const d=[];return o.forEach(a=>{switch(a){case"message":d.push({type:a,Provider:Xo,props:t});break;case"notification":d.push({type:a,Provider:dn,props:i});break;case"dialog":d.push({type:a,Provider:So,props:n});break;case"loadingBar":d.push({type:a,Provider:Fo,props:l});break;case"modal":d.push({type:a,Provider:Jo,props:c})}}),gn({providersAndProps:d,configProviderProps:e})}const{message:ye,dialog:Pn,loadingBar:jn}=vn(["message","dialog","loadingBar"]),An=(...o)=>{const e=new FormData;return o.forEach(t=>{for(const n in t){const i=t[n];i!==void 0&&(i instanceof File?e.append(n,i,i.name):i instanceof Blob?e.append(n,i):e.append(n,String(i)))}}),e},pn=o=>{const e={};return o.forEach((t,n)=>{e[n]=t}),e},K=async(o=0)=>new Promise(e=>{setTimeout(e,o)}),zn=(()=>{let o;return async e=>{if(o!==e){o=e,K(1e4).then(()=>{o=void 0});try{await navigator.clipboard.writeText(e),ye.success("复制成功")}catch{ye.error("复制失败")}}}})(),Rn=()=>{const o=window.innerHeight>window.innerWidth;ge(()=>{o&&me.classList.add("mobile")}),po(()=>{me.classList.remove("mobile")})},En=o=>{const e=Math.floor((Date.now()-o)/1e3),t=Math.floor(e/31536e3);if(t>=1)return`${t} 年前`;const n=Math.floor(e/2592e3);if(n>=1)return`${n} 月前`;const i=Math.floor(e/86400);if(i>=1)return`${i} 天前`;const l=Math.floor(e/3600);if(l>=1)return`${l} 小时前`;const c=Math.floor(e/60);return c>=1?`${c} 分钟前`:"刚刚"},mn=()=>{},Mn=()=>mn,bn=o=>(...e)=>o()(...e),yn=bn(()=>{var o;return(o=window.__NetworkExtension__)==null?void 0:o.GM_xmlhttpRequest}),xn=()=>{var o;return!!((o=window.__NetworkExtension__)!=null&&o.GM_xmlhttpRequest)},Cn=(o="")=>{const e=new Headers;return o.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(n){return n.startsWith(`
|
|
331
331
|
`)?n.substring(1):n}).forEach(function(n){var c;let i=n.split(":"),l=(c=i.shift())==null?void 0:c.trim();if(l){let d=i.join(":").trim();try{e.append(l,d)}catch{}}}),e},wn=(o="")=>{try{return o===""&&location.href?location.href:o}catch{return o}},kn=async(o,e={},t={})=>{var a;const n=new Request(o,e).clone();if((a=n.signal)!=null&&a.aborted)throw new DOMException("Aborted","AbortError");const i=n.method.toUpperCase(),l=wn(n.url),c=new Headers(n.headers);new Headers(e.headers).forEach((s,u)=>{c.set(u,s)});let d=!1,r;return i!="GET"&&e.body&&(typeof e.body=="string"||e.body instanceof URLSearchParams?r=e.body:e.body instanceof FormData?(r=e.body,c.delete("content-type")):(d=!0,r=await n.blob())),new Promise((s,u)=>{var p;let g={method:i,url:l,headers:pn(c),data:r,binary:d,responseType:"blob",async onload(y){var L;let w;y.response instanceof Blob&&y.response.size==0||(w=(L=y.response)!=null?L:y.responseText),await K();const O=new Response(w,{status:y.status,statusText:y.statusText,headers:Cn(y.responseHeaders)});Object.defineProperty(O,"url",{value:y.finalUrl}),s(O)},async onerror(){await K(),u(new TypeError("Network request onerror failed"))},async ontimeout(){await K(),u(new TypeError("Network request ontimeout failed"))},async onabort(){await K(),u(new DOMException("Aborted","AbortError"))},async onreadystatechange(y){var w;y.readyState===4&&((w=n.signal)==null||w.removeEventListener("abort",f))}};typeof t=="function"?g=t(g):g={...g,...t};const v=yn(g);function f(){v.abort()}(p=n.signal)==null||p.addEventListener("abort",f)})},Sn=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.githubusercontents.com","https://raw.gitmirror.com","https://registry.npmmirror.com"]),$n=o=>(o=new URL(o),o.hostname=="127.0.0.1"||o.hostname=="localhost"||location.protocol=="http:"&&o.protocol=="http:"&&o.hostname.split(".").every(e=>Number.isSafeInteger(parseInt(e)))?!0:Sn.has(o.origin)),On=/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/([0-9]+)\/file\.zip$/,In=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Hn=(o,e)=>{e=e.toString();const{1:t}=e.match(On)||[],{1:n,2:i}=e.match(In)||[];if(t)return location.origin+o.resolve({path:`/i/${t}`}).href;if(n&&i)return`https://m.gkd.li/${n}/${i}`;throw new Error(`github url ${e} should come from gkd-kit/inspect files/assets`)},_n=async(o,e,t)=>{const n=new Request(o),i=new URL(n.url);if($n(i))return fetch(o,{...e,mode:"cors"});if(xn())return kn(o,e);if(t!=null&&t.proxy){const l=new URL("https://proxy-workers.lisonge.workers.dev/");l.searchParams.set("proxyUrl",i.href);const c=new Request(o,e);return fetch(l,{method:c.method,headers:c.headers,body:c.body})}else throw mo.networkErrorDlgVisible=!0,new Error("gm is not supported")};export{K as a,Mn as b,zn as c,Pn as d,xn as e,xo as f,Hn as g,_n as h,On as i,In as j,Z as k,jn as l,ye as m,An as o,En as t,Rn as u};
|
|
332
|
-
//# sourceMappingURL=fetch
|
|
332
|
+
//# sourceMappingURL=fetch--E9EDFuP.js.map
|