From fc536de25cb93292639c6258bd631f9aaf685565 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Thu, 2 Dec 2021 22:39:00 +0100 Subject: Ensure mapfile consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- dist/files_sharing-personal-settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dist/files_sharing-personal-settings.js') diff --git a/dist/files_sharing-personal-settings.js b/dist/files_sharing-personal-settings.js index a0c30e90528..bedd64c7dec 100644 --- a/dist/files_sharing-personal-settings.js +++ b/dist/files_sharing-personal-settings.js @@ -1,3 +1,3 @@ /*! For license information please see files_sharing-personal-settings.js.LICENSE.txt */ -(()=>{"use strict";var e,n={71679:(e,n,r)=>{var a=r(20144),s=r(22200),o=r(79753),i=r(16453),l=r(26932),c=r(4820),d=r(62520),p=r.n(d);const f=(0,i.loadState)("files_sharing","default_share_folder","/"),u=(0,i.loadState)("files_sharing","share_folder",f),h={name:"SelectShareFolderDialogue",data:()=>({directory:u,defaultDirectory:f}),computed:{readableDirectory(){return this.directory?this.directory:"/"}},methods:{async pickFolder(){const e=(0,l.fn)(t("files","Choose a default folder for accepted shares")).startAt(this.readableDirectory).setMultiSelect(!1).setModal(!0).setType(1).setMimeTypeFilter(["httpd/unix-directory"]).allowDirectories().build();try{const n=await e.pick()||"/";if(!n.startsWith("/"))throw new Error(t("files","Invalid path selected"));this.directory=p().normalize(n),await c.default.put((0,o.generateUrl)("/apps/files_sharing/settings/shareFolder"),{shareFolder:this.directory})}catch(e){(0,l.x2)(e.message||t("files","Unknown error"))}},resetFolder(){this.directory=this.defaultDirectory,c.default.delete((0,o.generateUrl)("/apps/files_sharing/settings/shareFolder"))}}};var g=r(93379),_=r.n(g),A=r(39598);_()(A.Z,{insert:"head",singleton:!1}),A.Z.locals;var v=r(51900);const m={name:"PersonalSettings",components:{SelectShareFolderDialogue:(0,v.Z)(h,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"share-folder"},[t("span",[e._v(e._s(e.t("files_sharing","Set default folder for accepted shares"))+" ")]),e._v(" "),t("form",{staticClass:"share-folder__form",on:{reset:function(n){return n.preventDefault(),n.stopPropagation(),e.resetFolder.apply(null,arguments)}}},[t("input",{staticClass:"share-folder__picker",attrs:{type:"text",placeholder:e.readableDirectory},on:{click:function(n){return n.preventDefault(),e.pickFolder.apply(null,arguments)}}}),e._v(" "),e.readableDirectory!==e.defaultDirectory?t("input",{staticClass:"share-folder__reset",attrs:{type:"reset","aria-label":e.t("files_sharing","Reset folder to system default")},domProps:{value:e.t("files_sharing","Reset")}}):e._e()])])}),[],!1,null,"1b20ac1d",null).exports},data:()=>({accepting:(0,i.loadState)("files_sharing","accept_default"),enforceAcceptShares:(0,i.loadState)("files_sharing","enforce_accept"),allowCustomDirectory:(0,i.loadState)("files_sharing","allow_custom_share_folder")}),methods:{async toggleEnabled(){try{await c.default.put((0,o.generateUrl)("/apps/files_sharing/settings/defaultAccept"),{accept:this.accepting})}catch(e){(0,l.x2)(t("sharing","Error while toggling options")),console.error(e)}}}};var y=r(59936);_()(y.Z,{insert:"head",singleton:!1}),y.Z.locals;const b=(0,v.Z)(m,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return!e.enforceAcceptShares||e.allowCustomDirectory?t("div",{staticClass:"section",attrs:{id:"files-sharing-personal-settings"}},[t("h2",[e._v(e._s(e.t("files_sharing","Sharing")))]),e._v(" "),e.enforceAcceptShares?e._e():t("p",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.accepting,expression:"accepting"}],staticClass:"checkbox",attrs:{id:"files-sharing-personal-settings-accept",type:"checkbox"},domProps:{checked:Array.isArray(e.accepting)?e._i(e.accepting,null)>-1:e.accepting},on:{change:[function(n){var t=e.accepting,r=n.target,a=!!r.checked;if(Array.isArray(t)){var s=e._i(t,null);r.checked?s<0&&(e.accepting=t.concat([null])):s>-1&&(e.accepting=t.slice(0,s).concat(t.slice(s+1)))}else e.accepting=a},e.toggleEnabled]}}),e._v(" "),t("label",{attrs:{for:"files-sharing-personal-settings-accept"}},[e._v(e._s(e.t("files_sharing","Accept user and group shares by default")))])]),e._v(" "),e.allowCustomDirectory?t("p",[t("SelectShareFolderDialogue")],1):e._e()]):e._e()}),[],!1,null,"188f517d",null).exports;r.nc=btoa((0,s.getRequestToken)()),r.p=(0,o.generateFilePath)("files","","js/"),a.default.prototype.t=t,(new(a.default.extend(b))).$mount("#files-sharing-personal-settings")},59936:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(94015),a=t.n(r),s=t(23645),o=t.n(s)()(a());o.push([e.id,"p[data-v-188f517d]{margin-top:12px;margin-bottom:12px}","",{version:3,sources:["webpack://./apps/files_sharing/src/components/PersonalSettings.vue"],names:[],mappings:"AAgFA,mBACC,eAAA,CACA,kBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\np {\n\tmargin-top: 12px;\n\tmargin-bottom: 12px;\n}\n"],sourceRoot:""}]);const i=o},39598:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(94015),a=t.n(r),s=t(23645),o=t.n(s)()(a());o.push([e.id,".share-folder__form[data-v-1b20ac1d]{display:flex}.share-folder__picker[data-v-1b20ac1d]{cursor:pointer;min-width:266px}.share-folder__reset[data-v-1b20ac1d]{background-color:transparent;border:none;font-weight:normal;text-decoration:underline;font-size:inherit}","",{version:3,sources:["webpack://./apps/files_sharing/src/components/SelectShareFolderDialogue.vue"],names:[],mappings:"AA0GC,qCACC,YAAA,CAGD,uCACC,cAAA,CACA,eAAA,CAID,sCACC,4BAAA,CACA,WAAA,CACA,kBAAA,CACA,yBAAA,CACA,iBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.share-folder {\n\t&__form {\n\t\tdisplay: flex;\n\t}\n\n\t&__picker {\n\t\tcursor: pointer;\n\t\tmin-width: 266px;\n\t}\n\n\t// Make the reset button looks like text\n\t&__reset {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tfont-weight: normal;\n\t\ttext-decoration: underline;\n\t\tfont-size: inherit;\n\t}\n}\n"],sourceRoot:""}]);const i=o}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}a.m=n,a.amdD=function(){throw new Error("define cannot be used indirect")},a.amdO={},e=[],a.O=(n,t,r,s)=>{if(!t){var o=1/0;for(d=0;d=s)&&Object.keys(a.O).every((e=>a.O[e](t[l])))?t.splice(l--,1):(i=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,r,s]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=330,a.p="/dist/",(()=>{var e={330:0};a.O.j=n=>0===e[n];var n=(n,t)=>{var r,s,o=t[0],i=t[1],l=t[2],c=0;if(o.some((n=>0!==e[n]))){for(r in i)a.o(i,r)&&(a.m[r]=i[r]);if(l)var d=l(a)}for(n&&n(t);ca(71679)));s=a.O(s)})(); -//# sourceMappingURL=files_sharing-personal-settings.js.map?v=7ceb2fd50a4aef4469fb \ No newline at end of file +(()=>{"use strict";var e,n={71679:(e,n,r)=>{var a=r(20144),s=r(22200),o=r(79753),i=r(16453),l=r(26932),c=r(4820),d=r(62520),p=r.n(d);const f=(0,i.loadState)("files_sharing","default_share_folder","/"),u=(0,i.loadState)("files_sharing","share_folder",f),h={name:"SelectShareFolderDialogue",data:()=>({directory:u,defaultDirectory:f}),computed:{readableDirectory(){return this.directory?this.directory:"/"}},methods:{async pickFolder(){const e=(0,l.fn)(t("files","Choose a default folder for accepted shares")).startAt(this.readableDirectory).setMultiSelect(!1).setModal(!0).setType(1).setMimeTypeFilter(["httpd/unix-directory"]).allowDirectories().build();try{const n=await e.pick()||"/";if(!n.startsWith("/"))throw new Error(t("files","Invalid path selected"));this.directory=p().normalize(n),await c.default.put((0,o.generateUrl)("/apps/files_sharing/settings/shareFolder"),{shareFolder:this.directory})}catch(e){(0,l.x2)(e.message||t("files","Unknown error"))}},resetFolder(){this.directory=this.defaultDirectory,c.default.delete((0,o.generateUrl)("/apps/files_sharing/settings/shareFolder"))}}};var g=r(93379),_=r.n(g),A=r(39598);_()(A.Z,{insert:"head",singleton:!1}),A.Z.locals;var v=r(51900);const m={name:"PersonalSettings",components:{SelectShareFolderDialogue:(0,v.Z)(h,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"share-folder"},[t("span",[e._v(e._s(e.t("files_sharing","Set default folder for accepted shares"))+" ")]),e._v(" "),t("form",{staticClass:"share-folder__form",on:{reset:function(n){return n.preventDefault(),n.stopPropagation(),e.resetFolder.apply(null,arguments)}}},[t("input",{staticClass:"share-folder__picker",attrs:{type:"text",placeholder:e.readableDirectory},on:{click:function(n){return n.preventDefault(),e.pickFolder.apply(null,arguments)}}}),e._v(" "),e.readableDirectory!==e.defaultDirectory?t("input",{staticClass:"share-folder__reset",attrs:{type:"reset","aria-label":e.t("files_sharing","Reset folder to system default")},domProps:{value:e.t("files_sharing","Reset")}}):e._e()])])}),[],!1,null,"1b20ac1d",null).exports},data:()=>({accepting:(0,i.loadState)("files_sharing","accept_default"),enforceAcceptShares:(0,i.loadState)("files_sharing","enforce_accept"),allowCustomDirectory:(0,i.loadState)("files_sharing","allow_custom_share_folder")}),methods:{async toggleEnabled(){try{await c.default.put((0,o.generateUrl)("/apps/files_sharing/settings/defaultAccept"),{accept:this.accepting})}catch(e){(0,l.x2)(t("sharing","Error while toggling options")),console.error(e)}}}};var y=r(59936);_()(y.Z,{insert:"head",singleton:!1}),y.Z.locals;const b=(0,v.Z)(m,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return!e.enforceAcceptShares||e.allowCustomDirectory?t("div",{staticClass:"section",attrs:{id:"files-sharing-personal-settings"}},[t("h2",[e._v(e._s(e.t("files_sharing","Sharing")))]),e._v(" "),e.enforceAcceptShares?e._e():t("p",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.accepting,expression:"accepting"}],staticClass:"checkbox",attrs:{id:"files-sharing-personal-settings-accept",type:"checkbox"},domProps:{checked:Array.isArray(e.accepting)?e._i(e.accepting,null)>-1:e.accepting},on:{change:[function(n){var t=e.accepting,r=n.target,a=!!r.checked;if(Array.isArray(t)){var s=e._i(t,null);r.checked?s<0&&(e.accepting=t.concat([null])):s>-1&&(e.accepting=t.slice(0,s).concat(t.slice(s+1)))}else e.accepting=a},e.toggleEnabled]}}),e._v(" "),t("label",{attrs:{for:"files-sharing-personal-settings-accept"}},[e._v(e._s(e.t("files_sharing","Accept user and group shares by default")))])]),e._v(" "),e.allowCustomDirectory?t("p",[t("SelectShareFolderDialogue")],1):e._e()]):e._e()}),[],!1,null,"188f517d",null).exports;r.nc=btoa((0,s.getRequestToken)()),r.p=(0,o.generateFilePath)("files","","js/"),a.default.prototype.t=t,(new(a.default.extend(b))).$mount("#files-sharing-personal-settings")},59936:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(94015),a=t.n(r),s=t(23645),o=t.n(s)()(a());o.push([e.id,"p[data-v-188f517d]{margin-top:12px;margin-bottom:12px}","",{version:3,sources:["webpack://./apps/files_sharing/src/components/PersonalSettings.vue"],names:[],mappings:"AAgFA,mBACC,eAAA,CACA,kBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\np {\n\tmargin-top: 12px;\n\tmargin-bottom: 12px;\n}\n"],sourceRoot:""}]);const i=o},39598:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(94015),a=t.n(r),s=t(23645),o=t.n(s)()(a());o.push([e.id,".share-folder__form[data-v-1b20ac1d]{display:flex}.share-folder__picker[data-v-1b20ac1d]{cursor:pointer;min-width:266px}.share-folder__reset[data-v-1b20ac1d]{background-color:transparent;border:none;font-weight:normal;text-decoration:underline;font-size:inherit}","",{version:3,sources:["webpack://./apps/files_sharing/src/components/SelectShareFolderDialogue.vue"],names:[],mappings:"AA0GC,qCACC,YAAA,CAGD,uCACC,cAAA,CACA,eAAA,CAID,sCACC,4BAAA,CACA,WAAA,CACA,kBAAA,CACA,yBAAA,CACA,iBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.share-folder {\n\t&__form {\n\t\tdisplay: flex;\n\t}\n\n\t&__picker {\n\t\tcursor: pointer;\n\t\tmin-width: 266px;\n\t}\n\n\t// Make the reset button looks like text\n\t&__reset {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tfont-weight: normal;\n\t\ttext-decoration: underline;\n\t\tfont-size: inherit;\n\t}\n}\n"],sourceRoot:""}]);const i=o}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(s.exports,s,s.exports,a),s.loaded=!0,s.exports}a.m=n,a.amdD=function(){throw new Error("define cannot be used indirect")},a.amdO={},e=[],a.O=(n,t,r,s)=>{if(!t){var o=1/0;for(d=0;d=s)&&Object.keys(a.O).every((e=>a.O[e](t[l])))?t.splice(l--,1):(i=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,r,s]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=330,a.p="/dist/",(()=>{var e={330:0};a.O.j=n=>0===e[n];var n=(n,t)=>{var r,s,o=t[0],i=t[1],l=t[2],c=0;if(o.some((n=>0!==e[n]))){for(r in i)a.o(i,r)&&(a.m[r]=i[r]);if(l)var d=l(a)}for(n&&n(t);ca(71679)));s=a.O(s)})(); +//# sourceMappingURL=files_sharing-personal-settings.js.map?v=3992ad9eb263e6112c11 \ No newline at end of file -- cgit v1.2.3