livedesk 0.1.657 → 0.1.659
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/hub/src/console-direct.js +35 -2
- package/hub/src/console-direct.test.mjs +51 -0
- package/package.json +1 -1
- package/web/dist/app.html +5 -11
- package/web/dist/app.webmanifest +1 -1
- package/web/dist/assets/AgentSettingsTab-Bpn32-wK.js +1 -0
- package/web/dist/assets/{AgentsPage-DcUy7xPU.js → AgentsPage-BjdQocDu.js} +6 -6
- package/web/dist/assets/CaptureGallery-BBUcyp_w.js +1 -0
- package/web/dist/assets/DesktopUpdatePanel-CiGXFhqj.js +1 -0
- package/web/dist/assets/{App-ARrqCA9B.js → HubApp-xgbqVN7t.js} +13 -13
- package/web/dist/assets/MonitorStackIcon-CQZ-PZ_C.js +8 -0
- package/web/dist/assets/SettingsPage-V35qs9m7.js +1 -0
- package/web/dist/assets/SettingsTabs-DfjoCvK4.js +1 -0
- package/web/dist/assets/{ShareFilesPage-C9vhKzGp.js → ShareFilesPage-CI514hXx.js} +3 -3
- package/web/dist/assets/SupportPage-BFvsIYyB.js +2 -0
- package/web/dist/assets/VuvoDeskApp-GbVytwYp.js +1 -0
- package/web/dist/assets/app-C1Jab4cR.js +2 -0
- package/web/dist/assets/client-8jUbxy3j.js +1 -0
- package/web/dist/assets/icons-CuXJn-Hz.js +1 -0
- package/web/dist/assets/main-DH3uxm7b.js +2 -0
- package/web/dist/assets/preload-helper-DD1OZmLC.js +1 -0
- package/web/dist/assets/pwa-bootstrap-BCid3CYk.js +1 -0
- package/web/dist/assets/pwa-startup-xxamnV7P.js +1 -0
- package/web/dist/assets/react-rvm9rmed.js +9 -0
- package/web/dist/index.html +11 -7
- package/web/dist/sw.js +14 -4
- package/web/dist/vuvodesk-build-evidence.json +89 -69
- package/web/dist/assets/AgentSettingsTab-CU3kHssT.js +0 -1
- package/web/dist/assets/CaptureGallery-BPKKxPej.js +0 -1
- package/web/dist/assets/DesktopUpdatePanel-C5wDB5zf.js +0 -1
- package/web/dist/assets/SettingsPage-ChNfBaQo.js +0 -1
- package/web/dist/assets/SettingsTabs-B-uMhvwn.js +0 -1
- package/web/dist/assets/SupportPage-C-uQ-RTX.js +0 -2
- package/web/dist/assets/VuvoDeskApp-BeeOb_MQ.js +0 -1
- package/web/dist/assets/app-DhbXrOFp.js +0 -1
- package/web/dist/assets/icons-CacEbnZu.js +0 -1
- package/web/dist/assets/main-BTb7f--C.js +0 -2
- package/web/dist/assets/react-Cfedt3N5.js +0 -1
- package/web/dist/assets/styles-eZ2IzXEL.js +0 -16
- /package/web/dist/assets/{App-DFLBNvIi.css → HubApp-DFLBNvIi.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./pwa-startup-xxamnV7P.js";import{r as i,R as x,E as j,D as u,f as g,h as f}from"./icons-CuXJn-Hz.js";import{l as b,c as d,d as y}from"./HubApp-xgbqVN7t.js";import"./pwa-bootstrap-BCid3CYk.js";import"./preload-helper-DD1OZmLC.js";import"./MonitorStackIcon-CQZ-PZ_C.js";import"./supabase-C7qjtLN3.js";import"./frame-lifecycle-esOdP-EY.js";function z({hubUrl:s,onToast:n}){const[o,m]=i.useState([]),[h,c]=i.useState(!0),r=i.useCallback(async()=>{c(!0);try{m((await b(s)).captures||[])}catch(t){n(t instanceof Error?t.message:String(t))}finally{c(!1)}},[s,n]);i.useEffect(()=>{r()},[r]);const p=async t=>{const a=d(t.id,s);if(navigator.share)try{await navigator.share({title:t.fileName,url:a});return}catch{}window.open(a,"_blank","noopener,noreferrer")};return e.jsxs("section",{className:"capture-gallery",children:[e.jsxs("header",{children:[e.jsxs("div",{children:[e.jsx("span",{className:"settings-eyebrow",children:"Capture Gallery"}),e.jsx("h2",{children:"Saved captures"})]}),e.jsxs("button",{className:"text-button",onClick:()=>{r()},type:"button",children:[e.jsx(x,{size:15})," Refresh"]})]}),h?e.jsx("p",{className:"settings-help",children:"Loading captures..."}):o.length===0?e.jsx("p",{className:"settings-help",children:"No captures saved yet."}):e.jsx("div",{className:"capture-gallery-grid",children:o.map(t=>{const a=d(t.id,s);return e.jsxs("article",{className:"capture-gallery-card",children:[t.mimeType.startsWith("image/")?e.jsx("img",{src:a,alt:t.target.label}):e.jsx("video",{src:a,controls:!0,preload:"metadata"}),e.jsxs("div",{className:"capture-gallery-card-body",children:[e.jsx("strong",{children:t.fileName}),e.jsxs("small",{children:[t.target.label," · ",new Date(t.createdAt).toLocaleString()," · ",Math.ceil(t.sizeBytes/1024)," KB"]}),e.jsxs("div",{children:[e.jsx("button",{className:"icon-button",title:"Open","aria-label":"Open",onClick:()=>window.open(a,"_blank","noopener,noreferrer"),type:"button",children:e.jsx(j,{size:15})}),e.jsx("a",{className:"icon-button",title:"Download","aria-label":"Download",href:`${a}?download=1`,download:t.fileName,children:e.jsx(u,{size:15})}),e.jsx("button",{className:"icon-button",title:"Share","aria-label":"Share",onClick:()=>{p(t)},type:"button",children:e.jsx(g,{size:15})}),e.jsx("button",{className:"icon-button danger",title:"Delete","aria-label":"Delete",onClick:()=>{window.confirm(`Delete ${t.fileName}?`)&&y(t.id,s).then(()=>r()).catch(l=>n(l instanceof Error?l.message:String(l)))},type:"button",children:e.jsx(f,{size:15})})]})]})]},t.id)})})]})}export{z as CaptureGallery};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./pwa-startup-xxamnV7P.js";import{r,D as y,P as j,R as b}from"./icons-CuXJn-Hz.js";import"./pwa-bootstrap-BCid3CYk.js";function D(t){if(!t)return"Reading the installed version...";const n=String(t.errorCode||t.error||"");switch(t.state){case"checking":return"Checking for a newer VuvoDesk version...";case"available":return`Version ${t.availableVersion||""} is available.`;case"downloading":return`Downloading version ${t.availableVersion||""} (${Math.round(t.progress||0)}%).`;case"downloaded":return`Version ${t.availableVersion||""} is ready. Restart to install it.`;case"installing":return"Closing VuvoDesk safely and starting the update...";case"current":return"This computer has the latest VuvoDesk version.";case"error":return/runtime-recovery-failed/i.test(n)?"The local VuvoDesk service could not restart. Quit VuvoDesk completely and reopen it.":/owner-cleanup-stuck|owner-reset-failed/i.test(n)?"The Windows update service could not reset. Quit VuvoDesk completely, reopen it, and check again.":/installer-launch-failed/i.test(n)?"The installer could not start. VuvoDesk restored its local service so you can retry.":/version-mismatch/i.test(n)?"The downloaded update did not match the expected version. VuvoDesk will retry safely.":/stalled|timed-out/i.test(n)?"The update connection stopped responding. VuvoDesk will retry automatically.":"The update server could not be reached. VuvoDesk will retry automatically.";case"development":return"Desktop updates are available in an installed VuvoDesk build.";case"unavailable":return"Updates are not available for this desktop build.";default:return"VuvoDesk checks once when the desktop app starts."}}function R(){const t=window.liveDesk?.updates,n=window.liveDesk?.app,[s,i]=r.useState(null),[f,u]=r.useState(!1),[o,p]=r.useState(null),[g,h]=r.useState(!1);if(r.useEffect(()=>{if(!t)return;let a=!0;t.getStatus?.().then(c=>{a&&i(c)});const d=t.onStatus?.(c=>{a&&i(c)});return()=>{a=!1,d?.()}},[t]),r.useEffect(()=>{if(!n?.getAutoStart)return;let a=!0;return n.getAutoStart().then(d=>{a&&p(d)}),()=>{a=!1}},[n]),!t)return null;const v=s?.state==="downloaded"||s?.downloaded===!0,k=!!s?.reopenRequired||/runtime-recovery-failed|owner-cleanup-stuck|owner-reset-failed/i.test(String(s?.errorCode||"")),l=f||s?.state==="checking"||s?.state==="downloading"||s?.state==="installing",m=s?.channel==="dev"?"Development":s?.channel==="stable"?"Stable":s?.channel||"Unknown",x=async()=>{u(!0);try{const a=v?await t.install?.():await t.check?.();a&&i(a)}finally{u(!1)}},w=async a=>{if(n?.setAutoStart){h(!0);try{p(await n.setAutoStart(a))}finally{h(!1)}}};return e.jsxs("section",{className:"settings-section-card desktop-update-card",children:[e.jsxs("div",{className:"settings-section-heading",children:[e.jsxs("div",{children:[e.jsx("span",{children:"Desktop app"}),e.jsx("h3",{children:"VuvoDesk updates"})]}),e.jsx(y,{size:20})]}),e.jsx("p",{className:"settings-help","aria-live":"polite",children:D(s)}),e.jsxs("div",{className:"desktop-update-meta",children:[e.jsx("span",{children:"Installed"}),e.jsx("strong",{children:s?.currentVersion||"Unknown"}),e.jsx("span",{children:"Channel"}),e.jsx("strong",{children:m}),s?.availableVersion&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Available"}),e.jsx("strong",{children:s.availableVersion})]})]}),n?.getAutoStart&&e.jsxs("div",{className:"desktop-auto-start-setting",children:[e.jsxs("div",{className:"desktop-auto-start-copy",children:[e.jsx(j,{size:18}),e.jsxs("span",{children:[e.jsx("strong",{children:"Start automatically after sign-in"}),e.jsx("small",{children:"Reconnect this computer quietly after Windows, macOS, or Linux sign-in."})]})]}),e.jsxs("label",{className:"settings-toggle desktop-auto-start-toggle",children:[e.jsx("input",{type:"checkbox",checked:o?.enabled??!0,onChange:a=>{w(a.target.checked)},disabled:!o?.supported||g}),e.jsx("span",{children:o?.enabled===!1?"Off":"On"})]}),o?.error&&e.jsx("p",{className:"desktop-auto-start-error",role:"alert",children:"Automatic start could not be updated. VuvoDesk will retry next time it opens."})]}),e.jsxs("button",{className:"settings-reset desktop-update-action",onClick:()=>{x()},disabled:l||k,type:"button",children:[e.jsx(b,{size:15,className:l?"desktop-update-spin":""}),k?"Reopen VuvoDesk":v?"Restart and update":l?"Updating...":"Check for updates"]})]})}export{R as DesktopUpdatePanel};
|