@weconjs/core 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devtools/client/assets/{ModuleDetail-Cv1SUhav.js → ModuleDetail-D48_sbbw.js} +1 -1
- package/dist/devtools/client/assets/{TranslationEditor-CwBjcmjN.js → TranslationEditor-jStG1RAy.js} +1 -1
- package/dist/devtools/client/assets/{api-DHFLRYt1.js → api-Cos33Dpe.js} +1 -1
- package/dist/devtools/client/assets/{arrow-left-XXd8AsXj.js → arrow-left-DJopkT8h.js} +1 -1
- package/dist/devtools/client/assets/{chevron-right-DN23SEYa.js → chevron-right-5kHArGor.js} +1 -1
- package/dist/devtools/client/assets/{index-LkCf2mcb.js → index-BfruOLuK.js} +1 -1
- package/dist/devtools/client/assets/{index-Cwwdi5uz.js → index-C1UW7SQ3.js} +2 -2
- package/dist/devtools/client/assets/{index-BbARU3f6.js → index-CjtK_Y_1.js} +1 -1
- package/dist/devtools/client/assets/{index-DbBxhrHS.js → index-D4ILhFBs.js} +1 -1
- package/dist/devtools/client/assets/{index-DH5TZlGZ.js → index-DrU8DYLn.js} +1 -1
- package/dist/devtools/client/assets/{index-jqJ0mfFs.js → index-GjEUP-iz.js} +1 -1
- package/dist/devtools/client/index.html +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,r as a,u as x,j as e,m}from"./index-
|
|
1
|
+
import{a as d,r as a,u as x,j as e,m}from"./index-C1UW7SQ3.js";import{a as p,L as u}from"./api-Cos33Dpe.js";import{A as f}from"./arrow-left-DJopkT8h.js";function b(){const{name:t}=d(),[s,l]=a.useState(null),[o,n]=a.useState(!0),i=x();return a.useEffect(()=>{t&&p.get(`/modules/${t}`).then(r=>l(r.data)).catch(console.error).finally(()=>n(!1))},[t]),o?e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(u,{className:"size-8 animate-spin text-primary"})}):s?e.jsxs(m.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex size-full flex-col gap-6 overflow-y-auto p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:()=>i("/modules"),className:"flex size-8 items-center justify-center rounded-secondary border border-primary transition-colors hover:bg-primary",children:e.jsx(f,{className:"size-4 text-primary"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-primary",children:s.name}),e.jsxs("p",{className:"text-sm text-secondary",children:["namespace: ",s.namespace," · ",s.routeCount," routes"]})]})]}),s.description&&e.jsx("p",{className:"text-sm text-secondary",children:s.description}),s.hasConfig&&s.configValues&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-lg font-semibold text-primary",children:"Config"}),e.jsx("pre",{className:"overflow-auto rounded-secondary border border-primary bg-primary p-4 text-xs text-primary",children:JSON.stringify(s.configValues,null,2)})]}),s.routes&&s.routes.length>0&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-lg font-semibold text-primary",children:"Routes"}),e.jsx("div",{className:"overflow-auto rounded-secondary border border-primary",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-primary bg-primary text-left text-xs text-secondary",children:[e.jsx("th",{className:"px-4 py-2",children:"Method"}),e.jsx("th",{className:"px-4 py-2",children:"Path"}),e.jsx("th",{className:"px-4 py-2",children:"RAI"})]})}),e.jsx("tbody",{children:s.routes.map((r,c)=>e.jsxs("tr",{className:"border-b border-primary last:border-0",children:[e.jsx("td",{className:"px-4 py-2",children:e.jsx(h,{method:r.method})}),e.jsx("td",{className:"px-4 py-2 font-mono text-xs text-primary",children:r.path}),e.jsx("td",{className:"px-4 py-2 font-mono text-xs text-secondary",children:r.rai})]},c))})]})})]})]}):e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx("p",{className:"text-secondary",children:"Module not found"})})}function h({method:t}){const s={GET:"bg-green-100 text-green-700",POST:"bg-blue-100 text-blue-700",PUT:"bg-yellow-100 text-yellow-700",PATCH:"bg-orange-100 text-orange-700",DELETE:"bg-red-100 text-red-700"};return e.jsx("span",{className:`inline-block rounded px-2 py-0.5 text-xs font-semibold ${s[t.toUpperCase()]??"bg-gray-100 text-gray-700"}`,children:t.toUpperCase()})}export{b as default};
|
package/dist/devtools/client/assets/{TranslationEditor-CwBjcmjN.js → TranslationEditor-jStG1RAy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as N,a as S,r as i,u as w,j as e,m as x}from"./index-
|
|
1
|
+
import{c as N,a as S,r as i,u as w,j as e,m as x}from"./index-C1UW7SQ3.js";import{a as y,L as f}from"./api-Cos33Dpe.js";import{A as z}from"./arrow-left-DJopkT8h.js";/**
|
|
2
2
|
* @license lucide-react v0.460.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,u as g,j as e,B as y,R as v,S as j,G as N,m as l}from"./index-
|
|
1
|
+
import{r as t,u as g,j as e,B as y,R as v,S as j,G as N,m as l}from"./index-C1UW7SQ3.js";import{L as b,a as c}from"./api-Cos33Dpe.js";function S(){const[i,d]=t.useState({modules:0,routes:0,config:!1}),[m,u]=t.useState(!0),[o,x]=t.useState(null),p=g();if(t.useEffect(()=>{(async()=>{var r,n;try{const[a,h]=await Promise.all([c.get("/modules"),c.get("/routes")]);d({modules:((r=a.data)==null?void 0:r.length)??0,routes:((n=h.data)==null?void 0:n.length)??0,config:!0})}catch(a){x(a.message||"Failed to connect to DevTools API")}finally{u(!1)}})()},[]),m)return e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(b,{className:"size-8 animate-spin text-primary"})});if(o)return e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsxs("div",{className:"rounded-primary border border-primary bg-secondary p-8 text-center",children:[e.jsx("div",{className:"mb-3 text-lg font-semibold text-primary",children:"Connection Error"}),e.jsx("p",{className:"text-sm text-secondary",children:o}),e.jsx("p",{className:"mt-2 text-xs text-secondary",children:"Make sure your Wecon app is running with devtools enabled."})]})});const f=[{title:"Modules",value:i.modules,icon:y,description:"Registered application modules",path:"/modules"},{title:"Routes",value:i.routes,icon:v,description:"API route endpoints (RAIs)",path:"/routes"},{title:"Config",value:"View",icon:j,description:"Application configuration",path:"/config"},{title:"I18n",value:"Manage",icon:N,description:"Translation namespaces",path:"/i18n"}];return e.jsxs(l.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex size-full flex-col gap-6 overflow-y-auto p-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-primary",children:"Wecon DevTools"}),e.jsx("p",{className:"mt-1 text-sm text-secondary",children:"Inspect and manage your application modules, routes, config, and translations."})]}),e.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:f.map(s=>e.jsxs(l.div,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>p(s.path),className:"flex cursor-pointer flex-col gap-3 rounded-primary border border-primary bg-secondary p-5 shadow-small transition-shadow hover:shadow-medium",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(s.icon,{className:"size-5 text-secondary"}),e.jsx("span",{className:"text-2xl font-bold text-primary",children:s.value})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold text-primary",children:s.title}),e.jsx("div",{className:"text-xs text-secondary",children:s.description})]})]},s.title))})]})}export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BfruOLuK.js","./api-Cos33Dpe.js","./index-CjtK_Y_1.js","./chevron-right-5kHArGor.js","./ModuleDetail-D48_sbbw.js","./arrow-left-DJopkT8h.js","./index-GjEUP-iz.js","./index-D4ILhFBs.js","./TranslationEditor-jStG1RAy.js","./index-DrU8DYLn.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function Pg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Eg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},Vo={},yd={exports:{}},j={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -178,4 +178,4 @@ Error generating stack: `+o.message+`
|
|
|
178
178
|
border-r border-primary
|
|
179
179
|
bg-secondary p-[8px]
|
|
180
180
|
transition-all duration-300 ease-in-out
|
|
181
|
-
`,children:[R.jsx(tE,{}),R.jsx(nE,{}),R.jsx("div",{className:"h-[24px] min-h-[24px] w-full",children:R.jsx(ko,{mode:"wait",children:e?R.jsx(ii.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"flex h-[24px] min-h-[24px] w-full items-center justify-start overflow-hidden px-[10px] text-[14px] font-medium text-secondary",children:"Menu"},"menu-title"):R.jsx(ii.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"24px"},exit:{opacity:0,height:0},transition:{duration:.3},className:"mx-auto flex h-[24px] w-[80%] items-center justify-center",children:R.jsx("div",{className:"h-px w-full bg-primary"})},"menu-title-line")})}),R.jsx(oE,{})]})};function lE(){const e=ge(o=>o.isSideBarOpen),t=ge(o=>o.isMobile),n=ge(o=>o.setIsMobile),[r,i]=YP();return S.useEffect(()=>{i.width!==0&&n(i.width<768)},[i.width,n]),R.jsxs("div",{ref:r,className:"flex h-lvh min-h-lvh w-full overflow-hidden bg-primary",children:[R.jsx("div",{className:`h-dvh max-h-dvh ${t?e?"ml-0 min-w-[300px]":"-ml-[300px] min-w-[300px]":e?"min-w-[300px]":"min-w-[68px]"} transition-all duration-300 ease-in-out`,children:R.jsx(sE,{})}),R.jsxs("div",{className:`${e?t?"min-w-full":"w-[calc(100%-300px)]":t?"w-full":"w-[calc(100%-68px)]"} flex max-h-[100dvh] flex-col gap-2 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out`,children:[R.jsx(ko,{mode:"wait",children:R.jsx(XP,{})}),R.jsx("div",{className:"size-full",children:R.jsx(ko,{mode:"wait",children:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(K0,{})})})})]})]})}const aE="modulepreload",uE=function(e,t){return new URL(e,t).href},gd={},gn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=uE(u,r),u in gd)return;gd[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=s.length-1;v>=0;v--){const y=s[v];if(y.href===u&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":aE,c||(g.as="script"),g.crossOrigin="",g.href=u,a&&g.setAttribute("nonce",a),document.head.appendChild(g),c)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},cE=S.lazy(()=>gn(()=>import("./index-
|
|
181
|
+
`,children:[R.jsx(tE,{}),R.jsx(nE,{}),R.jsx("div",{className:"h-[24px] min-h-[24px] w-full",children:R.jsx(ko,{mode:"wait",children:e?R.jsx(ii.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"flex h-[24px] min-h-[24px] w-full items-center justify-start overflow-hidden px-[10px] text-[14px] font-medium text-secondary",children:"Menu"},"menu-title"):R.jsx(ii.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"24px"},exit:{opacity:0,height:0},transition:{duration:.3},className:"mx-auto flex h-[24px] w-[80%] items-center justify-center",children:R.jsx("div",{className:"h-px w-full bg-primary"})},"menu-title-line")})}),R.jsx(oE,{})]})};function lE(){const e=ge(o=>o.isSideBarOpen),t=ge(o=>o.isMobile),n=ge(o=>o.setIsMobile),[r,i]=YP();return S.useEffect(()=>{i.width!==0&&n(i.width<768)},[i.width,n]),R.jsxs("div",{ref:r,className:"flex h-lvh min-h-lvh w-full overflow-hidden bg-primary",children:[R.jsx("div",{className:`h-dvh max-h-dvh ${t?e?"ml-0 min-w-[300px]":"-ml-[300px] min-w-[300px]":e?"min-w-[300px]":"min-w-[68px]"} transition-all duration-300 ease-in-out`,children:R.jsx(sE,{})}),R.jsxs("div",{className:`${e?t?"min-w-full":"w-[calc(100%-300px)]":t?"w-full":"w-[calc(100%-68px)]"} flex max-h-[100dvh] flex-col gap-2 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out`,children:[R.jsx(ko,{mode:"wait",children:R.jsx(XP,{})}),R.jsx("div",{className:"size-full",children:R.jsx(ko,{mode:"wait",children:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(K0,{})})})})]})]})}const aE="modulepreload",uE=function(e,t){return new URL(e,t).href},gd={},gn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=uE(u,r),u in gd)return;gd[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=s.length-1;v>=0;v--){const y=s[v];if(y.href===u&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":aE,c||(g.as="script"),g.crossOrigin="",g.href=u,a&&g.setAttribute("nonce",a),document.head.appendChild(g),c)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},cE=S.lazy(()=>gn(()=>import("./index-BfruOLuK.js"),__vite__mapDeps([0,1]),import.meta.url)),fE=S.lazy(()=>gn(()=>import("./index-CjtK_Y_1.js"),__vite__mapDeps([2,1,3]),import.meta.url)),dE=S.lazy(()=>gn(()=>import("./ModuleDetail-D48_sbbw.js"),__vite__mapDeps([4,1,5]),import.meta.url)),hE=S.lazy(()=>gn(()=>import("./index-GjEUP-iz.js"),__vite__mapDeps([6,1,3]),import.meta.url)),pE=S.lazy(()=>gn(()=>import("./index-D4ILhFBs.js"),__vite__mapDeps([7,1,3]),import.meta.url)),mE=S.lazy(()=>gn(()=>import("./TranslationEditor-jStG1RAy.js"),__vite__mapDeps([8,1,5]),import.meta.url)),gE=S.lazy(()=>gn(()=>import("./index-DrU8DYLn.js"),__vite__mapDeps([9,1]),import.meta.url)),vE=[{path:"/",name:"Overview",component:cE},{path:"/modules",name:"Modules",component:fE},{path:"/modules/:name",name:"Module Detail",component:dE},{path:"/config",name:"Config",component:hE},{path:"/i18n",name:"I18n",component:pE},{path:"/i18n/:namespace/:lang",name:"Translation Editor",component:mE},{path:"/routes",name:"Routes",component:gE}];function yE(){return R.jsx(GP,{children:R.jsx(Q0,{children:R.jsx(Zi,{element:R.jsx(lE,{}),children:vE.map(e=>e.path==="/"?R.jsx(Zi,{index:!0,element:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(e.component,{})})},e.path):R.jsx(Zi,{path:e.path,element:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(e.component,{})})},e.path))})})})}function wE(){return R.jsx(Z0,{basename:"/dev/devtools/ui",children:R.jsx(yE,{})})}Ap(document.getElementById("root")).render(R.jsx(S.StrictMode,{children:R.jsx(wE,{})}));export{TP as B,MP as G,_P as R,VP as S,xE as a,KP as b,be as c,R as j,ii as m,S as r,R0 as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,u as c,j as e,m as r,B as d}from"./index-
|
|
1
|
+
import{r as t,u as c,j as e,m as r,B as d}from"./index-C1UW7SQ3.js";import{a as x,L as m}from"./api-Cos33Dpe.js";import{C as u}from"./chevron-right-5kHArGor.js";function y(){const[a,i]=t.useState([]),[n,l]=t.useState(!0),o=c();return t.useEffect(()=>{x.get("/modules").then(s=>i(s.data)).catch(console.error).finally(()=>l(!1))},[]),n?e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(m,{className:"size-8 animate-spin text-primary"})}):e.jsxs(r.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex size-full flex-col gap-6 overflow-y-auto p-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-primary",children:"Modules"}),e.jsxs("p",{className:"mt-1 text-sm text-secondary",children:[a.length," registered module",a.length!==1?"s":""]})]}),e.jsx("div",{className:"flex flex-col gap-3",children:a.map(s=>e.jsxs(r.div,{whileHover:{x:4},onClick:()=>o(`/modules/${s.name}`),className:"flex cursor-pointer items-center gap-4 rounded-primary border border-primary bg-secondary p-4 transition-shadow hover:shadow-small",children:[e.jsx("div",{className:"flex size-10 items-center justify-center rounded-secondary bg-primary",children:e.jsx(d,{className:"size-5 text-secondary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-semibold text-primary",children:s.name}),e.jsx("div",{className:"text-xs text-secondary",children:s.description||"No description"})]}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-secondary",children:[e.jsxs("span",{children:[s.routeCount," route",s.routeCount!==1?"s":""]}),s.hasConfig&&e.jsx("span",{className:"rounded-full bg-primary px-2 py-0.5 text-primary",children:"config"})]}),e.jsx(u,{className:"size-4 text-secondary"})]},s.name))})]})}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,u as x,j as e,m as r,G as n}from"./index-
|
|
1
|
+
import{r as i,u as x,j as e,m as r,G as n}from"./index-C1UW7SQ3.js";import{a as d,L as p}from"./api-Cos33Dpe.js";import{C as f}from"./chevron-right-5kHArGor.js";function j(){const[a,c]=i.useState([]),[l,o]=i.useState(!0),m=x();return i.useEffect(()=>{d.get("/i18n").then(s=>c(s.data)).catch(console.error).finally(()=>o(!1))},[]),l?e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(p,{className:"size-8 animate-spin text-primary"})}):a.length===0?e.jsxs(r.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex size-full flex-col items-center justify-center gap-4 p-6",children:[e.jsx(n,{className:"size-12 text-secondary"}),e.jsx("p",{className:"text-secondary",children:"No i18n namespaces found"}),e.jsx("p",{className:"text-xs text-secondary",children:"Enable i18n in your Wecon config to manage translations."})]}):e.jsxs(r.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex size-full flex-col gap-6 overflow-y-auto p-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-primary",children:"Translations"}),e.jsxs("p",{className:"mt-1 text-sm text-secondary",children:[a.length," namespace",a.length!==1?"s":""]})]}),e.jsx("div",{className:"flex flex-col gap-3",children:a.map(s=>e.jsxs("div",{className:"rounded-primary border border-primary bg-secondary p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-3",children:[e.jsx(n,{className:"size-5 text-secondary"}),e.jsx("span",{className:"font-semibold text-primary",children:s.namespace})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.languages.map(t=>e.jsxs(r.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>m(`/i18n/${s.namespace}/${t}`),className:"flex items-center gap-2 rounded-secondary border border-primary px-3 py-1.5 text-xs transition-colors hover:bg-primary",children:[e.jsx("span",{className:"font-semibold text-primary",children:t.toUpperCase()}),e.jsxs("span",{className:"text-secondary",children:[s.keyCount[t]??0," keys"]}),e.jsx(f,{className:"size-3 text-secondary"})]},t))})]},s.namespace))})]})}export{j as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as m,r as a,j as e,m as h}from"./index-
|
|
1
|
+
import{c as m,r as a,j as e,m as h}from"./index-C1UW7SQ3.js";import{a as y,L as u}from"./api-Cos33Dpe.js";/**
|
|
2
2
|
* @license lucide-react v0.460.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as o,r as l,j as e,m as x}from"./index-
|
|
1
|
+
import{c as o,r as l,j as e,m as x}from"./index-C1UW7SQ3.js";import{a as m,L as f}from"./api-Cos33Dpe.js";import{C as p}from"./chevron-right-5kHArGor.js";/**
|
|
2
2
|
* @license lucide-react v0.460.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon"
|
|
5
|
+
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🔧</text></svg>" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Wecon DevTools</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-C1UW7SQ3.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="./assets/index-BFzJyDrn.css">
|
|
10
10
|
</head>
|
|
11
11
|
|