@camera.ui/server 0.0.86 → 0.0.88
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/interface/assets/{Menu-CfXjagTU.js → Menu-DAWPMfFl.js} +1 -1
- package/dist/interface/assets/{Settings-GW2ZQ5et.js → Settings-BXHcMV5q.js} +1 -1
- package/dist/interface/assets/{main-DZ-YQv6U.js → main-C-5uV5Ps.js} +1 -1
- package/dist/interface/assets/{router-DFTZtpyZ.js → router-cAiMkJTu.js} +2 -2
- package/dist/interface/index.html +2 -2
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +1 -1
- package/dist/server/src/api/routes/index.js +9 -1
- package/dist/server/src/api/routes/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,f as t}from"./api-Co-27wVr.js";import{$t as n,An as r,En as i,Gt as a,On as o,Qt as s,Vn as c,Xt as l,Yn as u,Yt as d,Zt as f,dr as p,in as m,nn as h,on as g,rn as _,sr as v,wn as y}from"./vendor-CF-D4B9g.js";import{di as b}from"./vendor-cameraui-tvNekvZ-.js";import{f as x}from"./vendor-core-DinQdIbm.js";import{t as S}from"./power-2WnCmUq_.js";import{t as C}from"./CuiAvatar-B-hIwVL3.js";import{n as w}from"./router-
|
|
1
|
+
import{d as e,f as t}from"./api-Co-27wVr.js";import{$t as n,An as r,En as i,Gt as a,On as o,Qt as s,Vn as c,Xt as l,Yn as u,Yt as d,Zt as f,dr as p,in as m,nn as h,on as g,rn as _,sr as v,wn as y}from"./vendor-CF-D4B9g.js";import{di as b}from"./vendor-cameraui-tvNekvZ-.js";import{f as x}from"./vendor-core-DinQdIbm.js";import{t as S}from"./power-2WnCmUq_.js";import{t as C}from"./CuiAvatar-B-hIwVL3.js";import{n as w}from"./router-cAiMkJTu.js";import{t as T}from"./hasPermission-Cv-Silt3.js";import{n as E,r as D}from"./CuiMenu-DW_XRoWp.js";import{t as O}from"./information-outline-C1VdAtHq.js";import{t as k}from"./chevron-right--xa71qcO.js";var A={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function j(e,t){return y(),n(`svg`,A,[...t[0]||=[l(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M17 20V4m0 0l3 3m-3-3l-3 3M7 4v16m0 0l3-3m-3 3l-3-3`},null,-1)]])}var M=u({name:`iconoir-data-transfer-both`,render:j}),N={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function P(e,t){return y(),n(`svg`,N,[...t[0]||=[h(`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path d="M11 21H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v7"></path><path stroke-linejoin="round" d="M2 7h20M5 5.01l.01-.011M8 5.01l.01-.011M11 5.01l.01-.011m10.657 11.668C21.047 15.097 19.635 14 17.99 14c-1.758 0-3.252 1.255-3.793 3"></path><path stroke-linejoin="round" d="M19.995 16.772H21.4a.6.6 0 0 0 .6-.6V14.55m-7.666 4.783C14.953 20.903 16.366 22 18.01 22c1.758 0 3.252-1.255 3.793-3"></path><path stroke-linejoin="round" d="M16.005 19.228H14.6a.6.6 0 0 0-.6.6v1.622"></path></g>`,1)]])}var F=u({name:`iconoir-reload-window`,render:P}),I={class:`flex flex-col items-center py-8`},L={class:`mt-3 text-lg font-semibold`},R={class:`text-sm text-muted`},z={class:`px-4 mb-4`},B={class:`card-title`},V={key:0,class:`px-4 mb-4`},H={class:`card-title`},U={class:`px-4 mb-4`},W={class:`card-title`},G={class:`text-primary`},K=g({__name:`Menu`,setup(u){let{t:h}=b(),g=e(),{user:A}=x(g),j=new Set([`Faces`,`Plugins`,`Settings`]),N=d(()=>w.filter(e=>e.meta?.profileMenu&&e.meta.auth&&T(e))),P=d(()=>N.value.filter(e=>j.has(e.name)).map(e=>({to:e.path,label:h(`navigation.${e.name.toLowerCase()}`),icon:e.meta.profileMenu.icon.default}))),K=d(()=>N.value.filter(e=>!j.has(e.name)).map(e=>({to:e.path,label:h(`navigation.${e.name.toLowerCase()}`),icon:e.meta.profileMenu.icon.default})));function q(){window.location.reload()}async function J(){await t()}return(e,t)=>{let u=C,d=o(`RouterLink`),h=k,b=E,x=D,w=O,T=F,j=M,N=S;return y(),n(`div`,null,[l(`section`,I,[m(d,{to:`/settings/account`,class:`flex flex-col items-center justify-center`},{default:c(()=>[m(u,{src:`avatar`,size:80,style:{width:`80px`,height:`80px`}}),l(`div`,L,p(v(A)?.username??`Unknown`),1),l(`div`,R,p(v(A)?.role??`user`),1)]),_:1})]),l(`section`,z,[l(`span`,B,p(e.$t(`views.menu.section_app`)),1),m(x,{size:`large`,dividers:``},{default:c(()=>[(y(!0),n(a,null,i(v(P),e=>(y(),f(b,{key:e.to,to:e.to},{prepend:c(()=>[(y(),f(r(e.icon),{class:`w-5 h-5 text-muted`}))]),append:c(()=>[m(h,{class:`w-5 h-5 text-muted`})]),default:c(()=>[_(` `+p(e.label)+` `,1)]),_:2},1032,[`to`]))),128))]),_:1})]),v(K).length?(y(),n(`section`,V,[l(`span`,H,p(e.$t(`views.menu.section_system`)),1),m(x,{size:`large`,dividers:``},{default:c(()=>[(y(!0),n(a,null,i(v(K),e=>(y(),f(b,{key:e.to,to:e.to},{prepend:c(()=>[(y(),f(r(e.icon),{class:`w-5 h-5 text-muted`}))]),append:c(()=>[m(h,{class:`w-5 h-5 text-muted`})]),default:c(()=>[_(` `+p(e.label)+` `,1)]),_:2},1032,[`to`]))),128))]),_:1})])):s(``,!0),l(`section`,U,[l(`span`,W,p(e.$t(`views.menu.section_actions`)),1),m(x,{size:`large`,dividers:``},{default:c(()=>[m(b,{to:`/about`},{prepend:c(()=>[m(w,{class:`w-5 h-5 text-muted`})]),append:c(()=>[m(h,{class:`w-5 h-5 text-muted`})]),default:c(()=>[_(` `+p(e.$t(`navigation.about`))+` `,1)]),_:1}),m(b,{onClick:q},{prepend:c(()=>[m(T,{class:`w-5 h-5 text-muted`})]),default:c(()=>[_(` `+p(e.$t(`views.menu.reload`)),1)]),_:1}),v(!1)?(y(),f(b,{key:0,onClick:J},{prepend:c(()=>[m(j,{class:`w-5 h-5 text-muted`})]),default:c(()=>[_(` `+p(e.$t(`views.menu.switch_server`)),1)]),_:1})):s(``,!0),m(b,{onClick:t[0]||=()=>v(g).logout()},{prepend:c(()=>[m(N,{class:`w-5 h-5 text-primary`})]),default:c(()=>[l(`span`,G,p(e.$t(`views.menu.logout`)),1)]),_:1})]),_:1})])])}}});export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$n as e,$t as t,An as n,En as r,Gt as i,In as a,On as o,Qt as s,Rn as c,Sn as l,Vn as u,Xt as d,Yt as f,Zt as p,ar as m,cr as h,dr as g,gn as _,in as v,on as y,sr as b,ur as x,wn as S}from"./vendor-CF-D4B9g.js";import{Bn as C,Ki as w,Mi as T,Ni as E,Ri as D,Vn as O,mi as k,xi as A}from"./vendor-cameraui-tvNekvZ-.js";import{f as j,l as M}from"./vendor-core-DinQdIbm.js";import{t as N}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as P,o as F,r as I,s as ee,t as L}from"./useSharedComposables-CTXKSCVm.js";import{n as R}from"./router-
|
|
1
|
+
import{$n as e,$t as t,An as n,En as r,Gt as i,In as a,On as o,Qt as s,Rn as c,Sn as l,Vn as u,Xt as d,Yt as f,Zt as p,ar as m,cr as h,dr as g,gn as _,in as v,on as y,sr as b,ur as x,wn as S}from"./vendor-CF-D4B9g.js";import{Bn as C,Ki as w,Mi as T,Ni as E,Ri as D,Vn as O,mi as k,xi as A}from"./vendor-cameraui-tvNekvZ-.js";import{f as j,l as M}from"./vendor-core-DinQdIbm.js";import{t as N}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as P,o as F,r as I,s as ee,t as L}from"./useSharedComposables-CTXKSCVm.js";import{n as R}from"./router-cAiMkJTu.js";import{t as z}from"./hasPermission-Cv-Silt3.js";import{t as B}from"./CuiTopbarSlot-DTNeuYvo.js";import{t as V}from"./routerState-C_8KP3kD.js";import{n as H,t as U}from"./round-alt-arrow-left-bold-CLoPDaOh.js";var W={},G={class:`w-full h-full flex items-center justify-center`};function K(e,n){let r=C;return S(),t(`div`,G,[v(r,{class:`w-[30px] h-[30px] m-0`,"stroke-width":`5`})])}var q=N(W,[[`render`,K]]),J={key:0},Y={key:1},X={class:`overflow-hidden w-full`},Z={class:`ml-2 flex flex-row items-center justify-between`},Q={class:`text-start flex-1`},te={class:`text-sm font-bold max-w-100 truncate`},ne={key:0,class:`text-sm text-muted font-normal`},re=N(y({__name:`CuiSubNavItem`,props:{label:{},to:{},description:{},icon:{},activeIcon:{}},setup(e){let{icon:n,activeIcon:r,label:i,description:a,to:c}=m(e);return(e,l)=>{let f=O,m=o(`RouterLink`);return S(),p(m,{to:b(c)},{default:u(({isExactActive:e})=>[v(f,{text:``,severity:`secondary`,class:h([`subnavitem-button w-full h-[120px] flex items-start justify-start p-6 bg-none text-color hover:!text-primary active:!text-primary focus:!text-primary rounded-none`,{"active !text-primary":e}]),fluid:``},{default:u(()=>[b(n)&&!e||!b(r)?(S(),t(`div`,J,[v(b(n),{class:`w-[24px] h-[24px]`})])):b(r)&&e?(S(),t(`div`,Y,[v(b(r),{class:`w-[24px] h-[24px]`})])):s(``,!0),d(`div`,X,[d(`div`,Z,[d(`div`,Q,[d(`div`,te,g(b(i)),1),b(a)?(S(),t(`div`,ne,g(b(a)),1)):s(``,!0)])])])]),_:2},1032,[`class`])]),_:1},8,[`to`])}}}),[[`__scopeId`,`data-v-a5399c04`]]),$={CLOSED:0,EXPANDED:288},ie=N(y({__name:`CuiSubNavbar`,setup(n,{expose:o}){let s=M(),{bus:u}=F(),{xlBreakpoint:d,mdBreakpoint:m}=L(),{bottombarHeight:h,subbarState:g,navbarState:v,topbarHeight:y}=P(),C=a(`subnavbarRef`),T=e(`closed`),D=f(()=>d.value?`opened`:T.value),O=f(()=>D.value===`closed`?$.CLOSED:$.EXPANDED),A=f(()=>R.find(e=>e.name===`Settings`).children.filter(e=>e.meta?.settingsBar&&z(e)));function j(){T.value=`closed`,u.emit({subbarState:`closed`})}function N(){_(()=>{let e=C.value?.querySelector(`.subnavitem-button.active`);e&&e.scrollIntoView({block:`center`,behavior:`smooth`})})}let I=w(N,100);return k(C,e=>{let t=e.target,n=t.closest(`#menu-icon`),r=t.closest(`#submenu-icon`),i=t.closest(`#navbar-icon`);!n&&!r&&!i&&j()}),E(C,()=>{I()}),c(g,e=>{e&&e!==T.value&&(T.value=e)}),c(s.currentRoute,(e,t)=>{e.path!==t.path&&j()}),c(v,e=>{e===`opened`&&m.value&&j()}),l(()=>{N()}),o({subnavbarState:D}),(e,n)=>{let a=re;return S(),t(`nav`,{ref_key:`subnavbarRef`,ref:C,class:`cui-subnavbar fixed transition-all duration-200 overflow-x-hidden overflow-y-scroll md:!pl-0 pl-safe pb-safe w-full h-full flex flex-col`,style:x({width:`${b(O)}px`,borderRightWidth:b(D)===`opened`?`1px`:`0px`,paddingBottom:`calc(env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + ${b(h)}px + ${b(y)}px)`})},[(S(!0),t(i,null,r(b(A),t=>(S(),p(a,{key:t.name,icon:t.meta.settingsBar.icon.default,"active-icon":t.meta.settingsBar.icon.active,to:t.path,label:e.$t(`navigation.${(t.meta?.name).toLowerCase()}`),description:e.$t(`navigation_description.${t.meta?.description}`),class:`cui-list-item !m-0 !p-0 shrink-0`,style:x({width:`${b($).EXPANDED}px`})},null,8,[`icon`,`active-icon`,`to`,`label`,`description`,`style`]))),128))],4)}}}),[[`__scopeId`,`data-v-ebf1579c`]]),ae={class:`font-semibold text-xl truncate`},oe={class:`relative flex overflow-hidden items-center justify-center w-5 h-5`},se={class:`flex flex-col justify-between w-4 h-3 transform transition-all duration-100 origin-center overflow-hidden`},ce={class:`w-full h-full relative`},le={key:0,class:`w-full flex flex-row h-[calc(40px+1rem)] py-2 items-center fixed z-2`},ue={class:`relative z-2 page-title !m-0`},de=y({__name:`Settings`,setup(r){let i=M(),l=ee(),{bus:m}=F(),{isTouch:_}=I(),{mdBreakpoint:y,xlBreakpoint:C,smBreakpoint:w}=L(),{routerLoading:E}=j(V()),k=R.find(e=>e.name===`Settings`).children.filter(e=>z(e)&&e.meta?.settingsBar),N=a(`subnavbarRef`),P=a(`containerRef`),W=e(!0),{isSwiping:G,direction:K}=_.value?D(P,{threshold:50,onSwipeStart(e){let t=e.target;([`INPUT`,`TEXTAREA`,`SELECT`,`BUTTON`].includes(t.tagName)||t.closest(`.p-datatable`))&&(W.value=!1)},onSwipeEnd(){W.value=!0}}):T(P,{threshold:50,onSwipeStart(e){let t=e.target;([`INPUT`,`TEXTAREA`,`SELECT`,`BUTTON`].includes(t.tagName)||t.closest(`.p-datatable`))&&(W.value=!1)},onSwipeEnd(){W.value=!0}}),J=A(N),Y=f(()=>N.value?.subnavbarState??`closed`);function X(){let e=Y.value===`opened`?`closed`:`opened`;m.emit({subbarState:e})}return c([G,K],()=>{if(G.value&&W.value){let e=k.findIndex(e=>e.path===i.currentRoute.value.path.split(`/settings/`)[1]);switch(K.value){case`right`:{let t=k[e-1];t&&i.push({path:t.path})}break;case`left`:{let t=k[e+1];t&&i.push({path:t.path})}break}}}),(e,r)=>{let i=B,a=O,c=ie,f=U,m=H,_=q,T=o(`RouterView`);return S(),t(`div`,null,[v(i,{position:`center`},{default:u(()=>[d(`span`,ae,g(e.$t(`views.settings.title_${e.$route.meta?.name}`)),1)]),_:1}),v(i,{position:`left`},{default:u(()=>[v(a,{id:`menu-icon`,class:`cui-button relative group p-2 transition-colors duration-100 w-[40px] h-[42px] flex items-center justify-center`,severity:`secondary`,text:``,onClick:X},{default:u(()=>[d(`div`,oe,[d(`div`,se,[d(`div`,{class:h([`h-0.5 w-2 transform transition-all duration-100 origin-center`,{"w-4 rotate-45 translate-y-[5px]":b(Y)===`opened`}]),style:{backgroundColor:`var(--text-color)`}},null,2),d(`div`,{class:h([`h-0.5 w-4 rounded transform transition-all duration-100`,{"opacity-0":b(Y)===`opened`}]),style:{backgroundColor:`var(--text-color)`}},null,2),d(`div`,{class:h([`h-0.5 w-3 transform transition-all duration-100 origin-center`,{"w-4 -rotate-45 -translate-y-[5px]":b(Y)===`opened`}]),style:{backgroundColor:`var(--text-color)`}},null,2)])])]),_:1})]),_:1}),v(c,{ref_key:`subnavbarRef`,ref:N,class:`z-4 min-w-0`},null,512),d(`main`,{class:`relative w-full h-full`,style:x({paddingLeft:b(y)?`0px`:`${b(J).width.value}px`})},[d(`div`,ce,[b(w)?s(``,!0):(S(),t(`div`,le,[r[0]||=d(`div`,{class:`ml-2`},null,-1),b(C)?s(``,!0):(S(),p(a,{key:0,id:`submenu-icon`,severity:`secondary`,class:`mr-2 cui-icon-lg relative z-2`,text:``,rounded:``,onClick:X},{icon:u(()=>[b(Y)===`opened`?(S(),p(f,{key:0,width:`100%`,height:`100%`})):(S(),p(m,{key:1,width:`100%`,height:`100%`}))]),_:1})),d(`h1`,ue,g(e.$t(`views.settings.title_${e.$route.meta?.name}`)),1),r[1]||=d(`div`,{class:`gradient-blur rotate-180 !h-[70px]`},[d(`div`),d(`div`),d(`div`),d(`div`),d(`div`),d(`div`)],-1)])),d(`div`,{ref_key:`containerRef`,ref:P,class:h([`px-2 h-full w-full`,{"py-4":b(w),"pt-[calc(40px+2rem)] pb-2":!b(w)}])},[b(E)&&b(l).showRouterLoadingSub.value?(S(),p(_,{key:0,class:`w-full h-full relative overflow-x-hidden`})):(S(),p(T,{key:1},{default:u(({Component:e})=>[(S(),p(n(e),{class:`h-full`}))]),_:1}))],2)])],4)])}}});export{de as default};
|