efficient-shell 4.165.0 → 4.167.0
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/README.md +117 -3
- package/dist/{Browser-ZX5GWPSM.js → Browser-6JAAEWKO.js} +12 -12
- package/dist/Calculator-NXMUEH5D.js +29 -0
- package/dist/ConfirmDialog-ZDVMT74Y.js +1 -0
- package/dist/{CurrencyConverter-7OPRFA5D.js → CurrencyConverter-3BTIZ2LT.js} +8 -8
- package/dist/{Documents-QV63346J.js → Documents-DJI7WGXG.js} +15 -15
- package/dist/{Files-BU5V56YF.js → Files-T5EUM5IQ.js} +19 -19
- package/dist/Notepad-KNRYFOM4.js +25 -0
- package/dist/{PomodoroTimer-FJV6MGE3.js → PomodoroTimer-SCPEOG6W.js} +26 -26
- package/dist/{Preview-PMQKG6FH.js → Preview-XLDGT7V4.js} +10 -10
- package/dist/{Sidebar-E6GLVCJL.js → Sidebar-C5RXL72L.js} +21 -21
- package/dist/Spreadsheet-3GOYRHZ3.js +37 -0
- package/dist/{Stock-SSNUY34E.js → Stock-UGDIALNB.js} +4 -4
- package/dist/{Weather-T5WM66B2.js → Weather-CR2MN5XF.js} +17 -17
- package/dist/{WorldClock-C3GT27AV.js → WorldClock-JBNJ7C7J.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/chunk-AFYQTVZO.js +1 -0
- package/dist/{chunk-D7EJSASN.js → chunk-B5OVATHU.js} +1 -1
- package/dist/{chunk-QTPVA26D.js → chunk-CUX4XGLS.js} +1 -1
- package/dist/chunk-CZMMBYNN.js +1 -0
- package/dist/chunk-FVXBJGY5.js +5 -0
- package/dist/chunk-GVZLCY3B.js +994 -0
- package/dist/chunk-HZZNJHRH.js +1 -0
- package/dist/{chunk-RKEHUV7U.js → chunk-JLPJBO7K.js} +1 -1
- package/dist/chunk-JYLI2WXW.js +12 -0
- package/dist/{chunk-ZLJCWBDF.js → chunk-LW27IM3S.js} +98 -98
- package/dist/chunk-M4DB7UBZ.js +29 -0
- package/dist/chunk-N3ZXQE4M.js +10 -0
- package/dist/chunk-SOI4LR67.js +27 -0
- package/dist/chunk-X4FJ54PP.js +1 -0
- package/dist/{chunk-DJ6UVHAZ.js → chunk-XKHAP6N2.js} +8 -8
- package/dist/{index-DRkpyISn.d.ts → index-CbLbd__n.d.ts} +242 -15
- package/dist/index.d.ts +3 -13
- package/dist/index.js +92 -92
- package/dist/map/index.js +4 -4
- package/dist/page-tabs/index.js +5 -5
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +12 -0
- package/package.json +1 -1
- package/dist/Calculator-NZH4FVRW.js +0 -29
- package/dist/ConfirmDialog-WEVZTFLU.js +0 -1
- package/dist/Notepad-KZIJ5ZTF.js +0 -25
- package/dist/Spreadsheet-DE5HPVE2.js +0 -37
- package/dist/chunk-4UCRT4ST.js +0 -5
- package/dist/chunk-ELSUXC3N.js +0 -1
- package/dist/chunk-FGPWGHNT.js +0 -27
- package/dist/chunk-KRTZFHYW.js +0 -29
- package/dist/chunk-MAIHBBWT.js +0 -1
- package/dist/chunk-SHVGZW2J.js +0 -1
- package/dist/chunk-SQ7BPUZG.js +0 -9
- package/dist/chunk-VDL2RLZG.js +0 -10
- package/dist/chunk-XYITV4EC.js +0 -983
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dismissPopups as o}from"./chunk-X4FJ54PP.js";import{useEffect as r,useLayoutEffect as t}from"react";var e="undefined"==typeof document?r:t;function n(r){e(()=>{r&&o()},[r])}export{n as useDismissPopupsOnOpen};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{VERSION as e}from"./chunk-
|
|
1
|
+
import{VERSION as e}from"./chunk-CZMMBYNN.js";import{useWindowMenuItem as t,Modal as r}from"./chunk-LW27IM3S.js";import{navIcons as o}from"./chunk-DSSLOQDW.js";import{useState as n,useCallback as s,isValidElement as i,cloneElement as a}from"react";import{jsx as l,jsxs as d}from"react/jsx-runtime";var c={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:"Multi-sheet spreadsheet editor with CSV / TSV import and export."},notepad:{name:"Notepad",version:"1.0.1",route:"/notepad",description:"Color-coded notes with checklists, desktop stickies and entity autolinking."},documents:{name:"Documents",version:"1.1.0",route:"/documents",description:"Letter-page editor for Word documents and plain-text files — images, lists, alignment."},preview:{name:"Preview",version:"1.4.1",route:"/preview",description:"Viewer for PDF documents, images, DXF drawings and 3D models — CAD-style measuring with object snap and an AutoCAD-like command bar."},files:{name:"Files",version:"1.1.1",route:"/files",description:"Personal file manager with folders, uploads, quota, trash and desktop shortcut folders."},browser:{name:"Browser",version:"1.0.1",route:"/browser",description:"Minimal web browser with bookmarks, history and navigation bar."}},m=/* @__PURE__ */l("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})}),p=/* @__PURE__ */l("svg",{className:"h-9 w-9",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75A2.25 2.25 0 016 4.5h12a2.25 2.25 0 012.25 2.25v10.5A2.25 2.25 0 0118 19.5H6a2.25 2.25 0 01-2.25-2.25V6.75z M3.75 9h16.5"})});function h({app:h}){const u=c[h],[x,f]=n(!1),g=s(()=>f(!0),[]);if(t(`About ${u.name}`,g,m),!x)return null;const v=o[u.route],w=i(v)?a(v,{className:"h-9 w-9"}):p;/* @__PURE__ */
|
|
2
2
|
return l(r,{open:!0,onClose:()=>f(!1),title:`About ${u.name}`,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */d("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
|
|
3
3
|
/* @__PURE__ */l("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:w}),
|
|
4
4
|
/* @__PURE__ */l("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:u.name}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{client_default as a}from"./chunk-
|
|
1
|
+
import{client_default as a}from"./chunk-LW27IM3S.js";var e=()=>a.get("/auth/numbering-configs/").then(a=>a.data?.results??a.data??[]),t="uploaded:wallpaper";function r(a,e){return"string"!=typeof a||!a||"none"===a||a.startsWith("#")?"":a===t?e||"":a}var p=()=>a.get("/auth/me/wallpaper/").then(a=>a.data),n=e=>{const t=new FormData;return t.append("wallpaper",e),a.post("/auth/me/wallpaper/",t).then(a=>a.data)},l=()=>a.delete("/auth/me/wallpaper/").then(a=>a.data);function s(a){const e=a?.response?.status,t=a?.response?.data,r=Array.isArray(t?.wallpaper)?t.wallpaper[0]:void 0;return r||(413===e?"That picture is too large to use as a wallpaper.":415===e?"That file is not a picture this can use as a wallpaper.":"The wallpaper could not be saved. Please try again.")}export{t as WALLPAPER_PREF_TOKEN,l as deleteWallpaper,e as getNumberingConfigs,p as getWallpaper,n as uploadWallpaper,r as wallpaperSrc,s as wallpaperUploadError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.167.0",a=r;export{a as APP_VERSION,r as VERSION};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{Tooltip as e}from"./chunk-JYLI2WXW.js";import{useShellStrings as r}from"./chunk-NCQLGQYR.js";import{useBrowserLayoutEffect as t,useBrowserState as n}from"./chunk-D65T4H6J.js";import{useRef as o,useEffect as i,useCallback as l}from"react";import{jsx as a,jsxs as s,Fragment as c}from"react/jsx-runtime";var u=(e,r,t)=>Math.min(t,Math.max(r,e));function d(e,r,t,n,o){return Math.round(u("left"===t?e+r:e-r,n,o))}function h(e,r,t){let n=null;try{n=window.localStorage.getItem(e)}catch{return null}const o=n?parseInt(n,10):NaN;return Number.isNaN(o)?null:u(o,r,t)}function m({width:n,onResize:s,side:c,min:m,max:f,defaultWidth:v=m,step:b=16,storageKey:g,label:p,hint:y,controls:x,className:w=""}){const N=r().resizeHandle,z=o(null),k=o({onResize:s,min:m,max:f,side:c});k.current={onResize:s,min:m,max:f,side:c},t(()=>{if(!g)return;const e=h(g,m,f);null!==e&&e!==n&&s(e)},[g]),i(()=>{if(!g)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(g,String(Math.round(n)))}catch{}},200);return()=>window.clearTimeout(e)},[n,g]);const P=l(()=>{z.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);i(()=>P,[P]);const C=e=>{z.current&&(e.currentTarget.hasPointerCapture?.(z.current.pointer)&&e.currentTarget.releasePointerCapture(z.current.pointer),P())},M="left"===c?"right-0":"left-0";/* @__PURE__ */
|
|
2
|
+
return a(e,{content:y??N.hint,side:"left"===c?"right":"left",delay:600,className:`absolute inset-y-0 ${M} z-10 flex w-2 ${w}`.trim(),children:/* @__PURE__ */a("div",{role:"separator",tabIndex:0,"aria-orientation":"vertical","aria-label":p??N.label,"aria-valuenow":Math.round(n),"aria-valuemin":m,"aria-valuemax":f,"aria-controls":x,"data-resize-handle":c,onPointerDown:e=>{0===e.button&&(e.preventDefault(),z.current={x:e.clientX,width:n,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor="col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=z.current;if(!r)return;if(0===e.buttons)return void P();const t=e.clientX-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:n,min:o,max:i,side:l}=k.current;n(d(r.width,t,l,o,i))},onPointerUp:C,onPointerCancel:C,onLostPointerCapture:()=>{z.current&&P()},onDoubleClick:()=>s(u(v,m,f)),onKeyDown:e=>{const r="ArrowRight"===e.key?b:"ArrowLeft"===e.key?-b:null,t=null!==r?d(n,r,c,m,f):"Home"===e.key?m:"End"===e.key?f:"Enter"===e.key?u(v,m,f):null;null!==t&&(e.preventDefault(),t!==n&&s(t))},className:"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */a("div",{"aria-hidden":"true",className:`absolute inset-y-0 ${M} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}var f=(e,r,t)=>Math.min(Math.max(e,r),t);function v({sidebar:e,sidebarTop:t,sidebarBottom:o,children:i,side:l="left",storageKey:u,defaultWidth:d=256,minWidth:v=180,maxWidth:b=480,className:g="",sidebarClassName:p=("right"===l?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:y="bg-white"}){const x="right"===l,w=r().sidebar,[N,z]=n(()=>(u?h(u,v,b):null)??f(d,v,b),f(d,v,b)),k=null!=t||null!=o,P=/* @__PURE__ */s("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:N},children:[
|
|
3
|
+
/* @__PURE__ */s("div",{className:`flex h-full flex-col ${k?"overflow-hidden":"overflow-y-auto"} ${p}`,children:[null!=t&&/* @__PURE__ */a("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:t}),k?/* @__PURE__ */a("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=o&&/* @__PURE__ */a("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:o})]}),
|
|
4
|
+
/* @__PURE__ */a(m,{side:l,width:N,onResize:z,min:v,max:b,defaultWidth:f(d,v,b),storageKey:u,hint:w.resize})]}),C=/* @__PURE__ */a("div",{className:`flex min-w-0 flex-1 flex-col ${y}`,children:i});/* @__PURE__ */
|
|
5
|
+
return a("div",{className:`flex h-full w-full overflow-hidden ${g}`,children:/* @__PURE__ */s(c,x?{children:[C,P]}:{children:[P,C]})})}export{m as ResizeHandle,v as SidebarLayout};
|