Skip to content

Commit

Permalink
Merge pull request #375 from nextcloud/automated/noid/stable30-fix-np…
Browse files Browse the repository at this point in the history
…m-audit

[stable30] Fix npm audit
  • Loading branch information
Pytal authored Sep 20, 2024
2 parents c2a5496 + 0e061e0 commit 709311d
Show file tree
Hide file tree
Showing 30 changed files with 614 additions and 216 deletions.
1 change: 1 addition & 0 deletions css/_plugin-vue2_normalizer-Cf2K-lpF.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-CMpyUOHP.chunk.css';
@import './_plugin-vue2_normalizer-3FDkUgsv.chunk.css';
@import './_plugin-vue2_normalizer-Cf2K-lpF.chunk.css';
4 changes: 2 additions & 2 deletions 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-C9gKQ6Ah.chunk.css';
@import './_plugin-vue2_normalizer-3FDkUgsv.chunk.css';
@import './main-D8AXO2P3.chunk.css';
@import './_plugin-vue2_normalizer-Cf2K-lpF.chunk.css';
1 change: 1 addition & 0 deletions css/main-D8AXO2P3.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

This file was deleted.

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

This file was deleted.

1 change: 1 addition & 0 deletions js/_plugin-vue2_normalizer-DmUEDPlG.chunk.mjs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This file is generated from multiple sources. Included packages:
- version: 2.5.0
- license: GPL-3.0-or-later
- @nextcloud/dialogs
- version: 5.3.5
- version: 5.3.7
- license: AGPL-3.0-or-later
- @nextcloud/l10n
- version: 3.1.0
Expand All @@ -37,16 +37,16 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.16.0
- version: 8.18.0
- license: AGPL-3.0-or-later
- @nextcloud/vue
- version: 8.16.0
- version: 8.18.0
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 11.0.3
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 11.0.3
- license: MIT
- axios
- version: 1.7.7
Expand Down Expand Up @@ -232,8 +232,8 @@ This file is generated from multiple sources. Included packages:
- version: 2.7.16
- license: MIT
- vue-demi
- version: 0.14.7
- version: 0.14.10
- license: MIT
- vue-demi
- version: 0.14.7
- version: 0.14.10
- license: MIT
1 change: 1 addition & 0 deletions js/_plugin-vue2_normalizer-DmUEDPlG.chunk.mjs.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This file is generated from multiple sources. Included packages:
- version: 2.5.0
- license: GPL-3.0-or-later
- @nextcloud/dialogs
- version: 5.3.5
- version: 5.3.7
- license: AGPL-3.0-or-later
- @nextcloud/l10n
- version: 3.1.0
Expand All @@ -37,16 +37,16 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.16.0
- version: 8.18.0
- license: AGPL-3.0-or-later
- @nextcloud/vue
- version: 8.16.0
- version: 8.18.0
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 11.0.3
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 11.0.3
- license: MIT
- axios
- version: 1.7.7
Expand Down Expand Up @@ -232,8 +232,8 @@ This file is generated from multiple sources. Included packages:
- version: 2.7.16
- license: MIT
- vue-demi
- version: 0.14.7
- version: 0.14.10
- license: MIT
- vue-demi
- version: 0.14.7
- version: 0.14.10
- license: MIT
2 changes: 1 addition & 1 deletion js/files_downloadlimit-admin.mjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{r as o,e as r,n as a,t as c,c as d,v as m,d as u,N as h,s as p,b as f,V as _}from"./_plugin-vue2_normalizer-ClmBLKDG.chunk.mjs";import{l as g,t as l}from"./index-iJN9WzfE.chunk.mjs";o(r);const w={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var v=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:!0,"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()])])])},C=[],S=a(w,v,C,!1,null,null,null,null);const b=S.exports,y={name:"NcSettingsSection",components:{HelpCircle:b},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:c("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){var t,i;if(this.limitWidth)return!0;const[e]=(i=(t=window._oc_config)==null?void 0:t.version.split(".",2))!=null?i:[];return e&&Number.parseInt(e)>=30},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var x=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)},N=[],T=a(y,x,N,!1,null,"0974f50a",null,null);const L=T.exports,A=async t=>(await d.put(m("/apps/files_downloadlimit/api/v1/limit"),{limit:t})).data.ocs.data,s=g("files_downloadlimit","default-download-limit",-1),n=s===-1?"":s,H=u({name:"AdminSettings",components:{NcSettingsSection:L,NcTextField:h},data(){return{limit:n,savedLimit:n,showSuccess:!1}},computed:{helperText(){return typeof this.limit!="number"||this.limit>0?"":l("files_downloadlimit","The minimum limit is 1")},showTrailingButton(){return typeof this.limit=="number"&&this.limit>0&&this.limit!==this.savedLimit}},methods:{t:l,handleUpdateLimit(t){this.limit=Number(t)},async handleSave(){if(typeof this.limit=="number"&&this.limit>0)try{await A(this.limit),this.savedLimit=this.limit,this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},3e3)}catch{p(l("files_downloadlimit","Failed to set default download limit"))}}}});var U=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)])},D=[],k=f(H,U,D,!1,null,"a2fa1167",null,null);const z=k.exports,B=new _({render:t=>t(z)});B.$mount("#admin-download-limit");
import{r as o,e as r,n,t as c,c as d,v as m,d as u,N as h,s as p,b as f,V as _}from"./_plugin-vue2_normalizer-DmUEDPlG.chunk.mjs";import{l as g,t as s}from"./index-fMXldvg_.chunk.mjs";o(r);const w={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var v=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:!0,"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()])])])},C=[],S=n(w,v,C,!1,null,null);const b=S.exports,y={name:"NcSettingsSection",components:{HelpCircle:b},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:c("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){var t,i;if(this.limitWidth)return!0;const[e]=(i=(t=window._oc_config)==null?void 0:t.version.split(".",2))!=null?i:[];return e&&Number.parseInt(e)>=30},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var x=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)},N=[],T=n(y,x,N,!1,null,"0974f50a");const L=T.exports,A=async t=>(await d.put(m("/apps/files_downloadlimit/api/v1/limit"),{limit:t})).data.ocs.data,l=g("files_downloadlimit","default-download-limit",-1),a=l===-1?"":l,H=u({name:"AdminSettings",components:{NcSettingsSection:L,NcTextField:h},data(){return{limit:a,savedLimit:a,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 A(this.limit),this.savedLimit=this.limit,this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},3e3)}catch{p(s("files_downloadlimit","Failed to set default download limit"))}}}});var U=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)])},D=[],k=f(H,U,D,!1,null,"a2fa1167",null,null);const z=k.exports,B=new _({render:t=>t(z)});B.$mount("#admin-download-limit");
2 changes: 1 addition & 1 deletion js/files_downloadlimit-admin.mjs.license
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors

This file is generated from multiple sources. Included packages:
- @nextcloud/vue
- version: 8.16.0
- version: 8.18.0
- license: AGPL-3.0-or-later
- files_downloadlimit
- version: 3.0.0
Expand Down
Loading

0 comments on commit 709311d

Please sign in to comment.