@windwalker-io/core 4.0.9 → 4.0.10
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/.gulp.json +7 -7
- package/LICENSE +19 -19
- package/dist/debugger/114.js.map +1 -1
- package/dist/debugger/180.js.map +1 -0
- package/dist/debugger/338.js.map +1 -1
- package/dist/debugger/500.js.map +1 -1
- package/dist/debugger/548.js.map +1 -1
- package/dist/debugger/694.js.map +1 -1
- package/dist/debugger/798.js.map +1 -1
- package/dist/debugger/864.js.map +1 -1
- package/dist/debugger/chunk-vendor-114.js +1 -1
- package/dist/debugger/chunk-vendor-114.js.LICENSE.txt +0 -2
- package/dist/debugger/chunk-vendor-180.js +2 -0
- package/dist/debugger/chunk-vendor-338.js +1 -1
- package/dist/debugger/chunk-vendor-338.js.LICENSE.txt +0 -2
- package/dist/debugger/chunk-vendor-500.js +1 -1
- package/dist/debugger/chunk-vendor-500.js.LICENSE.txt +0 -2
- package/dist/debugger/chunk-vendor-548.js +1 -1
- package/dist/debugger/chunk-vendor-548.js.LICENSE.txt +0 -2
- package/dist/debugger/chunk-vendor-694.js +1 -1
- package/dist/debugger/chunk-vendor-694.js.LICENSE.txt +6 -1
- package/dist/debugger/chunk-vendor-798.js +1 -1
- package/dist/debugger/chunk-vendor-798.js.LICENSE.txt +6 -1
- package/dist/debugger/chunk-vendor-864.js +1 -2
- package/dist/debugger/debugger.js +1 -1
- package/dist/debugger/debugger.js.LICENSE.txt +1 -3
- package/dist/debugger/debugger.js.map +1 -1
- package/dist/debugger/dev/chunk-vendor-src_debugger_layouts_DefaultLayout_vue.js +15 -15
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_Dashboard_vue.js +14 -14
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_Database_vue.js +43 -43
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_Events_vue.js +28 -28
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_Request_vue.js +28 -28
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_Routing_vue.js +28 -28
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_System_vue.js +14 -14
- package/dist/debugger/dev/chunk-vendor-src_debugger_views_Timeline_vue.js +29 -29
- package/dist/debugger/dev/{chunk-vendor-vendors-node_modules_sql-formatter_lib_index_js-node_modules_bootstrap_js_src_modal_js.js → chunk-vendor-vendors-node_modules_sql-formatter_lib_index_js.js} +1 -133
- package/dist/debugger-console.js +2 -1
- package/package.json +6 -6
- package/src/debugger/webpack.config.js +9 -9
- package/src/index.mjs +9 -9
- package/dist/debugger/dev/chunk-vendor-scss_debugger_scss.js +0 -219
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see chunk-vendor-338.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[338],{6072:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(1525),o=r(3630),a={key:0},i={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},c={class:"text-xl font-bold text-gray-800"},l=(0,n.Uk)(),u={class:"text-muted"},s=(0,n.Uk)(),d=["href"],f=(0,n.Uk)(),h=r(457),p=r(5054),v=r(4545);const y={name:"DefaultLayout",setup:function(){var t=(0,h.yj)();return{currentId:v.p,currentData:v.I,route:t,goToLast:p.D}}},m=(0,r(4181).Z)(y,[["render",function(t,e,r,h,p,v){var y=(0,n.up)("fa-icon"),m=(0,n.up)("router-link");return h.currentData?((0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",i,[(0,n._)("h1",c,[(0,n.WI)(t.$slots,"title")]),l,(0,n._)("div",u,[(0,n.Wm)(m,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,n.w5)((function(){return[(0,n.Wm)(y,{icon:"fa-solid fa-list"})]})),_:1}),s,(0,n._)("button",{type:"button",onClick:e[0]||(e[0]=function(t){return h.goToLast("/"+h.route.name)}),class:"btn btn-sm btn-success"},[(0,n.Wm)(y,{icon:"fa-solid fa-arrows-rotate"})]),(0,n.Uk)("\r\n /\r\n "+(0,o.zw)(h.currentId)+"\r\n / ",1),(0,n._)("a",{target:"_blank",class:"text-gray-600",href:h.currentData.url},(0,o.zw)(h.currentData.url),9,d)])]),f,(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0)}]])},338:(t,e,r)=>{r.r(e),r.d(e,{default:()=>de});var n=r(1525),o=r(3630),a=(0,n.Uk)("\r\n Database\r\n "),i=(0,n.Uk)(),c={key:0,class:"p-4"},l={class:"nav nav-pills",id:"profilers-tab",role:"tablist"},u={class:"nav-item",role:"presentation"},s=["data-bs-target"],d=(0,n.Uk)(),f={class:"tab-content mt-4",id:"myTabContent"},h=["id"],p=(0,n._)("h4",null,"Queries",-1),v=(0,n.Uk)(),y={class:"my-3"},m=(0,n.Uk)("\r\n Count: "),g={class:"badge bg-info"},b=(0,n.Uk)("\r\n -\r\n Time:\r\n "),w=(0,n.Uk)("\r\n -\r\n Memory:\r\n "),k=(0,n.Uk)(),_={class:"mt-5"},x={class:"mb-4"},L=(0,n.Uk)(),E={class:"table table-striped table-bordered"},C={style:{"font-family":"monospace","font-size":"13px","word-break":"break-all"}},U=(0,n.Uk)(),O=["href"],j=r(5556),z=["id","aria-labelledby","aria-hidden","data-bs-backdrop"],S={class:"modal-content"},D={key:1,class:"modal-header"},M=["id"],P=(0,n.Uk)(),T=(0,n._)("button",{type:"button",class:"close btn-close","data-bs-dismiss":"modal","data-dismiss":"modal","aria-label":"Close"},[(0,n._)("span",{"aria-hidden":"true",class:"visually-hidden"},"×")],-1),H=(0,n.Uk)(),N={key:1,class:"modal-body"},B=(0,n.Uk)(),I={key:2,class:"modal-footer"},G=r(3752);function q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q(Object(r),!0).forEach((function(e){F(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function F(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const W={name:"BsModal",inheritAttrs:!1,props:{id:String,open:{type:Boolean,default:!1},size:String,title:String,backdrop:{type:[String,Boolean],default:!0}},emits:["show","shown","hide","hidden"],setup:function(t,e){var r=e.emit,o=e.slots,a=(0,j.iH)(null),i=(0,j.qj)({idName:t.id||"modal-"+(Math.random()+1).toString(36).substring(7),visible:t.open});function c(){return G.Z.getOrCreateInstance(a.value)}return(0,n.YP)((function(){return i.visible}),(function(t,e){!e&&t&&c().show(),e&&!t&&c().hide()})),(0,n.YP)((function(){return t.open}),(function(t){i.visible=t})),(0,n.YP)((function(){return t.id}),(function(t){i.idName=t})),(0,n.bv)((function(){a.value.addEventListener("show.bs.modal",(function(t){r("show",t)})),a.value.addEventListener("shown.bs.modal",(function(t){r("shown",t)})),a.value.addEventListener("hide.bs.modal",(function(t){r("hide",t)})),a.value.addEventListener("hidden.bs.modal",(function(t){r("hidden",t)}))})),Y(Y({},(0,j.BK)(i)),{},{modal:a,hasSlots:function(t){return void 0!==o[t]}})}};var Z=r(4181);const R=(0,Z.Z)(W,[["render",function(t,e,r,a,i,c){return(0,n.wg)(),(0,n.j4)(n.lR,{to:"body"},[(0,n._)("div",(0,n.dG)({ref:"modal",class:"modal fade",id:t.idName},t.$attrs,{tabindex:"-1",role:"dialog","aria-labelledby":t.idName+"-label","aria-hidden":t.visible?"true":"false","data-bs-backdrop":r.backdrop}),[(0,n._)("div",{class:(0,o.C_)(["modal-dialog",r.size?"modal-"+r.size:null]),role:"document"},[(0,n._)("div",S,[t.visible?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[a.hasSlots("header-element")?(0,n.WI)(t.$slots,"header-element",{key:0}):((0,n.wg)(),(0,n.iD)("div",D,[(0,n.WI)(t.$slots,"header",{},(function(){return[(0,n._)("div",{class:"modal-title",id:t.idName+"-label"},[(0,n._)("h4",null,(0,o.zw)(r.title),1)],8,M)]})),P,T]))],64)):(0,n.kq)("",!0),H,t.visible?((0,n.wg)(),(0,n.iD)("div",N,[(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0),B,t.visible&&a.hasSlots("footer")?((0,n.wg)(),(0,n.iD)("div",I,[(0,n.WI)(t.$slots,"footer")])):(0,n.kq)("",!0)])],2)],16,z)])}]]);var K=["id"],Q={class:"card-header d-flex justify-content-between"},$={class:"m-0"},A=(0,n.Uk)(),V={class:"d-flex align-items-center justify-content-between"},J={class:"text-muted"},X={style:{height:"14px",display:"inline"},"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"clipboard",class:"svg-inline--fa fa-clipboard fa-w-12",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},tt=[(0,n._)("path",{fill:"currentColor",d:"M336 64h-53.88C268.9 26.8 233.7 0 192 0S115.1 26.8 101.9 64H48C21.5 64 0 85.48 0 112v352C0 490.5 21.5 512 48 512h288c26.5 0 48-21.48 48-48v-352C384 85.48 362.5 64 336 64zM192 64c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S160 113.7 160 96C160 78.33 174.3 64 192 64zM272 224h-160C103.2 224 96 216.8 96 208C96 199.2 103.2 192 112 192h160C280.8 192 288 199.2 288 208S280.8 224 272 224z"},null,-1)],et=(0,n.Uk)(),rt=(0,n._)("span",{class:""},"Copy",-1),nt=(0,n.Uk)(),ot={type:"button",class:"btn btn-primary btn-sm"},at={style:{height:"14px"},"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"link",class:"svg-inline--fa fa-link fa-w-20",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},it=[(0,n._)("path",{fill:"currentColor",d:"M598.6 41.41C570.1 13.8 534.8 0 498.6 0s-72.36 13.8-99.96 41.41l-43.36 43.36c15.11 8.012 29.47 17.58 41.91 30.02c3.146 3.146 5.898 6.518 8.742 9.838l37.96-37.96C458.5 72.05 477.1 64 498.6 64c20.67 0 40.1 8.047 54.71 22.66c14.61 14.61 22.66 34.04 22.66 54.71s-8.049 40.1-22.66 54.71l-133.3 133.3C405.5 343.1 386 352 365.4 352s-40.1-8.048-54.71-22.66C296 314.7 287.1 295.3 287.1 274.6s8.047-40.1 22.66-54.71L314.2 216.4C312.1 212.5 309.9 208.5 306.7 205.3C298.1 196.7 286.8 192 274.6 192c-11.93 0-23.1 4.664-31.61 12.97c-30.71 53.96-23.63 123.6 22.39 169.6C293 402.2 329.2 416 365.4 416c36.18 0 72.36-13.8 99.96-41.41L598.6 241.3c28.45-28.45 42.24-66.01 41.37-103.3C639.1 102.1 625.4 68.16 598.6 41.41zM234 387.4L196.1 425.3C181.5 439.1 162 448 141.4 448c-20.67 0-40.1-8.047-54.71-22.66c-14.61-14.61-22.66-34.04-22.66-54.71s8.049-40.1 22.66-54.71l133.3-133.3C234.5 168 253.1 160 274.6 160s40.1 8.048 54.71 22.66c14.62 14.61 22.66 34.04 22.66 54.71s-8.047 40.1-22.66 54.71L325.8 295.6c2.094 3.939 4.219 7.895 7.465 11.15C341.9 315.3 353.3 320 365.4 320c11.93 0 23.1-4.664 31.61-12.97c30.71-53.96 23.63-123.6-22.39-169.6C346.1 109.8 310.8 96 274.6 96C238.4 96 202.3 109.8 174.7 137.4L41.41 270.7c-27.6 27.6-41.41 63.78-41.41 99.96c-.0001 36.18 13.8 72.36 41.41 99.97C69.01 498.2 105.2 512 141.4 512c36.18 0 72.36-13.8 99.96-41.41l43.36-43.36c-15.11-8.012-29.47-17.58-41.91-30.02C239.6 394.1 236.9 390.7 234 387.4z"},null,-1)],ct=(0,n.Uk)(),lt={style:{height:"14px"},"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"arrow-rotate-right",class:"svg-inline--fa fa-arrow-rotate-right fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ut=[(0,n._)("path",{fill:"currentColor",d:"M496 48V192c0 17.69-14.31 32-32 32H320c-17.69 0-32-14.31-32-32s14.31-32 32-32h63.39c-29.97-39.7-77.25-63.78-127.6-63.78C167.7 96.22 96 167.9 96 256s71.69 159.8 159.8 159.8c34.88 0 68.03-11.03 95.88-31.94c14.22-10.53 34.22-7.75 44.81 6.375c10.59 14.16 7.75 34.22-6.375 44.81c-39.03 29.28-85.36 44.86-134.2 44.86C132.5 479.9 32 379.4 32 256s100.5-223.9 223.9-223.9c69.15 0 134 32.47 176.1 86.12V48c0-17.69 14.31-32 32-32S496 30.31 496 48z"},null,-1)],st=(0,n.Uk)(),dt={class:"card-body"},ft={class:""},ht=["innerHTML"],pt=(0,n.Uk)(),vt={class:"py-4 d-flex justify-content-between"},yt=(0,n.Uk)("\r\n Query Time:\r\n "),mt=(0,n.Uk)("\r\n Memory:\r\n "),gt=(0,n.Uk)("\r\n Return Rows\r\n "),bt={class:"badge bg-info rounded-pill"},wt=(0,n.Uk)(),kt={style:{height:"14px",fill:"white"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},_t=[(0,n._)("path",{d:"M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"},null,-1)],xt=(0,n.Uk)("\r\n Backtrace\r\n "),Lt=(0,n.Uk)(),Et={key:0},Ct={class:"table"},Ut=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",{class:""},"\r\n ID\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Select Type\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Table\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Type\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Possible Keys\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Key\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Key Length\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Reference\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Rows\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Extra\r\n ")])],-1),Ot=(0,n.Uk)(),jt={class:"bg-white"},zt={class:""},St=(0,n.Uk)(),Dt={class:""},Mt=(0,n.Uk)(),Pt={class:""},Tt=(0,n.Uk)(),Ht={class:""},Nt=(0,n.Uk)(),Bt={class:"text-wrap"},It={style:{"word-break":"break-all"}},Gt=(0,n.Uk)(),qt={class:""},Yt=(0,n.Uk)(),Ft={class:""},Wt=(0,n.Uk)(),Zt={class:""},Rt=(0,n.Uk)(),Kt={class:""},Qt=(0,n.Uk)(),$t={class:""},At=r(979),Vt=r(7297),Jt=r(5054);const Xt={name:"query-info",props:{i:Number,item:Object,totalCount:Number,totalTime:Number,totalMemory:Number},setup:function(t,e){var r=e.emit;return{formatQuery:te,round:ee,goToLast:Jt.D,copy:function(){navigator.clipboard.writeText(t.item.debug_query)},stateColor:Vt.G,openBacktrace:function(e){r("open-backtrace",e,t.i)}}}};function te(t){try{return(0,At.format)(t,{keywordCase:"upper"}).replace(/\n/,"<br>")}catch(e){return console.error(e),t}}function ee(t){return Math.round(100*t)/100}const re=(0,Z.Z)(Xt,[["render",function(t,e,r,a,i,c){return(0,n.wg)(),(0,n.iD)("div",{id:"query-".concat(r.i),class:"card rounded-3 border border-1 border-primary"},[(0,n._)("div",Q,[(0,n._)("h4",$,"\r\n Query: "+(0,o.zw)(r.i),1),A,(0,n._)("div",V,[(0,n._)("div",J,[(0,n._)("button",{type:"button",class:"btn btn-outline-primary btn-sm",onClick:e[0]||(e[0]=function(){return a.copy&&a.copy.apply(a,arguments)})},[((0,n.wg)(),(0,n.iD)("svg",X,tt)),et,rt]),nt,(0,n._)("button",ot,[((0,n.wg)(),(0,n.iD)("svg",at,it))]),ct,(0,n._)("button",{type:"button",class:"btn btn-success btn-sm",onClick:e[1]||(e[1]=function(t){return a.goToLast("/db")})},[((0,n.wg)(),(0,n.iD)("svg",lt,ut))])])])]),st,(0,n._)("div",dt,[(0,n._)("div",ft,[(0,n._)("pre",{style:{"word-break":"break-all","white-space":"pre-wrap"},class:"bg-light p-4",innerHTML:a.formatQuery(r.item.debug_query)},null,8,ht)]),pt,(0,n._)("div",vt,[(0,n._)("div",null,[yt,(0,n._)("span",{class:(0,o.C_)(["badge","bg-".concat(a.stateColor(1e3*r.item.time,15))])},(0,o.zw)(a.round(1e3*r.item.time))+"ms\r\n ",3),mt,(0,n._)("span",{class:(0,o.C_)(["badge","bg-".concat(a.stateColor(r.item.memory/1024/1024,.05))])},(0,o.zw)(a.round(r.item.memory/1024/1024))+"MB\r\n ",3),gt,(0,n._)("span",bt,(0,o.zw)(r.item.count),1)]),wt,(0,n._)("div",null,[(0,n._)("button",{class:"btn btn-primary",onClick:e[2]||(e[2]=function(t){return a.openBacktrace(r.item.backtrace,r.i)})},[((0,n.wg)(),(0,n.iD)("svg",kt,_t)),xt])])])]),Lt,r.item.explain?((0,n.wg)(),(0,n.iD)("div",Et,[(0,n._)("table",Ct,[Ut,Ot,(0,n._)("tbody",jt,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.item.explain,(function(t){return(0,n.wg)(),(0,n.iD)("tr",null,[(0,n._)("td",zt,(0,o.zw)(t.id),1),St,(0,n._)("td",Dt,(0,o.zw)(t.select_type),1),Mt,(0,n._)("td",Pt,(0,o.zw)(t.table),1),Tt,(0,n._)("td",Ht,(0,o.zw)(t.type),1),Nt,(0,n._)("td",Bt,[(0,n._)("div",It,(0,o.zw)(t.possible_keys),1)]),Gt,(0,n._)("td",qt,(0,o.zw)(t.key),1),Yt,(0,n._)("td",Ft,(0,o.zw)(t.key_len),1),Wt,(0,n._)("td",Zt,(0,o.zw)(t.ref),1),Rt,(0,n._)("td",Kt,(0,o.zw)(t.rows),1),Qt,(0,n._)("td",$t,(0,o.zw)(t.Extra),1)])})),256))])])])):(0,n.kq)("",!0)],8,K)}]]);var ne=r(6072),oe=r(5518);function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function ie(){ie=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new x(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=w(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,i),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var s={};function d(){}function f(){}function h(){}var p={};c(p,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&r.call(y,o)&&(p=y);var m=h.prototype=d.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,a,i,c){var l=u(t[o],t,a);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==ae(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(d).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=h,c(m,"constructor",h),c(h,"constructor",f),f.displayName=c(h,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,i,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new b(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(m),c(m,i,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function ce(t,e,r,n,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function le(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){ce(a,n,o,i,c,"next",t)}function c(t){ce(a,n,o,i,c,"throw",t)}i(void 0)}))}}const ue={name:"Database",components:{BsModal:R,QueryInfo:re,DefaultLayout:ne.Z},beforeRouteEnter:function(t,e,r){return le(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(function(){var t=le(ie().mark((function t(e){var r;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oe.Z.get("ajax/data?path=db");case 2:r=t.sent,e.data=r.data.data;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},beforeRouteUpdate:function(t,e,r){var n=this;return le(ie().mark((function t(){var e;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oe.Z.get("ajax/data?path=db");case 2:e=t.sent,n.data=e.data.data;case 4:case"end":return t.stop()}}),t)})))()},setup:function(){var t=(0,j.iH)(null),e=(0,j.iH)(!1),r=(0,j.iH)([]),o=(0,j.iH)(0),a=document.__data.editor,i=document.__data.systemPath,c=(0,n.Fl)((function(){return t.value.connections.map((function(t){return t.name}))}));return{data:t,totalTime:function(e){var r,n;return 1e3*(null===(r=t.value)||void 0===r||null===(n=r.queries[e])||void 0===n?void 0:n.reduce((function(t,e){return t+e.time}),0))},totalMemory:function(e){var r,n;return(null===(r=t.value)||void 0===r||null===(n=r.queries[e])||void 0===n?void 0:n.reduce((function(t,e){return t+e.memory}),0))/1024/1024},showBacktraceModal:e,backtrace:r,backtraceIndex:o,instances:c,openBacktrace:function(t,n){r.value=t,o.value=n,e.value=!0},getEditorLink:function(t){return"".concat(a,"://open?file=").concat(t.pathname,"&line=").concat(t.line)},stateColor:Vt.G,round:se,replaceRoot:function(t){return t.replace(i,"ROOT")}}}};function se(t){return Math.round(100*t)/100}const de=(0,Z.Z)(ue,[["render",function(t,e,r,j,z,S){var D=(0,n.up)("QueryInfo"),M=(0,n.up)("BsModal"),P=(0,n.up)("defaultLayout");return(0,n.wg)(),(0,n.j4)(P,null,{title:(0,n.w5)((function(){return[a]})),default:(0,n.w5)((function(){return[i,j.data?((0,n.wg)(),(0,n.iD)("div",c,[(0,n._)("ul",l,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(j.instances,(function(t,e){return(0,n.wg)(),(0,n.iD)("li",u,[(0,n._)("button",{class:"nav-link active",id:"home-tab","data-bs-toggle":"tab","data-bs-target":"tab-".concat(t),type:"button",role:"tab","aria-selected":"true"},(0,o.zw)(t),9,s)])})),256))]),d,(0,n._)("div",f,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(j.instances,(function(t,e){var r,a,i,c,l,u;return(0,n.wg)(),(0,n.iD)("div",{class:(0,o.C_)(["tab-pane fade",[0===e?"show active":""]]),id:"tab-".concat(t),role:"tabpanel",tabindex:"0"},[(0,n._)("div",null,[p,v,(0,n._)("div",y,[m,(0,n._)("span",g,(0,o.zw)((null===(r=j.data)||void 0===r||null===(a=r.queries[t])||void 0===a?void 0:a.length)||0),1),b,(0,n._)("span",{class:(0,o.C_)(["badge","bg-".concat(j.stateColor(j.totalTime(t),15*((null===(i=j.data)||void 0===i||null===(c=i.queries[t])||void 0===c?void 0:c.length)||0)))])},(0,o.zw)(j.round(j.totalTime(t)))+"ms\r\n ",3),w,(0,n._)("span",{class:(0,o.C_)(["badge","bg-".concat(j.stateColor(j.totalMemory(t),.05*((null===(l=j.data)||void 0===l||null===(u=l.queries[t])||void 0===u?void 0:u.length)||0)))])},(0,o.zw)(j.round(j.totalMemory(t)))+"MB\r\n ",3)])]),k,(0,n._)("div",_,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(j.data.queries[t],(function(e,r){var o,a;return(0,n.wg)(),(0,n.iD)("div",x,[(0,n.Wm)(D,{item:e,i:r+1,"total-count":(null===(o=j.data)||void 0===o||null===(a=o.queries[t])||void 0===a?void 0:a.length)||0,"total-time":j.totalTime(t),"total-memory":j.totalMemory(t),onOpenBacktrace:j.openBacktrace},null,8,["item","i","total-count","total-time","total-memory","onOpenBacktrace"])])})),256))])],10,h)})),256))]),L,(0,n.Wm)(M,{open:j.showBacktraceModal,onHidden:e[0]||(e[0]=function(t){return j.showBacktraceModal=!1}),title:"Query ".concat(j.backtraceIndex,": Backtrace"),size:"xl"},{default:(0,n.w5)((function(){return[(0,n._)("table",E,[(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(j.backtrace,(function(t){return(0,n.wg)(),(0,n.iD)("tr",C,[(0,n._)("td",null,(0,o.zw)(t.function),1),U,(0,n._)("td",null,[(0,n._)("a",{href:j.getEditorLink(t)},(0,o.zw)(j.replaceRoot(t.pathname)),9,O)])])})),256))])])]})),_:1},8,["open","title"])])):(0,n.kq)("",!0)]})),_:1})}]])},5054:(t,e,r)=>{r.d(e,{D:()=>u});var n=r(8601),o=r(5518);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(){i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),i=new E(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=_(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=d(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,i),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function v(){}var y={};u(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==e&&r.call(g,o)&&(y=g);var b=v.prototype=h.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,i,c,l){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:U}}function U(){return{value:void 0,done:!0}}return p.prototype=v,u(b,"constructor",v),u(v,"constructor",p),p.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),u(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(b),u(b,l,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function c(t,e,r,n,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){c(a,n,o,i,l,"next",t)}function l(t){c(a,n,o,i,l,"throw",t)}i(void 0)}))}}function u(){return s.apply(this,arguments)}function s(){return s=l(i().mark((function t(){var e,r,a,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:null,t.next=3,o.Z.get("ajax/last");case 3:return r=t.sent,a="",a=e?e+="/"+r.data.data:"/system/"+r.data.data,t.abrupt("return",n.Z.push(a));case 7:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)}},7297:(t,e,r)=>{function n(t,e){return t>2*e?"danger":t>1.5*e?"warning":t<e/2?"success":"info"}r.d(e,{G:()=>n})}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[338],{6072:(t,e,a)=>{a.d(e,{Z:()=>p});var n=a(1525),l=a(658);const s={key:0},r={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},o={class:"text-xl font-bold text-gray-800"},i={class:"text-muted"},d=["href"];var c=a(457),u=a(5054),b=a(4545);const m={name:"DefaultLayout",setup(){const t=(0,c.yj)();return{currentId:b.p,currentData:b.I,route:t,goToLast:u.D}}},p=(0,a(4181).Z)(m,[["render",function(t,e,a,c,u,b){const m=(0,n.up)("fa-icon"),p=(0,n.up)("router-link");return c.currentData?((0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",r,[(0,n._)("h1",o,[(0,n.WI)(t.$slots,"title")]),(0,n.Uk)(),(0,n._)("div",i,[(0,n.Wm)(p,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,n.w5)((()=>[(0,n.Wm)(m,{icon:"fa-solid fa-list"})])),_:1}),(0,n.Uk)(),(0,n._)("button",{type:"button",onClick:e[0]||(e[0]=t=>c.goToLast("/"+c.route.name)),class:"btn btn-sm btn-success"},[(0,n.Wm)(m,{icon:"fa-solid fa-arrows-rotate"})]),(0,n.Uk)("\r\n /\r\n "+(0,l.zw)(c.currentId)+"\r\n / ",1),(0,n._)("a",{target:"_blank",class:"text-gray-600",href:c.currentData.url},(0,l.zw)(c.currentData.url),9,d)])]),(0,n.Uk)(),(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0)}]])},338:(t,e,a)=>{a.r(e),a.d(e,{default:()=>Ct});var n=a(1525),l=a(658);const s={key:0,class:"p-4"},r={class:"nav nav-pills",id:"profilers-tab",role:"tablist"},o={class:"nav-item",role:"presentation"},i=["data-bs-target"],d={class:"tab-content mt-4",id:"myTabContent"},c=["id"],u=(0,n._)("h4",null,"Queries",-1),b={class:"my-3"},m={class:"badge bg-info"},p={class:"mt-5"},w={class:"mb-4"},v={class:"table table-striped table-bordered"},k={style:{"font-family":"monospace","font-size":"13px","word-break":"break-all"}},g=["href"];var h=a(5556);const f=["id","aria-labelledby","aria-hidden","data-bs-backdrop"],_={class:"modal-content"},y={key:1,class:"modal-header"},C=["id"],U=(0,n._)("button",{type:"button",class:"close btn-close","data-bs-dismiss":"modal","data-dismiss":"modal","aria-label":"Close"},[(0,n._)("span",{"aria-hidden":"true",class:"visually-hidden"},"×")],-1),z={key:1,class:"modal-body"},x={key:2,class:"modal-footer"};var D=a(7265);const M={name:"BsModal",inheritAttrs:!1,props:{id:String,open:{type:Boolean,default:!1},size:String,title:String,backdrop:{type:[String,Boolean],default:!0}},emits:["show","shown","hide","hidden"],setup(t,e){let{emit:a,slots:l}=e;const s=(0,h.iH)(null),r=(0,h.qj)({idName:t.id||"modal-"+(Math.random()+1).toString(36).substring(7),visible:t.open});function o(){return D.Z.getOrCreateInstance(s.value)}return(0,n.YP)((()=>r.visible),((t,e)=>{!e&&t&&o().show(),e&&!t&&o().hide()})),(0,n.YP)((()=>t.open),(t=>{r.visible=t})),(0,n.YP)((()=>t.id),(t=>{r.idName=t})),(0,n.bv)((()=>{s.value.addEventListener("show.bs.modal",(t=>{a("show",t)})),s.value.addEventListener("shown.bs.modal",(t=>{a("shown",t)})),s.value.addEventListener("hide.bs.modal",(t=>{a("hide",t)})),s.value.addEventListener("hidden.bs.modal",(t=>{a("hidden",t)}))})),{...(0,h.BK)(r),modal:s,hasSlots:function(t){return void 0!==l[t]}}}};var H=a(4181);const B=(0,H.Z)(M,[["render",function(t,e,a,s,r,o){return(0,n.wg)(),(0,n.j4)(n.lR,{to:"body"},[(0,n._)("div",(0,n.dG)({ref:"modal",class:"modal fade",id:t.idName},t.$attrs,{tabindex:"-1",role:"dialog","aria-labelledby":t.idName+"-label","aria-hidden":t.visible?"true":"false","data-bs-backdrop":a.backdrop}),[(0,n._)("div",{class:(0,l.C_)(["modal-dialog",a.size?"modal-"+a.size:null]),role:"document"},[(0,n._)("div",_,[t.visible?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[s.hasSlots("header-element")?(0,n.WI)(t.$slots,"header-element",{key:0}):((0,n.wg)(),(0,n.iD)("div",y,[(0,n.WI)(t.$slots,"header",{},(()=>[(0,n._)("div",{class:"modal-title",id:t.idName+"-label"},[(0,n._)("h4",null,(0,l.zw)(a.title),1)],8,C)])),(0,n.Uk)(),U]))],64)):(0,n.kq)("",!0),(0,n.Uk)(),t.visible?((0,n.wg)(),(0,n.iD)("div",z,[(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0),(0,n.Uk)(),t.visible&&s.hasSlots("footer")?((0,n.wg)(),(0,n.iD)("div",x,[(0,n.WI)(t.$slots,"footer")])):(0,n.kq)("",!0)])],2)],16,f)])}]]),L=["id"],T={class:"card-header d-flex justify-content-between"},q={class:"m-0"},$={class:"d-flex align-items-center justify-content-between"},I={class:"text-muted"},S={style:{height:"14px",display:"inline"},"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"clipboard",class:"svg-inline--fa fa-clipboard fa-w-12",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},j=[(0,n._)("path",{fill:"currentColor",d:"M336 64h-53.88C268.9 26.8 233.7 0 192 0S115.1 26.8 101.9 64H48C21.5 64 0 85.48 0 112v352C0 490.5 21.5 512 48 512h288c26.5 0 48-21.48 48-48v-352C384 85.48 362.5 64 336 64zM192 64c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S160 113.7 160 96C160 78.33 174.3 64 192 64zM272 224h-160C103.2 224 96 216.8 96 208C96 199.2 103.2 192 112 192h160C280.8 192 288 199.2 288 208S280.8 224 272 224z"},null,-1)],W=(0,n._)("span",{class:""},"Copy",-1),Z={type:"button",class:"btn btn-primary btn-sm"},R={style:{height:"14px"},"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"link",class:"svg-inline--fa fa-link fa-w-20",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},E=[(0,n._)("path",{fill:"currentColor",d:"M598.6 41.41C570.1 13.8 534.8 0 498.6 0s-72.36 13.8-99.96 41.41l-43.36 43.36c15.11 8.012 29.47 17.58 41.91 30.02c3.146 3.146 5.898 6.518 8.742 9.838l37.96-37.96C458.5 72.05 477.1 64 498.6 64c20.67 0 40.1 8.047 54.71 22.66c14.61 14.61 22.66 34.04 22.66 54.71s-8.049 40.1-22.66 54.71l-133.3 133.3C405.5 343.1 386 352 365.4 352s-40.1-8.048-54.71-22.66C296 314.7 287.1 295.3 287.1 274.6s8.047-40.1 22.66-54.71L314.2 216.4C312.1 212.5 309.9 208.5 306.7 205.3C298.1 196.7 286.8 192 274.6 192c-11.93 0-23.1 4.664-31.61 12.97c-30.71 53.96-23.63 123.6 22.39 169.6C293 402.2 329.2 416 365.4 416c36.18 0 72.36-13.8 99.96-41.41L598.6 241.3c28.45-28.45 42.24-66.01 41.37-103.3C639.1 102.1 625.4 68.16 598.6 41.41zM234 387.4L196.1 425.3C181.5 439.1 162 448 141.4 448c-20.67 0-40.1-8.047-54.71-22.66c-14.61-14.61-22.66-34.04-22.66-54.71s8.049-40.1 22.66-54.71l133.3-133.3C234.5 168 253.1 160 274.6 160s40.1 8.048 54.71 22.66c14.62 14.61 22.66 34.04 22.66 54.71s-8.047 40.1-22.66 54.71L325.8 295.6c2.094 3.939 4.219 7.895 7.465 11.15C341.9 315.3 353.3 320 365.4 320c11.93 0 23.1-4.664 31.61-12.97c30.71-53.96 23.63-123.6-22.39-169.6C346.1 109.8 310.8 96 274.6 96C238.4 96 202.3 109.8 174.7 137.4L41.41 270.7c-27.6 27.6-41.41 63.78-41.41 99.96c-.0001 36.18 13.8 72.36 41.41 99.97C69.01 498.2 105.2 512 141.4 512c36.18 0 72.36-13.8 99.96-41.41l43.36-43.36c-15.11-8.012-29.47-17.58-41.91-30.02C239.6 394.1 236.9 390.7 234 387.4z"},null,-1)],K={style:{height:"14px"},"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"arrow-rotate-right",class:"svg-inline--fa fa-arrow-rotate-right fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},N=[(0,n._)("path",{fill:"currentColor",d:"M496 48V192c0 17.69-14.31 32-32 32H320c-17.69 0-32-14.31-32-32s14.31-32 32-32h63.39c-29.97-39.7-77.25-63.78-127.6-63.78C167.7 96.22 96 167.9 96 256s71.69 159.8 159.8 159.8c34.88 0 68.03-11.03 95.88-31.94c14.22-10.53 34.22-7.75 44.81 6.375c10.59 14.16 7.75 34.22-6.375 44.81c-39.03 29.28-85.36 44.86-134.2 44.86C132.5 479.9 32 379.4 32 256s100.5-223.9 223.9-223.9c69.15 0 134 32.47 176.1 86.12V48c0-17.69 14.31-32 32-32S496 30.31 496 48z"},null,-1)],Y={class:"card-body"},Q={class:""},O=["innerHTML"],P={class:"py-4 d-flex justify-content-between"},V={class:"badge bg-info rounded-pill"},G={style:{height:"14px",fill:"white"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},A=[(0,n._)("path",{d:"M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"},null,-1)],F={key:0},J={class:"table"},X=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",{class:""},"\r\n ID\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Select Type\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Table\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Type\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Possible Keys\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Key\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Key Length\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Reference\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Rows\r\n "),(0,n.Uk)(),(0,n._)("th",{class:""},"\r\n Extra\r\n ")])],-1),tt={class:"bg-white"},et={class:""},at={class:""},nt={class:""},lt={class:""},st={class:"text-wrap"},rt={style:{"word-break":"break-all"}},ot={class:""},it={class:""},dt={class:""},ct={class:""},ut={class:""};var bt=a(979),mt=a(7297),pt=a(5054);const wt={name:"query-info",props:{i:Number,item:Object,totalCount:Number,totalTime:Number,totalMemory:Number},setup(t,e){let{emit:a}=e;return{formatQuery:vt,round:kt,goToLast:pt.D,copy:function(){navigator.clipboard.writeText(t.item.debug_query)},stateColor:mt.G,openBacktrace:function(e){a("open-backtrace",e,t.i)}}}};function vt(t){try{return(0,bt.format)(t,{keywordCase:"upper"}).replace(/\n/,"<br>")}catch(e){return console.error(e),t}}function kt(t){return Math.round(100*t)/100}const gt=(0,H.Z)(wt,[["render",function(t,e,a,s,r,o){return(0,n.wg)(),(0,n.iD)("div",{id:`query-${a.i}`,class:"card rounded-3 border border-1 border-primary"},[(0,n._)("div",T,[(0,n._)("h4",q,"\r\n Query: "+(0,l.zw)(a.i),1),(0,n.Uk)(),(0,n._)("div",$,[(0,n._)("div",I,[(0,n._)("button",{type:"button",class:"btn btn-outline-primary btn-sm",onClick:e[0]||(e[0]=function(){return s.copy&&s.copy(...arguments)})},[((0,n.wg)(),(0,n.iD)("svg",S,j)),(0,n.Uk)(),W]),(0,n.Uk)(),(0,n._)("button",Z,[((0,n.wg)(),(0,n.iD)("svg",R,E))]),(0,n.Uk)(),(0,n._)("button",{type:"button",class:"btn btn-success btn-sm",onClick:e[1]||(e[1]=t=>s.goToLast("/db"))},[((0,n.wg)(),(0,n.iD)("svg",K,N))])])])]),(0,n.Uk)(),(0,n._)("div",Y,[(0,n._)("div",Q,[(0,n._)("pre",{style:{"word-break":"break-all","white-space":"pre-wrap"},class:"bg-light p-4",innerHTML:s.formatQuery(a.item.debug_query)},null,8,O)]),(0,n.Uk)(),(0,n._)("div",P,[(0,n._)("div",null,[(0,n.Uk)("\r\n Query Time:\r\n "),(0,n._)("span",{class:(0,l.C_)(["badge",`bg-${s.stateColor(1e3*a.item.time,15)}`])},(0,l.zw)(s.round(1e3*a.item.time))+"ms\r\n ",3),(0,n.Uk)("\r\n Memory:\r\n "),(0,n._)("span",{class:(0,l.C_)(["badge",`bg-${s.stateColor(a.item.memory/1024/1024,.05)}`])},(0,l.zw)(s.round(a.item.memory/1024/1024))+"MB\r\n ",3),(0,n.Uk)("\r\n Return Rows\r\n "),(0,n._)("span",V,(0,l.zw)(a.item.count),1)]),(0,n.Uk)(),(0,n._)("div",null,[(0,n._)("button",{class:"btn btn-primary",onClick:e[2]||(e[2]=t=>s.openBacktrace(a.item.backtrace,a.i))},[((0,n.wg)(),(0,n.iD)("svg",G,A)),(0,n.Uk)("\r\n Backtrace\r\n ")])])])]),(0,n.Uk)(),a.item.explain?((0,n.wg)(),(0,n.iD)("div",F,[(0,n._)("table",J,[X,(0,n.Uk)(),(0,n._)("tbody",tt,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.item.explain,(t=>((0,n.wg)(),(0,n.iD)("tr",null,[(0,n._)("td",et,(0,l.zw)(t.id),1),(0,n.Uk)(),(0,n._)("td",at,(0,l.zw)(t.select_type),1),(0,n.Uk)(),(0,n._)("td",nt,(0,l.zw)(t.table),1),(0,n.Uk)(),(0,n._)("td",lt,(0,l.zw)(t.type),1),(0,n.Uk)(),(0,n._)("td",st,[(0,n._)("div",rt,(0,l.zw)(t.possible_keys),1)]),(0,n.Uk)(),(0,n._)("td",ot,(0,l.zw)(t.key),1),(0,n.Uk)(),(0,n._)("td",it,(0,l.zw)(t.key_len),1),(0,n.Uk)(),(0,n._)("td",dt,(0,l.zw)(t.ref),1),(0,n.Uk)(),(0,n._)("td",ct,(0,l.zw)(t.rows),1),(0,n.Uk)(),(0,n._)("td",ut,(0,l.zw)(t.Extra),1)])))),256))])])])):(0,n.kq)("",!0)],8,L)}]]);var ht=a(6072),ft=a(9197);const _t={name:"Database",components:{BsModal:B,QueryInfo:gt,DefaultLayout:ht.Z},async beforeRouteEnter(t,e,a){a((async t=>{const e=await ft.Z.get("ajax/data?path=db");t.data=e.data.data}))},async beforeRouteUpdate(t,e,a){const n=await ft.Z.get("ajax/data?path=db");this.data=n.data.data},setup(){const t=(0,h.iH)(null),e=(0,h.iH)(!1),a=(0,h.iH)([]),l=(0,h.iH)(0),s=document.__data.editor,r=document.__data.systemPath,o=(0,n.Fl)((()=>t.value.connections.map((t=>t.name))));return{data:t,totalTime:function(e){var a,n;return 1e3*(null===(a=t.value)||void 0===a||null===(n=a.queries[e])||void 0===n?void 0:n.reduce(((t,e)=>t+e.time),0))},totalMemory:function(e){var a,n;return(null===(a=t.value)||void 0===a||null===(n=a.queries[e])||void 0===n?void 0:n.reduce(((t,e)=>t+e.memory),0))/1024/1024},showBacktraceModal:e,backtrace:a,backtraceIndex:l,instances:o,openBacktrace:function(t,n){a.value=t,l.value=n,e.value=!0},getEditorLink:function(t){return`${s}://open?file=${t.pathname}&line=${t.line}`},stateColor:mt.G,round:yt,replaceRoot:function(t){return t.replace(r,"ROOT")}}}};function yt(t){return Math.round(100*t)/100}const Ct=(0,H.Z)(_t,[["render",function(t,e,a,h,f,_){const y=(0,n.up)("QueryInfo"),C=(0,n.up)("BsModal"),U=(0,n.up)("defaultLayout");return(0,n.wg)(),(0,n.j4)(U,null,{title:(0,n.w5)((()=>[(0,n.Uk)("\r\n Database\r\n ")])),default:(0,n.w5)((()=>[(0,n.Uk)(),h.data?((0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("ul",r,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(h.instances,((t,e)=>((0,n.wg)(),(0,n.iD)("li",o,[(0,n._)("button",{class:"nav-link active",id:"home-tab","data-bs-toggle":"tab","data-bs-target":`tab-${t}`,type:"button",role:"tab","aria-selected":"true"},(0,l.zw)(t),9,i)])))),256))]),(0,n.Uk)(),(0,n._)("div",d,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(h.instances,((t,e)=>{var a,s,r,o,i,d;return(0,n.wg)(),(0,n.iD)("div",{class:(0,l.C_)(["tab-pane fade",[0===e?"show active":""]]),id:`tab-${t}`,role:"tabpanel",tabindex:"0"},[(0,n._)("div",null,[u,(0,n.Uk)(),(0,n._)("div",b,[(0,n.Uk)("\r\n Count: "),(0,n._)("span",m,(0,l.zw)((null===(a=h.data)||void 0===a||null===(s=a.queries[t])||void 0===s?void 0:s.length)||0),1),(0,n.Uk)("\r\n -\r\n Time:\r\n "),(0,n._)("span",{class:(0,l.C_)(["badge",`bg-${h.stateColor(h.totalTime(t),15*((null===(r=h.data)||void 0===r||null===(o=r.queries[t])||void 0===o?void 0:o.length)||0))}`])},(0,l.zw)(h.round(h.totalTime(t)))+"ms\r\n ",3),(0,n.Uk)("\r\n -\r\n Memory:\r\n "),(0,n._)("span",{class:(0,l.C_)(["badge",`bg-${h.stateColor(h.totalMemory(t),.05*((null===(i=h.data)||void 0===i||null===(d=i.queries[t])||void 0===d?void 0:d.length)||0))}`])},(0,l.zw)(h.round(h.totalMemory(t)))+"MB\r\n ",3)])]),(0,n.Uk)(),(0,n._)("div",p,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(h.data.queries[t],((e,a)=>{var l,s;return(0,n.wg)(),(0,n.iD)("div",w,[(0,n.Wm)(y,{item:e,i:a+1,"total-count":(null===(l=h.data)||void 0===l||null===(s=l.queries[t])||void 0===s?void 0:s.length)||0,"total-time":h.totalTime(t),"total-memory":h.totalMemory(t),onOpenBacktrace:h.openBacktrace},null,8,["item","i","total-count","total-time","total-memory","onOpenBacktrace"])])})),256))])],10,c)})),256))]),(0,n.Uk)(),(0,n.Wm)(C,{open:h.showBacktraceModal,onHidden:e[0]||(e[0]=t=>h.showBacktraceModal=!1),title:`Query ${h.backtraceIndex}: Backtrace`,size:"xl"},{default:(0,n.w5)((()=>[(0,n._)("table",v,[(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(h.backtrace,(t=>((0,n.wg)(),(0,n.iD)("tr",k,[(0,n._)("td",null,(0,l.zw)(t.function),1),(0,n.Uk)(),(0,n._)("td",null,[(0,n._)("a",{href:h.getEditorLink(t)},(0,l.zw)(h.replaceRoot(t.pathname)),9,g)])])))),256))])])])),_:1},8,["open","title"])])):(0,n.kq)("",!0)])),_:1})}]])},5054:(t,e,a)=>{a.d(e,{D:()=>s});var n=a(8601),l=a(9197);async function s(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=await l.Z.get("ajax/last");let a="";return a=t?t+="/"+e.data.data:"/system/"+e.data.data,n.Z.push(a)}},7297:(t,e,a)=>{function n(t,e){return t>2*e?"danger":t>1.5*e?"warning":t<e/2?"success":"info"}a.d(e,{G:()=>n})}}]);
|
|
3
3
|
//# sourceMappingURL=338.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see chunk-vendor-500.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[500],{6072:(t,r,e)=>{e.d(r,{Z:()=>g});var n=e(1525),o=e(3630),i={key:0},a={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},u={class:"text-xl font-bold text-gray-800"},c=(0,n.Uk)(),s={class:"text-muted"},l=(0,n.Uk)(),f=["href"],h=(0,n.Uk)(),p=e(457),d=e(5054),v=e(4545);const y={name:"DefaultLayout",setup:function(){var t=(0,p.yj)();return{currentId:v.p,currentData:v.I,route:t,goToLast:d.D}}},g=(0,e(4181).Z)(y,[["render",function(t,r,e,p,d,v){var y=(0,n.up)("fa-icon"),g=(0,n.up)("router-link");return p.currentData?((0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",a,[(0,n._)("h1",u,[(0,n.WI)(t.$slots,"title")]),c,(0,n._)("div",s,[(0,n.Wm)(g,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,n.w5)((function(){return[(0,n.Wm)(y,{icon:"fa-solid fa-list"})]})),_:1}),l,(0,n._)("button",{type:"button",onClick:r[0]||(r[0]=function(t){return p.goToLast("/"+p.route.name)}),class:"btn btn-sm btn-success"},[(0,n.Wm)(y,{icon:"fa-solid fa-arrows-rotate"})]),(0,n.Uk)("\r\n /\r\n "+(0,o.zw)(p.currentId)+"\r\n / ",1),(0,n._)("a",{target:"_blank",class:"text-gray-600",href:p.currentData.url},(0,o.zw)(p.currentData.url),9,f)])]),h,(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0)}]])},5500:(t,r,e)=>{e.r(r),e.d(r,{default:()=>Z});var n=e(1525),o=(0,n.Uk)("\r\n Events\r\n "),i=(0,n.Uk)(),a={key:0,class:"p-4"},u={class:"l-section l-section--triggered"},c=(0,n._)("h3",null,"Event Triggered",-1),s=(0,n.Uk)(),l=(0,n.Uk)(),f={class:"l-section l-section--untriggered mt-5"},h=(0,n._)("h3",null,"Event Not Triggered (But has Listeners)",-1),p=(0,n.Uk)(),d=e(5556),v=e(3630),y={class:"table table-bordered"},g=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"\r\n Event Name\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Times\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Listener\r\n ")])],-1),m=(0,n.Uk)(),w=["rowspan"],b=(0,n.Uk)(),x=(0,n.Uk)(),L={key:1},_=(0,n.Uk)(),k=(0,n._)("td",null,"\r\n -\r\n ",-1),E=(0,n.Uk)(),j=(0,n._)("td",null,"\r\n -\r\n ",-1);const O={name:"EventListenersTable",props:{events:Object},setup:function(){var t=null;return{isFirstRow:function(r){var e=r!==t;return t=r,e}}}};var S=e(4181);const D=(0,S.Z)(O,[["render",function(t,r,e,o,i,a){return(0,n.wg)(),(0,n.iD)("table",y,[g,m,(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.events,(function(t,r){return(0,n.wg)(),(0,n.iD)(n.HY,{key:r},[Object.keys(t).length>0?((0,n.wg)(!0),(0,n.iD)(n.HY,{key:0},(0,n.Ko)(t,(function(e,i){return(0,n.wg)(),(0,n.iD)("tr",null,[o.isFirstRow(r)?((0,n.wg)(),(0,n.iD)("td",{key:0,rowspan:Object.keys(t).length},[(0,n._)("pre",null,(0,v.zw)(r),1)],8,w)):(0,n.kq)("",!0),b,(0,n._)("td",null,(0,v.zw)(e),1),x,(0,n._)("td",null,[(0,n._)("pre",null,(0,v.zw)(i),1)])])})),256)):((0,n.wg)(),(0,n.iD)("tr",L,[(0,n._)("td",null,[(0,n._)("pre",null,(0,v.zw)(r),1)]),_,k,E,j]))],64)})),128))])])}]]);var N=e(6072),T=e(5518);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function G(){G=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var o=r&&r.prototype instanceof f?r:f,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=b(a,e);if(u){if(u===l)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=s(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function h(){}function p(){}var d={};u(d,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==r&&e.call(y,o)&&(d=y);var g=p.prototype=f.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function w(t,r){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==U(f)&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}}function b(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,b(t,r),"throw"===r.method))return l;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,l;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function x(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function L(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=p,u(g,"constructor",p),u(p,"constructor",h),h.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(w.prototype),u(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new w(c(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=e.call(i,"catchLoc"),c=e.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),l},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),L(e),l}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;L(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),l}},t}function P(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function F(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){P(i,n,o,a,u,"next",t)}function u(t){P(i,n,o,a,u,"throw",t)}a(void 0)}))}}const I={name:"Events",components:{EventListenersTable:D,DefaultLayout:N.Z},beforeRouteEnter:function(t,r,e){return F(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(function(){var t=F(G().mark((function t(r){var e;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T.Z.get("ajax/data?path=events");case 2:e=t.sent,r.data=e.data.data;case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},beforeRouteUpdate:function(t,r,e){var n=this;return F(G().mark((function t(){var r;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T.Z.get("ajax/data?path=events");case 2:r=t.sent,n.data=r.data.data;case 4:case"end":return t.stop()}}),t)})))()},setup:function(){return{data:(0,d.iH)(null)}}},Z=(0,S.Z)(I,[["render",function(t,r,e,d,v,y){var g=(0,n.up)("EventListenersTable"),m=(0,n.up)("DefaultLayout");return(0,n.wg)(),(0,n.j4)(m,null,{title:(0,n.w5)((function(){return[o]})),default:(0,n.w5)((function(){return[i,d.data?((0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("section",u,[c,s,(0,n.Wm)(g,{events:d.data.invoked},null,8,["events"])]),l,(0,n._)("section",f,[h,p,(0,n.Wm)(g,{events:d.data.uninvoked},null,8,["events"])])])):(0,n.kq)("",!0)]})),_:1})}]])},5054:(t,r,e)=>{e.d(r,{D:()=>s});var n=e(8601),o=e(5518);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(){a=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=L(a,e);if(u){if(u===h)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=f(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function d(){}function v(){}var y={};s(y,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(j([])));m&&m!==r&&e.call(m,o)&&(y=m);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function n(o,a,u,c){var s=f(t[o],t,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==i(h)&&e.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(s.arg)}var o;this._invoke=function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,s(w,"constructor",v),s(v,"constructor",d),d.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(x.prototype),s(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new x(l(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=e.call(i,"catchLoc"),c=e.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:j(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function c(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))}}function s(){return l.apply(this,arguments)}function l(){return l=c(a().mark((function t(){var r,e,i,u=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>0&&void 0!==u[0]?u[0]:null,t.next=3,o.Z.get("ajax/last");case 3:return e=t.sent,i="",i=r?r+="/"+e.data.data:"/system/"+e.data.data,t.abrupt("return",n.Z.push(i));case 7:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[500],{6072:(t,e,n)=>{n.d(e,{Z:()=>_});var a=n(1525),r=n(658);const s={key:0},l={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},u={class:"text-xl font-bold text-gray-800"},o={class:"text-muted"},i=["href"];var c=n(457),d=n(5054),k=n(4545);const w={name:"DefaultLayout",setup(){const t=(0,c.yj)();return{currentId:k.p,currentData:k.I,route:t,goToLast:d.D}}},_=(0,n(4181).Z)(w,[["render",function(t,e,n,c,d,k){const w=(0,a.up)("fa-icon"),_=(0,a.up)("router-link");return c.currentData?((0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",l,[(0,a._)("h1",u,[(0,a.WI)(t.$slots,"title")]),(0,a.Uk)(),(0,a._)("div",o,[(0,a.Wm)(_,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{icon:"fa-solid fa-list"})])),_:1}),(0,a.Uk)(),(0,a._)("button",{type:"button",onClick:e[0]||(e[0]=t=>c.goToLast("/"+c.route.name)),class:"btn btn-sm btn-success"},[(0,a.Wm)(w,{icon:"fa-solid fa-arrows-rotate"})]),(0,a.Uk)("\r\n /\r\n "+(0,r.zw)(c.currentId)+"\r\n / ",1),(0,a._)("a",{target:"_blank",class:"text-gray-600",href:c.currentData.url},(0,r.zw)(c.currentData.url),9,i)])]),(0,a.Uk)(),(0,a.WI)(t.$slots,"default")])):(0,a.kq)("",!0)}]])},5500:(t,e,n)=>{n.r(e),n.d(e,{default:()=>D});var a=n(1525);const r={key:0,class:"p-4"},s={class:"l-section l-section--triggered"},l=(0,a._)("h3",null,"Event Triggered",-1),u={class:"l-section l-section--untriggered mt-5"},o=(0,a._)("h3",null,"Event Not Triggered (But has Listeners)",-1);var i=n(5556),c=n(658);const d={class:"table table-bordered"},k=(0,a._)("thead",null,[(0,a._)("tr",null,[(0,a._)("th",null,"\r\n Event Name\r\n "),(0,a.Uk)(),(0,a._)("th",null,"\r\n Times\r\n "),(0,a.Uk)(),(0,a._)("th",null,"\r\n Listener\r\n ")])],-1),w=["rowspan"],_={key:1},g=(0,a._)("td",null,"\r\n -\r\n ",-1),v=(0,a._)("td",null,"\r\n -\r\n ",-1),b={name:"EventListenersTable",props:{events:Object},setup(){let t=null;return{isFirstRow:function(e){const n=e!==t;return t=e,n}}}};var p=n(4181);const f=(0,p.Z)(b,[["render",function(t,e,n,r,s,l){return(0,a.wg)(),(0,a.iD)("table",d,[k,(0,a.Uk)(),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.events,((t,e)=>((0,a.wg)(),(0,a.iD)(a.HY,{key:e},[Object.keys(t).length>0?((0,a.wg)(!0),(0,a.iD)(a.HY,{key:0},(0,a.Ko)(t,((n,s)=>((0,a.wg)(),(0,a.iD)("tr",null,[r.isFirstRow(e)?((0,a.wg)(),(0,a.iD)("td",{key:0,rowspan:Object.keys(t).length},[(0,a._)("pre",null,(0,c.zw)(e),1)],8,w)):(0,a.kq)("",!0),(0,a.Uk)(),(0,a._)("td",null,(0,c.zw)(n),1),(0,a.Uk)(),(0,a._)("td",null,[(0,a._)("pre",null,(0,c.zw)(s),1)])])))),256)):((0,a.wg)(),(0,a.iD)("tr",_,[(0,a._)("td",null,[(0,a._)("pre",null,(0,c.zw)(e),1)]),(0,a.Uk)(),g,(0,a.Uk)(),v]))],64)))),128))])])}]]);var y=n(6072),h=n(9197);const m={name:"Events",components:{EventListenersTable:f,DefaultLayout:y.Z},async beforeRouteEnter(t,e,n){n((async t=>{const e=await h.Z.get("ajax/data?path=events");t.data=e.data.data}))},async beforeRouteUpdate(t,e,n){const a=await h.Z.get("ajax/data?path=events");this.data=a.data.data},setup:()=>({data:(0,i.iH)(null)})},D=(0,p.Z)(m,[["render",function(t,e,n,i,c,d){const k=(0,a.up)("EventListenersTable"),w=(0,a.up)("DefaultLayout");return(0,a.wg)(),(0,a.j4)(w,null,{title:(0,a.w5)((()=>[(0,a.Uk)("\r\n Events\r\n ")])),default:(0,a.w5)((()=>[(0,a.Uk)(),i.data?((0,a.wg)(),(0,a.iD)("div",r,[(0,a._)("section",s,[l,(0,a.Uk)(),(0,a.Wm)(k,{events:i.data.invoked},null,8,["events"])]),(0,a.Uk)(),(0,a._)("section",u,[o,(0,a.Uk)(),(0,a.Wm)(k,{events:i.data.uninvoked},null,8,["events"])])])):(0,a.kq)("",!0)])),_:1})}]])},5054:(t,e,n)=>{n.d(e,{D:()=>s});var a=n(8601),r=n(9197);async function s(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=await r.Z.get("ajax/last");let n="";return n=t?t+="/"+e.data.data:"/system/"+e.data.data,a.Z.push(n)}}}]);
|
|
3
3
|
//# sourceMappingURL=500.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see chunk-vendor-548.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[548],{6072:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(1525),o=r(3630),i={key:0},a={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},u={class:"text-xl font-bold text-gray-800"},c=(0,n.Uk)(),s={class:"text-muted"},l=(0,n.Uk)(),f=["href"],h=(0,n.Uk)(),d=r(457),p=r(5054),y=r(4545);const v={name:"DefaultLayout",setup:function(){var t=(0,d.yj)();return{currentId:y.p,currentData:y.I,route:t,goToLast:p.D}}},m=(0,r(4181).Z)(v,[["render",function(t,e,r,d,p,y){var v=(0,n.up)("fa-icon"),m=(0,n.up)("router-link");return d.currentData?((0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",a,[(0,n._)("h1",u,[(0,n.WI)(t.$slots,"title")]),c,(0,n._)("div",s,[(0,n.Wm)(m,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,n.w5)((function(){return[(0,n.Wm)(v,{icon:"fa-solid fa-list"})]})),_:1}),l,(0,n._)("button",{type:"button",onClick:e[0]||(e[0]=function(t){return d.goToLast("/"+d.route.name)}),class:"btn btn-sm btn-success"},[(0,n.Wm)(v,{icon:"fa-solid fa-arrows-rotate"})]),(0,n.Uk)("\r\n /\r\n "+(0,o.zw)(d.currentId)+"\r\n / ",1),(0,n._)("a",{target:"_blank",class:"text-gray-600",href:d.currentData.url},(0,o.zw)(d.currentData.url),9,f)])]),h,(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0)}]])},7548:(t,e,r)=>{r.r(e),r.d(e,{default:()=>H});var n=r(1525),o=r(3630),i=(0,n.Uk)("\r\n Timeline\r\n "),a=(0,n.Uk)(),u={key:0,class:"p-4"},c={class:"l-section l-section--system"},s=(0,n._)("h3",null,"System Timeline",-1),l=(0,n.Uk)(),f=(0,n.Uk)(),h={class:"l-section l-section--profilers mt-5"},d={class:"nav nav-pills",id:"profilers-tab",role:"tablist"},p={class:"nav-item",role:"presentation"},y=["data-bs-target"],v=(0,n.Uk)(),m={class:"tab-content mt-4",id:"myTabContent"},g=["id"],w={class:""},b=r(5556),x={class:"table table-bordered"},_=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"Label"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Total Time"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Time"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Total Memory"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Memory")])],-1),L=(0,n.Uk)(),k=(0,n.Uk)(),E={class:"text-end"},T={class:"badge bg-secondary"},O=(0,n.Uk)(),j={key:0,class:"text-end"},S=(0,n.Uk)(),D={class:"text-end"},U={class:"badge bg-secondary"},G=(0,n.Uk)(),C={key:1,class:"text-end"},N=r(7297);const P={name:"TimelineTable",props:{items:Array},setup:function(){var t=0,e=0,r=0,n=0;return{getTimeOffset:function(r){return e=r-t,t=r,e},getCurrentTimeOffset:function(){return e},getMemoryOffset:function(t){return n=t-r,r=t,n},getCurrentMemoryOffset:function(){return n},stateColor:N.G,bytesToMB:function(t){return t/1024/1024},round:function(t){return Math.round(1e4*t)/1e4}}}};var M=r(4181);const I=(0,M.Z)(P,[["render",function(t,e,r,i,a,u){return(0,n.wg)(),(0,n.iD)("div",null,[(0,n._)("table",x,[_,L,(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(r.items,(function(t){return(0,n.wg)(),(0,n.iD)("tr",null,[(0,n._)("td",null,(0,o.zw)(t.label),1),k,(0,n._)("td",E,[(0,n._)("span",T,(0,o.zw)(i.round(t.endTime))+"ms\r\n ",1)]),O,(i.getTimeOffset(t.endTime),(0,n.wg)(),(0,n.iD)("td",j,[(0,n._)("span",{class:(0,o.C_)(["badge","bg-"+i.stateColor(i.getCurrentTimeOffset(),50)])},(0,o.zw)(i.round(i.getCurrentTimeOffset()))+"ms\r\n ",3)])),S,(0,n._)("td",D,[(0,n._)("span",U,(0,o.zw)(i.round(i.bytesToMB(t.memory)))+"MB\r\n ",1)]),G,(i.getMemoryOffset(t.memory),(0,n.wg)(),(0,n.iD)("td",C,[(0,n._)("span",{class:(0,o.C_)(["badge","bg-"+i.stateColor(i.bytesToMB(i.getCurrentMemoryOffset()),2)])},(0,o.zw)(i.round(i.bytesToMB(i.getCurrentMemoryOffset())))+"MB\r\n ",3)]))])})),256))])])])}]]);var F=r(6072),Z=r(5518);function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function W(){W=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=b(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,o)&&(p=v);var m=d.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==z(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=d,u(m,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(w.prototype),u(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),u(m,a,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Y(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function B(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Y(i,n,o,a,u,"next",t)}function u(t){Y(i,n,o,a,u,"throw",t)}a(void 0)}))}}const A={name:"Timeline",components:{TimelineTable:I,DefaultLayout:F.Z},beforeRouteEnter:function(t,e,r){return B(W().mark((function t(){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(function(){var t=B(W().mark((function t(e){var r;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z.Z.get("ajax/data?path=profiler");case 2:r=t.sent,e.data=r.data.data;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},beforeRouteUpdate:function(t,e,r){var n=this;return B(W().mark((function t(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z.Z.get("ajax/data?path=profiler");case 2:e=t.sent,n.data=e.data.data;case 4:case"end":return t.stop()}}),t)})))()},setup:function(){var t=(0,b.iH)(null),e=(0,n.Fl)((function(){return Object.keys(t.value)})),r=(0,n.Fl)((function(){return t.value&&t.value.main.items.filter((function(t){return-1!==(t.tags||[]).indexOf("system")}))||[]}));return{data:t,instances:e,systemItems:r}}},H=(0,M.Z)(A,[["render",function(t,e,r,b,x,_){var L=(0,n.up)("TimelineTable"),k=(0,n.up)("DefaultLayout");return(0,n.wg)(),(0,n.j4)(k,null,{title:(0,n.w5)((function(){return[i]})),default:(0,n.w5)((function(){return[a,b.data?((0,n.wg)(),(0,n.iD)("div",u,[(0,n._)("section",c,[s,l,(0,n.Wm)(L,{items:b.systemItems},null,8,["items"])]),f,(0,n._)("section",h,[(0,n._)("ul",d,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(b.instances,(function(t,e){return(0,n.wg)(),(0,n.iD)("li",p,[(0,n._)("button",{class:"nav-link active",id:"home-tab","data-bs-toggle":"tab","data-bs-target":"tab-".concat(t),type:"button",role:"tab","aria-selected":"true"},(0,o.zw)(t),9,y)])})),256))]),v,(0,n._)("div",m,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(b.instances,(function(t,e){return(0,n.wg)(),(0,n.iD)("div",{class:(0,o.C_)(["tab-pane fade",[0===e?"show active":""]]),id:"tab-".concat(t),role:"tabpanel",tabindex:"0"},[(0,n._)("div",w,[(0,n.Wm)(L,{items:b.data[t].items},null,8,["items"])])],10,g)})),256))])])])):(0,n.kq)("",!0)]})),_:1})}]])},5054:(t,e,r)=>{r.d(e,{D:()=>s});var n=r(8601),o=r(5518);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(){a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function y(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==e&&r.call(g,o)&&(v=g);var w=y.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,u,c){var s=f(t[o],t,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==i(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=y,s(w,"constructor",y),s(y,"constructor",p),p.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(x.prototype),s(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))}}function s(){return l.apply(this,arguments)}function l(){return l=c(a().mark((function t(){var e,r,i,u=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:null,t.next=3,o.Z.get("ajax/last");case 3:return r=t.sent,i="",i=e?e+="/"+r.data.data:"/system/"+r.data.data,t.abrupt("return",n.Z.push(i));case 7:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}},7297:(t,e,r)=>{function n(t,e){return t>2*e?"danger":t>1.5*e?"warning":t<e/2?"success":"info"}r.d(e,{G:()=>n})}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[548],{6072:(t,e,a)=>{a.d(e,{Z:()=>b});var n=a(1525),s=a(658);const r={key:0},l={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},o={class:"text-xl font-bold text-gray-800"},i={class:"text-muted"},u=["href"];var c=a(457),d=a(5054),m=a(4545);const f={name:"DefaultLayout",setup(){const t=(0,c.yj)();return{currentId:m.p,currentData:m.I,route:t,goToLast:d.D}}},b=(0,a(4181).Z)(f,[["render",function(t,e,a,c,d,m){const f=(0,n.up)("fa-icon"),b=(0,n.up)("router-link");return c.currentData?((0,n.wg)(),(0,n.iD)("div",r,[(0,n._)("div",l,[(0,n._)("h1",o,[(0,n.WI)(t.$slots,"title")]),(0,n.Uk)(),(0,n._)("div",i,[(0,n.Wm)(b,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,n.w5)((()=>[(0,n.Wm)(f,{icon:"fa-solid fa-list"})])),_:1}),(0,n.Uk)(),(0,n._)("button",{type:"button",onClick:e[0]||(e[0]=t=>c.goToLast("/"+c.route.name)),class:"btn btn-sm btn-success"},[(0,n.Wm)(f,{icon:"fa-solid fa-arrows-rotate"})]),(0,n.Uk)("\r\n /\r\n "+(0,s.zw)(c.currentId)+"\r\n / ",1),(0,n._)("a",{target:"_blank",class:"text-gray-600",href:c.currentData.url},(0,s.zw)(c.currentData.url),9,u)])]),(0,n.Uk)(),(0,n.WI)(t.$slots,"default")])):(0,n.kq)("",!0)}]])},7548:(t,e,a)=>{a.r(e),a.d(e,{default:()=>z});var n=a(1525),s=a(658);const r={key:0,class:"p-4"},l={class:"l-section l-section--system"},o=(0,n._)("h3",null,"System Timeline",-1),i={class:"l-section l-section--profilers mt-5"},u={class:"nav nav-pills",id:"profilers-tab",role:"tablist"},c={class:"nav-item",role:"presentation"},d=["data-bs-target"],m={class:"tab-content mt-4",id:"myTabContent"},f=["id"],b={class:""};var g=a(5556);const y={class:"table table-bordered"},_=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"Label"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Total Time"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Time"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Total Memory"),(0,n.Uk)(),(0,n._)("th",{class:"text-end"},"Memory")])],-1),k={class:"text-end"},p={class:"badge bg-secondary"},w={key:0,class:"text-end"},v={class:"text-end"},T={class:"badge bg-secondary"},h={key:1,class:"text-end"};var D=a(7297);const U={name:"TimelineTable",props:{items:Array},setup(){let t=0,e=0,a=0,n=0;return{getTimeOffset:function(a){return e=a-t,t=a,e},getCurrentTimeOffset:function(){return e},getMemoryOffset:function(t){return n=t-a,a=t,n},getCurrentMemoryOffset:function(){return n},stateColor:D.G,bytesToMB:function(t){return t/1024/1024},round:function(t){return Math.round(1e4*t)/1e4}}}};var x=a(4181);const C=(0,x.Z)(U,[["render",function(t,e,a,r,l,o){return(0,n.wg)(),(0,n.iD)("div",null,[(0,n._)("table",y,[_,(0,n.Uk)(),(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.items,(t=>((0,n.wg)(),(0,n.iD)("tr",null,[(0,n._)("td",null,(0,s.zw)(t.label),1),(0,n.Uk)(),(0,n._)("td",k,[(0,n._)("span",p,(0,s.zw)(r.round(t.endTime))+"ms\r\n ",1)]),(0,n.Uk)(),(r.getTimeOffset(t.endTime),(0,n.wg)(),(0,n.iD)("td",w,[(0,n._)("span",{class:(0,s.C_)(["badge","bg-"+r.stateColor(r.getCurrentTimeOffset(),50)])},(0,s.zw)(r.round(r.getCurrentTimeOffset()))+"ms\r\n ",3)])),(0,n.Uk)(),(0,n._)("td",v,[(0,n._)("span",T,(0,s.zw)(r.round(r.bytesToMB(t.memory)))+"MB\r\n ",1)]),(0,n.Uk)(),(r.getMemoryOffset(t.memory),(0,n.wg)(),(0,n.iD)("td",h,[(0,n._)("span",{class:(0,s.C_)(["badge","bg-"+r.stateColor(r.bytesToMB(r.getCurrentMemoryOffset()),2)])},(0,s.zw)(r.round(r.bytesToMB(r.getCurrentMemoryOffset())))+"MB\r\n ",3)]))])))),256))])])])}]]);var M=a(6072),O=a(9197);const Z={name:"Timeline",components:{TimelineTable:C,DefaultLayout:M.Z},async beforeRouteEnter(t,e,a){a((async t=>{const e=await O.Z.get("ajax/data?path=profiler");t.data=e.data.data}))},async beforeRouteUpdate(t,e,a){const n=await O.Z.get("ajax/data?path=profiler");this.data=n.data.data},setup(){const t=(0,g.iH)(null),e=(0,n.Fl)((()=>Object.keys(t.value))),a=(0,n.Fl)((()=>t.value&&t.value.main.items.filter((t=>-1!==(t.tags||[]).indexOf("system")))||[]));return{data:t,instances:e,systemItems:a}}},z=(0,x.Z)(Z,[["render",function(t,e,a,g,y,_){const k=(0,n.up)("TimelineTable"),p=(0,n.up)("DefaultLayout");return(0,n.wg)(),(0,n.j4)(p,null,{title:(0,n.w5)((()=>[(0,n.Uk)("\r\n Timeline\r\n ")])),default:(0,n.w5)((()=>[(0,n.Uk)(),g.data?((0,n.wg)(),(0,n.iD)("div",r,[(0,n._)("section",l,[o,(0,n.Uk)(),(0,n.Wm)(k,{items:g.systemItems},null,8,["items"])]),(0,n.Uk)(),(0,n._)("section",i,[(0,n._)("ul",u,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(g.instances,((t,e)=>((0,n.wg)(),(0,n.iD)("li",c,[(0,n._)("button",{class:"nav-link active",id:"home-tab","data-bs-toggle":"tab","data-bs-target":`tab-${t}`,type:"button",role:"tab","aria-selected":"true"},(0,s.zw)(t),9,d)])))),256))]),(0,n.Uk)(),(0,n._)("div",m,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(g.instances,((t,e)=>((0,n.wg)(),(0,n.iD)("div",{class:(0,s.C_)(["tab-pane fade",[0===e?"show active":""]]),id:`tab-${t}`,role:"tabpanel",tabindex:"0"},[(0,n._)("div",b,[(0,n.Wm)(k,{items:g.data[t].items},null,8,["items"])])],10,f)))),256))])])])):(0,n.kq)("",!0)])),_:1})}]])},5054:(t,e,a)=>{a.d(e,{D:()=>r});var n=a(8601),s=a(9197);async function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=await s.Z.get("ajax/last");let a="";return a=t?t+="/"+e.data.data:"/system/"+e.data.data,n.Z.push(a)}},7297:(t,e,a)=>{function n(t,e){return t>2*e?"danger":t>1.5*e?"warning":t<e/2?"success":"info"}a.d(e,{G:()=>n})}}]);
|
|
3
3
|
//# sourceMappingURL=548.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see chunk-vendor-694.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[694],{8694:(t,e,r)=>{r.r(e),r.d(e,{default:()=>at});var n=r(1525),o=r(1456),a=(0,n.Uk)("\r\n Request\r\n "),i=(0,n.Uk)(),c={key:0,ref:"root",class:"p-4"},s={class:"l-section l-section--get mt-5"},u=(0,n._)("h3",null,"GET Variables",-1),l=(0,n.Uk)(),f=(0,n.Uk)(),h={class:"l-section l-section--body mt-5"},p=(0,n._)("h3",null,"Body Variables",-1),v=(0,n.Uk)(),d=(0,n.Uk)(),y={class:"l-section l-section--files mt-5"},m=(0,n._)("h3",null,"FILES Variables",-1),g=(0,n.Uk)(),w=(0,n.Uk)(),k={class:"l-section l-section--session mt-5"},b=(0,n._)("h3",null,"Session Variables",-1),_=(0,n.Uk)(),x=(0,n.Uk)(),E={class:"l-section l-section--cookies mt-5"},L=(0,n._)("h3",null,"Cookies Variables",-1),U=(0,n.Uk)(),V=(0,n.Uk)(),S={class:"l-section l-section--server mt-5"},j=(0,n._)("h3",null,"SERVER Variables",-1),q=(0,n.Uk)(),O=(0,n.Uk)(),C={class:"l-section l-section--env mt-5"},T=(0,n._)("h3",null,"ENV Variables",-1),G=(0,n.Uk)(),N=(0,n.Uk)(),R={class:"nav flex-column ps-4 small"},P={class:"nav-item"},F=(0,n.Uk)(),M={class:"nav-item"},W=(0,n.Uk)(),Z={class:"nav-item"},I=(0,n.Uk)(),D={class:"nav-item"},A=(0,n.Uk)(),B={class:"nav-item"},H=(0,n.Uk)(),K={class:"nav-item"},Y=(0,n.Uk)(),z={class:"nav-item"},J=r(5556),Q=r(5955),X=r(6072),$=r(5518);function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(){et=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),i=new x(n||[]);return a._invoke=function(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,i),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function f(){}function h(){}function p(){}var v={};c(v,o,(function(){return this}));var d=Object.getPrototypeOf,y=d&&d(d(E([])));y&&y!==e&&r.call(y,o)&&(v=y);var m=p.prototype=f.prototype=Object.create(v);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,a,i,c){var s=u(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==tt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,c)}))}c(s.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=p,c(m,"constructor",p),c(p,"constructor",h),h.displayName=c(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,i,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(m),c(m,i,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function rt(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function nt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){rt(a,n,o,i,c,"next",t)}function c(t){rt(a,n,o,i,c,"throw",t)}i(void 0)}))}}const ot={name:"Request",components:{KeyValueTable:Q.Z,DefaultLayout:X.Z},beforeRouteEnter:function(t,e,r){return nt(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(function(){var t=nt(et().mark((function t(e){var r;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$.Z.get("ajax/data?path=http");case 2:r=t.sent,e.data=r.data.data;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},beforeRouteUpdate:function(t,e,r){var n=this;return nt(et().mark((function t(){var e;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$.Z.get("ajax/data?path=http");case 2:e=t.sent,n.data=e.data.data;case 4:case"end":return t.stop()}}),t)})))()},setup:function(){var t=(0,J.iH)(null),e=(0,J.iH)(null);return{data:t,root:e,goto:function(t){var r=e.value.querySelector(".l-section--".concat(t));r&&window.scrollTo({top:r.offsetTop-100,behavior:"smooth"})}}}},at=(0,r(4181).Z)(ot,[["render",function(t,e,r,J,Q,X){var $=(0,n.up)("KeyValueTable"),tt=(0,n.up)("DefaultLayout");return(0,n.wg)(),(0,n.j4)(tt,null,{title:(0,n.w5)((function(){return[a]})),default:(0,n.w5)((function(){return[i,J.data?((0,n.wg)(),(0,n.iD)("div",c,[(0,n._)("section",s,[u,l,(0,n.Wm)($,{data:J.data.request.query},null,8,["data"])]),f,(0,n._)("section",h,[p,v,(0,n.Wm)($,{data:J.data.request.body},null,8,["data"])]),d,(0,n._)("section",y,[m,g,(0,n.Wm)($,{data:J.data.request.files},null,8,["data"])]),w,(0,n._)("section",k,[b,_,(0,n.Wm)($,{data:J.data.session},null,8,["data"])]),x,(0,n._)("section",E,[L,U,(0,n.Wm)($,{data:J.data.cookies||J.data.request.cookies},null,8,["data"])]),V,(0,n._)("section",S,[j,q,(0,n.Wm)($,{data:J.data.request.server},null,8,["data"])]),O,(0,n._)("section",C,[T,G,(0,n.Wm)($,{data:J.data.request.env},null,8,["data"])])],512)):(0,n.kq)("",!0),N,((0,n.wg)(),(0,n.j4)(n.lR,{to:".nav-item--request"},[(0,n._)("ul",R,[(0,n._)("li",P,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[0]||(e[0]=(0,o.iM)((function(t){return J.goto("get")}),["prevent"]))},"\r\n GET Variables\r\n ")]),F,(0,n._)("li",M,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[1]||(e[1]=(0,o.iM)((function(t){return J.goto("body")}),["prevent"]))},"\r\n Body Variables\r\n ")]),W,(0,n._)("li",Z,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[2]||(e[2]=(0,o.iM)((function(t){return J.goto("files")}),["prevent"]))},"\r\n Files Variables\r\n ")]),I,(0,n._)("li",D,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[3]||(e[3]=(0,o.iM)((function(t){return J.goto("session")}),["prevent"]))},"\r\n Session Variables\r\n ")]),A,(0,n._)("li",B,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[4]||(e[4]=(0,o.iM)((function(t){return J.goto("cookies")}),["prevent"]))},"\r\n Cookies Variables\r\n ")]),H,(0,n._)("li",K,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[5]||(e[5]=(0,o.iM)((function(t){return J.goto("server")}),["prevent"]))},"\r\n SERVER Variables\r\n ")]),Y,(0,n._)("li",z,[(0,n._)("a",{href:"#",class:"nav-link",onClick:e[6]||(e[6]=(0,o.iM)((function(t){return J.goto("env")}),["prevent"]))},"\r\n ENV Variables\r\n ")])])]))]})),_:1})}]])}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[694],{5955:(a,t,e)=>{e.d(t,{Z:()=>d});var s=e(1525),l=e(658);const n={class:"table table-bordered"},r=(0,s._)("thead",null,[(0,s._)("tr",null,[(0,s._)("th",{class:"",style:{width:"20%","min-width":"150px"}},"\r\n Key\r\n "),(0,s.Uk)(),(0,s._)("th",null,"\r\n Value\r\n ")])],-1),o={style:{width:"20%","word-break":"break-all"}},i={style:{width:"80%","max-width":"800px"}},c={style:{"word-break":"break-all"},class:"m-0"},u={name:"KeyValueTable",props:{data:Object},setup:()=>({displayData:function(a){return"object"==typeof a||Array.isArray(a)?JSON.stringify(a,null,2):a}})},d=(0,e(4181).Z)(u,[["render",function(a,t,e,u,d,k){return(0,s.wg)(),(0,s.iD)("table",n,[r,(0,s.Uk)(),(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.data,((a,t)=>((0,s.wg)(),(0,s.iD)("tr",{key:t},[(0,s._)("td",o,(0,l.zw)(t),1),(0,s.Uk)(),(0,s._)("td",i,[(0,s._)("pre",c,(0,l.zw)(u.displayData(a)),1)])])))),128))])])}]])},6072:(a,t,e)=>{e.d(t,{Z:()=>b});var s=e(1525),l=e(658);const n={key:0},r={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},o={class:"text-xl font-bold text-gray-800"},i={class:"text-muted"},c=["href"];var u=e(457),d=e(5054),k=e(4545);const _={name:"DefaultLayout",setup(){const a=(0,u.yj)();return{currentId:k.p,currentData:k.I,route:a,goToLast:d.D}}},b=(0,e(4181).Z)(_,[["render",function(a,t,e,u,d,k){const _=(0,s.up)("fa-icon"),b=(0,s.up)("router-link");return u.currentData?((0,s.wg)(),(0,s.iD)("div",n,[(0,s._)("div",r,[(0,s._)("h1",o,[(0,s.WI)(a.$slots,"title")]),(0,s.Uk)(),(0,s._)("div",i,[(0,s.Wm)(b,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,s.w5)((()=>[(0,s.Wm)(_,{icon:"fa-solid fa-list"})])),_:1}),(0,s.Uk)(),(0,s._)("button",{type:"button",onClick:t[0]||(t[0]=a=>u.goToLast("/"+u.route.name)),class:"btn btn-sm btn-success"},[(0,s.Wm)(_,{icon:"fa-solid fa-arrows-rotate"})]),(0,s.Uk)("\r\n /\r\n "+(0,l.zw)(u.currentId)+"\r\n / ",1),(0,s._)("a",{target:"_blank",class:"text-gray-600",href:u.currentData.url},(0,l.zw)(u.currentData.url),9,c)])]),(0,s.Uk)(),(0,s.WI)(a.$slots,"default")])):(0,s.kq)("",!0)}]])},8694:(a,t,e)=>{e.r(t),e.d(t,{default:()=>T});var s=e(1525),l=e(4943);const n={key:0,ref:"root",class:"p-4"},r={class:"l-section l-section--get mt-5"},o=(0,s._)("h3",null,"GET Variables",-1),i={class:"l-section l-section--body mt-5"},c=(0,s._)("h3",null,"Body Variables",-1),u={class:"l-section l-section--files mt-5"},d=(0,s._)("h3",null,"FILES Variables",-1),k={class:"l-section l-section--session mt-5"},_=(0,s._)("h3",null,"Session Variables",-1),b={class:"l-section l-section--cookies mt-5"},v=(0,s._)("h3",null,"Cookies Variables",-1),f={class:"l-section l-section--server mt-5"},m=(0,s._)("h3",null,"SERVER Variables",-1),p={class:"l-section l-section--env mt-5"},y=(0,s._)("h3",null,"ENV Variables",-1),h={class:"nav flex-column ps-4 small"},w={class:"nav-item"},U={class:"nav-item"},g={class:"nav-item"},V={class:"nav-item"},D={class:"nav-item"},q={class:"nav-item"},x={class:"nav-item"};var C=e(5556),W=e(5955),Z=e(6072),E=e(9197);const R={name:"Request",components:{KeyValueTable:W.Z,DefaultLayout:Z.Z},async beforeRouteEnter(a,t,e){e((async a=>{const t=await E.Z.get("ajax/data?path=http");a.data=t.data.data}))},async beforeRouteUpdate(a,t,e){const s=await E.Z.get("ajax/data?path=http");this.data=s.data.data},setup(){const a=(0,C.iH)(null),t=(0,C.iH)(null);return{data:a,root:t,goto:function(a){const e=t.value.querySelector(`.l-section--${a}`);e&&window.scrollTo({top:e.offsetTop-100,behavior:"smooth"})}}}},T=(0,e(4181).Z)(R,[["render",function(a,t,e,C,W,Z){const E=(0,s.up)("KeyValueTable"),R=(0,s.up)("DefaultLayout");return(0,s.wg)(),(0,s.j4)(R,null,{title:(0,s.w5)((()=>[(0,s.Uk)("\r\n Request\r\n ")])),default:(0,s.w5)((()=>[(0,s.Uk)(),C.data?((0,s.wg)(),(0,s.iD)("div",n,[(0,s._)("section",r,[o,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.request.query},null,8,["data"])]),(0,s.Uk)(),(0,s._)("section",i,[c,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.request.body},null,8,["data"])]),(0,s.Uk)(),(0,s._)("section",u,[d,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.request.files},null,8,["data"])]),(0,s.Uk)(),(0,s._)("section",k,[_,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.session},null,8,["data"])]),(0,s.Uk)(),(0,s._)("section",b,[v,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.cookies||C.data.request.cookies},null,8,["data"])]),(0,s.Uk)(),(0,s._)("section",f,[m,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.request.server},null,8,["data"])]),(0,s.Uk)(),(0,s._)("section",p,[y,(0,s.Uk)(),(0,s.Wm)(E,{data:C.data.request.env},null,8,["data"])])],512)):(0,s.kq)("",!0),(0,s.Uk)(),((0,s.wg)(),(0,s.j4)(s.lR,{to:".nav-item--request"},[(0,s._)("ul",h,[(0,s._)("li",w,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[0]||(t[0]=(0,l.iM)((a=>C.goto("get")),["prevent"]))},"\r\n GET Variables\r\n ")]),(0,s.Uk)(),(0,s._)("li",U,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[1]||(t[1]=(0,l.iM)((a=>C.goto("body")),["prevent"]))},"\r\n Body Variables\r\n ")]),(0,s.Uk)(),(0,s._)("li",g,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[2]||(t[2]=(0,l.iM)((a=>C.goto("files")),["prevent"]))},"\r\n Files Variables\r\n ")]),(0,s.Uk)(),(0,s._)("li",V,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[3]||(t[3]=(0,l.iM)((a=>C.goto("session")),["prevent"]))},"\r\n Session Variables\r\n ")]),(0,s.Uk)(),(0,s._)("li",D,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[4]||(t[4]=(0,l.iM)((a=>C.goto("cookies")),["prevent"]))},"\r\n Cookies Variables\r\n ")]),(0,s.Uk)(),(0,s._)("li",q,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[5]||(t[5]=(0,l.iM)((a=>C.goto("server")),["prevent"]))},"\r\n SERVER Variables\r\n ")]),(0,s.Uk)(),(0,s._)("li",x,[(0,s._)("a",{href:"#",class:"nav-link",onClick:t[6]||(t[6]=(0,l.iM)((a=>C.goto("env")),["prevent"]))},"\r\n ENV Variables\r\n ")])])]))])),_:1})}]])},5054:(a,t,e)=>{e.d(t,{D:()=>n});var s=e(8601),l=e(9197);async function n(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=await l.Z.get("ajax/last");let e="";return e=a?a+="/"+t.data.data:"/system/"+t.data.data,s.Z.push(e)}}}]);
|
|
3
3
|
//# sourceMappingURL=694.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see chunk-vendor-798.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[798],{1798:(t,e,r)=>{r.r(e),r.d(e,{default:()=>dt});var n=r(1525),o=r(3630),i=(0,n.Uk)("\r\n Routing\r\n "),a=(0,n.Uk)(),u={key:0,class:"p-4"},l={class:"l-section l-section--info"},c=(0,n._)("h3",{class:"mb-3"},"Route Information",-1),s=(0,n.Uk)(),h={class:"table table-bordered"},d=(0,n._)("th",{style:{width:"20%"}},"\r\n Request Method\r\n ",-1),f=(0,n.Uk)(),p=(0,n.Uk)(),v=(0,n._)("th",null,"\r\n Total Routes\r\n ",-1),y=(0,n.Uk)(),m=(0,n.Uk)(),w=(0,n._)("th",null,"\r\n Matched Route\r\n ",-1),g=(0,n.Uk)(),_={class:"m-0"},k=(0,n.Uk)(),b=(0,n._)("th",null,"\r\n Controller / View\r\n ",-1),x=(0,n.Uk)(),U={class:"m-0"},L=(0,n.Uk)(),E={key:0,class:"ps-3 mt-2"},j={class:"m-0"},S=(0,n._)("strong",null,"View:",-1),O=(0,n.Uk)(),z=(0,n._)("th",null,"\r\n Handler\r\n ",-1),R=(0,n.Uk)(),P={class:"m-0"},D=(0,n.Uk)(),N=(0,n._)("th",null,"\r\n Middlewares\r\n ",-1),q=(0,n.Uk)(),G={class:"mb-1"},T=(0,n.Uk)(),H={class:"l-section l-section--uri mt-5"},C=(0,n._)("h3",{class:"mb-3"},"Uri Information",-1),F=(0,n.Uk)(),I=(0,n.Uk)(),V={class:"l-section l-section--routes mt-5"},Z=(0,n._)("h3",{class:"mb-3"},"Routes",-1),K=(0,n.Uk)(),M={class:"table table-bordered"},Y=(0,n._)("thead",null,[(0,n._)("tr",null,[(0,n._)("th",null,"\r\n Route Name\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Pattern\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Methods\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Controller / View\r\n "),(0,n.Uk)()])],-1),A=(0,n.Uk)(),J=(0,n.Uk)(),W=(0,n.Uk)(),B=(0,n.Uk)(),Q={style:{"max-width":"400px"}},X={style:{"overflow-x":"auto"}},$={key:0,class:""},tt={class:"m-0"},et={key:1},rt=(0,n.Uk)(),nt=r(5556),ot=r(5955),it=r(6072),at=r(5518);function ut(t){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(t)}function lt(){lt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===s)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=c(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var s={};function h(){}function d(){}function f(){}var p={};u(p,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(U([])));y&&y!==e&&r.call(y,o)&&(p=y);var m=f.prototype=h.prototype=Object.create(p);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(o,i,a,u){var l=c(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==ut(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(l.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function U(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=f,u(m,"constructor",f),u(f,"constructor",d),d.displayName=u(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},w(g.prototype),u(g.prototype,i,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new g(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(m),u(m,a,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=U,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;b(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:U(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function ct(t,e,r,n,o,i,a){try{var u=t[i](a),l=u.value}catch(t){return void r(t)}u.done?e(l):Promise.resolve(l).then(n,o)}function st(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ct(i,n,o,a,u,"next",t)}function u(t){ct(i,n,o,a,u,"throw",t)}a(void 0)}))}}const ht={name:"Routing",components:{KeyValueTable:ot.Z,DefaultLayout:it.Z},beforeRouteEnter:function(t,e,r){return st(lt().mark((function t(){return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r(function(){var t=st(lt().mark((function t(e){var r,n;return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new URLSearchParams).set("path[request]","http::request"),r.set("path[uri]","http::systemUri"),r.set("path[routing]","routing"),t.next=6,at.Z.get("ajax/data?"+r.toString());case 6:n=t.sent,e.data=n.data.data;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},beforeRouteUpdate:function(t,e,r){return st(lt().mark((function t(){var e,r;return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=new URLSearchParams).set("path[request]","http::request"),e.set("path[uri]","http::systemUri"),e.set("path[routing]","routing"),t.next=6,at.Z.get("ajax/data?"+e.toString());case 6:r=t.sent,vm.data=r.data.data;case 8:case"end":return t.stop()}}),t)})))()},setup:function(){function t(t){return t?"string"==typeof t?t:t.join("::")+"()":"-"}return{data:(0,nt.iH)(null),getHandler:function(e){return e["*"]?t(e["*"]):t(Object.values(e)[0])}}}},dt=(0,r(4181).Z)(ht,[["render",function(t,e,r,nt,ot,it){var at=(0,n.up)("KeyValueTable"),ut=(0,n.up)("DefaultLayout");return(0,n.wg)(),(0,n.j4)(ut,null,{title:(0,n.w5)((function(){return[i]})),default:(0,n.w5)((function(){var t,e,r,i,ot,it,ut,lt,ct,st,ht,dt;return[a,nt.data?((0,n.wg)(),(0,n.iD)("div",u,[(0,n._)("section",l,[c,s,(0,n._)("table",h,[(0,n._)("tbody",null,[(0,n._)("tr",null,[d,f,(0,n._)("td",null,(0,o.zw)(nt.data.request.method),1)]),p,(0,n._)("tr",null,[v,y,(0,n._)("td",null,(0,o.zw)(Object.keys(nt.data.routing.routes).length),1)]),m,(0,n._)("tr",null,[w,g,(0,n._)("td",null,[(0,n._)("pre",_,(0,o.zw)(null===(t=nt.data.routing.matched)||void 0===t?void 0:t.name),1)])]),k,(0,n._)("tr",null,[b,x,(0,n._)("td",null,[(0,n._)("pre",U,(0,o.zw)(nt.data.routing.controller),1),L,null!==(e=nt.data.routing.matched)&&void 0!==e&&null!==(r=e.options)&&void 0!==r&&null!==(i=r.vars)&&void 0!==i&&i.view?((0,n.wg)(),(0,n.iD)("div",E,[(0,n._)("pre",j,[S,(0,n.Uk)(" "+(0,o.zw)(null===(ot=nt.data.routing.matched)||void 0===ot||null===(it=ot.options)||void 0===it||null===(ut=it.vars)||void 0===ut?void 0:ut.view),1)])])):(0,n.kq)("",!0)])]),O,(0,n._)("tr",null,[z,R,(0,n._)("td",null,[(0,n._)("pre",P,(0,o.zw)(JSON.stringify(null===(lt=nt.data.routing.matched)||void 0===lt||null===(ct=lt.options)||void 0===ct?void 0:ct.handlers,null,2)),1)])]),D,(0,n._)("tr",null,[N,q,(0,n._)("td",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(null===(st=nt.data.routing)||void 0===st||null===(ht=st.matched)||void 0===ht||null===(dt=ht.options)||void 0===dt?void 0:dt.middlewares,(function(t){return(0,n.wg)(),(0,n.iD)("div",null,[(0,n._)("pre",G,(0,o.zw)(t),1)])})),256))])])])])]),T,(0,n._)("section",H,[C,F,(0,n.Wm)(at,{data:nt.data.uri},null,8,["data"])]),I,(0,n._)("section",V,[Z,K,(0,n._)("table",M,[Y,A,(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(nt.data.routing.routes,(function(t,e){var r,i,a,u,l,c,s;return(0,n.wg)(),(0,n.iD)("tr",{class:(0,o.C_)({"table-success":(null===(r=nt.data.routing.matched)||void 0===r?void 0:r.name)===t.name})},[(0,n._)("td",null,[(0,n._)("code",null,(0,o.zw)(t.name),1)]),J,(0,n._)("td",null,[(0,n._)("code",null,(0,o.zw)(t.options.pattern),1)]),W,(0,n._)("td",null,(0,o.zw)((null===(i=t.options)||void 0===i||null===(a=i.method)||void 0===a?void 0:a.join("|"))||"Any"),1),B,(0,n._)("td",Q,[(0,n._)("div",X,[null!=t&&null!==(u=t.options)&&void 0!==u&&null!==(l=u.vars)&&void 0!==l&&l.view?((0,n.wg)(),(0,n.iD)("div",$,[(0,n._)("pre",tt,(0,o.zw)(null==t||null===(c=t.options)||void 0===c||null===(s=c.vars)||void 0===s?void 0:s.view),1)])):((0,n.wg)(),(0,n.iD)("div",et,[(0,n._)("pre",null,(0,o.zw)(nt.getHandler(t.options.handlers||{})),1)]))])]),rt],2)})),256))])])])])):(0,n.kq)("",!0)]})),_:1})}]])}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[798],{5955:(t,l,n)=>{n.d(l,{Z:()=>c});var a=n(1525),e=n(658);const r={class:"table table-bordered"},o=(0,a._)("thead",null,[(0,a._)("tr",null,[(0,a._)("th",{class:"",style:{width:"20%","min-width":"150px"}},"\r\n Key\r\n "),(0,a.Uk)(),(0,a._)("th",null,"\r\n Value\r\n ")])],-1),s={style:{width:"20%","word-break":"break-all"}},u={style:{width:"80%","max-width":"800px"}},i={style:{"word-break":"break-all"},class:"m-0"},d={name:"KeyValueTable",props:{data:Object},setup:()=>({displayData:function(t){return"object"==typeof t||Array.isArray(t)?JSON.stringify(t,null,2):t}})},c=(0,n(4181).Z)(d,[["render",function(t,l,n,d,c,_){return(0,a.wg)(),(0,a.iD)("table",r,[o,(0,a.Uk)(),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.data,((t,l)=>((0,a.wg)(),(0,a.iD)("tr",{key:l},[(0,a._)("td",s,(0,e.zw)(l),1),(0,a.Uk)(),(0,a._)("td",u,[(0,a._)("pre",i,(0,e.zw)(d.displayData(t)),1)])])))),128))])])}]])},6072:(t,l,n)=>{n.d(l,{Z:()=>k});var a=n(1525),e=n(658);const r={key:0},o={class:"p-3",style:{"background-color":"var(--bs-gray-200)"}},s={class:"text-xl font-bold text-gray-800"},u={class:"text-muted"},i=["href"];var d=n(457),c=n(5054),_=n(4545);const w={name:"DefaultLayout",setup(){const t=(0,d.yj)();return{currentId:_.p,currentData:_.I,route:t,goToLast:c.D}}},k=(0,n(4181).Z)(w,[["render",function(t,l,n,d,c,_){const w=(0,a.up)("fa-icon"),k=(0,a.up)("router-link");return d.currentData?((0,a.wg)(),(0,a.iD)("div",r,[(0,a._)("div",o,[(0,a._)("h1",s,[(0,a.WI)(t.$slots,"title")]),(0,a.Uk)(),(0,a._)("div",u,[(0,a.Wm)(k,{to:"/",class:"btn btn-sm btn-primary"},{default:(0,a.w5)((()=>[(0,a.Wm)(w,{icon:"fa-solid fa-list"})])),_:1}),(0,a.Uk)(),(0,a._)("button",{type:"button",onClick:l[0]||(l[0]=t=>d.goToLast("/"+d.route.name)),class:"btn btn-sm btn-success"},[(0,a.Wm)(w,{icon:"fa-solid fa-arrows-rotate"})]),(0,a.Uk)("\r\n /\r\n "+(0,e.zw)(d.currentId)+"\r\n / ",1),(0,a._)("a",{target:"_blank",class:"text-gray-600",href:d.currentData.url},(0,e.zw)(d.currentData.url),9,i)])]),(0,a.Uk)(),(0,a.WI)(t.$slots,"default")])):(0,a.kq)("",!0)}]])},1798:(t,l,n)=>{n.r(l),n.d(l,{default:()=>T});var a=n(1525),e=n(658);const r={key:0,class:"p-4"},o={class:"l-section l-section--info"},s=(0,a._)("h3",{class:"mb-3"},"Route Information",-1),u={class:"table table-bordered"},i=(0,a._)("th",{style:{width:"20%"}},"\r\n Request Method\r\n ",-1),d=(0,a._)("th",null,"\r\n Total Routes\r\n ",-1),c=(0,a._)("th",null,"\r\n Matched Route\r\n ",-1),_={class:"m-0"},w=(0,a._)("th",null,"\r\n Controller / View\r\n ",-1),k={class:"m-0"},h={key:0,class:"ps-3 mt-2"},p={class:"m-0"},v=(0,a._)("strong",null,"View:",-1),m=(0,a._)("th",null,"\r\n Handler\r\n ",-1),g={class:"m-0"},b=(0,a._)("th",null,"\r\n Middlewares\r\n ",-1),y={class:"mb-1"},U={class:"l-section l-section--uri mt-5"},f=(0,a._)("h3",{class:"mb-3"},"Uri Information",-1),D={class:"l-section l-section--routes mt-5"},z=(0,a._)("h3",{class:"mb-3"},"Routes",-1),x={class:"table table-bordered"},R=(0,a._)("thead",null,[(0,a._)("tr",null,[(0,a._)("th",null,"\r\n Route Name\r\n "),(0,a.Uk)(),(0,a._)("th",null,"\r\n Pattern\r\n "),(0,a.Uk)(),(0,a._)("th",null,"\r\n Methods\r\n "),(0,a.Uk)(),(0,a._)("th",null,"\r\n Controller / View\r\n "),(0,a.Uk)()])],-1),j={style:{"max-width":"400px"}},Z={style:{"overflow-x":"auto"}},q={key:0,class:""},H={class:"m-0"},I={key:1};var K=n(5556),L=n(5955),V=n(6072),C=n(9197);const S={name:"Routing",components:{KeyValueTable:L.Z,DefaultLayout:V.Z},async beforeRouteEnter(t,l,n){n((async t=>{const l=new URLSearchParams;l.set("path[request]","http::request"),l.set("path[uri]","http::systemUri"),l.set("path[routing]","routing");const n=await C.Z.get("ajax/data?"+l.toString());t.data=n.data.data}))},async beforeRouteUpdate(t,l,n){const a=new URLSearchParams;a.set("path[request]","http::request"),a.set("path[uri]","http::systemUri"),a.set("path[routing]","routing");const e=await C.Z.get("ajax/data?"+a.toString());vm.data=e.data.data},setup(){function t(t){return t?"string"==typeof t?t:t.join("::")+"()":"-"}return{data:(0,K.iH)(null),getHandler:function(l){return l["*"]?t(l["*"]):t(Object.values(l)[0])}}}},T=(0,n(4181).Z)(S,[["render",function(t,l,n,K,L,V){const C=(0,a.up)("KeyValueTable"),S=(0,a.up)("DefaultLayout");return(0,a.wg)(),(0,a.j4)(S,null,{title:(0,a.w5)((()=>[(0,a.Uk)("\r\n Routing\r\n ")])),default:(0,a.w5)((()=>{var t,l,n,L,V,S,T,W,O,M,A,N;return[(0,a.Uk)(),K.data?((0,a.wg)(),(0,a.iD)("div",r,[(0,a._)("section",o,[s,(0,a.Uk)(),(0,a._)("table",u,[(0,a._)("tbody",null,[(0,a._)("tr",null,[i,(0,a.Uk)(),(0,a._)("td",null,(0,e.zw)(K.data.request.method),1)]),(0,a.Uk)(),(0,a._)("tr",null,[d,(0,a.Uk)(),(0,a._)("td",null,(0,e.zw)(Object.keys(K.data.routing.routes).length),1)]),(0,a.Uk)(),(0,a._)("tr",null,[c,(0,a.Uk)(),(0,a._)("td",null,[(0,a._)("pre",_,(0,e.zw)(null===(t=K.data.routing.matched)||void 0===t?void 0:t.name),1)])]),(0,a.Uk)(),(0,a._)("tr",null,[w,(0,a.Uk)(),(0,a._)("td",null,[(0,a._)("pre",k,(0,e.zw)(K.data.routing.controller),1),(0,a.Uk)(),null!==(l=K.data.routing.matched)&&void 0!==l&&null!==(n=l.options)&&void 0!==n&&null!==(L=n.vars)&&void 0!==L&&L.view?((0,a.wg)(),(0,a.iD)("div",h,[(0,a._)("pre",p,[v,(0,a.Uk)(" "+(0,e.zw)(null===(V=K.data.routing.matched)||void 0===V||null===(S=V.options)||void 0===S||null===(T=S.vars)||void 0===T?void 0:T.view),1)])])):(0,a.kq)("",!0)])]),(0,a.Uk)(),(0,a._)("tr",null,[m,(0,a.Uk)(),(0,a._)("td",null,[(0,a._)("pre",g,(0,e.zw)(JSON.stringify(null===(W=K.data.routing.matched)||void 0===W||null===(O=W.options)||void 0===O?void 0:O.handlers,null,2)),1)])]),(0,a.Uk)(),(0,a._)("tr",null,[b,(0,a.Uk)(),(0,a._)("td",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(null===(M=K.data.routing)||void 0===M||null===(A=M.matched)||void 0===A||null===(N=A.options)||void 0===N?void 0:N.middlewares,(t=>((0,a.wg)(),(0,a.iD)("div",null,[(0,a._)("pre",y,(0,e.zw)(t),1)])))),256))])])])])]),(0,a.Uk)(),(0,a._)("section",U,[f,(0,a.Uk)(),(0,a.Wm)(C,{data:K.data.uri},null,8,["data"])]),(0,a.Uk)(),(0,a._)("section",D,[z,(0,a.Uk)(),(0,a._)("table",x,[R,(0,a.Uk)(),(0,a._)("tbody",null,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(K.data.routing.routes,((t,l)=>{var n,r,o,s,u,i,d;return(0,a.wg)(),(0,a.iD)("tr",{class:(0,e.C_)({"table-success":(null===(n=K.data.routing.matched)||void 0===n?void 0:n.name)===t.name})},[(0,a._)("td",null,[(0,a._)("code",null,(0,e.zw)(t.name),1)]),(0,a.Uk)(),(0,a._)("td",null,[(0,a._)("code",null,(0,e.zw)(t.options.pattern),1)]),(0,a.Uk)(),(0,a._)("td",null,(0,e.zw)((null===(r=t.options)||void 0===r||null===(o=r.method)||void 0===o?void 0:o.join("|"))||"Any"),1),(0,a.Uk)(),(0,a._)("td",j,[(0,a._)("div",Z,[null!=t&&null!==(s=t.options)&&void 0!==s&&null!==(u=s.vars)&&void 0!==u&&u.view?((0,a.wg)(),(0,a.iD)("div",q,[(0,a._)("pre",H,(0,e.zw)(null==t||null===(i=t.options)||void 0===i||null===(d=i.vars)||void 0===d?void 0:d.view),1)])):((0,a.wg)(),(0,a.iD)("div",I,[(0,a._)("pre",null,(0,e.zw)(K.getHandler(t.options.handlers||{})),1)]))])]),(0,a.Uk)()],2)})),256))])])])])):(0,a.kq)("",!0)]})),_:1})}]])},5054:(t,l,n)=>{n.d(l,{D:()=>r});var a=n(8601),e=n(9197);async function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const l=await e.Z.get("ajax/last");let n="";return n=t?t+="/"+l.data.data:"/system/"+l.data.data,a.Z.push(n)}}}]);
|
|
3
3
|
//# sourceMappingURL=798.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[864],{9665:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",u="week",s="month",c="quarter",f="year",l="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},m={s:v,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,s),o=r-i<0,a=e.clone().add(n+(o?-1:1),s);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:s,y:f,w:u,d:a,D:l,h:o,m:i,s:n,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",w={};w[g]=y;var $=function(t){return t instanceof D},b=function t(e,r,n){var i;if(!e)return g;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var u=e.name;w[u]=e,i=u}return!n&&i&&(g=i),i||!n&&g},_=function(t,e){if($(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new D(r)},O=m;O.l=b,O.i=$,O.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function y(t){this.$L=b(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return O},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},v.isAfter=function(t,e){return _(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<_(t)},v.$g=function(t,e,r){return O.u(t)?this[e]:this.set(r,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var r=this,c=!!O.u(e)||e,h=O.p(t),d=function(t,e){var n=O.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return c?n:n.endOf(a)},p=function(t,e){return O.w(r.toDate()[t].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,v=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case f:return c?d(1,0):d(31,11);case s:return c?d(1,v):d(0,v+1);case u:var w=this.$locale().weekStart||0,$=(y<w?y+7:y)-w;return d(c?m-$:m+(6-$),v);case a:case l:return p(g+"Hours",0);case o:return p(g+"Minutes",1);case i:return p(g+"Seconds",2);case n:return p(g+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var u,c=O.p(t),h="set"+(this.$u?"UTC":""),d=(u={},u[a]=h+"Date",u[l]=h+"Date",u[s]=h+"Month",u[f]=h+"FullYear",u[o]=h+"Hours",u[i]=h+"Minutes",u[n]=h+"Seconds",u[r]=h+"Milliseconds",u)[c],p=c===a?this.$D+(e-this.$W):e;if(c===s||c===f){var y=this.clone().set(l,1);y.$d[d](p),y.init(),this.$d=y.set(l,Math.min(this.$D,y.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[O.p(t)]()},v.add=function(r,c){var l,h=this;r=Number(r);var d=O.p(c),p=function(t){var e=_(h);return O.w(e.date(e.date()+Math.round(t*r)),h)};if(d===s)return this.set(s,this.$M+r);if(d===f)return this.set(f,this.$y+r);if(d===a)return p(1);if(d===u)return p(7);var y=(l={},l[i]=t,l[o]=e,l[n]=1e3,l)[d]||1,v=this.$d.getTime()+r*y;return O.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),o=this.$H,a=this.$m,u=this.$M,s=r.weekdays,c=r.months,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},l=function(t){return O.s(o%12||12,t,"0")},d=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:O.s(u+1,2,"0"),MMM:f(r.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,s,2),ddd:f(r.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(o),HH:O.s(o,2,"0"),h:l(1),hh:l(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return n.replace(p,(function(t,e){return e||y[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,l,h){var d,p=O.p(l),y=_(r),v=(y.utcOffset()-this.utcOffset())*t,m=this-y,g=O.m(this,y);return g=(d={},d[f]=g/12,d[s]=g,d[c]=g/3,d[u]=(m-v)/6048e5,d[a]=(m-v)/864e5,d[o]=m/e,d[i]=m/t,d[n]=m/1e3,d)[p]||m,h?g:O.a(g)},v.daysInMonth=function(){return this.endOf(s).$D},v.$locale=function(){return w[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=b(t,e,!0);return n&&(r.$L=n),r},v.clone=function(){return O.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},y}(),S=D.prototype;return _.prototype=S,[["$ms",r],["$s",n],["$m",i],["$H",o],["$W",a],["$M",s],["$y",f],["$D",l]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),_.extend=function(t,e){return t.$i||(t(e,D,_),t.$i=!0),_},_.locale=b,_.isDayjs=$,_.unix=function(t){return _(1e3*t)},_.en=w[g],_.Ls=w,_.p={},_}()},9864:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>U});var n=r(1525),i=r(1456),o=r(3630),a={class:"p-4"},u={class:"table table-striped table-bordered"},s=(0,n._)("thead",{class:"table-dark"},[(0,n._)("tr",null,[(0,n._)("th",null,"\r\n ID\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n See\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n IP\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Method\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n URL\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Time\r\n "),(0,n.Uk)(),(0,n._)("th",null,"\r\n Info\r\n ")])],-1),c=(0,n.Uk)(),f=["onClick"],l=(0,n.Uk)(),h=["onClick"],d=(0,n.Uk)(),p=(0,n.Uk)(),y=(0,n.Uk)(),v=["href"],m=(0,n.Uk)(),g=(0,n.Uk)(),w=r(9665),$=r(5556),b=r(8601),_=r(5518),O=r(4545);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(){x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof l?e:l,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=$(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=c(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function l(){}function h(){}function d(){}var p={};u(p,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(S([])));v&&v!==e&&r.call(v,i)&&(p=v);var m=d.prototype=l.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(i,o,a,u){var s=c(t[i],t,o);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==D(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function $(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=d,u(m,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(w.prototype),u(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),u(m,a,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function L(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function j(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){L(o,n,i,a,u,"next",t)}function u(t){L(o,n,i,a,u,"throw",t)}a(void 0)}))}}const E={name:"Dashboard",setup:function(){var t=(0,$.qj)({items:[]});return(0,n.bv)(j(x().mark((function e(){var r;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.Z.get("ajax/history");case 2:r=e.sent,t.items=r.data.data;case 4:case"end":return e.stop()}}),e)})))),M(M({},(0,$.BK)(t)),{},{selectId:function(t){O.p.value=t,b.Z.push("/system/"+t)},dateFormat:function(t){return w.unix(t).format("YYYY-MM-DD HH:mm:ssZ")}})}},U=(0,r(4181).Z)(E,[["render",function(t,e,r,w,$,b){var _=(0,n.up)("fa-icon");return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("table",u,[s,c,(0,n._)("tbody",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.items,(function(t){var e;return(0,n.wg)(),(0,n.iD)("tr",null,[(0,n._)("td",null,[(0,n._)("a",{href:"#",onClick:(0,i.iM)((function(e){return w.selectId(t.id)}),["prevent"]),class:"link-secondary"},(0,o.zw)(t.id),9,f)]),l,(0,n._)("td",null,[(0,n._)("button",{class:"btn btn-primary btn-sm",type:"button",onClick:function(e){return w.selectId(t.id)}},[(0,n.Wm)(_,{icon:"fa-solid fa-eye"})],8,h)]),d,(0,n._)("td",null,(0,o.zw)(t.ip),1),p,(0,n._)("td",null,(0,o.zw)(t.method),1),y,(0,n._)("td",null,[(0,n._)("a",{href:t.url,target:"_blank",class:"link-secondary"},[(0,n.Uk)((0,o.zw)(t.url)+" ",1),(0,n.Wm)(_,{class:"small",icon:"fa-solid fa-external-link"})],8,v)]),m,(0,n._)("td",null,(0,o.zw)(w.dateFormat(t.time)),1),g,(0,n._)("td",null,(0,o.zw)(null===(e=t.response)||void 0===e?void 0:e.status),1)])})),256))])])])}]])}}]);
|
|
1
|
+
(self.webpackChunk_windwalker_io_core=self.webpackChunk_windwalker_io_core||[]).push([[864],{9665:function(t){t.exports=function(){"use strict";var t=6e4,n=36e5,e="millisecond",r="second",i="minute",s="hour",u="day",a="week",o="month",l="quarter",c="year",h="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var n=["th","st","nd","rd"],e=t%100;return"["+t+(n[(e-20)%10]||n[e]||n[0])+"]"}},v=function(t,n,e){var r=String(t);return!r||r.length>=n?t:""+Array(n+1-r.length).join(e)+t},y={s:v,z:function(t){var n=-t.utcOffset(),e=Math.abs(n),r=Math.floor(e/60),i=e%60;return(n<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function t(n,e){if(n.date()<e.date())return-t(e,n);var r=12*(e.year()-n.year())+(e.month()-n.month()),i=n.clone().add(r,o),s=e-i<0,u=n.clone().add(r+(s?-1:1),o);return+(-(r+(e-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:a,d:u,D:h,h:s,m:i,s:r,ms:e,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},M="en",_={};_[M]=m;var D=function(t){return t instanceof k},p=function t(n,e,r){var i;if(!n)return M;if("string"==typeof n){var s=n.toLowerCase();_[s]&&(i=s),e&&(_[s]=e,i=s);var u=n.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=n.name;_[a]=n,i=a}return!r&&i&&(M=i),i||!r&&M},w=function(t,n){if(D(t))return t.clone();var e="object"==typeof n?n:{};return e.date=t,e.args=arguments,new k(e)},g=y;g.l=p,g.i=D,g.w=function(t,n){return w(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var k=function(){function m(t){this.$L=p(t.locale,null,!0),this.parse(t)}var v=m.prototype;return v.parse=function(t){this.$d=function(t){var n=t.date,e=t.utc;if(null===n)return new Date(NaN);if(g.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(d);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return e?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return g},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(t,n){var e=w(t);return this.startOf(n)<=e&&e<=this.endOf(n)},v.isAfter=function(t,n){return w(t)<this.startOf(n)},v.isBefore=function(t,n){return this.endOf(n)<w(t)},v.$g=function(t,n,e){return g.u(t)?this[n]:this.set(e,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,n){var e=this,l=!!g.u(n)||n,f=g.p(t),d=function(t,n){var r=g.w(e.$u?Date.UTC(e.$y,n,t):new Date(e.$y,n,t),e);return l?r:r.endOf(u)},$=function(t,n){return g.w(e.toDate()[t].apply(e.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(n)),e)},m=this.$W,v=this.$M,y=this.$D,M="set"+(this.$u?"UTC":"");switch(f){case c:return l?d(1,0):d(31,11);case o:return l?d(1,v):d(0,v+1);case a:var _=this.$locale().weekStart||0,D=(m<_?m+7:m)-_;return d(l?y-D:y+(6-D),v);case u:case h:return $(M+"Hours",0);case s:return $(M+"Minutes",1);case i:return $(M+"Seconds",2);case r:return $(M+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,n){var a,l=g.p(t),f="set"+(this.$u?"UTC":""),d=(a={},a[u]=f+"Date",a[h]=f+"Date",a[o]=f+"Month",a[c]=f+"FullYear",a[s]=f+"Hours",a[i]=f+"Minutes",a[r]=f+"Seconds",a[e]=f+"Milliseconds",a)[l],$=l===u?this.$D+(n-this.$W):n;if(l===o||l===c){var m=this.clone().set(h,1);m.$d[d]($),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d]($);return this.init(),this},v.set=function(t,n){return this.clone().$set(t,n)},v.get=function(t){return this[g.p(t)]()},v.add=function(e,l){var h,f=this;e=Number(e);var d=g.p(l),$=function(t){var n=w(f);return g.w(n.date(n.date()+Math.round(t*e)),f)};if(d===o)return this.set(o,this.$M+e);if(d===c)return this.set(c,this.$y+e);if(d===u)return $(1);if(d===a)return $(7);var m=(h={},h[i]=t,h[s]=n,h[r]=1e3,h)[d]||1,v=this.$d.getTime()+e*m;return g.w(v,this)},v.subtract=function(t,n){return this.add(-1*t,n)},v.format=function(t){var n=this,e=this.$locale();if(!this.isValid())return e.invalidDate||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=g.z(this),s=this.$H,u=this.$m,a=this.$M,o=e.weekdays,l=e.months,c=function(t,e,i,s){return t&&(t[e]||t(n,r))||i[e].slice(0,s)},h=function(t){return g.s(s%12||12,t,"0")},d=e.meridiem||function(t,n,e){var r=t<12?"AM":"PM";return e?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:g.s(a+1,2,"0"),MMM:c(e.monthsShort,a,l,3),MMMM:c(l,a),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:c(e.weekdaysMin,this.$W,o,2),ddd:c(e.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:g.s(s,2,"0"),h:h(1),hh:h(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:g.s(u,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:i};return r.replace($,(function(t,n){return n||m[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(e,h,f){var d,$=g.p(h),m=w(e),v=(m.utcOffset()-this.utcOffset())*t,y=this-m,M=g.m(this,m);return M=(d={},d[c]=M/12,d[o]=M,d[l]=M/3,d[a]=(y-v)/6048e5,d[u]=(y-v)/864e5,d[s]=y/n,d[i]=y/t,d[r]=y/1e3,d)[$]||y,f?M:g.a(M)},v.daysInMonth=function(){return this.endOf(o).$D},v.$locale=function(){return _[this.$L]},v.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),r=p(t,n,!0);return r&&(e.$L=r),e},v.clone=function(){return g.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),S=k.prototype;return w.prototype=S,[["$ms",e],["$s",r],["$m",i],["$H",s],["$W",u],["$M",o],["$y",c],["$D",h]].forEach((function(t){S[t[1]]=function(n){return this.$g(n,t[0],t[1])}})),w.extend=function(t,n){return t.$i||(t(n,k,w),t.$i=!0),w},w.locale=p,w.isDayjs=D,w.unix=function(t){return w(1e3*t)},w.en=_[M],w.Ls=_,w.p={},w}()},9864:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>M});var r=e(1525),i=e(4943),s=e(658);const u={class:"p-4"},a={class:"table table-striped table-bordered"},o=(0,r._)("thead",{class:"table-dark"},[(0,r._)("tr",null,[(0,r._)("th",null,"\r\n ID\r\n "),(0,r.Uk)(),(0,r._)("th",null,"\r\n See\r\n "),(0,r.Uk)(),(0,r._)("th",null,"\r\n IP\r\n "),(0,r.Uk)(),(0,r._)("th",null,"\r\n Method\r\n "),(0,r.Uk)(),(0,r._)("th",null,"\r\n URL\r\n "),(0,r.Uk)(),(0,r._)("th",null,"\r\n Time\r\n "),(0,r.Uk)(),(0,r._)("th",null,"\r\n Info\r\n ")])],-1),l=["onClick"],c=["onClick"],h=["href"];var f=e(9665),d=e(5556),$=e(8601),m=e(9197),v=e(4545);const y={name:"Dashboard",setup(){const t=(0,d.qj)({items:[]});return(0,r.bv)((async()=>{const n=await m.Z.get("ajax/history");t.items=n.data.data})),{...(0,d.BK)(t),selectId:function(t){v.p.value=t,$.Z.push("/system/"+t)},dateFormat:function(t){return f.unix(t).format("YYYY-MM-DD HH:mm:ssZ")}}}},M=(0,e(4181).Z)(y,[["render",function(t,n,e,f,d,$){const m=(0,r.up)("fa-icon");return(0,r.wg)(),(0,r.iD)("div",u,[(0,r._)("table",a,[o,(0,r.Uk)(),(0,r._)("tbody",null,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.items,(t=>{var n;return(0,r.wg)(),(0,r.iD)("tr",null,[(0,r._)("td",null,[(0,r._)("a",{href:"#",onClick:(0,i.iM)((n=>f.selectId(t.id)),["prevent"]),class:"link-secondary"},(0,s.zw)(t.id),9,l)]),(0,r.Uk)(),(0,r._)("td",null,[(0,r._)("button",{class:"btn btn-primary btn-sm",type:"button",onClick:n=>f.selectId(t.id)},[(0,r.Wm)(m,{icon:"fa-solid fa-eye"})],8,c)]),(0,r.Uk)(),(0,r._)("td",null,(0,s.zw)(t.ip),1),(0,r.Uk)(),(0,r._)("td",null,(0,s.zw)(t.method),1),(0,r.Uk)(),(0,r._)("td",null,[(0,r._)("a",{href:t.url,target:"_blank",class:"link-secondary"},[(0,r.Uk)((0,s.zw)(t.url)+" ",1),(0,r.Wm)(m,{class:"small",icon:"fa-solid fa-external-link"})],8,h)]),(0,r.Uk)(),(0,r._)("td",null,(0,s.zw)(f.dateFormat(t.time)),1),(0,r.Uk)(),(0,r._)("td",null,(0,s.zw)(null===(n=t.response)||void 0===n?void 0:n.status),1)])})),256))])])])}]])}}]);
|
|
3
2
|
//# sourceMappingURL=864.js.map
|