@zhanguym/chatroom 1.1.0-beta.1 → 1.1.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/dist/native/macos/ChatRoomComputerHelper.app/Contents/MacOS/chatroom-computer-helper +0 -0
- package/dist/native/windows/chatroom-computer-helper.exe +0 -0
- package/dist/web/assets/{AgentView-BwL3S7sb.js → AgentView-Dd6zCbr-.js} +1 -1
- package/dist/web/assets/{CloudView-DH4sOXJr.js → CloudView-DquY1HDZ.js} +1 -1
- package/dist/web/assets/CodeViewer.vue_vue_type_script_setup_true_lang-ekOImmBP.js +3 -0
- package/dist/web/assets/ComputerView-RD2gMxJZ.js +1 -0
- package/dist/web/assets/{MarkdownContent-AdAmmDn5.js → MarkdownContent-CkjR5fs7.js} +1 -1
- package/dist/web/assets/{McpToolsView-CPaWUG9h.js → McpToolsView-Dg2-iaDP.js} +1 -1
- package/dist/web/assets/{OperationsView-D2FtLkHn.js → OperationsView-C8yCX7WZ.js} +2 -2
- package/dist/web/assets/{ProcessesView-BHOsaM2H.js → ProcessesView-C834LC-f.js} +2 -2
- package/dist/web/assets/{StateChip.vue_vue_type_script_setup_true_lang-iW1SYlX_.js → StateChip.vue_vue_type_script_setup_true_lang-By2gilBw.js} +1 -1
- package/dist/web/assets/{SystemLogsView-By5ijObd.js → SystemLogsView-B6KcZv1J.js} +1 -1
- package/dist/web/assets/{VSelect-CLnwhyWJ.js → VSelect-BtAJX-XJ.js} +1 -1
- package/dist/web/assets/VSpacer-M8bpkhTH.js +1 -0
- package/dist/web/assets/VSwitch-C0VTnwLJ.js +1 -0
- package/dist/web/assets/VTabs-g61mykvY.js +1 -0
- package/dist/web/assets/VTextarea-CRYQYRqg.js +1 -0
- package/dist/web/assets/{WorkspaceDownloadPreview-BjuqUdB9.js → WorkspaceDownloadPreview-BrESF-82.js} +1 -1
- package/dist/web/assets/{WorkspaceMediaPreview-D-igEnka.css → WorkspaceMediaPreview-CwtP9xWT.css} +1 -1
- package/dist/web/assets/WorkspaceMediaPreview-HYajqgZ3.js +4 -0
- package/dist/web/assets/WorkspacePdfPreview-BtZkUHzV.css +1 -0
- package/dist/web/assets/WorkspacePdfPreview-CO-ZtDHG.js +55 -0
- package/dist/web/assets/{WorkspacesView-DHl28eWf.js → WorkspacesView-BJCnzBLj.js} +1 -1
- package/dist/web/assets/{index-BzRlodie.js → index-u-aADQP-.js} +2 -2
- package/dist/web/assets/pdf.worker.min-CjEcRF4W.mjs +28 -0
- package/dist/web/assets/{useMasterDetailFocus-BQAutDO9.js → useMasterDetailFocus-D1mQ8Qjk.js} +1 -1
- package/dist/web/assets/{useOperationLabels-C-zgM_ET.js → useOperationLabels-BjPIVnJW.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +2 -1
- package/dist/web/assets/CodeViewer.vue_vue_type_script_setup_true_lang-BaC1eGzG.js +0 -3
- package/dist/web/assets/ComputerView-BJSjCxFr.js +0 -1
- package/dist/web/assets/VSpacer-dDRRKhUn.js +0 -1
- package/dist/web/assets/VSwitch-CGzxwZuj.js +0 -1
- package/dist/web/assets/VTabs-7aSwjrKs.js +0 -1
- package/dist/web/assets/VTextarea-D1_2FwMe.js +0 -1
- package/dist/web/assets/WorkspaceMediaPreview-LwXeVOY2.js +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as ue,b1 as U,ag as oe,aU as ie,a$ as re,b2 as se,a9 as g,b3 as ce,_ as de,w as c,a6 as fe,am as ve,au as me,aa as F,aN as R,aD as xe,ay as ge,b4 as he,az as be,aV as we,b5 as Ve,E as ye,aY as Fe,aX as $,b6 as O,g as A,p as o,F as B,b7 as Ce,a3 as M,aO as W,b8 as Pe,Q as Ie,B as C,b9 as Ne,ba as ke,bb as Se}from"./index-u-aADQP-.js";const He=ge({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Ve(),...be(we(),["direction"]),...he()},"VTextarea"),Ae=ue()({name:"VTextarea",directives:{vIntersect:U},inheritAttrs:!1,props:He(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,{attrs:P,emit:I,slots:d}){const l=oe(e,"modelValue"),{isFocused:f,focus:j,blur:Q}=ie(e),{onIntersect:X}=ke(e),Y=C(()=>typeof e.counterValue=="function"?e.counterValue(l.value):(l.value||"").toString().length),q=C(()=>{if(P.maxlength)return P.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),z=g(),b=g(),_=ye(""),v=g(),N=g(0),{platform:J}=re(),w=se(e),K=C(()=>e.persistentPlaceholder||f.value||e.active);function k(){w.isSuppressing.value&&w.update(),v.value!==Se()&&v.value?.focus(),f.value||j()}function L(t){k(),I("click:control",t)}function Z(t){I("mousedown:control",t)}function p(t){t.stopPropagation(),k(),F(()=>{l.value="",Ne(e["onClick:clear"],t)})}function ee(t){const a=t.target;if(!e.modelModifiers?.trim){l.value=a.value;return}const u=a.value,x=a.selectionStart,r=a.selectionEnd;l.value=u,F(()=>{let s=0;u.trimStart().length===a.value.length&&(s=u.length-a.value.length),x!=null&&(a.selectionStart=x-s),r!=null&&(a.selectionEnd=r-s)})}const m=g(),h=g(Number(e.rows)),V=C(()=>["plain","underlined"].includes(e.variant));ce(()=>{e.autoGrow||(h.value=Number(e.rows))});function i(){F(()=>{if(!v.value)return;if(J.value.firefox){N.value=12;return}const{offsetWidth:t,clientWidth:a}=v.value;N.value=Math.max(0,t-a)}),e.autoGrow&&F(()=>{if(!m.value||!b.value)return;const t=getComputedStyle(m.value),a=getComputedStyle(b.value.$el),u=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),x=m.value.scrollHeight,r=parseFloat(t.lineHeight),s=Math.max(parseFloat(e.rows)*r+u,parseFloat(a.getPropertyValue("--v-input-control-height"))),S=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*r+u||1/0,n=xe(x??0,s,S);h.value=Math.floor((n-u)/r),_.value=R(n)})}de(i),c(l,i),c(()=>e.rows,i),c(()=>e.maxHeight,i),c(()=>e.maxRows,i),c(()=>e.density,i),c(h,t=>{I("update:rows",t)});let y;return c(m,t=>{t?(y=new ResizeObserver(i),y.observe(m.value)):y?.disconnect()}),fe(()=>{y?.disconnect()}),ve(()=>{const t=!!(d.counter||e.counter||e.counterValue),a=e.hideDetails!==!0&&!!(d.details||t&&(e.persistentCounter||e.hideDetails===!1||f.value)),[u,x]=Fe(P),{modelValue:r,...s}=$.filterProps(e),S={...O.filterProps(e),"onClick:clear":p};return A($,M({ref:z,modelValue:l.value,"onUpdate:modelValue":n=>l.value=n,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":V.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?R(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":R(N.value)},e.style]},u,s,{centerAffix:h.value===1&&!V.value,focused:f.value,indentDetails:e.indentDetails??!V.value}),{...d,default:({id:n,isDisabled:T,isDirty:D,isReadonly:te,isValid:ae,hasDetails:le})=>A(O,M({ref:b,style:{"--v-textarea-control-height":_.value},onClick:L,onMousedown:Z,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},S,{id:n.value,active:K.value||D.value,labelId:`${n.value}-label`,centerAffix:h.value===1&&!V.value,dirty:D.value||e.dirty,disabled:T.value,focused:f.value,details:le.value,error:ae.value===!1}),{...d,default:({props:{class:E,...G},controlRef:ne})=>o(B,null,[e.prefix&&o("span",{class:"v-text-field__prefix"},[e.prefix]),W(o("textarea",M({ref:H=>v.value=ne.value=H,class:E,value:l.value,onInput:ee,autofocus:e.autofocus,readonly:te.value,disabled:T.value,placeholder:e.placeholder,rows:e.rows,name:w.fieldName.value,autocomplete:w.fieldAutocomplete.value,onFocus:k,onBlur:Q,"aria-labelledby":`${n.value}-label`},G,x),null),[[U,{handler:X},null,{once:!0}]]),e.autoGrow&&W(o("textarea",{class:Ie([E,"v-textarea__sizer"]),id:`${G.id}-sizer`,"onUpdate:modelValue":H=>l.value=H,ref:m,readonly:!0,"aria-hidden":"true"},null),[[Pe,l.value]]),e.suffix&&o("span",{class:"v-text-field__suffix"},[e.suffix])])}),details:a?n=>o(B,null,[d.details?.(n),t&&o(B,null,[o("span",null,null),A(Ce,{active:e.persistentCounter||f.value,value:Y.value,max:q.value,disabled:e.disabled},d.counter)])]):void 0})}),me({},z,b,v)}});export{Ae as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as P,u as B,a as U,w as N,b as T,e as W,o as e,c as l,f as r,g as s,V as F,h as L,i as S,j as w,t as k,k as C,l as i,m as _,n as A,p as E,q as O,r as g,s as D,v as M,F as R,x as q,y as j,z,A as I,B as x,C as K,D as Q,E as b}from"./index-
|
|
1
|
+
import{d as P,u as B,a as U,w as N,b as T,e as W,o as e,c as l,f as r,g as s,V as F,h as L,i as S,j as w,t as k,k as C,l as i,m as _,n as A,p as E,q as O,r as g,s as D,v as M,F as R,x as q,y as j,z,A as I,B as x,C as K,D as Q,E as b}from"./index-u-aADQP-.js";import{_ as G}from"./CodeViewer.vue_vue_type_script_setup_true_lang-ekOImmBP.js";import{M as H}from"./MarkdownContent-CkjR5fs7.js";import{W as J,a as X}from"./WorkspaceMediaPreview-HYajqgZ3.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./VSpacer-M8bpkhTH.js";import"./syntax-highlight-C_fuMcwC.js";const Z={class:"workspace-download-preview-body"},ee=["src","alt"],ae=P({__name:"WorkspaceDownloadPreview",props:I({workspace:{},path:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const o=a,d=B(a,"modelValue"),v=U(),t=x(()=>K(o.path)),h=x(()=>Q(o.path)),$=x(()=>`/api/workspace/file/${t.value==="image"?"image":"preview"}?${new URLSearchParams({workspace:o.workspace,path:o.path})}`),n=b(null),p=b(!1),m=b("");return N([d,()=>o.workspace,()=>o.path],([y],u,f)=>{if(n.value=null,m.value="",p.value=!1,!y||t.value!=="text")return;const c=new AbortController;f(()=>c.abort()),p.value=!0,T(`/workspace/file?${new URLSearchParams({workspace:o.workspace,path:o.path})}`,{signal:c.signal}).then(V=>{c.signal.aborted||(n.value=V)}).catch(V=>{c.signal.aborted||(m.value=W(V))}).finally(()=>{c.signal.aborted||(p.value=!1)})},{immediate:!0}),(y,u)=>(e(),l(z,{modelValue:d.value,"onUpdate:modelValue":u[1]||(u[1]=f=>d.value=f),fullscreen:""},{default:r(()=>[s(F,{class:"workspace-download-preview"},{default:r(()=>[s(L,{density:"comfortable",color:"surface"},{default:r(()=>[s(S,{class:"text-body-1 text-truncate",title:a.path},{default:r(()=>[w(k(h.value),1)]),_:1},8,["title"]),s(C,{variant:"text","prepend-icon":"$mdiDownloadOutline",href:i(_)(a.workspace,a.path),download:h.value},{default:r(()=>[w(k(i(v).t("$vuetify.chatroom.files.download")),1)]),_:1},8,["href","download"]),s(C,{icon:"$mdiClose",variant:"text","aria-label":i(v).t("$vuetify.chatroom.common.close"),onClick:u[0]||(u[0]=f=>d.value=!1)},null,8,["aria-label"])]),_:1}),s(A),E("div",Z,[p.value?(e(),l(O,{key:0,indeterminate:""})):g("",!0),m.value?(e(),l(D,{key:1,type:"error",variant:"tonal",density:"compact"},{default:r(()=>[w(k(m.value),1)]),_:1})):t.value==="pdf"||t.value==="video"||t.value==="audio"?(e(),l(J,{key:2,kind:t.value,path:a.path,url:$.value},null,8,["kind","path","url"])):t.value==="image"?(e(),M("img",{key:3,class:"workspace-download-preview-image",src:$.value,alt:h.value},null,8,ee)):t.value==="text"&&n.value?(e(),M(R,{key:4},[n.value.truncated?(e(),l(D,{key:0,type:"warning",variant:"tonal",density:"compact"},{default:r(()=>[w(k(i(v).t("$vuetify.chatroom.files.previewTruncated")),1)]),_:1})):g("",!0),/\.(csv|tsv)$/i.test(a.path)?(e(),l(X,{key:1,content:n.value.content,path:a.path,truncated:n.value.truncated},null,8,["content","path","truncated"])):i(q)(a.path)?(e(),l(H,{key:2,text:n.value.content},null,8,["text"])):(e(),l(G,{key:3,text:n.value.content,filename:a.path,"show-download":!1},null,8,["text","filename"]))],64)):t.value==="unsupported"?(e(),l(j,{key:5,icon:"$mdiFileQuestionOutline",title:i(v).t("$vuetify.chatroom.files.previewUnavailable")},null,8,["title"])):g("",!0)])]),_:1})]),_:1},8,["modelValue"]))}}),ue=Y(ae,[["__scopeId","data-v-017e407c"]]);export{ue as default};
|
package/dist/web/assets/{WorkspaceMediaPreview-D-igEnka.css → WorkspaceMediaPreview-CwtP9xWT.css}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
.workspace-csv-preview[data-v-88d1ee33]{display:flex;min-width:0;min-height:0;flex-direction:column;height:100%;border:1px solid rgb(var(--v-theme-outline),.12);border-radius:10px;overflow:hidden}.workspace-csv-toolbar[data-v-88d1ee33]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;font-size:12px;color:rgb(var(--v-theme-on-surface),.6)}.workspace-csv-pages[data-v-88d1ee33]{display:flex;align-items:center;gap:5px;white-space:nowrap}.workspace-csv-scroll[data-v-88d1ee33]{flex:1 1 auto;min-height:0;overflow:auto}.workspace-csv-table[data-v-88d1ee33]{min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px;text-align:left}.workspace-csv-table th[data-v-88d1ee33],.workspace-csv-table td[data-v-88d1ee33]{padding:8px 12px;max-width:350px;border-right:1px solid rgb(var(--v-theme-outline),.07);border-bottom:1px solid rgb(var(--v-theme-outline),.1);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.workspace-csv-table thead th[data-v-88d1ee33]{position:sticky;top:0;z-index:1;background:rgb(var(--v-theme-surface));font-weight:600}.workspace-csv-table tbody th[data-v-88d1ee33]{color:rgb(var(--v-theme-on-surface),.5);font-variant-numeric:tabular-nums}@media(max-width:820px){.workspace-csv-preview[data-v-88d1ee33]{height:auto}.workspace-csv-scroll[data-v-88d1ee33]{max-height:75dvh}}.workspace-media-preview[data-v-
|
|
1
|
+
.workspace-csv-preview[data-v-88d1ee33]{display:flex;min-width:0;min-height:0;flex-direction:column;height:100%;border:1px solid rgb(var(--v-theme-outline),.12);border-radius:10px;overflow:hidden}.workspace-csv-toolbar[data-v-88d1ee33]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;font-size:12px;color:rgb(var(--v-theme-on-surface),.6)}.workspace-csv-pages[data-v-88d1ee33]{display:flex;align-items:center;gap:5px;white-space:nowrap}.workspace-csv-scroll[data-v-88d1ee33]{flex:1 1 auto;min-height:0;overflow:auto}.workspace-csv-table[data-v-88d1ee33]{min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px;text-align:left}.workspace-csv-table th[data-v-88d1ee33],.workspace-csv-table td[data-v-88d1ee33]{padding:8px 12px;max-width:350px;border-right:1px solid rgb(var(--v-theme-outline),.07);border-bottom:1px solid rgb(var(--v-theme-outline),.1);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.workspace-csv-table thead th[data-v-88d1ee33]{position:sticky;top:0;z-index:1;background:rgb(var(--v-theme-surface));font-weight:600}.workspace-csv-table tbody th[data-v-88d1ee33]{color:rgb(var(--v-theme-on-surface),.5);font-variant-numeric:tabular-nums}@media(max-width:820px){.workspace-csv-preview[data-v-88d1ee33]{height:auto}.workspace-csv-scroll[data-v-88d1ee33]{max-height:75dvh}}.workspace-media-preview[data-v-47104036]{display:flex;height:100%;min-height:0;flex-direction:column;align-items:center;gap:12px}.workspace-video-player[data-v-47104036]{width:100%;max-height:100%}.workspace-audio-player[data-v-47104036]{width:100%}.workspace-media-preview a[data-v-47104036]{align-self:flex-end;font-size:12px}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WorkspacePdfPreview-CO-ZtDHG.js","assets/index-u-aADQP-.js","assets/index-CZ-4tJlF.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/WorkspacePdfPreview-BtZkUHzV.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as B,a as V,w as W,o as t,v as l,p as c,t as p,l as k,g as x,k as P,r as b,c as E,s as A,f as L,j as N,F as $,N as C,E as I,B as y,$ as M,a0 as T}from"./index-u-aADQP-.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";function D(e,f,o=2001,a=100){const u=[];let d=[],n="",r=!1,g=!1,_=!1;const s=e.charCodeAt(0)===65279?e.slice(1):e,v=()=>{d.length<a?d.push(n):g=!0,n=""},m=()=>{v(),u.length<o?u.push(d):_=!0,d=[]};for(let h=0;h<s.length;h+=1){const i=s[h];if(i==='"')r&&s[h+1]==='"'?(n+='"',h+=1):r?r=!1:n?n+=i:r=!0;else if(!r&&i===f)v();else if(!r&&(i===`
|
|
3
|
+
`||i==="\r")){if(m(),i==="\r"&&s[h+1]===`
|
|
4
|
+
`&&(h+=1),u.length===o&&h<s.length-1){_=!0;break}}else n+=i}return!_&&(n||d.length||r)&&m(),{rows:u,truncatedRows:_,truncatedColumns:g}}const F={class:"workspace-csv-preview"},S={class:"workspace-csv-toolbar"},z={key:0,class:"workspace-csv-pages"},O={class:"workspace-csv-scroll"},j={class:"workspace-csv-table"},q={scope:"row"},G=["title"],Z={key:0,class:"empty-inline"},w=100,H=B({__name:"WorkspaceCsvPreview",props:{content:{},path:{},truncated:{type:Boolean}},setup(e){const f=e,o=V(),a=I(1),u=y(()=>D(f.content,/\.tsv$/i.test(f.path)?" ":",")),d=y(()=>u.value.rows[0]??[]),n=y(()=>u.value.rows.slice(1)),r=y(()=>Math.max(1,Math.ceil(n.value.length/w))),g=y(()=>n.value.slice((a.value-1)*w,a.value*w));return W(()=>[f.content,f.path],()=>a.value=1),(_,s)=>(t(),l("div",F,[c("div",S,[c("span",null,p(k(o).t("$vuetify.chatroom.files.tableSummary",n.value.length,d.value.length)),1),r.value>1?(t(),l("div",z,[x(P,{icon:"$mdiChevronLeft",size:"x-small",variant:"text",disabled:a.value===1,"aria-label":k(o).t("$vuetify.chatroom.files.previousPage"),onClick:s[0]||(s[0]=v=>a.value--)},null,8,["disabled","aria-label"]),c("span",null,p(a.value)+" / "+p(r.value),1),x(P,{icon:"$mdiChevronRight",size:"x-small",variant:"text",disabled:a.value===r.value,"aria-label":k(o).t("$vuetify.chatroom.files.nextPage"),onClick:s[1]||(s[1]=v=>a.value++)},null,8,["disabled","aria-label"])])):b("",!0)]),e.truncated||u.value.truncatedRows||u.value.truncatedColumns?(t(),E(A,{key:0,type:"info",density:"compact",variant:"tonal"},{default:L(()=>[N(p(k(o).t("$vuetify.chatroom.files.tableLimited")),1)]),_:1})):b("",!0),c("div",O,[c("table",j,[c("thead",null,[c("tr",null,[s[2]||(s[2]=c("th",{scope:"col"},"#",-1)),(t(!0),l($,null,C(d.value,(v,m)=>(t(),l("th",{key:m,scope:"col"},p(v||k(o).t("$vuetify.chatroom.files.column",m+1)),1))),128))])]),c("tbody",null,[(t(!0),l($,null,C(g.value,(v,m)=>(t(),l("tr",{key:(a.value-1)*w+m},[c("th",q,p((a.value-1)*w+m+1),1),(t(!0),l($,null,C(d.value,(h,i)=>(t(),l("td",{key:i,title:v[i]??""},p(v[i]??""),9,G))),128))]))),128))])]),d.value.length?b("",!0):(t(),l("div",Z,p(k(o).t("$vuetify.chatroom.files.emptyTable")),1))])]))}}),te=R(H,[["__scopeId","data-v-88d1ee33"]]),J={class:"workspace-media-preview"},K=["src"],Q=["src"],U=["href"],X=B({__name:"WorkspaceMediaPreview",props:{kind:{},path:{},url:{}},setup(e){const f=M(()=>T(()=>import("./WorkspacePdfPreview-CO-ZtDHG.js"),__vite__mapDeps([0,1,2,3,4]))),o=V();return(a,u)=>(t(),l("div",J,[e.kind==="pdf"?(t(),E(k(f),{key:0,url:e.url,path:e.path},null,8,["url","path"])):e.kind==="video"?(t(),l("video",{key:e.url,class:"workspace-video-player",src:e.url,preload:"metadata",playsinline:"",controls:""},null,8,K)):(t(),l("audio",{key:e.url,class:"workspace-audio-player",src:e.url,preload:"metadata",controls:""},null,8,Q)),c("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},p(k(o).t("$vuetify.chatroom.files.openOriginal")),9,U)]))}}),ae=R(X,[["__scopeId","data-v-47104036"]]);export{ae as W,te as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.workspace-pdf-page[data-v-608f166a]{width:100%;max-width:60rem}.workspace-pdf-paper[data-v-608f166a]{overflow:hidden;background:#fff;box-shadow:0 1px 6px #0000001f}.workspace-pdf-paper canvas[data-v-608f166a]{display:block;width:100%;height:auto}.workspace-pdf-page-number[data-v-608f166a]{display:block;padding-top:6px;text-align:center;font-size:12px;color:rgb(var(--v-theme-on-surface),.6)}.workspace-pdf-viewer[data-v-4835d554]{display:flex;flex:1 1 0;min-height:0;width:100%;flex-direction:column}.workspace-pdf-pages[data-v-4835d554]{display:flex;flex:1 1 0;min-height:0;width:100%;flex-direction:column;align-items:center;gap:16px;overflow-y:auto;overscroll-behavior:contain;padding:12px;background:rgb(var(--v-theme-surface-variant),.18)}@media(max-width:820px){.workspace-pdf-viewer[data-v-4835d554]{min-height:70dvh}}
|