Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ jobs:
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'

- name: Validate package-lock.json # See https://github.com/npm/cli/issues/4460
run: |
npm i -g npm-package-lock-add-resolved@1.1.4
npm-package-lock-add-resolved
git --no-pager diff --exit-code

- name: Install dependencies & build
env:
CYPRESS_INSTALL_BINARY: 0
Expand Down
1 change: 1 addition & 0 deletions css/_plugin-vue2_normalizer-BTP_bYha.chunk.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/files_downloadlimit-admin.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* extracted by css-entry-points-plugin */
@import './admin-B-9pO5zX.chunk.css';
@import './_plugin-vue2_normalizer-D-kqUg8q.chunk.css';
@import './_plugin-vue2_normalizer-BTP_bYha.chunk.css';
2 changes: 1 addition & 1 deletion css/files_downloadlimit-main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* extracted by css-entry-points-plugin */
@import './main-BhfDiUPQ.chunk.css';
@import './_plugin-vue2_normalizer-D-kqUg8q.chunk.css';
@import './_plugin-vue2_normalizer-BTP_bYha.chunk.css';
939 changes: 939 additions & 0 deletions js/_plugin-vue2_normalizer-1VOHAZGY.chunk.mjs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This file is generated from multiple sources. Included packages:
- version: 0.1.10
- license: MIT
- @nextcloud/axios
- version: 2.5.0
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/dialogs
- version: 5.3.8
Expand All @@ -35,31 +35,31 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.31.0
- version: 8.33.0
- license: AGPL-3.0-or-later
- @vitejs/plugin-vue2
- version: 2.3.3
- version: 2.3.4
- license: MIT
- @vueuse/core
- version: 11.0.3
- version: 11.3.0
- license: MIT
- @vueuse/shared
- version: 11.0.3
- version: 11.3.0
- license: MIT
- axios
- version: 1.10.0
- version: 1.13.0
- license: MIT
- floating-vue
- version: 1.0.0-beta.19
- license: MIT
- focus-trap
- version: 7.5.4
- version: 7.6.6
- license: MIT
- path-browserify
- version: 1.0.1
- license: MIT
- tabbable
- version: 6.2.0
- version: 6.3.0
- license: MIT
- toastify-js
- version: 1.12.0
Expand Down
1 change: 1 addition & 0 deletions js/_plugin-vue2_normalizer-1VOHAZGY.chunk.mjs.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This file is generated from multiple sources. Included packages:
- version: 0.1.10
- license: MIT
- @nextcloud/axios
- version: 2.5.0
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/dialogs
- version: 5.3.8
Expand All @@ -35,31 +35,31 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.31.0
- version: 8.33.0
- license: AGPL-3.0-or-later
- @vitejs/plugin-vue2
- version: 2.3.3
- version: 2.3.4
- license: MIT
- @vueuse/core
- version: 11.0.3
- version: 11.3.0
- license: MIT
- @vueuse/shared
- version: 11.0.3
- version: 11.3.0
- license: MIT
- axios
- version: 1.10.0
- version: 1.13.0
- license: MIT
- floating-vue
- version: 1.0.0-beta.19
- license: MIT
- focus-trap
- version: 7.5.4
- version: 7.6.6
- license: MIT
- path-browserify
- version: 1.0.1
- license: MIT
- tabbable
- version: 6.2.0
- version: 6.3.0
- license: MIT
- toastify-js
- version: 1.12.0
Expand Down
938 changes: 0 additions & 938 deletions js/_plugin-vue2_normalizer-DUuXpVMB.chunk.mjs

This file was deleted.

1 change: 0 additions & 1 deletion js/_plugin-vue2_normalizer-DUuXpVMB.chunk.mjs.map

This file was deleted.

2 changes: 1 addition & 1 deletion js/files_downloadlimit-admin.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import{r as c,k as d,n as o,t as m,f as u,v as h,h as p,N as f,s as _,j as g,V as w}from"./_plugin-vue2_normalizer-DUuXpVMB.chunk.mjs";import{l as r,t as s}from"./translation-DoG5ZELJ-9EnhHQEv.chunk.mjs";const v={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var C=function(){var t=this,i=t._self._c;return i("span",t._b({staticClass:"material-design-icon help-circle-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}},[t.title?i("title",[t._v(t._s(t.title))]):t._e()])])])},S=[],b=o(v,C,S,!1,null,null);const y=b.exports;c(d);const[l]=r("core","config",{version:"30.0"}).version.split(".",2)??[],x=l&&Number.parseInt(l)<30,N={name:"NcSettingsSection",components:{HelpCircle:y},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:m("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){return this.limitWidth||!x},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var T=function(){var t=this,i=t._self._c;return i("div",{staticClass:"settings-section",class:{"settings-section--limit-width":t.forceLimitWidth}},[i("h2",{staticClass:"settings-section__name"},[t._v(" "+t._s(t.name)+" "),t.hasDocUrl?i("a",{staticClass:"settings-section__info",attrs:{href:t.docUrl,title:t.docNameTranslated,"aria-label":t.docNameTranslated,target:"_blank",rel:"noreferrer nofollow"}},[i("HelpCircle",{attrs:{size:20}})],1):t._e()]),t.hasDescription?i("p",{staticClass:"settings-section__desc"},[t._v(" "+t._s(t.description)+" ")]):t._e(),t._t("default")],2)},L=[],A=o(N,T,L,!1,null,"56b92b56");const H=A.exports,U=async t=>(await u.put(h("/apps/files_downloadlimit/api/v1/limit"),{limit:t})).data.ocs.data,a=r("files_downloadlimit","default-download-limit",-1),n=a===-1?"":a,k=p({name:"AdminSettings",components:{NcSettingsSection:H,NcTextField:f},data(){return{limit:n,savedLimit:n,showSuccess:!1}},computed:{helperText(){return typeof this.limit!="number"||this.limit>0?"":s("files_downloadlimit","The minimum limit is 1")},showTrailingButton(){return typeof this.limit=="number"&&this.limit>0&&this.limit!==this.savedLimit}},methods:{t:s,handleUpdateLimit(t){this.limit=Number(t)},async handleSave(){if(typeof this.limit=="number"&&this.limit>0)try{await U(this.limit),this.savedLimit=this.limit,this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},3e3)}catch{_(s("files_downloadlimit","Failed to set default download limit"))}}}});var D=function(){var t=this,i=t._self._c;return t._self._setupProxy,i("NcSettingsSection",{attrs:{name:t.t("files_downloadlimit","Download limit"),description:t.t("files_downloadlimit","Configure the default download limit for external shares.")}},[i("form",{on:{submit:function(e){return e.preventDefault(),t.handleSave.apply(null,arguments)}}},[i("NcTextField",{staticClass:"settings__field",attrs:{label:t.t("files_downloadlimit","Set default download limit"),type:"number",min:"1",value:t.limit,"helper-text":t.helperText,error:!!t.helperText,success:t.showSuccess,"show-trailing-button":t.showTrailingButton,"trailing-button-icon":"arrowRight"},on:{"update:value":t.handleUpdateLimit,"trailing-button-click":t.handleSave}})],1)])},z=[],B=g(k,D,z,!1,null,"a2fa1167");const W=B.exports,F=new w({render:t=>t(W)});F.$mount("#admin-download-limit");
import{r as c,j as d,n as r,t as m,e as u,v as h,f,N as p,s as _,h as g,V as w}from"./_plugin-vue2_normalizer-1VOHAZGY.chunk.mjs";import{l as v,t as s}from"./index-BCrAQR8N.chunk.mjs";function C(t,i,e){const l=document.querySelector(`#initial-state-${t}-${i}`);if(l===null){if(e!==void 0)return e;throw new Error(`Could not find initial state ${i} of ${t}`)}try{return JSON.parse(atob(l.value))}catch{throw new Error(`Could not parse initial state ${i} of ${t}`)}}const S={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var b=function(){var t=this,i=t._self._c;return i("span",t._b({staticClass:"material-design-icon help-circle-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[i("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}},[t.title?i("title",[t._v(t._s(t.title))]):t._e()])])])},y=[],x=r(S,b,y,!1,null,null);const N=x.exports;c(d);const[a]=C("core","config",{version:"30.0"}).version.split(".",2)??[],T=a&&Number.parseInt(a)<30,L={name:"NcSettingsSection",components:{HelpCircle:N},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:m("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){return this.limitWidth||!T},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var $=function(){var t=this,i=t._self._c;return i("div",{staticClass:"settings-section",class:{"settings-section--limit-width":t.forceLimitWidth}},[i("h2",{staticClass:"settings-section__name"},[t._v(" "+t._s(t.name)+" "),t.hasDocUrl?i("a",{staticClass:"settings-section__info",attrs:{href:t.docUrl,title:t.docNameTranslated,"aria-label":t.docNameTranslated,target:"_blank",rel:"noreferrer nofollow"}},[i("HelpCircle",{attrs:{size:20}})],1):t._e()]),t.hasDescription?i("p",{staticClass:"settings-section__desc"},[t._v(" "+t._s(t.description)+" ")]):t._e(),t._t("default")],2)},A=[],H=r(L,$,A,!1,null,"56b92b56");const U=H.exports,D=async t=>(await u.put(h("/apps/files_downloadlimit/api/v1/limit"),{limit:t})).data.ocs.data,n=v("files_downloadlimit","default-download-limit",-1),o=n===-1?"":n,k=f({name:"AdminSettings",components:{NcSettingsSection:U,NcTextField:p},data(){return{limit:o,savedLimit:o,showSuccess:!1}},computed:{helperText(){return typeof this.limit!="number"||this.limit>0?"":s("files_downloadlimit","The minimum limit is 1")},showTrailingButton(){return typeof this.limit=="number"&&this.limit>0&&this.limit!==this.savedLimit}},methods:{t:s,handleUpdateLimit(t){this.limit=Number(t)},async handleSave(){if(typeof this.limit=="number"&&this.limit>0)try{await D(this.limit),this.savedLimit=this.limit,this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},3e3)}catch{_(s("files_downloadlimit","Failed to set default download limit"))}}}});var z=function(){var t=this,i=t._self._c;return t._self._setupProxy,i("NcSettingsSection",{attrs:{name:t.t("files_downloadlimit","Download limit"),description:t.t("files_downloadlimit","Configure the default download limit for external shares.")}},[i("form",{on:{submit:function(e){return e.preventDefault(),t.handleSave.apply(null,arguments)}}},[i("NcTextField",{staticClass:"settings__field",attrs:{label:t.t("files_downloadlimit","Set default download limit"),type:"number",min:"1",value:t.limit,"helper-text":t.helperText,error:!!t.helperText,success:t.showSuccess,"show-trailing-button":t.showTrailingButton,"trailing-button-icon":"arrowRight"},on:{"update:value":t.handleUpdateLimit,"trailing-button-click":t.handleSave}})],1)])},B=[],E=g(k,z,B,!1,null,"a2fa1167");const F=E.exports,M=new w({render:t=>t(F)});M.$mount("#admin-download-limit");
//# sourceMappingURL=files_downloadlimit-admin.mjs.map
7 changes: 6 additions & 1 deletion js/files_downloadlimit-admin.mjs.license
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: Christoph Wurst
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors

This file is generated from multiple sources. Included packages:
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.31.0
- version: 8.33.0
- license: AGPL-3.0-or-later
- files_downloadlimit
- version: 4.0.0
Expand Down
Loading
Loading