Skip to content

Commit

Permalink
chore(assets): Recompile assets
Browse files Browse the repository at this point in the history
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
nextcloud-command committed Jun 18, 2024
1 parent e11d0f8 commit fe3aff5
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 2 additions & 0 deletions js/_plugin-vue2_normalizer-CLrp7bbm.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/_plugin-vue2_normalizer-CLrp7bbm.mjs.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions js/_plugin-vue2_normalizer-TJTfwyQe.mjs

This file was deleted.

1 change: 0 additions & 1 deletion js/_plugin-vue2_normalizer-TJTfwyQe.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 @@
/*! third party licenses: js/vendor.LICENSE.txt */
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,z as p,b as f,V as _}from"./_plugin-vue2_normalizer-TJTfwyQe.mjs";import{l as g}from"./purify.es-BGGr_pL-.mjs";import{t as l}from"./index-DxEyWIyu.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,"a01ff901",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,"4a670ffb",null,null);const z=k.exports;new _({el:"#admin-download-limit",render:t=>t(z)});
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-CLrp7bbm.mjs";import{l as g}from"./purify.es-B5MT0KLE.mjs";import{t as l}from"./index-Tk-0eYTG.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,"a01ff901",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,"4a670ffb",null,null);const z=k.exports;new _({el:"#admin-download-limit",render:t=>t(z)});
2 changes: 1 addition & 1 deletion js/files_downloadlimit-main.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/files_downloadlimit-public.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/*! third party licenses: js/vendor.LICENSE.txt */
import{l as w}from"./purify.es-BGGr_pL-.mjs";import{t as s,a as f}from"./index-DxEyWIyu.mjs";import{l as p}from"./logger-BYdwETLn.mjs";const{limit:i,downloads:c}=w("files_downloadlimit","download_limit",{limit:-1,downloads:0});p.debug("Download limit",{limit:i,downloads:c});let n=i-c,r=0;const m=(e,o)=>{o===0?e.innerText=s("files_downloadlimit","You have reached the maximum amount of downloads allowed"):e.innerText=f("files_downloadlimit","1 remaining download allowed","{count} remaining downloads allowed",o,{count:o})};window.addEventListener("DOMContentLoaded",()=>{if(i<1)return;const e=document.getElementById("header-primary-action");if(!e)return;const o=document.createElement("span");o.setAttribute("style","color: var(--color-primary-text); padding: 0 10px;"),m(o,n),e.prepend(o);const a=document.querySelector("#files-public-content");if(!a)return;a.oncontextmenu=t=>(t.preventDefault(),t.stopPropagation(),!1);const l=document.querySelectorAll('a[href*="/download/"]')||[];new Set(l).forEach(t=>{t.addEventListener("click",d=>{if(r>0&&!confirm(s("files_downloadlimit","This share has a limited number of downloads. Are you sure you want to trigger a new download?"))){d.preventDefault(),d.stopPropagation();return}n--,r++,m(o,n),n===0&&[...l].forEach(u=>u.remove())})})});
import{l as w}from"./purify.es-B5MT0KLE.mjs";import{t as s,a as f}from"./index-Tk-0eYTG.mjs";import{l as p}from"./logger-DZ_3UeC3.mjs";const{limit:i,downloads:c}=w("files_downloadlimit","download_limit",{limit:-1,downloads:0});p.debug("Download limit",{limit:i,downloads:c});let n=i-c,r=0;const m=(e,o)=>{o===0?e.innerText=s("files_downloadlimit","You have reached the maximum amount of downloads allowed"):e.innerText=f("files_downloadlimit","1 remaining download allowed","{count} remaining downloads allowed",o,{count:o})};window.addEventListener("DOMContentLoaded",()=>{if(i<1)return;const e=document.getElementById("header-primary-action");if(!e)return;const o=document.createElement("span");o.setAttribute("style","color: var(--color-primary-text); padding: 0 10px;"),m(o,n),e.prepend(o);const a=document.querySelector("#files-public-content");if(!a)return;a.oncontextmenu=t=>(t.preventDefault(),t.stopPropagation(),!1);const l=document.querySelectorAll('a[href*="/download/"]')||[];new Set(l).forEach(t=>{t.addEventListener("click",d=>{if(r>0&&!confirm(s("files_downloadlimit","This share has a limited number of downloads. Are you sure you want to trigger a new download?"))){d.preventDefault(),d.stopPropagation();return}n--,r++,m(o,n),n===0&&[...l].forEach(u=>u.remove())})})});
2 changes: 1 addition & 1 deletion js/index-DxEyWIyu.mjs → js/index-Tk-0eYTG.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/*! third party licenses: js/vendor.LICENSE.txt */
import{g as w,e as A}from"./purify.es-BGGr_pL-.mjs";var h=/["'&<>]/,x=z;function z(a){var e=""+a,o=h.exec(e);if(!o)return e;var n,r="",t=0,i=0;for(t=o.index;t<e.length;t++){switch(e.charCodeAt(t)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}i!==t&&(r+=e.substring(i,t)),i=t+1,r+=n}return i!==t?r+e.substring(i,t):r}const g=w(x);function k(a){var e,o,n,r;return{translations:(o=(e=window._oc_l10n_registry_translations)==null?void 0:e[a])!=null?o:{},pluralFunction:(r=(n=window._oc_l10n_registry_plural_functions)==null?void 0:n[a])!=null?r:t=>t}}function v(a,e,o,n,r){const t={escape:!0,sanitize:!0,...r||{}},i=l=>l,p=t.sanitize?A.sanitize:i,s=t.escape?g:i,f=l=>typeof l=="string"||typeof l=="number",_=(l,d,m)=>l.replace(/%n/g,""+m).replace(/{([^{}]*)}/g,(y,b)=>{if(d===void 0||!(b in d))return s(y);const u=d[b];return f(u)?s("".concat(u)):typeof u=="object"&&f(u.value)?(u.escape!==!1?g:i)("".concat(u.value)):s(y)});let c=k(a).translations[e]||e;return c=Array.isArray(c)?c[0]:c,p(typeof o=="object"||n!==void 0?_(c,o,n):c)}function j(a,e,o,n,r,t){const i="_"+e+"_::_"+o+"_",p=k(a),s=p.translations[i];if(typeof s<"u"){const f=s;if(Array.isArray(f)){const _=p.pluralFunction(n);return v(a,f[_],r,n,t)}}return n===1?v(a,e,r,n,t):v(a,o,r,n,t)}export{j as a,v as t};
import{g as w,e as A}from"./purify.es-B5MT0KLE.mjs";var h=/["'&<>]/,x=z;function z(a){var e=""+a,o=h.exec(e);if(!o)return e;var n,r="",t=0,i=0;for(t=o.index;t<e.length;t++){switch(e.charCodeAt(t)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}i!==t&&(r+=e.substring(i,t)),i=t+1,r+=n}return i!==t?r+e.substring(i,t):r}const g=w(x);function k(a){var e,o,n,r;return{translations:(o=(e=window._oc_l10n_registry_translations)==null?void 0:e[a])!=null?o:{},pluralFunction:(r=(n=window._oc_l10n_registry_plural_functions)==null?void 0:n[a])!=null?r:t=>t}}function v(a,e,o,n,r){const t={escape:!0,sanitize:!0,...r||{}},i=l=>l,p=t.sanitize?A.sanitize:i,s=t.escape?g:i,f=l=>typeof l=="string"||typeof l=="number",_=(l,d,m)=>l.replace(/%n/g,""+m).replace(/{([^{}]*)}/g,(y,b)=>{if(d===void 0||!(b in d))return s(y);const u=d[b];return f(u)?s("".concat(u)):typeof u=="object"&&f(u.value)?(u.escape!==!1?g:i)("".concat(u.value)):s(y)});let c=k(a).translations[e]||e;return c=Array.isArray(c)?c[0]:c,p(typeof o=="object"||n!==void 0?_(c,o,n):c)}function j(a,e,o,n,r,t){const i="_"+e+"_::_"+o+"_",p=k(a),s=p.translations[i];if(typeof s<"u"){const f=s;if(Array.isArray(f)){const _=p.pluralFunction(n);return v(a,f[_],r,n,t)}}return n===1?v(a,e,r,n,t):v(a,o,r,n,t)}export{j as a,v as t};
Loading

0 comments on commit fe3aff5

Please sign in to comment.