monoverse 0.0.11 → 0.0.13
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/cli.js +34171 -439
- package/package.json +39 -91
- package/LICENCE +0 -1
- package/README.md +0 -18
- package/dist/assets/index-DIUWvkwu.css +0 -1
- package/dist/assets/index-UQPMV9jG.js +0 -161
- package/dist/assets/index.lazy-B2wDxrXt.js +0 -21
- package/dist/index.html +0 -14
- package/dist/vite.svg +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{c,r as n,j as e,a as f,$ as g,_ as j,b as v,d as b,u as p,e as k,L as N,B as i,E as x,D as w,f as M,g as P,h as D,i as $,k as R}from"./index-UQPMV9jG.js";/**
|
|
2
|
-
* @license lucide-react v0.363.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const z=c("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
|
7
|
-
* @license lucide-react v0.363.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const C=c("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|
12
|
-
* @license lucide-react v0.363.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const E=c("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
17
|
-
* @license lucide-react v0.363.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const _=c("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),h=n.forwardRef(({className:t,type:s,...a},l)=>e.jsx("input",{type:s,className:f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:l,...a}));h.displayName="Input";const L=n.forwardRef((t,s)=>n.createElement(g.label,j({},t,{ref:s,onMouseDown:a=>{var l;(l=t.onMouseDown)===null||l===void 0||l.call(t,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault()}}))),m=L,V=v("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),y=n.forwardRef(({className:t,...s},a)=>e.jsx(m,{ref:a,className:f(V(),t),...s}));y.displayName=m.displayName;const q=b("/_layout/")({component:F});function F(){const{projects:t,removeProject:s,selectProject:a}=p(),[l,o]=n.useState(!1),d=k();return e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{className:"text-center",children:e.jsx(N,{className:"cursor-default"})}),e.jsx("div",{className:"mx-auto mt-10 max-w-xl",children:e.jsxs("div",{className:"flex flex-col items-stretch gap-4",children:[e.jsxs(i,{variant:"link",className:"flex items-center justify-center gap-2",onClick:()=>{o(!0)},children:[e.jsx(z,{}),"Add project"]}),x.PROJECT_MODE==="online",t.list.length>0?t.list.map((r,u)=>e.jsxs("div",{className:"group flex items-center gap-3",children:[e.jsxs(i,{disabled:x.PROJECT_MODE==="online",onClick:()=>{a(r),d.navigate({to:"/overview"})},variant:"ghost",className:"flex grow items-center justify-start gap-2 text-center",children:[r.type==="filepath"?e.jsx(C,{}):e.jsx(E,{}),r.value]}),e.jsx(i,{className:"opacity-30 transition-opacity group-hover:opacity-100",variant:"ghost",onClick:()=>{s(r)},children:e.jsx(_,{})})]},u)):e.jsx("div",{className:"text-center text-2xl font-bold text-[gray] dark:text-muted",children:"No projects added yet."})]})}),l&&e.jsx(O,{open:l,onOpenChange:o})]})}function O({open:t,onOpenChange:s}){const[a,l]=n.useState(""),{type:o}=n.useMemo(()=>{const r=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),u=/^(\/|([a-zA-Z]:\\)).*$/;return r.test(a)?{type:"url"}:u.test(a)?{type:"filepath"}:{type:"invalid"}},[a]),{addProject:d}=p();return e.jsxs(w,{open:t,onOpenChange:s,children:[e.jsx(M,{className:"bg-background/80"}),e.jsxs(P,{children:[e.jsx(D,{children:"Add Project"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(y,{htmlFor:"name",children:"Directory Path | Github URL"}),e.jsx(h,{id:"name",value:a,onChange:r=>{l(r.target.value)}})]}),e.jsx($,{children:e.jsx(i,{disabled:o==="invalid",onClick:()=>{R(o!=="invalid"),d({type:o,value:a}),s(!1)},children:"Save changes"})})]})]})}export{q as Route};
|
package/dist/index.html
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>monoverse</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-UQPMV9jG.js"></script>
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-DIUWvkwu.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body class="dark">
|
|
12
|
-
<div id="root"></div>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|