@windwalker-io/core 4.2.9 → 4.2.11

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.
Files changed (36) hide show
  1. package/LICENSE +19 -19
  2. package/dist/debugger/Dashboard-CzDoLneW.js +1 -0
  3. package/dist/debugger/{Database-BGuRRq-L.js → Database-CSU8eOK6.js} +2 -2
  4. package/dist/debugger/DefaultLayout-fPOBRlxo.js +1 -0
  5. package/dist/debugger/Events-zF0JqyW4.js +1 -0
  6. package/dist/debugger/KeyValueTable-6M6bFpX8.js +1 -0
  7. package/dist/debugger/{Request-yQA1-Fkb.js → Request-DKOZpKRC.js} +1 -1
  8. package/dist/debugger/{Routing-C5mAPB17.js → Routing-puFmtUNp.js} +1 -1
  9. package/dist/debugger/{System-JFuNpoZY.js → System-Daos7PgT.js} +1 -1
  10. package/dist/debugger/{Timeline-Uii-K9v_.js → Timeline-BozTDh0s.js} +1 -1
  11. package/dist/debugger/debugger.js +11 -11
  12. package/dist/next.js +17 -4
  13. package/package.json +7 -3
  14. package/src/asset-bundler.mjs +114 -114
  15. package/src/debugger/types/global.d.js +2 -2
  16. package/src/index.mjs +10 -10
  17. package/src/legacy/4.0/js-sync.mjs +74 -74
  18. package/src/next/fusion/index.ts +2 -2
  19. package/src/next/fusion/plugins/assets.ts +29 -29
  20. package/src/next/fusion/plugins/index.ts +3 -3
  21. package/src/next/fusion/plugins/systemjs.ts +66 -66
  22. package/src/next/fusion/processors/cloneAssets.ts +85 -81
  23. package/src/next/fusion/processors/cssModulize.ts +128 -128
  24. package/src/next/fusion/processors/index.ts +4 -4
  25. package/src/next/fusion/processors/installVendors.ts +184 -184
  26. package/src/next/fusion/processors/jsModulize.ts +319 -307
  27. package/src/next/index.ts +2 -2
  28. package/src/next/utilities/asset-sync.ts +47 -47
  29. package/src/next/utilities/crypto.ts +11 -11
  30. package/src/next/utilities/fs.ts +61 -61
  31. package/src/next/utilities/index.ts +5 -5
  32. package/src/next/utilities/modules.ts +17 -17
  33. package/dist/debugger/Dashboard-Bm7ihi81.js +0 -1
  34. package/dist/debugger/DefaultLayout-DviqbPNR.js +0 -1
  35. package/dist/debugger/Events-CNF6gvg0.js +0 -1
  36. package/dist/debugger/KeyValueTable-BfTkP1Rg.js +0 -1
@@ -1,47 +1,47 @@
1
- import path, { resolve } from 'node:path';
2
- import { loadJson } from './fs';
3
-
4
- export function findModules(suffix = '', rootModule: string | null = 'src/Module'): string[] {
5
- const pkg = path.resolve(process.cwd(), 'composer.json');
6
-
7
- const pkgJson = loadJson(pkg);
8
-
9
- const vendors = Object.keys(pkgJson['require'] || {})
10
- .concat(Object.keys(pkgJson['require-dev'] || {}))
11
- .map(id => `vendor/${id}/composer.json`)
12
- .map((file) => loadJson(file))
13
- .filter(pkgJson => pkgJson?.extra?.windwalker != null)
14
- .map(pkgJson => {
15
- return pkgJson?.extra?.windwalker?.modules?.map((module: string) => {
16
- return `vendor/${pkgJson.name}/${module}/${suffix}`;
17
- }) || [];
18
- })
19
- .flat();
20
-
21
- if (rootModule) {
22
- vendors.push(rootModule + '/' + suffix);
23
- }
24
-
25
- return [...new Set(vendors)];
26
- }
27
-
28
- export function findPackages(suffix = '', withRoot = true): string[] {
29
- const pkg = path.resolve(process.cwd(), 'composer.json');
30
-
31
- const pkgJson = loadJson(pkg);
32
-
33
- const vendors = Object.keys(pkgJson['require'] || {})
34
- .concat(Object.keys(pkgJson['require-dev'] || {}))
35
- .map(id => `vendor/${id}/composer.json`)
36
- .map((file) => loadJson(file))
37
- .filter((pkgJson) => pkgJson?.extra?.windwalker != null)
38
- .map((pkgJson) => `vendor/${pkgJson.name}/${suffix}`)
39
- .flat();
40
-
41
- if (withRoot) {
42
- vendors.unshift(suffix);
43
- }
44
-
45
- return [...new Set(vendors)];
46
- }
47
-
1
+ import path, { resolve } from 'node:path';
2
+ import { loadJson } from './fs';
3
+
4
+ export function findModules(suffix = '', rootModule: string | null = 'src/Module'): string[] {
5
+ const pkg = path.resolve(process.cwd(), 'composer.json');
6
+
7
+ const pkgJson = loadJson(pkg);
8
+
9
+ const vendors = Object.keys(pkgJson['require'] || {})
10
+ .concat(Object.keys(pkgJson['require-dev'] || {}))
11
+ .map(id => `vendor/${id}/composer.json`)
12
+ .map((file) => loadJson(file))
13
+ .filter(pkgJson => pkgJson?.extra?.windwalker != null)
14
+ .map(pkgJson => {
15
+ return pkgJson?.extra?.windwalker?.modules?.map((module: string) => {
16
+ return `vendor/${pkgJson.name}/${module}/${suffix}`;
17
+ }) || [];
18
+ })
19
+ .flat();
20
+
21
+ if (rootModule) {
22
+ vendors.push(rootModule + '/' + suffix);
23
+ }
24
+
25
+ return [...new Set(vendors)];
26
+ }
27
+
28
+ export function findPackages(suffix = '', withRoot = true): string[] {
29
+ const pkg = path.resolve(process.cwd(), 'composer.json');
30
+
31
+ const pkgJson = loadJson(pkg);
32
+
33
+ const vendors = Object.keys(pkgJson['require'] || {})
34
+ .concat(Object.keys(pkgJson['require-dev'] || {}))
35
+ .map(id => `vendor/${id}/composer.json`)
36
+ .map((file) => loadJson(file))
37
+ .filter((pkgJson) => pkgJson?.extra?.windwalker != null)
38
+ .map((pkgJson) => `vendor/${pkgJson.name}/${suffix}`)
39
+ .flat();
40
+
41
+ if (withRoot) {
42
+ vendors.unshift(suffix);
43
+ }
44
+
45
+ return [...new Set(vendors)];
46
+ }
47
+
@@ -1,11 +1,11 @@
1
- import { randomBytes } from 'node:crypto';
2
-
3
- export function uniqId(prefix: string = '', size = 16): string {
4
- let id = randomBytes(size).toString('hex');
5
-
6
- if (prefix) {
7
- id = prefix + id;
8
- }
9
-
10
- return id;
11
- }
1
+ import { randomBytes } from 'node:crypto';
2
+
3
+ export function uniqId(prefix: string = '', size = 16): string {
4
+ let id = randomBytes(size).toString('hex');
5
+
6
+ if (prefix) {
7
+ id = prefix + id;
8
+ }
9
+
10
+ return id;
11
+ }
@@ -1,61 +1,61 @@
1
- import { getGlobBaseFromPattern } from '@windwalker-io/fusion-next';
2
- import fs from 'node:fs';
3
- import fg from 'fast-glob';
4
- import isGlob from 'is-glob';
5
- import { relative } from 'node:path';
6
-
7
- export function loadJson(file: string) {
8
- if (!fs.existsSync(file)) {
9
- return null;
10
- }
11
-
12
- return JSON.parse(fs.readFileSync(file, 'utf8'));
13
- }
14
-
15
- export function containsMiddleGlob(str: string) {
16
- return isGlob(removeLastGlob(str));
17
- }
18
-
19
- export function removeLastGlob(str: string) {
20
- // Remove `/**` `/*` `/**/*` at the end of the string
21
- return str.replace(/(\/\*|\/\*\*?|\*\*\/\*?)$/, '');
22
- }
23
-
24
- const ds = process.platform === 'win32' ? '\\' : '/';
25
-
26
- export function ensureDirPath(path: string, slash: '/' | '\\' = ds): string {
27
- if (!path.endsWith(slash)) {
28
- return path + slash;
29
- }
30
-
31
- return path;
32
- }
33
-
34
- export interface FindFileResult {
35
- fullpath: string;
36
- relativePath: string;
37
- }
38
-
39
- export function findFilesFromGlobArray(sources: string[]): FindFileResult[] {
40
- let files: FindFileResult[] = [];
41
-
42
- for (const source of sources) {
43
- files = [
44
- ...files,
45
- ...findFiles(source)
46
- ];
47
- }
48
-
49
- return files;
50
- }
51
-
52
- function findFiles(src: string): FindFileResult[] {
53
- return fg.globSync(src).map((file: string) => {
54
- file = file.replace(/\\/g, '/');
55
-
56
- return {
57
- fullpath: file,
58
- relativePath: relative(getGlobBaseFromPattern(src), file).replace(/\\/g, '/')
59
- };
60
- });
61
- }
1
+ import { getGlobBaseFromPattern } from '@windwalker-io/fusion-next';
2
+ import fs from 'node:fs';
3
+ import fg from 'fast-glob';
4
+ import isGlob from 'is-glob';
5
+ import { relative } from 'node:path';
6
+
7
+ export function loadJson(file: string) {
8
+ if (!fs.existsSync(file)) {
9
+ return null;
10
+ }
11
+
12
+ return JSON.parse(fs.readFileSync(file, 'utf8'));
13
+ }
14
+
15
+ export function containsMiddleGlob(str: string) {
16
+ return isGlob(removeLastGlob(str));
17
+ }
18
+
19
+ export function removeLastGlob(str: string) {
20
+ // Remove `/**` `/*` `/**/*` at the end of the string
21
+ return str.replace(/(\/\*|\/\*\*?|\*\*\/\*?)$/, '');
22
+ }
23
+
24
+ const ds = process.platform === 'win32' ? '\\' : '/';
25
+
26
+ export function ensureDirPath(path: string, slash: '/' | '\\' = ds): string {
27
+ if (!path.endsWith(slash)) {
28
+ return path + slash;
29
+ }
30
+
31
+ return path;
32
+ }
33
+
34
+ export interface FindFileResult {
35
+ fullpath: string;
36
+ relativePath: string;
37
+ }
38
+
39
+ export function findFilesFromGlobArray(sources: string[]): FindFileResult[] {
40
+ let files: FindFileResult[] = [];
41
+
42
+ for (const source of sources) {
43
+ files = [
44
+ ...files,
45
+ ...findFiles(source)
46
+ ];
47
+ }
48
+
49
+ return files;
50
+ }
51
+
52
+ function findFiles(src: string): FindFileResult[] {
53
+ return fg.globSync(src).map((file: string) => {
54
+ file = file.replace(/\\/g, '/');
55
+
56
+ return {
57
+ fullpath: file,
58
+ relativePath: relative(getGlobBaseFromPattern(src), file).replace(/\\/g, '/')
59
+ };
60
+ });
61
+ }
@@ -1,5 +1,5 @@
1
- export * from './asset-sync';
2
- export * from './fs';
3
- export * from './crypto';
4
- export * from './modules';
5
-
1
+ export * from './asset-sync';
2
+ export * from './fs';
3
+ export * from './crypto';
4
+ export * from './modules';
5
+
@@ -1,17 +1,17 @@
1
- import { createRequire } from 'node:module';
2
-
3
- export function resolveModuleRealpath(url: string, module: string) {
4
- const require = createRequire(url);
5
-
6
- return require.resolve(module);
7
- }
8
-
9
- export function stripUrlQuery(src: string) {
10
- const qPos = src.indexOf('?');
11
-
12
- if (qPos !== -1) {
13
- return src.substring(0, qPos);
14
- }
15
-
16
- return src;
17
- }
1
+ import { createRequire } from 'node:module';
2
+
3
+ export function resolveModuleRealpath(url: string, module: string) {
4
+ const require = createRequire(url);
5
+
6
+ return require.resolve(module);
7
+ }
8
+
9
+ export function stripUrlQuery(src: string) {
10
+ const qPos = src.indexOf('?');
11
+
12
+ if (qPos !== -1) {
13
+ return src.substring(0, qPos);
14
+ }
15
+
16
+ return src;
17
+ }
@@ -1 +0,0 @@
1
- System.register(["./debugger.js","./utilities-jMzguz3m.js"],(function(dt,xt){"use strict";var E,P,R,Q,I,c,X,G,K,L,tt,w,Z,et,nt,rt,st,it,at;return{setters:[l=>{E=l.r,P=l.a,R=l.o,Q=l.$,I=l.c,c=l.b,X=l.F,G=l.d,K=l.e,L=l.f,tt=l.w,w=l.t,Z=l.g,et=l.h,nt=l.i,rt=l.n,st=l.u,it=l.j},l=>{at=l.h}],execute:(function(){var l={exports:{}},$t=l.exports,ut;function yt(){return ut||(ut=1,(function(ot,z){(function(C,k){ot.exports=k()})($t,(function(){var C=1e3,k=6e4,g=36e5,j="millisecond",_="second",h="minute",m="hour",D="day",F="week",M="month",ct="quarter",b="year",H="date",lt="Invalid Date",St=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,wt=/\[([^\]]+)]|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,kt={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(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},B=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},Ot={s:B,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+B(r,2,"0")+":"+B(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,M),i=t-e<0,a=n.clone().add(r+(i?-1:1),M);return+(-(r+(t-e)/(i?e-a:a-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M,y:b,w:F,d:D,D:H,h:m,m:h,s:_,ms:j,Q:ct}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},A="en",O={};O[A]=kt;var ft="$isDayjsObject",q=function(s){return s instanceof U||!(!s||!s[ft])},V=function s(n,t,r){var e;if(!n)return A;if(typeof n=="string"){var i=n.toLowerCase();O[i]&&(e=i),t&&(O[i]=t,e=i);var a=n.split("-");if(!e&&a.length>1)return s(a[0])}else{var o=n.name;O[o]=n,e=o}return!r&&e&&(A=e),e||!r&&A},d=function(s,n){if(q(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new U(t)},u=Ot;u.l=V,u.i=q,u.w=function(s,n){return d(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var U=(function(){function s(t){this.$L=V(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[ft]=!0}var n=s.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(u.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var a=e.match(St);if(a){var o=a[2]-1||0,f=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,f)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,f)}}return new Date(e)})(t),this.init()},n.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()},n.$utils=function(){return u},n.isValid=function(){return this.$d.toString()!==lt},n.isSame=function(t,r){var e=d(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return d(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<d(t)},n.$g=function(t,r,e){return u.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!u.u(r)||r,a=u.p(t),o=function(Y,v){var S=u.w(e.$u?Date.UTC(e.$y,v,Y):new Date(e.$y,v,Y),e);return i?S:S.endOf(D)},f=function(Y,v){return u.w(e.toDate()[Y].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(v)),e)},$=this.$W,y=this.$M,p=this.$D,T="set"+(this.$u?"UTC":"");switch(a){case b:return i?o(1,0):o(31,11);case M:return i?o(1,y):o(0,y+1);case F:var x=this.$locale().weekStart||0,N=($<x?$+7:$)-x;return o(i?p-N:p+(6-N),y);case D:case H:return f(T+"Hours",0);case m:return f(T+"Minutes",1);case h:return f(T+"Seconds",2);case _:return f(T+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=u.p(t),a="set"+(this.$u?"UTC":""),o=(e={},e[D]=a+"Date",e[H]=a+"Date",e[M]=a+"Month",e[b]=a+"FullYear",e[m]=a+"Hours",e[h]=a+"Minutes",e[_]=a+"Seconds",e[j]=a+"Milliseconds",e)[i],f=i===D?this.$D+(r-this.$W):r;if(i===M||i===b){var $=this.clone().set(H,1);$.$d[o](f),$.init(),this.$d=$.set(H,Math.min(this.$D,$.daysInMonth())).$d}else o&&this.$d[o](f);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[u.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var a=u.p(r),o=function(y){var p=d(i);return u.w(p.date(p.date()+Math.round(y*t)),i)};if(a===M)return this.set(M,this.$M+t);if(a===b)return this.set(b,this.$y+t);if(a===D)return o(1);if(a===F)return o(7);var f=(e={},e[h]=k,e[m]=g,e[_]=C,e)[a]||1,$=this.$d.getTime()+t*f;return u.w($,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||lt;var i=t||"YYYY-MM-DDTHH:mm:ssZ",a=u.z(this),o=this.$H,f=this.$m,$=this.$M,y=e.weekdays,p=e.months,T=e.meridiem,x=function(v,S,W,J){return v&&(v[S]||v(r,i))||W[S].slice(0,J)},N=function(v){return u.s(o%12||12,v,"0")},Y=T||function(v,S,W){var J=v<12?"AM":"PM";return W?J.toLowerCase():J};return i.replace(wt,(function(v,S){return S||(function(W){switch(W){case"YY":return String(r.$y).slice(-2);case"YYYY":return u.s(r.$y,4,"0");case"M":return $+1;case"MM":return u.s($+1,2,"0");case"MMM":return x(e.monthsShort,$,p,3);case"MMMM":return x(p,$);case"D":return r.$D;case"DD":return u.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return x(e.weekdaysMin,r.$W,y,2);case"ddd":return x(e.weekdaysShort,r.$W,y,3);case"dddd":return y[r.$W];case"H":return String(o);case"HH":return u.s(o,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return Y(o,f,!0);case"A":return Y(o,f,!1);case"m":return String(f);case"mm":return u.s(f,2,"0");case"s":return String(r.$s);case"ss":return u.s(r.$s,2,"0");case"SSS":return u.s(r.$ms,3,"0");case"Z":return a}return null})(v)||a.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,a=this,o=u.p(r),f=d(t),$=(f.utcOffset()-this.utcOffset())*k,y=this-f,p=function(){return u.m(a,f)};switch(o){case b:i=p()/12;break;case M:i=p();break;case ct:i=p()/3;break;case F:i=(y-$)/6048e5;break;case D:i=(y-$)/864e5;break;case m:i=y/g;break;case h:i=y/k;break;case _:i=y/C;break;default:i=y}return e?i:u.a(i)},n.daysInMonth=function(){return this.endOf(M).$D},n.$locale=function(){return O[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=V(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return u.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s})(),ht=U.prototype;return d.prototype=ht,[["$ms",j],["$s",_],["$m",h],["$H",m],["$W",D],["$M",M],["$y",b],["$D",H]].forEach((function(s){ht[s[1]]=function(n){return this.$g(n,s[0],s[1])}})),d.extend=function(s,n){return s.$i||(s(n,U,d),s.$i=!0),d},d.locale=V,d.isDayjs=q,d.unix=function(s){return d(1e3*s)},d.en=O[A],d.Ls=O,d.p={},d}))})(l)),l.exports}var vt=yt();const pt={class:"p-4"},Mt={class:"table table-striped table-bordered"},gt=["onClick"],_t=["onClick"],mt={key:0,class:"badge bg-danger"},Dt={style:{"word-break":"break-all"}},bt=["href"],Yt=dt("default",{__name:"Dashboard",setup(ot){E({items:[]});const z=P([]);R(async()=>{const g=await Q.get("ajax/history");z.value=g.data.data});function C(g){it.push("/system/"+g)}function k(g){return vt.unix(g).format("YYYY-MM-DD HH:mm:ssZ")}return(g,j)=>{const _=K("fa-icon");return L(),I("div",pt,[c("table",Mt,[j[0]||(j[0]=c("thead",{class:"table-dark"},[c("tr",null,[c("th",null," ID "),c("th",null," See "),c("th",null," IP "),c("th",null," Method "),c("th",null," URL "),c("th",null," Time "),c("th",null," Info ")])],-1)),c("tbody",null,[(L(!0),I(X,null,G(z.value,h=>(L(),I("tr",null,[c("td",null,[c("a",{href:"#",onClick:tt(m=>C(h.id),["prevent"]),class:""},w(h.id),9,gt)]),c("td",null,[c("button",{class:"btn btn-primary btn-sm",type:"button",onClick:m=>C(h.id)},[Z(_,{icon:"fa-solid fa-eye"})],8,_t)]),c("td",null,w(h.ip),1),c("td",null,[c("div",null,w(h.method),1),c("div",null,[h.ajax?(L(),I("span",mt," AJAX | API ")):et("",!0)])]),c("td",Dt,[c("a",{href:h.url,target:"_blank",class:"link-secondary"},[nt(w(h.url)+" ",1),Z(_,{class:"small",icon:"fa-solid fa-external-link"})],8,bt)]),c("td",null,w(k(h.time)),1),c("td",null,[c("span",{class:rt(["badge",`bg-${st(at)(h.response?.status||0)}`])},w(h.response?.status),3)])]))),256))])])])}}})})}}));
@@ -1 +0,0 @@
1
- System.register(["./debugger.js"],(function(u,B){"use strict";var f,d,b,g,e,a,s,c,r,y,p,i,h,_,k,x;return{setters:[t=>{f=t.$,d=t.j,b=t.c,g=t.h,e=t.u,a=t.y,s=t.b,c=t.q,r=t.g,y=t.i,p=t.l,i=t.e,h=t.z,_=t.t,k=t.A,x=t.f}],execute:(function(){u("g",t);async function t(l=void 0){const o=await f.get("ajax/last");let n="";return l?n=l+"/"+o.data.data:n="/system/"+o.data.data,d.push(n)}const C={key:0},N={class:"p-3 mt-3 mx-4 rounded-3",style:{"background-color":"var(--bs-gray-800)"}},V={class:"text-xl font-bold text-gray-800"},j={class:"text-muted"},m=["href"],D=u("_",{__name:"DefaultLayout",setup(l){const o=h();return(n,v)=>{const $=i("fa-icon"),w=i("router-link");return e(a)?(x(),b("div",C,[s("div",N,[s("h1",V,[c(n.$slots,"title")]),s("div",j,[r(w,{to:"/",class:"btn btn-sm btn-primary"},{default:p(()=>[r($,{icon:"fa-solid fa-list"})]),_:1}),s("button",{type:"button",onClick:v[0]||(v[0]=S=>e(t)("/"+e(o).name)),class:"btn btn-sm btn-success"},[r($,{icon:"fa-solid fa-arrows-rotate"})]),y(" / "+_(e(k))+" / ",1),s("a",{target:"_blank",class:"text-gray-600",href:e(a).url},_(e(a).url),9,m)])]),c(n.$slots,"default")])):g("",!0)}}})})}}));
@@ -1 +0,0 @@
1
- System.register(["./debugger.js","./DefaultLayout-DviqbPNR.js"],(function(j,S){"use strict";var f,l,s,t,u,_,p,o,b,k,y,v,h,g,E,$;return{setters:[e=>{f=e._,l=e.c,s=e.f,t=e.b,u=e.F,_=e.d,p=e.h,o=e.t,b=e.a,k=e.p,y=e.k,v=e.l,h=e.$,g=e.g,E=e.i},e=>{$=e._}],execute:(function(){const e={name:"EventListenersTable",props:{events:Object},setup(){let c=null;function n(a){const i=a!==c;return c=a,i}return{isFirstRow:n}}},L={class:"table table-bordered"},N=["rowspan"],T={key:1};function B(c,n,a,i,w,O){return s(),l("table",L,[n[2]||(n[2]=t("thead",null,[t("tr",null,[t("th",null," Event Name "),t("th",null," Times "),t("th",null," Listener ")])],-1)),t("tbody",null,[(s(!0),l(u,null,_(a.events,(r,d)=>(s(),l(u,{key:d},[Object.keys(r).length>0?(s(!0),l(u,{key:0},_(r,(D,R)=>(s(),l("tr",null,[i.isFirstRow(d)?(s(),l("td",{key:0,rowspan:Object.keys(r).length},[t("pre",null,o(d),1)],8,N)):p("",!0),t("td",null,o(D),1),t("td",null,[t("pre",null,o(R),1)])]))),256)):(s(),l("tr",T,[t("td",null,[t("pre",null,o(d),1)]),n[0]||(n[0]=t("td",null," - ",-1)),n[1]||(n[1]=t("td",null," - ",-1))]))],64))),128))])])}const x=f(e,[["render",B]]),F={key:0,class:"p-4"},V={class:"l-section l-section--triggered"},C={class:"l-section l-section--untriggered mt-5"},m=j("default",{__name:"Events",async setup(c){let n,a;const i=b(null),w=([n,a]=k(()=>h.get("ajax/data?path=events")),n=await n,a(),n);return i.value=w.data.data,(O,r)=>(s(),y($,null,{title:v(()=>[...r[0]||(r[0]=[E(" Events ",-1)])]),default:v(()=>[i.value?(s(),l("div",F,[t("section",V,[r[1]||(r[1]=t("h3",null,"Event Triggered",-1)),g(x,{events:i.value.invoked},null,8,["events"])]),t("section",C,[r[2]||(r[2]=t("h3",null,"Event Not Triggered (But has Listeners)",-1)),g(x,{events:i.value.uninvoked},null,8,["events"])])])):p("",!0)]),_:1}))}})})}}));
@@ -1 +0,0 @@
1
- System.register(["./debugger.js"],(function(u,k){"use strict";var l,a,t,i,c,s,n;return{setters:[e=>{l=e._,a=e.c,t=e.b,i=e.F,c=e.d,s=e.f,n=e.t}],execute:(function(){const e={name:"KeyValueTable",props:{data:Object},setup(){function o(r){return typeof r=="object"||Array.isArray(r)?JSON.stringify(r,null,2):r}return{displayData:o}}},y={class:"table table-bordered"},b={style:{width:"20%","word-break":"break-all"}},_={style:{width:"80%","max-width":"800px"}},p={style:{"word-break":"break-all"},class:"m-0"};function f(o,r,h,w,K,V){return s(),a("table",y,[r[0]||(r[0]=t("thead",null,[t("tr",null,[t("th",{class:"",style:{width:"20%","min-width":"150px"}}," Key "),t("th",null," Value ")])],-1)),t("tbody",null,[(s(!0),a(i,null,c(h.data,(g,d)=>(s(),a("tr",{key:d},[t("td",b,n(d),1),t("td",_,[t("pre",p,n(w.displayData(g)),1)])]))),128))])])}const x=u("K",l(e,[["render",f]]))})}}));