@commandkit/devtools 0.0.0-dev.20250802125228 → 0.0.0-dev.20250803125520
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/package.json +3 -3
- package/ui/assets/{commands-Cm4GBktW.js → commands-BfzkZgf_.js} +5 -5
- package/ui/assets/{events-C0m5Bubc.js → events--AdoPUVW.js} +1 -1
- package/ui/assets/{feature-flags-Djm-yr4Z.js → feature-flags-DDB2O1Pe.js} +1 -1
- package/ui/assets/{guilds-B95zpkhq.js → guilds-36nKiYJZ.js} +1 -1
- package/ui/assets/index-BFw8ZaDZ.js +175 -0
- package/ui/assets/{index-BDJGEmNK.js → index-CJaaHZxS.js} +7 -7
- package/ui/assets/{plugins-AIQ3SQjV.js → plugins-DT45gTWl.js} +1 -1
- package/ui/index.html +1 -1
- package/ui/assets/index-0LVsCwDQ.js +0 -175
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import{i as c,u as h,j as e,B as s,C as a,b as t,f as r,e as
|
|
2
|
-
* @license lucide-react v0.
|
|
1
|
+
import{i as c,u as h,j as e,B as s,C as a,b as t,f as r,e as n,l as x,h as m,m as l,n as i}from"./index-BFw8ZaDZ.js";/**
|
|
2
|
+
* @license lucide-react v0.536.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/const j=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],o=c("arrow-up-right",j);/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.536.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const u=[["path",{d:"
|
|
12
|
-
* @license lucide-react v0.
|
|
11
|
+
*/const u=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],p=c("message-square",u);/**
|
|
12
|
+
* @license lucide-react v0.536.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/const f=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],N=c("server",f);/**
|
|
17
|
-
* @license lucide-react v0.
|
|
17
|
+
* @license lucide-react v0.536.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const g=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],y=c("users",g),b=function(){const d=h();return e.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-6",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("h1",{className:"text-3xl font-bold inline-flex items-center gap-2",children:["CommandKit DevTools ",e.jsx(s,{children:"Preview"})]}),e.jsx("p",{className:"text-muted-foreground",children:"Welcome to the CommandKit DevTools."})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[e.jsxs(a,{children:[e.jsxs(t,{className:"flex flex-row items-center justify-between pb-2",children:[e.jsx(r,{className:"text-xl font-medium",children:"Guilds"}),e.jsx(N,{className:"h-5 w-5 text-muted-foreground"})]}),e.jsxs(
|
|
21
|
+
*/const g=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],y=c("users",g),b=function(){const d=h();return e.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-6",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("h1",{className:"text-3xl font-bold inline-flex items-center gap-2",children:["CommandKit DevTools ",e.jsx(s,{children:"Preview"})]}),e.jsx("p",{className:"text-muted-foreground",children:"Welcome to the CommandKit DevTools."})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[e.jsxs(a,{children:[e.jsxs(t,{className:"flex flex-row items-center justify-between pb-2",children:[e.jsx(r,{className:"text-xl font-medium",children:"Guilds"}),e.jsx(N,{className:"h-5 w-5 text-muted-foreground"})]}),e.jsxs(n,{children:[e.jsx("div",{className:"text-3xl font-bold",children:d.user.data.guilds}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Servers where your bot is active"})]}),e.jsx(x,{children:e.jsxs(s,{variant:"outline",className:"gap-1",children:[e.jsx(o,{className:"h-3 w-3"}),e.jsx("span",{children:"Active"})]})})]}),e.jsxs(a,{children:[e.jsxs(t,{className:"flex flex-row items-center justify-between pb-2",children:[e.jsx(r,{className:"text-xl font-medium",children:"Users"}),e.jsx(y,{className:"h-5 w-5 text-muted-foreground"})]}),e.jsxs(n,{children:[e.jsx("div",{className:"text-3xl font-bold",children:d.user.data.users}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Users with access to your bot"})]}),e.jsx(x,{children:e.jsxs(s,{variant:"outline",className:"gap-1",children:[e.jsx(o,{className:"h-3 w-3"}),e.jsx("span",{children:"Growing"})]})})]}),e.jsxs(a,{children:[e.jsxs(t,{className:"flex flex-row items-center justify-between pb-2",children:[e.jsx(r,{className:"text-xl font-medium",children:"Channels"}),e.jsx(p,{className:"h-5 w-5 text-muted-foreground"})]}),e.jsxs(n,{children:[e.jsx("div",{className:"text-3xl font-bold",children:d.user.data.channels}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Channels where your bot is available"})]}),e.jsx(x,{children:e.jsxs(s,{variant:"outline",className:"gap-1",children:[e.jsx(o,{className:"h-3 w-3"}),e.jsx("span",{children:"Available"})]})})]})]}),e.jsxs(a,{children:[e.jsxs(t,{children:[e.jsx(r,{children:"Quick Actions"}),e.jsx(m,{children:"These are some of the available actions"})]}),e.jsxs(n,{className:"flex flex-wrap gap-4",children:[e.jsx(l,{to:"/commands",children:e.jsx(i,{className:"cursor-pointer",children:"View Commands"})}),e.jsx(l,{to:"/guilds",children:e.jsx(i,{className:"cursor-pointer",children:"Manage Guilds"})}),e.jsx(l,{to:"/events",children:e.jsx(i,{className:"cursor-pointer",children:"View Events"})}),e.jsx(l,{to:"/plugins",children:e.jsx(i,{className:"cursor-pointer",children:"View Plugins"})})]})]})]})};export{b as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as X,u as tt,a as et,j as y,L as nt,B as rt}from"./index-
|
|
1
|
+
import{g as X,u as tt,a as et,j as y,L as nt,B as rt}from"./index-BFw8ZaDZ.js";var U={exports:{}},st=U.exports,V;function it(){return V||(V=1,function(L,C){(function(_,D){L.exports=D()})(st,function(){var _=1e3,D=6e4,A=36e5,g="millisecond",O="second",b="minute",j="hour",p="day",W="week",m="month",J="quarter",v="year",Y="date",Z="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|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,K={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])+"]"}},q=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},G={s:q,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+q(r,2,"0")+":"+q(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:m,y:v,w:W,d:p,D:Y,h:j,m:b,s:O,ms:g,Q:J}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",x={};x[H]=K;var z="$isDayjsObject",R=function(s){return s instanceof E||!(!s||!s[z])},F=function s(n,t,r){var e;if(!n)return H;if(typeof n=="string"){var i=n.toLowerCase();x[i]&&(e=i),t&&(x[i]=t,e=i);var a=n.split("-");if(!e&&a.length>1)return s(a[0])}else{var o=n.name;x[o]=n,e=o}return!r&&e&&(H=e),e||!r&&H},f=function(s,n){if(R(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new E(t)},u=G;u.l=F,u.i=R,u.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var E=function(){function s(t){this.$L=F(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[z]=!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(P);if(a){var o=a[2]-1||0,c=(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,c)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,c)}}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()!==Z},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(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(w,l){var M=u.w(e.$u?Date.UTC(e.$y,l,w):new Date(e.$y,l,w),e);return i?M:M.endOf(p)},c=function(w,l){return u.w(e.toDate()[w].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(l)),e)},d=this.$W,h=this.$M,$=this.$D,k="set"+(this.$u?"UTC":"");switch(a){case v:return i?o(1,0):o(31,11);case m:return i?o(1,h):o(0,h+1);case W:var S=this.$locale().weekStart||0,N=(d<S?d+7:d)-S;return o(i?$-N:$+(6-N),h);case p:case Y:return c(k+"Hours",0);case j:return c(k+"Minutes",1);case b:return c(k+"Seconds",2);case O:return c(k+"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[p]=a+"Date",e[Y]=a+"Date",e[m]=a+"Month",e[v]=a+"FullYear",e[j]=a+"Hours",e[b]=a+"Minutes",e[O]=a+"Seconds",e[g]=a+"Milliseconds",e)[i],c=i===p?this.$D+(r-this.$W):r;if(i===m||i===v){var d=this.clone().set(Y,1);d.$d[o](c),d.init(),this.$d=d.set(Y,Math.min(this.$D,d.daysInMonth())).$d}else o&&this.$d[o](c);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(h){var $=f(i);return u.w($.date($.date()+Math.round(h*t)),i)};if(a===m)return this.set(m,this.$M+t);if(a===v)return this.set(v,this.$y+t);if(a===p)return o(1);if(a===W)return o(7);var c=(e={},e[b]=D,e[j]=A,e[O]=_,e)[a]||1,d=this.$d.getTime()+t*c;return u.w(d,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||Z;var i=t||"YYYY-MM-DDTHH:mm:ssZ",a=u.z(this),o=this.$H,c=this.$m,d=this.$M,h=e.weekdays,$=e.months,k=e.meridiem,S=function(l,M,T,I){return l&&(l[M]||l(r,i))||T[M].slice(0,I)},N=function(l){return u.s(o%12||12,l,"0")},w=k||function(l,M,T){var I=l<12?"AM":"PM";return T?I.toLowerCase():I};return i.replace(Q,function(l,M){return M||function(T){switch(T){case"YY":return String(r.$y).slice(-2);case"YYYY":return u.s(r.$y,4,"0");case"M":return d+1;case"MM":return u.s(d+1,2,"0");case"MMM":return S(e.monthsShort,d,$,3);case"MMMM":return S($,d);case"D":return r.$D;case"DD":return u.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return S(e.weekdaysMin,r.$W,h,2);case"ddd":return S(e.weekdaysShort,r.$W,h,3);case"dddd":return h[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 w(o,c,!0);case"A":return w(o,c,!1);case"m":return String(c);case"mm":return u.s(c,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}(l)||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),c=f(t),d=(c.utcOffset()-this.utcOffset())*D,h=this-c,$=function(){return u.m(a,c)};switch(o){case v:i=$()/12;break;case m:i=$();break;case J:i=$()/3;break;case W:i=(h-d)/6048e5;break;case p:i=(h-d)/864e5;break;case j:i=h/A;break;case b:i=h/D;break;case O:i=h/_;break;default:i=h}return e?i:u.a(i)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return x[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=F(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}(),B=E.prototype;return f.prototype=B,[["$ms",g],["$s",O],["$m",b],["$H",j],["$W",p],["$M",m],["$y",v],["$D",Y]].forEach(function(s){B[s[1]]=function(n){return this.$g(n,s[0],s[1])}}),f.extend=function(s,n){return s.$i||(s(n,E,f),s.$i=!0),f},f.locale=F,f.isDayjs=R,f.unix=function(s){return f(1e3*s)},f.en=x[H],f.Ls=x,f.p={},f})}(U)),U.exports}var at=it();const ut=X(at),ot="YYYY-MM-DD HH:mm:ss";function ct(L,C=ot){return ut(L).format(C)}const dt=function(){const C=tt(),{data:_,isLoading:D,isError:A}=et({queryKey:["plugins"],queryFn:async()=>await C.plugins.fetch()});return D||!_?y.jsx(nt,{}):A?y.jsx("div",{className:"h-screen grid place-items-center",children:y.jsx("h1",{className:"text-2xl text-red-500",children:"An error occurred while fetching plugins data."})}):y.jsxs("div",{className:"p-4",children:[y.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Plugins"}),y.jsx("div",{className:"grid grid-cols-3 gap-4 py-4",children:_.map(g=>y.jsxs("div",{className:"border p-4 rounded",children:[y.jsx("h2",{className:"text-lg font-semibold",children:g.name}),y.jsx(rt,{variant:"outline",className:"text-sm text-gray-500 mt-2 font-mono",children:g.id}),y.jsxs("p",{className:"text-muted-foreground text-xs mt-2 font-medium",children:["Registered at ",ct(g.loadedAt)]})]},g.id))})]})};export{dt as component};
|
package/ui/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<style>
|
|
12
12
|
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-BFw8ZaDZ.js"></script>
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-BGwstrSk.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|