Merge pull request #57194 from nextcloud/dependabot/npm_and_yarn/vite-4fb37e91ba
build(deps-dev): Bump the vite group across 2 directories with 1 updatepull/57200/head
commit
cc806fbd8e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
import{h as _,i as y,j as b,e as t,c as u,o as f,w as R,k as v,m as D,t as S,u as i,n as O,_ as k,l as q,s as C,d,p,q as P}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{N as F,a as x,b as N,s as h}from"./Plus-ComWjyCg.chunk.mjs";import{N as E}from"./TrashCanOutline-CpMai7X_.chunk.mjs";import{l as j}from"./logger-CzVQP-dV.chunk.mjs";import"./ContentCopy-DUGe9ppe.chunk.mjs";const M=_({__name:"RemoteShareDialog",props:{name:{},owner:{},remote:{},passwordRequired:{type:Boolean}},emits:["close"],setup(e,{emit:s}){const r=e,a=s,o=y(""),n=b(()=>[{label:t("federatedfilesharing","Cancel"),callback:()=>a("close",!1)},{label:t("federatedfilesharing","Add remote share"),type:r.passwordRequired?"submit":void 0,variant:"primary",callback:()=>a("close",!0,o.value)}]);return(c,l)=>(f(),u(i(F),{buttons:n.value,"is-form":e.passwordRequired,name:i(t)("federatedfilesharing","Remote share"),onSubmit:l[1]||(l[1]=w=>a("close",!0,o.value))},{default:R(()=>[v("p",null,S(i(t)("federatedfilesharing","Do you want to add the remote share {name} from {owner}@{remote}?",{name:e.name,owner:e.owner,remote:e.remote})),1),e.passwordRequired?(f(),u(i(E),{key:0,modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=w=>o.value=w),class:O(c.$style.remoteShareDialog__password),label:i(t)("federatedfilesharing","Remote share password")},null,8,["modelValue","class","label"])):D("",!0)]),_:1},8,["buttons","is-form","name"]))}}),T="_remoteShareDialog__password_1ccpy_2",U={remoteShareDialog__password:T},V={$style:U},$=k(M,[["__cssModules",V]]);async function I(e,s,r,a=!1){const[o,n]=await x($,{name:e,owner:s,remote:r,passwordRequired:a});if(a&&o)return n;if(!o)throw new Error("Dialog was cancelled")}window.addEventListener("DOMContentLoaded",()=>{L(),q("federatedfilesharing","notificationsEnabled",!0)!==!0&&A(),C("notifications:action:executed",({action:e,notification:s})=>{s.app==="files_sharing"&&s.object_type==="remote_share"&&e.type==="POST"&&m()})});function m(){if(!window?.OCP?.Files?.Router?.goToRoute){window.location.reload();return}window.OCP.Files.Router.goToRoute(null,{...window.OCP.Files.Router.params,fileid:void 0},{...window.OCP.Files.Router.query,dir:"/",openfile:void 0})}function L(){const e=window.OC.Util.History.parseUrlQuery();if(e.remote&&e.token&&e.name){const s=(r,a)=>{r!==!1&&d.post(p("apps/federatedfilesharing/askForFederatedShare"),{remote:a.remote,token:a.token,owner:a.owner,ownerDisplayName:a.ownerDisplayName||a.owner,name:a.name,password:a.password||""}).then(({data:o})=>{Object.hasOwn(o,"legacyMount")?m():N(o.message)}).catch(o=>{j.error("Error while processing incoming share",{error:o}),P(o)&&o.response.data.message?h(o.response.data.message):h(t("federatedfilesharing","Incoming share could not be processed"))})};location.hash="",e.passwordProtected=parseInt(e.protected,10)===1,g(e,e.passwordProtected,s)}}async function A(){const{data:e}=await d.get(p("/apps/files_sharing/api/externalShares"));for(let s=0;s<e.length;++s)g(e[s],!1,function(r,a){r===!1?d.delete(p("/apps/files_sharing/api/externalShares/"+a.id)):d.post(p("/apps/files_sharing/api/externalShares"),{id:a.id}).then(()=>m())})}function g(e,s,r){const a=e.ownerDisplayName||e.owner,o=e.name,n=e.remote.replace(/^https?:\/\//,"").replace(/\/$/,"");I(o,a,n,s).then(c=>r(!0,{...e,password:c})).catch(()=>r(!1,e))}
|
||||
import{h as _,i as y,j as b,e as t,c as u,o as f,w as R,k as v,m as D,t as S,u as i,n as O,_ as k,l as q,s as C,d,p,q as P}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{N as F,a as x,b as N,s as h}from"./Plus-C_Vqf1oT.chunk.mjs";import{N as E}from"./TrashCanOutline-mqlhzHTy.chunk.mjs";import{l as j}from"./logger-C6yUmQul.chunk.mjs";import"./ContentCopy-DUGe9ppe.chunk.mjs";const M=_({__name:"RemoteShareDialog",props:{name:{},owner:{},remote:{},passwordRequired:{type:Boolean}},emits:["close"],setup(e,{emit:s}){const r=e,a=s,o=y(""),n=b(()=>[{label:t("federatedfilesharing","Cancel"),callback:()=>a("close",!1)},{label:t("federatedfilesharing","Add remote share"),type:r.passwordRequired?"submit":void 0,variant:"primary",callback:()=>a("close",!0,o.value)}]);return(c,l)=>(f(),u(i(F),{buttons:n.value,"is-form":e.passwordRequired,name:i(t)("federatedfilesharing","Remote share"),onSubmit:l[1]||(l[1]=w=>a("close",!0,o.value))},{default:R(()=>[v("p",null,S(i(t)("federatedfilesharing","Do you want to add the remote share {name} from {owner}@{remote}?",{name:e.name,owner:e.owner,remote:e.remote})),1),e.passwordRequired?(f(),u(i(E),{key:0,modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=w=>o.value=w),class:O(c.$style.remoteShareDialog__password),label:i(t)("federatedfilesharing","Remote share password")},null,8,["modelValue","class","label"])):D("",!0)]),_:1},8,["buttons","is-form","name"]))}}),T="_remoteShareDialog__password_1ccpy_2",U={remoteShareDialog__password:T},V={$style:U},$=k(M,[["__cssModules",V]]);async function I(e,s,r,a=!1){const[o,n]=await x($,{name:e,owner:s,remote:r,passwordRequired:a});if(a&&o)return n;if(!o)throw new Error("Dialog was cancelled")}window.addEventListener("DOMContentLoaded",()=>{L(),q("federatedfilesharing","notificationsEnabled",!0)!==!0&&A(),C("notifications:action:executed",({action:e,notification:s})=>{s.app==="files_sharing"&&s.object_type==="remote_share"&&e.type==="POST"&&m()})});function m(){if(!window?.OCP?.Files?.Router?.goToRoute){window.location.reload();return}window.OCP.Files.Router.goToRoute(null,{...window.OCP.Files.Router.params,fileid:void 0},{...window.OCP.Files.Router.query,dir:"/",openfile:void 0})}function L(){const e=window.OC.Util.History.parseUrlQuery();if(e.remote&&e.token&&e.name){const s=(r,a)=>{r!==!1&&d.post(p("apps/federatedfilesharing/askForFederatedShare"),{remote:a.remote,token:a.token,owner:a.owner,ownerDisplayName:a.ownerDisplayName||a.owner,name:a.name,password:a.password||""}).then(({data:o})=>{Object.hasOwn(o,"legacyMount")?m():N(o.message)}).catch(o=>{j.error("Error while processing incoming share",{error:o}),P(o)&&o.response.data.message?h(o.response.data.message):h(t("federatedfilesharing","Incoming share could not be processed"))})};location.hash="",e.passwordProtected=parseInt(e.protected,10)===1,g(e,e.passwordProtected,s)}}async function A(){const{data:e}=await d.get(p("/apps/files_sharing/api/externalShares"));for(let s=0;s<e.length;++s)g(e[s],!1,function(r,a){r===!1?d.delete(p("/apps/files_sharing/api/externalShares/"+a.id)):d.post(p("/apps/files_sharing/api/externalShares"),{id:a.id}).then(()=>m())})}function g(e,s,r){const a=e.ownerDisplayName||e.owner,o=e.name,n=e.remote.replace(/^https?:\/\//,"").replace(/\/$/,"");I(o,a,n,s).then(c=>r(!0,{...e,password:c})).catch(()=>r(!1,e))}
|
||||
//# sourceMappingURL=federatedfilesharing-init-files.mjs.map
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@
|
||||
import{g as e}from"./TrashCanOutline-mqlhzHTy.chunk.mjs";const o=e().setApp("federatedfilesharing").build();export{o as l};
|
||||
//# sourceMappingURL=logger-C6yUmQul.chunk.mjs.map
|
||||
@ -1 +1 @@
|
||||
{"version":3,"file":"logger-CzVQP-dV.chunk.mjs","sources":["../build/frontend/apps/federatedfilesharing/src/services/logger.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getLoggerBuilder } from '@nextcloud/logger'\n\nconst logger = getLoggerBuilder()\n\t.setApp('federatedfilesharing')\n\t.build()\nexport default logger\n"],"names":["logger","getLoggerBuilder"],"mappings":"yDAOA,MAAMA,EAASC,EAAA,EACb,OAAO,sBAAsB,EAC7B,MAAA"}
|
||||
{"version":3,"file":"logger-C6yUmQul.chunk.mjs","sources":["../build/frontend/apps/federatedfilesharing/src/services/logger.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getLoggerBuilder } from '@nextcloud/logger'\n\nconst logger = getLoggerBuilder()\n\t.setApp('federatedfilesharing')\n\t.build()\nexport default logger\n"],"names":["logger","getLoggerBuilder"],"mappings":"yDAOA,MAAMA,EAASC,EAAA,EACb,OAAO,sBAAsB,EAC7B,MAAA"}
|
||||
@ -1,2 +0,0 @@
|
||||
import{g as e}from"./TrashCanOutline-CpMai7X_.chunk.mjs";const o=e().setApp("federatedfilesharing").build();export{o as l};
|
||||
//# sourceMappingURL=logger-CzVQP-dV.chunk.mjs.map
|
||||
@ -0,0 +1,2 @@
|
||||
import{g as t}from"./TrashCanOutline-mqlhzHTy.chunk.mjs";const o=t().setApp("dav").detectUser().build();export{o as l};
|
||||
//# sourceMappingURL=logger-DKNOl51C.chunk.mjs.map
|
||||
@ -1 +1 @@
|
||||
{"version":3,"file":"logger-Dsv-UmQD.chunk.mjs","sources":["../build/frontend/apps/dav/src/service/logger.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getLoggerBuilder } from '@nextcloud/logger'\n\nexport const logger = getLoggerBuilder()\n\t.setApp('dav')\n\t.detectUser()\n\t.build()\n"],"names":["logger","getLoggerBuilder"],"mappings":"yDAOO,MAAMA,EAASC,IACpB,OAAO,KAAK,EACZ,WAAA,EACA,MAAA"}
|
||||
{"version":3,"file":"logger-DKNOl51C.chunk.mjs","sources":["../build/frontend/apps/dav/src/service/logger.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getLoggerBuilder } from '@nextcloud/logger'\n\nexport const logger = getLoggerBuilder()\n\t.setApp('dav')\n\t.detectUser()\n\t.build()\n"],"names":["logger","getLoggerBuilder"],"mappings":"yDAOO,MAAMA,EAASC,IACpB,OAAO,KAAK,EACZ,WAAA,EACA,MAAA"}
|
||||
@ -1,2 +0,0 @@
|
||||
import{g as t}from"./TrashCanOutline-CpMai7X_.chunk.mjs";const o=t().setApp("dav").detectUser().build();export{o as l};
|
||||
//# sourceMappingURL=logger-Dsv-UmQD.chunk.mjs.map
|
||||
@ -1,2 +1,2 @@
|
||||
import{h as $,v as y,o as s,k as t,t as u,n as i,c as d,u as e,e as a,a as m,w as h,_ as w,y as D,l as V,i as k,m as A,F as x,x as q,b,z as O,N as z,d as g,p as U,q as C,f as B}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{N as F,I as j,b as M,a as E,c as I,_ as S}from"./TrashCanOutline-CpMai7X_.chunk.mjs";import"./modulepreload-polyfill-BxzAKjcf.chunk.mjs";const G={key:1},H=$({__name:"OAuthItem",props:{client:{}},emits:["delete"],setup(c){return(r,p)=>(s(),y("tr",null,[t("td",null,u(c.client.name),1),t("td",null,[t("code",{class:i(r.$style.oAuthItem__code)},u(c.client.redirectUri),3)]),t("td",null,[t("code",{class:i(r.$style.oAuthItem__code)},u(c.client.clientId),3)]),t("td",null,[c.client.clientSecret?(s(),d(e(F),{key:0,class:i(r.$style.oAuthItem__clientSecret),"aria-label":e(a)("oauth2","Secret key"),"as-text":"","model-value":c.client.clientSecret,"show-trailing-button":""},null,8,["class","aria-label","model-value"])):(s(),y("span",G,"*****"))]),t("td",null,[m(e(M),{"aria-label":e(a)("oauth2","Delete"),title:e(a)("oauth2","Delete"),variant:"error",onClick:p[0]||(p[0]=f=>r.$emit("delete"))},{icon:h(()=>[m(j,{size:20})]),_:1},8,["aria-label","title"])])]))}}),J="_oAuthItem__code_3r02l_2",K="_oAuthItem__clientSecret_3r02l_11",L={oAuthItem__code:J,oAuthItem__clientSecret:K},P={$style:L},Q=w(H,[["__cssModules",P]]),T={class:"hidden-visually"},W=$({__name:"AdminSettings",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(c){const r=D(c,"modelValue"),p=E().theming.name,f=V("oauth2","oauth2-doc-link"),v=k(!1),o=k({name:"",redirectUri:"",errorMsg:"",error:!1});async function N(l){await g.delete(U("apps/oauth2/clients/{id}",{id:l})),r.value=r.value.filter(n=>n.id!==l)}async function R(){o.value.error=!1;try{const{data:l}=await g.post(U("apps/oauth2/clients"),{name:o.value.name,redirectUri:o.value.redirectUri});r.value.push(l),v.value=!0,o.value.name="",o.value.redirectUri=""}catch(l){o.value.error=!0,C(l)&&l.response?o.value.errorMsg=l.response.data.message:o.value.errorMsg=a("oauth2","An unknown error occurred.")}}return(l,n)=>(s(),d(e(z),{name:e(a)("oauth2","OAuth 2.0 clients"),description:e(a)("oauth2","OAuth 2.0 allows external services to request access to {instanceName}.",{instanceName:e(p)}),"doc-url":e(f)},{default:h(()=>[r.value.length>0?(s(),y("table",{key:0,class:i([l.$style.oauthApp__table,{[l.$style.oauthApp__table_withSecret]:v.value}])},[t("thead",null,[t("tr",null,[t("th",null,u(e(a)("oauth2","Name")),1),t("th",null,u(e(a)("oauth2","Redirection URI")),1),t("th",null,u(e(a)("oauth2","Client identifier")),1),t("th",null,u(e(a)("oauth2","Secret key")),1),t("th",null,[t("span",T,u(e(a)("oauth2","Delete client")),1)])])]),t("tbody",null,[(s(!0),y(x,null,q(r.value,_=>(s(),d(Q,{key:_.id,client:_,onDelete:re=>N(_.id)},null,8,["client","onDelete"]))),128))])],2)):A("",!0),v.value?(s(),d(e(I),{key:1,type:"warning"},{default:h(()=>[b(u(e(a)("oauth2","Make sure you store the secret key, it cannot be recovered.")),1)]),_:1})):A("",!0),n[2]||(n[2]=t("br",null,null,-1)),t("h3",null,u(e(a)("oauth2","Add client")),1),o.value.error?(s(),d(e(I),{key:2,type:"error"},{default:h(()=>[b(u(o.value.errorMsg),1)]),_:1})):A("",!0),t("form",{class:i(l.$style.oauthApp__form),onSubmit:O(R,["prevent"])},[m(e(S),{id:"name",modelValue:o.value.name,"onUpdate:modelValue":n[0]||(n[0]=_=>o.value.name=_),class:i(l.$style.oauthApp__form__input),name:"name",label:e(a)("oauth2","Name"),placeholder:e(a)("oauth2","Name")},null,8,["modelValue","class","label","placeholder"]),m(e(S),{id:"redirectUri",modelValue:o.value.redirectUri,"onUpdate:modelValue":n[1]||(n[1]=_=>o.value.redirectUri=_),type:"url",class:i(l.$style.oauthApp__form__input),name:"redirectUri",label:e(a)("oauth2","Redirection URI"),placeholder:e(a)("oauth2","Redirection URI")},null,8,["modelValue","class","label","placeholder"]),m(e(M),{type:"submit",class:i(l.$style.oauthApp__submitButton)},{default:h(()=>[b(u(e(a)("oauth2","Add")),1)]),_:1},8,["class"])],34)]),_:1},8,["name","description","doc-url"]))}}),X="_oauthApp__form_15nkg_1",Y="_oauthApp__form__input_15nkg_6",Z="_oauthApp__table_15nkg_11",ee="_oauthApp__table_withSecret_15nkg_38",te={oauthApp__form:X,oauthApp__form__input:Y,oauthApp__table:Z,oauthApp__table_withSecret:ee},ae={$style:te},le=w(W,[["__cssModules",ae]]),oe=V("oauth2","clients"),ue=B(le,{modelValue:oe});ue.mount("#oauth2");
|
||||
import{h as $,v as y,o as s,k as t,t as u,n as i,c as d,u as e,e as a,a as m,w as h,_ as w,y as D,l as V,i as k,m as A,F as x,x as q,b,z as O,N as z,d as g,p as U,q as C,f as B}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{N as F,I as j,b as M,a as E,c as I,_ as S}from"./TrashCanOutline-mqlhzHTy.chunk.mjs";import"./modulepreload-polyfill-BxzAKjcf.chunk.mjs";const G={key:1},H=$({__name:"OAuthItem",props:{client:{}},emits:["delete"],setup(c){return(r,p)=>(s(),y("tr",null,[t("td",null,u(c.client.name),1),t("td",null,[t("code",{class:i(r.$style.oAuthItem__code)},u(c.client.redirectUri),3)]),t("td",null,[t("code",{class:i(r.$style.oAuthItem__code)},u(c.client.clientId),3)]),t("td",null,[c.client.clientSecret?(s(),d(e(F),{key:0,class:i(r.$style.oAuthItem__clientSecret),"aria-label":e(a)("oauth2","Secret key"),"as-text":"","model-value":c.client.clientSecret,"show-trailing-button":""},null,8,["class","aria-label","model-value"])):(s(),y("span",G,"*****"))]),t("td",null,[m(e(M),{"aria-label":e(a)("oauth2","Delete"),title:e(a)("oauth2","Delete"),variant:"error",onClick:p[0]||(p[0]=f=>r.$emit("delete"))},{icon:h(()=>[m(j,{size:20})]),_:1},8,["aria-label","title"])])]))}}),J="_oAuthItem__code_3r02l_2",K="_oAuthItem__clientSecret_3r02l_11",L={oAuthItem__code:J,oAuthItem__clientSecret:K},P={$style:L},Q=w(H,[["__cssModules",P]]),T={class:"hidden-visually"},W=$({__name:"AdminSettings",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(c){const r=D(c,"modelValue"),p=E().theming.name,f=V("oauth2","oauth2-doc-link"),v=k(!1),o=k({name:"",redirectUri:"",errorMsg:"",error:!1});async function N(l){await g.delete(U("apps/oauth2/clients/{id}",{id:l})),r.value=r.value.filter(n=>n.id!==l)}async function R(){o.value.error=!1;try{const{data:l}=await g.post(U("apps/oauth2/clients"),{name:o.value.name,redirectUri:o.value.redirectUri});r.value.push(l),v.value=!0,o.value.name="",o.value.redirectUri=""}catch(l){o.value.error=!0,C(l)&&l.response?o.value.errorMsg=l.response.data.message:o.value.errorMsg=a("oauth2","An unknown error occurred.")}}return(l,n)=>(s(),d(e(z),{name:e(a)("oauth2","OAuth 2.0 clients"),description:e(a)("oauth2","OAuth 2.0 allows external services to request access to {instanceName}.",{instanceName:e(p)}),"doc-url":e(f)},{default:h(()=>[r.value.length>0?(s(),y("table",{key:0,class:i([l.$style.oauthApp__table,{[l.$style.oauthApp__table_withSecret]:v.value}])},[t("thead",null,[t("tr",null,[t("th",null,u(e(a)("oauth2","Name")),1),t("th",null,u(e(a)("oauth2","Redirection URI")),1),t("th",null,u(e(a)("oauth2","Client identifier")),1),t("th",null,u(e(a)("oauth2","Secret key")),1),t("th",null,[t("span",T,u(e(a)("oauth2","Delete client")),1)])])]),t("tbody",null,[(s(!0),y(x,null,q(r.value,_=>(s(),d(Q,{key:_.id,client:_,onDelete:re=>N(_.id)},null,8,["client","onDelete"]))),128))])],2)):A("",!0),v.value?(s(),d(e(I),{key:1,type:"warning"},{default:h(()=>[b(u(e(a)("oauth2","Make sure you store the secret key, it cannot be recovered.")),1)]),_:1})):A("",!0),n[2]||(n[2]=t("br",null,null,-1)),t("h3",null,u(e(a)("oauth2","Add client")),1),o.value.error?(s(),d(e(I),{key:2,type:"error"},{default:h(()=>[b(u(o.value.errorMsg),1)]),_:1})):A("",!0),t("form",{class:i(l.$style.oauthApp__form),onSubmit:O(R,["prevent"])},[m(e(S),{id:"name",modelValue:o.value.name,"onUpdate:modelValue":n[0]||(n[0]=_=>o.value.name=_),class:i(l.$style.oauthApp__form__input),name:"name",label:e(a)("oauth2","Name"),placeholder:e(a)("oauth2","Name")},null,8,["modelValue","class","label","placeholder"]),m(e(S),{id:"redirectUri",modelValue:o.value.redirectUri,"onUpdate:modelValue":n[1]||(n[1]=_=>o.value.redirectUri=_),type:"url",class:i(l.$style.oauthApp__form__input),name:"redirectUri",label:e(a)("oauth2","Redirection URI"),placeholder:e(a)("oauth2","Redirection URI")},null,8,["modelValue","class","label","placeholder"]),m(e(M),{type:"submit",class:i(l.$style.oauthApp__submitButton)},{default:h(()=>[b(u(e(a)("oauth2","Add")),1)]),_:1},8,["class"])],34)]),_:1},8,["name","description","doc-url"]))}}),X="_oauthApp__form_15nkg_1",Y="_oauthApp__form__input_15nkg_6",Z="_oauthApp__table_15nkg_11",ee="_oauthApp__table_withSecret_15nkg_38",te={oauthApp__form:X,oauthApp__form__input:Y,oauthApp__table:Z,oauthApp__table_withSecret:ee},ae={$style:te},le=w(W,[["__cssModules",ae]]),oe=V("oauth2","clients"),ue=B(le,{modelValue:oe});ue.mount("#oauth2");
|
||||
//# sourceMappingURL=oauth2-settings-admin.mjs.map
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
import{_ as u,N as b,r as l,c as w,o as f,w as i,a as d,b as p,t as m,g,d as S,e as c,l as h,f as I}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{s as M}from"./Plus-ComWjyCg.chunk.mjs";import{c as k}from"./index-QBx_T219.chunk.mjs";import{N}from"./ContentCopy-DUGe9ppe.chunk.mjs";import{g as R}from"./TrashCanOutline-CpMai7X_.chunk.mjs";const T=R().detectLogLevel().setApp("sharebymail").build(),V={name:"AdminSettings",components:{NcCheckboxRadioSwitch:N,NcSettingsSection:b},setup(){return{t:c}},data(){return{sendPasswordMail:h("sharebymail","sendPasswordMail"),replyToInitiator:h("sharebymail","replyToInitiator")}},watch:{sendPasswordMail(e){this.update("sendpasswordmail",e)},replyToInitiator(e){this.update("replyToInitiator",e)}},methods:{async update(e,a){await k();const o=g("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),t=a?"yes":"no";try{const{data:s}=await S.post(o,{value:t});this.handleResponse({status:s.ocs?.meta?.status})}catch(s){this.handleResponse({errorMessage:c("sharebymail","Unable to update share by mail config"),error:s})}},async handleResponse({status:e,errorMessage:a,error:o}){e!=="ok"&&(M(a),T.error(a,{error:o}))}}};function v(e,a,o,t,s,x){const n=l("NcCheckboxRadioSwitch"),y=l("NcSettingsSection");return f(),w(y,{name:t.t("sharebymail","Share by mail"),description:t.t("sharebymail","Allows people to share a personalized link to a file or folder by putting in an email address.")},{default:i(()=>[d(n,{modelValue:s.sendPasswordMail,"onUpdate:modelValue":a[0]||(a[0]=r=>s.sendPasswordMail=r),type:"switch"},{default:i(()=>[p(m(t.t("sharebymail","Send password by mail")),1)]),_:1},8,["modelValue"]),d(n,{modelValue:s.replyToInitiator,"onUpdate:modelValue":a[1]||(a[1]=r=>s.replyToInitiator=r),type:"switch"},{default:i(()=>[p(m(t.t("sharebymail","Reply to initiator")),1)]),_:1},8,["modelValue"])]),_:1},8,["name","description"])}const P=u(V,[["render",v]]),_=I(P);_.mount("#vue-admin-sharebymail");
|
||||
import{_ as u,N as b,r as l,c as w,o as f,w as i,a as d,b as p,t as m,g,d as S,e as c,l as h,f as I}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{s as M}from"./Plus-C_Vqf1oT.chunk.mjs";import{c as k}from"./index-BqyDNUXP.chunk.mjs";import{N}from"./ContentCopy-DUGe9ppe.chunk.mjs";import{g as R}from"./TrashCanOutline-mqlhzHTy.chunk.mjs";const T=R().detectLogLevel().setApp("sharebymail").build(),V={name:"AdminSettings",components:{NcCheckboxRadioSwitch:N,NcSettingsSection:b},setup(){return{t:c}},data(){return{sendPasswordMail:h("sharebymail","sendPasswordMail"),replyToInitiator:h("sharebymail","replyToInitiator")}},watch:{sendPasswordMail(e){this.update("sendpasswordmail",e)},replyToInitiator(e){this.update("replyToInitiator",e)}},methods:{async update(e,a){await k();const o=g("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),t=a?"yes":"no";try{const{data:s}=await S.post(o,{value:t});this.handleResponse({status:s.ocs?.meta?.status})}catch(s){this.handleResponse({errorMessage:c("sharebymail","Unable to update share by mail config"),error:s})}},async handleResponse({status:e,errorMessage:a,error:o}){e!=="ok"&&(M(a),T.error(a,{error:o}))}}};function v(e,a,o,t,s,x){const n=l("NcCheckboxRadioSwitch"),y=l("NcSettingsSection");return f(),w(y,{name:t.t("sharebymail","Share by mail"),description:t.t("sharebymail","Allows people to share a personalized link to a file or folder by putting in an email address.")},{default:i(()=>[d(n,{modelValue:s.sendPasswordMail,"onUpdate:modelValue":a[0]||(a[0]=r=>s.sendPasswordMail=r),type:"switch"},{default:i(()=>[p(m(t.t("sharebymail","Send password by mail")),1)]),_:1},8,["modelValue"]),d(n,{modelValue:s.replyToInitiator,"onUpdate:modelValue":a[1]||(a[1]=r=>s.replyToInitiator=r),type:"switch"},{default:i(()=>[p(m(t.t("sharebymail","Reply to initiator")),1)]),_:1},8,["modelValue"])]),_:1},8,["name","description"])}const P=u(V,[["render",v]]),_=I(P);_.mount("#vue-admin-sharebymail");
|
||||
//# sourceMappingURL=sharebymail-admin-settings.mjs.map
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
import{d as U,c as A}from"./pinia-C7h4TeOI.chunk.mjs";import{e as o,p as I,d as M,l as R,i as m,h as j,j as x,v as i,o as n,c as E,u as a,w as k,b as p,t as r,m as L,F as _,k as f,x as B,n as g,a as y,_ as F,f as G}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{g as H,a as N,b as w}from"./TrashCanOutline-CpMai7X_.chunk.mjs";import{s as P}from"./Plus-ComWjyCg.chunk.mjs";import{c as q}from"./index-QBx_T219.chunk.mjs";import{a as z}from"./ContentCopy-DUGe9ppe.chunk.mjs";const D=H().detectLogLevel().setApp("twofactor_backupcodes").build();function J(d){const c=N().theming.name||"Nextcloud",e=window.open("",o("twofactor_backupcodes","{name} backup codes",{name:c}));if(!e)throw P(o("twofactor_backupcodes","Unable to open a new tab for printing")),new Error("Unable to open a new tab for printing");const t=e.document.createElement("h1");t.textContent=o("twofactor_backupcodes","{name} backup codes",{name:c});const s=e.document.createElement("pre");for(const b of d){const u=e.document.createTextNode(b);s.appendChild(u),s.appendChild(e.document.createElement("br"))}e.document.body.innerHTML="",e.document.body.appendChild(t),e.document.body.appendChild(s),e.print(),e.close()}async function K(){const d=I("/apps/twofactor_backupcodes/settings/create"),{data:c}=await M.post(d);return c}const v=R("twofactor_backupcodes","state"),O=U("twofactor_backupcodes",()=>{const d=m(v.enabled),c=m(v.total),e=m(v.used),t=m([]);async function s(){d.value=!1;const{codes:b,state:u}=await K();d.value=u.enabled,c.value=u.total,e.value=u.used,t.value=b}return{enabled:d,total:c,used:e,codes:t,generate:s}}),Q=["aria-label"],V=j({__name:"PersonalSettings",setup(d){const c=N().theming.name??"Nextcloud",e=O(),t=m(!1),s=x(()=>e.codes&&e.codes.length>0),b=c+"-backup-codes.txt",u=x(()=>s.value?"data:text/plain,"+encodeURIComponent(e.codes.reduce((l,C)=>l+C+`
|
||||
import{d as U,c as A}from"./pinia-C7h4TeOI.chunk.mjs";import{e as o,p as I,d as M,l as R,i as m,h as j,j as x,v as i,o as n,c as E,u as a,w as k,b as p,t as r,m as L,F as _,k as f,x as B,n as g,a as y,_ as F,f as G}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";import{g as H,a as N,b as w}from"./TrashCanOutline-mqlhzHTy.chunk.mjs";import{s as P}from"./Plus-C_Vqf1oT.chunk.mjs";import{c as q}from"./index-BqyDNUXP.chunk.mjs";import{a as z}from"./ContentCopy-DUGe9ppe.chunk.mjs";const D=H().detectLogLevel().setApp("twofactor_backupcodes").build();function J(d){const c=N().theming.name||"Nextcloud",e=window.open("",o("twofactor_backupcodes","{name} backup codes",{name:c}));if(!e)throw P(o("twofactor_backupcodes","Unable to open a new tab for printing")),new Error("Unable to open a new tab for printing");const t=e.document.createElement("h1");t.textContent=o("twofactor_backupcodes","{name} backup codes",{name:c});const s=e.document.createElement("pre");for(const b of d){const u=e.document.createTextNode(b);s.appendChild(u),s.appendChild(e.document.createElement("br"))}e.document.body.innerHTML="",e.document.body.appendChild(t),e.document.body.appendChild(s),e.print(),e.close()}async function K(){const d=I("/apps/twofactor_backupcodes/settings/create"),{data:c}=await M.post(d);return c}const v=R("twofactor_backupcodes","state"),O=U("twofactor_backupcodes",()=>{const d=m(v.enabled),c=m(v.total),e=m(v.used),t=m([]);async function s(){d.value=!1;const{codes:b,state:u}=await K();d.value=u.enabled,c.value=u.total,e.value=u.used,t.value=b}return{enabled:d,total:c,used:e,codes:t,generate:s}}),Q=["aria-label"],V=j({__name:"PersonalSettings",setup(d){const c=N().theming.name??"Nextcloud",e=O(),t=m(!1),s=x(()=>e.codes&&e.codes.length>0),b=c+"-backup-codes.txt",u=x(()=>s.value?"data:text/plain,"+encodeURIComponent(e.codes.reduce((l,C)=>l+C+`
|
||||
`,"")):"");async function h(){await q(),t.value=!0;try{await e.generate()}catch(l){D.error("Error generating backup codes",{error:l}),P(o("twofactor_backupcodes","An error occurred while generating your backup codes"))}finally{t.value=!1}}function T(){J(!e.codes||e.codes.length===0?[]:e.codes)}return(l,C)=>(n(),i("div",{class:g(l.$style.backupcodesSettings)},[a(e).enabled?(n(),i(_,{key:1},[f("p",null,[s.value?(n(),i(_,{key:1},[p(r(a(o)("twofactor_backupcodes","These are your backup codes. Please save and/or print them as you will not be able to read the codes again later."))+" ",1),f("ul",{"aria-label":a(o)("twofactor_backupcodes","List of backup codes")},[(n(!0),i(_,null,B(a(e).codes,S=>(n(),i("li",{key:S,class:g(l.$style.backupcodesSettings__code)},r(S),3))),128))],8,Q)],64)):(n(),i(_,{key:0},[p(r(a(o)("twofactor_backupcodes","Backup codes have been generated. {used} of {total} codes have been used.",{used:a(e).used,total:a(e).total})),1)],64))]),f("p",{class:g(l.$style.backupcodesSettings__actions)},[y(a(w),{id:"generate-backup-codes",variant:"error",onClick:h},{default:k(()=>[p(r(a(o)("twofactor_backupcodes","Regenerate backup codes")),1)]),_:1}),s.value?(n(),i(_,{key:0},[y(a(w),{onClick:T},{default:k(()=>[p(r(a(o)("twofactor_backupcodes","Print backup codes")),1)]),_:1}),y(a(w),{href:u.value,download:b,variant:"primary"},{default:k(()=>[p(r(a(o)("twofactor_backupcodes","Save backup codes")),1)]),_:1},8,["href"])],64)):L("",!0)],2),f("p",null,[f("em",null,r(a(o)("twofactor_backupcodes","If you regenerate backup codes, you automatically invalidate old codes.")),1)])],64)):(n(),E(a(w),{key:0,disabled:t.value,variant:"primary",onClick:h},{icon:k(()=>[t.value?(n(),E(a(z),{key:0})):L("",!0)]),default:k(()=>[p(" "+r(a(o)("twofactor_backupcodes","Generate backup codes")),1)]),_:1},8,["disabled"]))],2))}}),W="_backupcodesSettings_bnkw8_2",X="_backupcodesSettings__code_bnkw8_7",Y="_backupcodesSettings__actions_bnkw8_13",Z={backupcodesSettings:W,backupcodesSettings__code:X,backupcodesSettings__actions:Y},ee={$style:Z},ae=F(V,[["__cssModules",ee]]),oe=A(),$=G(ae);$.use(oe),$.mount("#twofactor-backupcodes-settings");
|
||||
//# sourceMappingURL=twofactor_backupcodes-settings-personal.mjs.map
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue