Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>undefined
@@ -1,3 +0,0 @@ | |||
/*! For license information please see 1110-1110.js.LICENSE.txt */ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[1110],{91110:(e,c,l)=>{l.d(c,{FilePickerVue:()=>n});const n=(0,l(85471).$V)((()=>Promise.all([l.e(4208),l.e(5455)]).then(l.bind(l,80401))))}}]); | |||
//# sourceMappingURL=1110-1110.js.map?v=b004475d49f882b902d2 |
@@ -1,21 +0,0 @@ | |||
/** | |||
* @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @author Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ |
@@ -1 +0,0 @@ | |||
{"version":3,"file":"1110-1110.js?v=b004475d49f882b902d2","mappings":";oIAsBA,MAAMA,GAAI,gBAAE,IAAM","sources":["webpack:///nextcloud/node_modules/@nextcloud/dialogs/dist/chunks/index-CqRCpcyw.mjs"],"sourcesContent":["import { defineAsyncComponent as e } from \"vue\";\n/**\n * @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @author Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nconst i = e(() => import(\"./FilePicker-pvhGKHps.mjs\"));\nexport {\n i as FilePickerVue\n};\n"],"names":["i"],"sourceRoot":""} |
@@ -1,5 +0,0 @@ | |||
/*! | |||
* vue-router v3.6.5 | |||
* (c) 2022 Evan You | |||
* @license MIT | |||
*/ |
@@ -1,21 +0,0 @@ | |||
/** | |||
* @copyright Copyright (c) 2024 Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @author Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ |
@@ -1,2 +0,0 @@ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[1689],{20440:(t,e,n)=>{n.d(e,{A:()=>i});var a=n(71354),l=n.n(a),o=n(76314),s=n.n(o)()(l());s.push([t.id,".legacy-prompt__text[data-v-6dd2f36f]{margin-block:0 .75em}.legacy-prompt__input[data-v-6dd2f36f]{margin-block:0 1em}[data-v-6dd2f36f] .legacy-prompt__dialog .dialog__actions{min-width:calc(100% - 12px);justify-content:space-between}","",{version:3,sources:["webpack://./core/src/components/LegacyDialogPrompt.vue"],names:[],mappings:"AAEC,sCACC,oBAAA,CAGD,uCACC,kBAAA,CAIF,0DACC,2BAAA,CACA,6BAAA",sourcesContent:["\n.legacy-prompt {\n\t&__text {\n\t\tmargin-block: 0 .75em;\n\t}\n\n\t&__input {\n\t\tmargin-block: 0 1em;\n\t}\n}\n\n:deep(.legacy-prompt__dialog .dialog__actions) {\n\tmin-width: calc(100% - 12px);\n\tjustify-content: space-between;\n}\n"],sourceRoot:""}]);const i=s},21689:(t,e,n)=>{n.r(e),n.d(e,{default:()=>h});var a=n(53334),l=n(85471),o=n(94219),s=n(82182),i=n(16044);const p=(0,l.pM)({name:"LegacyDialogPrompt",components:{NcDialog:o.A,NcTextField:s.A,NcPasswordField:i.A},props:{name:{type:String,required:!0},text:{type:String,required:!0},isPassword:{type:Boolean,required:!0},inputName:{type:String,default:"prompt-input"}},emits:["close"],data:()=>({inputValue:""}),computed:{buttons(){return[{label:(0,a.Tl)("core","No"),callback:()=>this.$emit("close",!1,this.inputValue)},{label:(0,a.Tl)("core","Yes"),type:"primary",callback:()=>this.$emit("close",!0,this.inputValue)}]}},mounted(){this.$nextTick((()=>{var t,e;return null===(t=this.$refs.input)||void 0===t||null===(e=t.focus)||void 0===e?void 0:e.call(t)}))}});var u=n(85072),c=n.n(u),r=n(97825),d=n.n(r),m=n(77659),A=n.n(m),g=n(55056),_=n.n(g),f=n(10540),y=n.n(f),b=n(41113),C=n.n(b),v=n(20440),x={};x.styleTagTransform=C(),x.setAttributes=_(),x.insert=A().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=y(),c()(v.A,x),v.A&&v.A.locals&&v.A.locals;const h=(0,n(14486).A)(p,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("NcDialog",{attrs:{"dialog-classes":"legacy-prompt__dialog",buttons:t.buttons,name:t.name},on:{"update:open":function(e){return t.$emit("close",!1,t.inputValue)}}},[e("p",{staticClass:"legacy-prompt__text",domProps:{textContent:t._s(t.text)}}),t._v(" "),t.isPassword?e("NcPasswordField",{ref:"input",staticClass:"legacy-prompt__input",attrs:{autocomplete:"new-password",label:t.name,name:t.inputName,value:t.inputValue},on:{"update:value":function(e){t.inputValue=e}}}):e("NcTextField",{ref:"input",staticClass:"legacy-prompt__input",attrs:{label:t.name,name:t.inputName,value:t.inputValue},on:{"update:value":function(e){t.inputValue=e}}})],1)}),[],!1,null,"6dd2f36f",null).exports}}]); | |||
//# sourceMappingURL=1689-1689.js.map?v=0232a38fce31b40e36da |
@@ -1,2 +0,0 @@ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[2913],{57786:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(71354),r=n.n(o),s=n(76314),a=n.n(s)()(r());a.push([t.id,"\n.comments-action[data-v-fffab6ae] {\n\tpadding: 0;\n}\n","",{version:3,sources:["webpack://./apps/comments/src/views/ActivityCommentAction.vue"],names:[],mappings:";AAmEA;CACA,UAAA;AACA",sourcesContent:['\x3c!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n\n<template>\n\t<Comment v-bind="editorData"\n\t\t:auto-complete="autoComplete"\n\t\t:resource-type="resourceType"\n\t\t:editor="true"\n\t\t:user-data="userData"\n\t\t:resource-id="resourceId"\n\t\tclass="comments-action"\n\t\t@new="onNewComment" />\n</template>\n\n<script lang="ts">\nimport { defineComponent } from \'vue\'\nimport Comment from \'../components/Comment.vue\'\nimport CommentView from \'../mixins/CommentView.js\'\nimport logger from \'../logger\'\nimport { showError } from \'@nextcloud/dialogs\'\nimport { translate as t } from \'@nextcloud/l10n\'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tComment,\n\t},\n\tmixins: [CommentView],\n\tprops: {\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tmethods: {\n\t\tonNewComment() {\n\t\t\ttry {\n\t\t\t\t// just force reload\n\t\t\t\tthis.reloadCallback()\n\t\t\t} catch (e) {\n\t\t\t\tshowError(t(\'comments\', \'Could not reload comments\'))\n\t\t\t\tlogger.debug(e)\n\t\t\t}\n\t\t},\n\t},\n})\n<\/script>\n\n<style scoped>\n.comments-action {\n\tpadding: 0;\n}\n</style>\n'],sourceRoot:""}]);const i=a},72913:(t,e,n)=>{n.d(e,{default:()=>x});var o=n(85471),r=n(65463),s=n(70452),a=n(96689),i=n(85168),m=n(53334);const c=(0,o.pM)({components:{Comment:r.A},mixins:[s.A],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(t){(0,i.Qg)((0,m.Tl)("comments","Could not reload comments")),a.A.debug(t)}}}});var l=n(85072),u=n.n(l),d=n(97825),p=n.n(d),f=n(77659),h=n.n(f),A=n(55056),C=n.n(A),b=n(10540),w=n.n(b),g=n(41113),y=n.n(g),v=n(57786),T={};T.styleTagTransform=y(),T.setAttributes=C(),T.insert=h().bind(null,"head"),T.domAPI=p(),T.insertStyleElement=w(),u()(v.A,T),v.A&&v.A.locals&&v.A.locals;const x=(0,n(14486).A)(c,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("Comment",t._b({staticClass:"comments-action",attrs:{"auto-complete":t.autoComplete,"resource-type":t.resourceType,editor:!0,"user-data":t.userData,"resource-id":t.resourceId},on:{new:t.onNewComment}},"Comment",t.editorData,!1))}),[],!1,null,"fffab6ae",null).exports}}]); | |||
//# sourceMappingURL=2913-2913.js.map?v=1ccb2adaaea884424d3c |
@@ -1,197 +0,0 @@ | |||
/** | |||
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* | |||
* @author Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* | |||
* @author Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2021 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2022 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @author Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @author Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* @author Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2024 Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @author Ferdinand Thiessen <opensource@fthiessen.de> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ |
@@ -1 +0,0 @@ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[5528],{95528:(e,u,t)=>{t.r(u),t.d(u,{NcAutoCompleteResult:()=>c.N,NcMentionBubble:()=>l.N,default:()=>c.a});var l=t(11285),c=t(22911)}}]); |
@@ -1,2 +0,0 @@ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[5632],{67695:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(71354),s=n.n(o),m=n(76314),r=n.n(m)()(s());r.push([t.id,"\n.comments-activity[data-v-188dae4a] {\n\tpadding: 0;\n}\n","",{version:3,sources:["webpack://./apps/comments/src/views/ActivityCommentEntry.vue"],names:[],mappings:";AAmFA;CACA,UAAA;AACA",sourcesContent:['\x3c!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n\n<template>\n\t<Comment ref="comment"\n\t\ttag="li"\n\t\tv-bind="comment.props"\n\t\t:auto-complete="autoComplete"\n\t\t:resource-type="resourceType"\n\t\t:message="commentMessage"\n\t\t:resource-id="resourceId"\n\t\t:user-data="genMentionsData(comment.props.mentions)"\n\t\tclass="comments-activity"\n\t\t@delete="reloadCallback()" />\n</template>\n\n<script lang="ts">\nimport { translate as t } from \'@nextcloud/l10n\'\n\nimport Comment from \'../components/Comment.vue\'\nimport CommentView from \'../mixins/CommentView\'\n\nexport default {\n\tname: \'ActivityCommentEntry\',\n\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\tcomment: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcommentMessage: \'\',\n\t\t}\n\t},\n\n\twatch: {\n\t\tcomment() {\n\t\t\tthis.commentMessage = this.comment.props.message\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.commentMessage = this.comment.props.message\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n}\n<\/script>\n\n<style scoped>\n.comments-activity {\n\tpadding: 0;\n}\n</style>\n'],sourceRoot:""}]);const a=r},25632:(t,e,n)=>{n.d(e,{default:()=>v});var o=n(53334),s=n(65463),m=n(70452);const r={name:"ActivityCommentEntry",components:{Comment:s.A},mixins:[m.A],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data:()=>({commentMessage:""}),watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:o.Tl}};var a=n(85072),i=n.n(a),c=n(97825),l=n.n(c),p=n(77659),u=n.n(p),d=n(55056),h=n.n(d),A=n(10540),f=n.n(A),g=n(41113),y=n.n(g),C=n(67695),b={};b.styleTagTransform=y(),b.setAttributes=h(),b.insert=u().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),i()(C.A,b),C.A&&C.A.locals&&C.A.locals;const v=(0,n(14486).A)(r,(function(){var t=this;return(0,t._self._c)("Comment",t._b({ref:"comment",staticClass:"comments-activity",attrs:{tag:"li","auto-complete":t.autoComplete,"resource-type":t.resourceType,message:t.commentMessage,"resource-id":t.resourceId,"user-data":t.genMentionsData(t.comment.props.mentions)},on:{delete:function(e){return t.reloadCallback()}}},"Comment",t.comment.props,!1))}),[],!1,null,"188dae4a",null).exports}}]); | |||
//# sourceMappingURL=5632-5632.js.map?v=f16542372833977f05d1 |
@@ -1,208 +0,0 @@ | |||
/* | |||
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net> | |||
* | |||
* @author Julius Härtl <jus@bitgrid.net> | |||
* | |||
* @license GNU AGPL version 3 or any later version | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/*! | |||
* vue-qrcode v1.0.2 | |||
* https://fengyuanchen.github.io/vue-qrcode | |||
* | |||
* Copyright 2018-present Chen Fengyuan | |||
* Released under the MIT license | |||
* | |||
* Date: 2020-01-18T06:04:33.222Z | |||
*/ | |||
/** | |||
* @copyright 2022 Louis Chmn <louis@chmn.me> | |||
* | |||
* @author Louis Chmn <louis@chmn.me> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author Arthur Schiwon <blizzz@arthur-schiwon.de> | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* @author Julius Härtl <jus@bitgrid.net> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* @author Daniel Calviño Sánchez <danxuliu@gmail.com> | |||
* @author Gary Kim <gary@garykim.dev> | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* @author Julius Härtl <jus@bitgrid.net> | |||
* @author Vincent Petry <vincent@nextcloud.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* @author Joas Schilling <coding@schilljs.com> | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* @author Julius Härtl <jus@bitgrid.net> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author Daniel Calviño Sánchez <danxuliu@gmail.com> | |||
* @author Gary Kim <gary@garykim.dev> | |||
* @author Georg Ehrke <oc.list@georgehrke.com> | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* @author Julius Härtl <jus@bitgrid.net> | |||
* @author Roeland Jago Douma <roeland@famdouma.nl> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* @author Julius Härtl <jus@bitgrid.net> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/**! | |||
* url-search-params-polyfill | |||
* | |||
* @author Jerry Bendy (https://github.com/jerrybendy) | |||
* @licence MIT | |||
*/ |
@@ -1,43 +0,0 @@ | |||
/** | |||
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright Copyright (c) 2021 Christopher Ng <chrng8@gmail.com> | |||
* | |||
* @author Christopher Ng <chrng8@gmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ |
@@ -1,64 +0,0 @@ | |||
/** | |||
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* | |||
* @author Christoph Wurst <christoph@winzerhof-wurst.at> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright 2021 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ | |||
/** | |||
* @copyright 2022 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ |
@@ -1,21 +0,0 @@ | |||
/** | |||
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @author John Molakvoæ <skjnldsv@protonmail.com> | |||
* | |||
* @license AGPL-3.0-or-later | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU Affero General Public License as | |||
* published by the Free Software Foundation, either version 3 of the | |||
* License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU Affero General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Affero General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
* | |||
*/ |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{a$ as e,bT as r}from"../core-common.mjs";import{C as m,a}from"./CommentView-DDAImFyi.mjs";import{l as s}from"./logger-Dp4fPXsK.mjs";import"./index-7XKGWWeV.mjs";import{z as n}from"./_plugin-vue2_normalizer-VrK6B12S-B9aYHv6f.mjs";import{n as i}from"./icons-Dg_LJaFK.mjs";import"./preload-helper-BG02UnR2.mjs";import"./GetComments-D7zaGhWv.mjs";import"./index-Dizl7-P2.mjs";import"./util-MKsKVvMG.mjs";import"./json2xml-BD0x8Z3S.mjs";const c=e({components:{Comment:m},mixins:[a],props:{reloadCallback:{type:Function,required:!0}},methods:{onNewComment(){try{this.reloadCallback()}catch(o){n(r("comments","Could not reload comments")),s.debug(o)}}}});var p=function(){var o=this,t=o._self._c;return o._self._setupProxy,t("Comment",o._b({staticClass:"comments-action",attrs:{"auto-complete":o.autoComplete,"resource-type":o.resourceType,editor:!0,"user-data":o.userData,"resource-id":o.resourceId},on:{new:o.onNewComment}},"Comment",o.editorData,!1))},l=[],u=i(c,p,l,!1,null,"af786a6d");const D=u.exports;export{D as default}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"ActivityCommentAction-BujjPxU7.mjs","sources":["../../apps/comments/src/views/ActivityCommentAction.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<template>\n\t<Comment v-bind=\"editorData\"\n\t\t:auto-complete=\"autoComplete\"\n\t\t:resource-type=\"resourceType\"\n\t\t:editor=\"true\"\n\t\t:user-data=\"userData\"\n\t\t:resource-id=\"resourceId\"\n\t\tclass=\"comments-action\"\n\t\t@new=\"onNewComment\" />\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport Comment from '../components/Comment.vue'\nimport CommentView from '../mixins/CommentView.js'\nimport logger from '../logger'\nimport { showError } from '@nextcloud/dialogs'\nimport { translate as t } from '@nextcloud/l10n'\n\nexport default defineComponent({\n\tcomponents: {\n\t\tComment,\n\t},\n\tmixins: [CommentView],\n\tprops: {\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tmethods: {\n\t\tonNewComment() {\n\t\t\ttry {\n\t\t\t\t// just force reload\n\t\t\t\tthis.reloadCallback()\n\t\t\t} catch (e) {\n\t\t\t\tshowError(t('comments', 'Could not reload comments'))\n\t\t\t\tlogger.debug(e)\n\t\t\t}\n\t\t},\n\t},\n})\n</script>\n\n<style scoped>\n.comments-action {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","defineComponent","Comment","CommentView","e","showError","t","logger"],"mappings":";ubAyCA,MAAAA,EAAAC,EAAA,CACA,WAAA,CACA,QAAAC,CACA,EACA,OAAA,CAAAC,CAAA,EACA,MAAA,CACA,eAAA,CACA,KAAA,SACA,SAAA,EACA,CACA,EACA,QAAA,CACA,cAAA,CACA,GAAA,CAEA,KAAA,eAAA,QACAC,EAAA,CACAC,EAAAC,EAAA,WAAA,2BAAA,CAAA,EACAC,EAAA,MAAAH,CAAA,CACA,CACA,CACA,CACA,CAAA"} |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{bT as o}from"../core-common.mjs";import{C as m,a as s}from"./CommentView-DDAImFyi.mjs";import{n as r}from"./icons-Dg_LJaFK.mjs";import"./preload-helper-BG02UnR2.mjs";import"./index-7XKGWWeV.mjs";import"./_plugin-vue2_normalizer-VrK6B12S-B9aYHv6f.mjs";import"./GetComments-D7zaGhWv.mjs";import"./index-Dizl7-P2.mjs";import"./util-MKsKVvMG.mjs";import"./json2xml-BD0x8Z3S.mjs";import"./logger-Dp4fPXsK.mjs";const n={name:"ActivityCommentEntry",components:{Comment:m},mixins:[s],props:{comment:{type:Object,required:!0},reloadCallback:{type:Function,required:!0}},data(){return{commentMessage:""}},watch:{comment(){this.commentMessage=this.comment.props.message}},mounted(){this.commentMessage=this.comment.props.message},methods:{t:o}};var a=function(){var t=this,e=t._self._c;return e("Comment",t._b({ref:"comment",staticClass:"comments-activity",attrs:{tag:"li","auto-complete":t.autoComplete,"resource-type":t.resourceType,message:t.commentMessage,"resource-id":t.resourceId,"user-data":t.genMentionsData(t.comment.props.mentions)},on:{delete:function(p){return t.reloadCallback()}}},"Comment",t.comment.props,!1))},c=[],i=r(n,a,c,!1,null,"75f01f67");const x=i.exports;export{x as default}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"ActivityCommentEntry-D5l2f4Tb.mjs","sources":["../../apps/comments/src/views/ActivityCommentEntry.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<template>\n\t<Comment ref=\"comment\"\n\t\ttag=\"li\"\n\t\tv-bind=\"comment.props\"\n\t\t:auto-complete=\"autoComplete\"\n\t\t:resource-type=\"resourceType\"\n\t\t:message=\"commentMessage\"\n\t\t:resource-id=\"resourceId\"\n\t\t:user-data=\"genMentionsData(comment.props.mentions)\"\n\t\tclass=\"comments-activity\"\n\t\t@delete=\"reloadCallback()\" />\n</template>\n\n<script lang=\"ts\">\nimport { translate as t } from '@nextcloud/l10n'\n\nimport Comment from '../components/Comment.vue'\nimport CommentView from '../mixins/CommentView'\n\nexport default {\n\tname: 'ActivityCommentEntry',\n\n\tcomponents: {\n\t\tComment,\n\t},\n\n\tmixins: [CommentView],\n\tprops: {\n\t\tcomment: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t\treloadCallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcommentMessage: '',\n\t\t}\n\t},\n\n\twatch: {\n\t\tcomment() {\n\t\t\tthis.commentMessage = this.comment.props.message\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.commentMessage = this.comment.props.message\n\t},\n\n\tmethods: {\n\t\tt,\n\t},\n}\n</script>\n\n<style scoped>\n.comments-activity {\n\tpadding: 0;\n}\n</style>\n"],"names":["_sfc_main","Comment","CommentView","t"],"mappings":";4ZAyCA,MAAAA,EAAA,CACA,KAAA,uBAEA,WAAA,CACA,QAAAC,CACA,EAEA,OAAA,CAAAC,CAAA,EACA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,EACA,eAAA,CACA,KAAA,SACA,SAAA,EACA,CACA,EAEA,MAAA,CACA,MAAA,CACA,eAAA,EAAA,CAEA,EAEA,MAAA,CACA,SAAA,CACA,KAAA,eAAA,KAAA,QAAA,MAAA,OACA,CACA,EAEA,SAAA,CACA,KAAA,eAAA,KAAA,QAAA,MAAA,OACA,EAEA,QAAA,CAAA,EACAC,CACA,CACA"} |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{a$ as m,bT as p,bv as r,bM as g,T as f,b$ as c,bS as b}from"../core-common.mjs";import{M as h}from"./Markdown-kHeGrDZG.mjs";import{n as _}from"./icons-Dg_LJaFK.mjs";import"./marked.esm-tfH3s0ej.mjs";const k=m({__name:"AppChangelogDialog",props:{appId:null,version:{default:void 0},open:{type:Boolean,default:!0}},emits:["dismiss","update:open"],setup(t,{emit:n}){var e;const a=t,u=[{label:p("updatenotification","Give feedback"),callback:()=>{window.open("https://apps.nextcloud.com/apps/".concat(a.appId,"#comments"),"_blank","noreferrer noopener")}},{label:p("updatenotification","Get started"),type:"primary",callback:()=>{n("dismiss"),n("update:open",!1)}}],s=r(a.appId),l=r((e=a.version)!=null?e:""),i=r("");return g(()=>{const v=a.version?c("/apps/updatenotification/api/v1/changelog/{app}?version={version}",{version:a.version,app:a.appId}):c("/apps/updatenotification/api/v1/changelog/{app}",{version:a.version,app:a.appId});b.get(v).then(({data:o})=>{s.value=o.ocs.data.appName,l.value=o.ocs.data.version,i.value=o.ocs.data.content}).catch(o=>{var d;((d=o==null?void 0:o.response)==null?void 0:d.status)===404?(s.value=a.appId,i.value=p("updatenotification","No changelog available")):(console.error("Failed to load changelog entry",o),n("update:open",!1))})}),{__sfc:!0,props:a,emit:n,dialogButtons:u,appName:s,appVersion:l,markdown:i,t:p,NcDialog:f,Markdown:h}}});var w=function(){var t=this,n=t._self._c,e=t._self._setupProxy;return n(e.NcDialog,{attrs:{"content-classes":"app-changelog-dialog",buttons:e.dialogButtons,name:e.t("updatenotification","What's new in {app} {version}",{app:e.appName,version:e.appVersion}),open:t.open&&e.markdown!==void 0,size:"normal"},on:{"update:open":function(a){return t.$emit("update:open",a)}}},[n(e.Markdown,{staticClass:"app-changelog-dialog__text",attrs:{markdown:e.markdown,"min-heading-level":3}})],1)},x=[],I=_(k,w,x,!1,null,"059bf4ab");const C=I.exports;export{C as default}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"AppChangelogDialog-D5342J--.mjs","sources":["../../apps/updatenotification/src/components/AppChangelogDialog.vue"],"sourcesContent":["<template>\n\t<NcDialog content-classes=\"app-changelog-dialog\"\n\t\t:buttons=\"dialogButtons\"\n\t\t:name=\"t('updatenotification', 'What\\'s new in {app} {version}', { app: appName, version: appVersion })\"\n\t\t:open=\"open && markdown !== undefined\"\n\t\tsize=\"normal\"\n\t\t@update:open=\"$emit('update:open', $event)\">\n\t\t<Markdown class=\"app-changelog-dialog__text\" :markdown=\"markdown\" :min-heading-level=\"3\" />\n\t</NcDialog>\n</template>\n\n<script setup lang=\"ts\">\nimport { translate as t } from '@nextcloud/l10n'\nimport { generateOcsUrl } from '@nextcloud/router'\nimport { ref, watchEffect } from 'vue'\n\nimport axios from '@nextcloud/axios'\nimport NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'\nimport Markdown from './Markdown.vue'\n\nconst props = withDefaults(\n\tdefineProps<{\n\t\tappId: string\n\t\tversion?: string\n\t\topen?: boolean\n\t}>(),\n\n\t// Default values\n\t{\n\t\topen: true,\n\t\tversion: undefined,\n\t},\n)\n\nconst emit = defineEmits<{\n\t/**\n\t * Event that is called when the \"Get started\"-button is pressed\n\t */\n\t(e: 'dismiss'): void\n\n\t(e: 'update:open', v: boolean): void\n}>()\n\nconst dialogButtons = [\n\t{\n\t\tlabel: t('updatenotification', 'Give feedback'),\n\t\tcallback: () => {\n\t\t\twindow.open(`https://apps.nextcloud.com/apps/${props.appId}#comments`, '_blank', 'noreferrer noopener')\n\t\t},\n\t},\n\t{\n\t\tlabel: t('updatenotification', 'Get started'),\n\t\ttype: 'primary',\n\t\tcallback: () => {\n\t\t\temit('dismiss')\n\t\t\temit('update:open', false)\n\t\t},\n\t},\n]\n\nconst appName = ref(props.appId)\nconst appVersion = ref(props.version ?? '')\nconst markdown = ref<string>('')\nwatchEffect(() => {\n\tconst url = props.version\n\t\t? generateOcsUrl('/apps/updatenotification/api/v1/changelog/{app}?version={version}', { version: props.version, app: props.appId })\n\t\t: generateOcsUrl('/apps/updatenotification/api/v1/changelog/{app}', { version: props.version, app: props.appId })\n\n\taxios.get(url)\n\t\t.then(({ data }) => {\n\t\t\tappName.value = data.ocs.data.appName\n\t\t\tappVersion.value = data.ocs.data.version\n\t\t\tmarkdown.value = data.ocs.data.content\n\t\t})\n\t\t.catch((error) => {\n\t\t\tif (error?.response?.status === 404) {\n\t\t\t\tappName.value = props.appId\n\t\t\t\tmarkdown.value = t('updatenotification', 'No changelog available')\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to load changelog entry', error)\n\t\t\t\temit('update:open', false)\n\t\t\t}\n\t\t})\n\n})\n</script>\n\n<style scoped lang=\"scss\">\n:deep(.app-changelog-dialog) {\n\tmin-height: 50vh !important;\n}\n\n.app-changelog-dialog__text {\n\tpadding-inline: 14px;\n}\n</style>\n"],"names":["dialogButtons","t","props","emit","appName","ref","appVersion","_a","markdown","watchEffect","url","generateOcsUrl","axios","data","error"],"mappings":";kYA2CMA,EAAgB,CACrB,CACC,MAAOC,EAAE,qBAAsB,eAAe,EAC9C,SAAU,IAAM,CACf,OAAO,KAAK,mCAAmC,OAAAC,EAAM,MAAK,WAAA,EAAa,SAAU,qBAAqB,CACvG,CACD,EACA,CACC,MAAOD,EAAE,qBAAsB,aAAa,EAC5C,KAAM,UACN,SAAU,IAAM,CACfE,EAAK,SAAS,EACdA,EAAK,cAAe,EAAK,CAC1B,CACD,CAAA,EAGKC,EAAUC,EAAIH,EAAM,KAAK,EACzBI,EAAaD,GAAIE,EAAML,EAAA,UAAN,OAAiB,EAAE,EACpCM,EAAWH,EAAY,EAAE,EAC/B,OAAAI,EAAY,IAAM,CACX,MAAAC,EAAMR,EAAM,QACfS,EAAe,oEAAqE,CAAE,QAAST,EAAM,QAAS,IAAKA,EAAM,KAAO,CAAA,EAChIS,EAAe,kDAAmD,CAAE,QAAST,EAAM,QAAS,IAAKA,EAAM,KAAA,CAAO,EAEjHU,EAAM,IAAIF,CAAG,EACX,KAAK,CAAC,CAAE,KAAAG,KAAW,CACXT,EAAA,MAAQS,EAAK,IAAI,KAAK,QACnBP,EAAA,MAAQO,EAAK,IAAI,KAAK,QACxBL,EAAA,MAAQK,EAAK,IAAI,KAAK,OAAA,CAC/B,EACA,MAAOC,GAAU,SACbP,EAAOO,iBAAA,WAAP,KAAAP,OAAAA,EAAiB,UAAW,KAC/BH,EAAQ,MAAQF,EAAM,MACbM,EAAA,MAAQP,EAAE,qBAAsB,wBAAwB,IAEzD,QAAA,MAAM,iCAAkCa,CAAK,EACrDX,EAAK,cAAe,EAAK,EAC1B,CACA,CAAA,CAEF"} |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{a$ as n,a1 as l,bT as o,aY as i}from"../core-common.mjs";import{b as m,ad as f,ae as b,n as u,h as S,e as y}from"./icons-Dg_LJaFK.mjs";import"./index-7XKGWWeV.mjs";import{z as p}from"./_plugin-vue2_normalizer-VrK6B12S-B9aYHv6f.mjs";import{r}from"./rebuild-navigation-CYHkuJ-k.mjs";const v=n({name:"AppScore",components:{NcIconSvgWrapper:l},props:{score:{type:Number,required:!0}},setup(){return{mdiStar:m,mdiStarHalfFull:f,mdiStarOutline:b}},computed:{title(){const e=(this.score*5).toFixed(1);return o("settings","Community rating: {score}/5",{score:e})},fullStars(){return Math.floor(this.score*5+.25)},emptyStars(){return Math.min(Math.floor((1-this.score)*5+.25),5-this.fullStars)},hasHalfStar(){return this.fullStars+this.emptyStars<5}}});var _=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("span",{staticClass:"app-score__wrapper",attrs:{role:"img","aria-label":e.title,title:e.title}},[e._l(e.fullStars,function(a){return s("NcIconSvgWrapper",{key:"full-star-".concat(a),attrs:{path:e.mdiStar,inline:""}})}),e.hasHalfStar?s("NcIconSvgWrapper",{attrs:{path:e.mdiStarHalfFull,inline:""}}):e._e(),e._l(e.emptyStars,function(a){return s("NcIconSvgWrapper",{key:"empty-star-".concat(a),attrs:{path:e.mdiStarOutline,inline:""}})})],2)},A=[],I=u(v,_,A,!1,null,"e25f99d6");const G=I.exports,T=n({__name:"AppLevelBadge",props:{level:null},setup(e){const s=e,a=i(()=>s.level===300),d=i(()=>s.level===200),c=i(()=>a.value?S:y),h=i(()=>a.value?o("settings","Supported"):o("settings","Featured")),g=i(()=>a.value?o("settings","This app is supported via your current Nextcloud subscription."):o("settings","Featured apps are developed by and within the community. They offer central functionality and are ready for production use."));return{__sfc:!0,props:s,isSupported:a,isFeatured:d,badgeIcon:c,badgeText:h,badgeTitle:g,NcIconSvgWrapper:l}}});var w=function(){var e=this,s=e._self._c,a=e._self._setupProxy;return a.isSupported||a.isFeatured?s("span",{staticClass:"app-level-badge",class:{"app-level-badge--supported":a.isSupported},attrs:{title:a.badgeTitle}},[s(a.NcIconSvgWrapper,{attrs:{path:a.badgeIcon,size:20,inline:""}}),e._v(" "+e._s(a.badgeText)+" ")],1):e._e()},x=[],$=u(T,w,x,!1,null,"e426cdd5");const L=$.exports,W={computed:{appGroups(){return this.app.groups.map(e=>({id:e,name:e}))},installing(){return this.$store.getters.loading("install")},isLoading(){return this.app&&this.$store.getters.loading(this.app.id)},enableButtonText(){return this.app.needsDownload?t("settings","Download and enable"):t("settings","Enable")},forceEnableButtonText(){return this.app.needsDownload,t("settings","Allow untested app")},enableButtonTooltip(){return this.app.needsDownload?t("settings","The app will be downloaded from the App Store"):null},forceEnableButtonTooltip(){const e=t("settings","This app is not marked as compatible with your Nextcloud version. If you continue you will still be able to install the app. Note that the app might not work as expected.");return this.app.needsDownload?e+" "+t("settings","The app will be downloaded from the App Store"):e}},data(){return{groupCheckedAppsData:!1}},mounted(){this.app&&this.app.groups&&this.app.groups.length>0&&(this.groupCheckedAppsData=!0)},methods:{asyncFindGroup(e){return this.$store.dispatch("getGroups",{search:e,limit:5,offset:0})},isLimitedToGroups(e){return!!(this.app.groups.length||this.groupCheckedAppsData)},setGroupLimit(){this.groupCheckedAppsData||this.$store.dispatch("enableApp",{appId:this.app.id,groups:[]})},canLimitToGroups(e){return!(e.types&&e.types.includes("filesystem")||e.types.includes("prelogin")||e.types.includes("authentication")||e.types.includes("logging")||e.types.includes("prevent_group_restriction"))},addGroupLimitation(e){const s=e.pop(),a=this.app.groups.concat([]).concat([s.id]);this.$store.dispatch("enableApp",{appId:this.app.id,groups:a})},removeGroupLimitation(e){const s=this.app.groups.concat([]),a=s.indexOf(e.id);a>-1&&s.splice(a,1),this.$store.dispatch("enableApp",{appId:this.app.id,groups:s})},forceEnable(e){this.$store.dispatch("forceEnableApp",{appId:e,groups:[]}).then(s=>{r()}).catch(s=>{p(s)})},enable(e){this.$store.dispatch("enableApp",{appId:e,groups:[]}).then(s=>{r()}).catch(s=>{p(s)})},disable(e){this.$store.dispatch("disableApp",{appId:e}).then(s=>{r()}).catch(s=>{p(s)})},remove(e){this.$store.dispatch("uninstallApp",{appId:e}).then(s=>{r()}).catch(s=>{p(s)})},install(e){this.$store.dispatch("enableApp",{appId:e}).then(s=>{r()}).catch(s=>{p(s)})},update(e){this.$store.dispatch("updateApp",{appId:e}).then(s=>{r()}).catch(s=>{p(s)})}}};export{L as A,G as a,W as b}; |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{a$ as g,c0 as r,aY as n,bf as u,bT as N,S as l,g as S,z as _,K as m,a1 as y,a4 as A}from"../core-common.mjs";import{A as I}from"./AppsConstants-CNQ6opBQ.mjs";import{u as f,A as v}from"./apps-store-CqZcVQv4.mjs";import{n as E}from"./icons-Dg_LJaFK.mjs";import"./index-7XKGWWeV.mjs";import"./_plugin-vue2_normalizer-VrK6B12S-B9aYHv6f.mjs";import"./pinia-DMoXqkoa.mjs";import"./logger-BPaGOp_B.mjs";const P=g({__name:"AppStoreNavigation",setup(e){const t=r("settings","appstoreUpdateCount",0),a=r("settings","appstoreEnabled",!0),o=r("settings","appstoreDeveloperDocs",""),p=f(),s=n(()=>p.categories),c=n(()=>p.loading.categories),i=n(()=>p.apps.find(({level:d})=>d===300)!==void 0);return u(()=>{p.loadCategories(),p.loadApps()}),{__sfc:!0,updateCount:t,appstoreEnabled:a,developerDocsUrl:o,store:p,categories:s,categoriesLoading:c,isSubscribed:i,t:N,APPS_SECTION_ENUM:I,NcAppNavigation:l,NcAppNavigationItem:S,NcAppNavigationSpacer:_,NcCounterBubble:m,NcIconSvgWrapper:y,NcLoadingIcon:A,APPSTORE_CATEGORY_ICONS:v}}});var O=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t(a.NcAppNavigation,{attrs:{"aria-label":a.t("settings","Apps")},scopedSlots:e._u([{key:"list",fn:function(){return[t(a.NcAppNavigationItem,{attrs:{id:"app-category-discover",to:{name:"apps-category",params:{category:"discover"}},name:a.APPS_SECTION_ENUM.discover},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.discover}})]},proxy:!0}])}),t(a.NcAppNavigationItem,{attrs:{id:"app-category-installed",to:{name:"apps-category",params:{category:"installed"}},name:a.APPS_SECTION_ENUM.installed},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.installed}})]},proxy:!0}])}),t(a.NcAppNavigationItem,{attrs:{id:"app-category-enabled",to:{name:"apps-category",params:{category:"enabled"}},name:a.APPS_SECTION_ENUM.enabled},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.enabled}})]},proxy:!0}])}),t(a.NcAppNavigationItem,{attrs:{id:"app-category-disabled",to:{name:"apps-category",params:{category:"disabled"}},name:a.APPS_SECTION_ENUM.disabled},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.disabled}})]},proxy:!0}])}),a.updateCount>0?t(a.NcAppNavigationItem,{attrs:{id:"app-category-updates",to:{name:"apps-category",params:{category:"updates"}},name:a.APPS_SECTION_ENUM.updates},scopedSlots:e._u([{key:"counter",fn:function(){return[t(a.NcCounterBubble,[e._v(e._s(a.updateCount))])]},proxy:!0},{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.updates}})]},proxy:!0}],null,!1,2824895104)}):e._e(),t(a.NcAppNavigationItem,{attrs:{id:"app-category-your-bundles",to:{name:"apps-category",params:{category:"app-bundles"}},name:a.APPS_SECTION_ENUM["app-bundles"]},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.bundles}})]},proxy:!0}])}),t(a.NcAppNavigationSpacer),a.appstoreEnabled&&a.categoriesLoading?t("li",{staticClass:"categories--loading"},[t(a.NcLoadingIcon,{attrs:{size:20,"aria-label":a.t("settings","Loading categories")}})],1):a.appstoreEnabled&&!a.categoriesLoading?[a.isSubscribed?t(a.NcAppNavigationItem,{attrs:{id:"app-category-supported",to:{name:"apps-category",params:{category:"supported"}},name:a.APPS_SECTION_ENUM.supported},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.supported}})]},proxy:!0}],null,!1,613663011)}):e._e(),t(a.NcAppNavigationItem,{attrs:{id:"app-category-featured",to:{name:"apps-category",params:{category:"featured"}},name:a.APPS_SECTION_ENUM.featured},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:a.APPSTORE_CATEGORY_ICONS.featured}})]},proxy:!0}])}),e._l(a.categories,function(o){return t(a.NcAppNavigationItem,{key:o.id,attrs:{id:"app-category-".concat(o.id),name:o.displayName,to:{name:"apps-category",params:{category:o.id}}},scopedSlots:e._u([{key:"icon",fn:function(){return[t(a.NcIconSvgWrapper,{attrs:{path:o.icon}})]},proxy:!0}],null,!0)})})]:e._e(),t(a.NcAppNavigationItem,{attrs:{id:"app-developer-docs",name:a.t("settings","Developer documentation ↗"),href:a.developerDocsUrl}})]},proxy:!0}])})},C=[],b=E(P,O,C,!1,null,"d13c57f8");const G=b.exports;export{G as default}; |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{bT as s}from"../core-common.mjs";const t=Object.freeze({discover:s("settings","Discover"),installed:s("settings","Your apps"),enabled:s("settings","Active apps"),disabled:s("settings","Disabled apps"),updates:s("settings","Updates"),"app-bundles":s("settings","App bundles"),featured:s("settings","Featured apps"),supported:s("settings","Supported apps")});export{t as A}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"AppsConstants-CNQ6opBQ.mjs","sources":["../../apps/settings/src/constants/AppsConstants.js"],"sourcesContent":["/**\n * @copyright 2022, Julia Kirschenheuter <julia.kirschenheuter@nextcloud.com>\n *\n * @author Julia Kirschenheuter <julia.kirschenheuter@nextcloud.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { translate as t } from '@nextcloud/l10n'\n\n/** Enum of verification constants, according to Apps */\nexport const APPS_SECTION_ENUM = Object.freeze({\n\tdiscover: t('settings', 'Discover'),\n\tinstalled: t('settings', 'Your apps'),\n\tenabled: t('settings', 'Active apps'),\n\tdisabled: t('settings', 'Disabled apps'),\n\tupdates: t('settings', 'Updates'),\n\t'app-bundles': t('settings', 'App bundles'),\n\tfeatured: t('settings', 'Featured apps'),\n\tsupported: t('settings', 'Supported apps'), // From subscription\n})\n"],"names":["APPS_SECTION_ENUM","t"],"mappings":";wCAyBY,MAACA,EAAoB,OAAO,OAAO,CAC9C,SAAUC,EAAE,WAAY,UAAU,EAClC,UAAWA,EAAE,WAAY,WAAW,EACpC,QAASA,EAAE,WAAY,aAAa,EACpC,SAAUA,EAAE,WAAY,eAAe,EACvC,QAASA,EAAE,WAAY,SAAS,EAChC,cAAeA,EAAE,WAAY,aAAa,EAC1C,SAAUA,EAAE,WAAY,eAAe,EACvC,UAAWA,EAAE,WAAY,gBAAgB,CAC1C,CAAC"} |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{Y as v,Z as b,_ as h,$ as _,n as m}from"./icons-Dg_LJaFK.mjs";import{a$ as g,F as y,a1 as x,aY as r,bv as o,bL as I,bd as f,bT as C}from"../core-common.mjs";import{P as N,c as $,u as k}from"./PostType-BsSwLs-S.mjs";import"./vue-router.esm-CkRP8kF4.mjs";const S=g({name:"CarouselType",components:{NcButton:y,NcIconSvgWrapper:x,PostType:N},props:{...$,content:{type:Array,required:!0}},setup(t){const e=k(r(()=>t.headline)),a=o(Math.min(1,t.content.length-1)),n=o(t.content[a.value]),l=r(()=>a.value<t.content.length-1),d=r(()=>a.value>0),c=r(()=>{var s;return(s=t.id)!=null?s:(Math.random()+1).toString(36).substring(7)}),u=r(()=>"".concat(c.value,"-h")),i=o("slide-in");return I(()=>a.value,(s,p)=>{s<p?i.value="slide-in":i.value="slide-out",f(()=>{n.value=t.content[a.value]})}),{t:C,internalId:c,headingId:u,hasNext:l,hasPrevious:d,currentIndex:a,shownElement:n,transitionName:i,translatedHeadline:e,mdiChevronLeft:v,mdiChevronRight:b,mdiCircleOutline:h,mdiCircleSlice8:_}}});var P=function(){var a;var t=this,e=t._self._c;return t._self._setupProxy,e("section",{attrs:{"aria-roledescription":t.t("settings","Carousel"),"aria-labelledby":t.headingId?"".concat(t.headingId):void 0}},[t.headline?e("h3",{attrs:{id:t.headingId}},[t._v(" "+t._s(t.translatedHeadline)+" ")]):t._e(),e("div",{staticClass:"app-discover-carousel__wrapper"},[e("div",{staticClass:"app-discover-carousel__button-wrapper"},[e("NcButton",{staticClass:"app-discover-carousel__button app-discover-carousel__button--previous",attrs:{type:"tertiary-no-background","aria-label":t.t("settings","Previous slide"),disabled:!t.hasPrevious},on:{click:function(n){t.currentIndex-=1}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiChevronLeft}})]},proxy:!0}])})],1),e("Transition",{attrs:{name:t.transitionName,mode:"out-in"}},[e("PostType",t._b({key:(a=t.shownElement.id)!=null?a:t.currentIndex,attrs:{"aria-labelledby":"".concat(t.internalId,"-tab-").concat(t.currentIndex),"dom-id":"".concat(t.internalId,"-tabpanel-").concat(t.currentIndex),inline:"",role:"tabpanel"}},"PostType",t.shownElement,!1))],1),e("div",{staticClass:"app-discover-carousel__button-wrapper"},[e("NcButton",{staticClass:"app-discover-carousel__button app-discover-carousel__button--next",attrs:{type:"tertiary-no-background","aria-label":t.t("settings","Next slide"),disabled:!t.hasNext},on:{click:function(n){t.currentIndex+=1}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.mdiChevronRight}})]},proxy:!0}])})],1)],1),e("div",{staticClass:"app-discover-carousel__tabs",attrs:{role:"tablist","aria-label":t.t("settings","Choose slide to display")}},t._l(t.content.length,function(n){return e("NcButton",{key:n,attrs:{id:"".concat(t.internalId,"-tab-").concat(n),"aria-label":t.t("settings","{index} of {total}",{index:n,total:t.content.length}),"aria-controls":"".concat(t.internalId,"-tabpanel-").concat(n),"aria-selected":"".concat(t.currentIndex===n-1),role:"tab",type:"tertiary-no-background"},on:{click:function(l){t.currentIndex=n-1}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.currentIndex===n-1?t.mdiCircleSlice8:t.mdiCircleOutline}})]},proxy:!0}],null,!0)})}),1)])},w=[],T=m(S,P,w,!1,null,"87b3613b");const H=T.exports;export{H as default}; |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{u as w,C as v,y as b,_ as g,v as y}from"./index-BdIeO5n5.mjs";import{bY as m,c2 as f,c8 as q,c9 as C}from"../core-common.mjs";import{c as R,u as x}from"./index-Dizl7-P2.mjs";import{l as D}from"./logger-abzvQ-j7.mjs";var l;const c="/files/".concat((l=m())==null?void 0:l.uid),H=f("dav"+c),k=(r=H)=>{const t=R(r),n=e=>{t==null||t.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:e!=null?e:""})};return q(n),n(C()),x().patch("fetch",(e,a)=>{const o=a.headers;return o!=null&&o.method&&(a.method=o.method,delete o.method),fetch(e,a)}),t},z=function(r){return r.split("").reduce(function(t,n){return t=(t<<5)-t+n.charCodeAt(0),t&t},0)},A=k(),u=function(r){var t;const n=(t=m())==null?void 0:t.uid;if(!n)throw new Error("No user id found");const e=r.props,a=b(e==null?void 0:e.permissions),o=(e["owner-id"]||n).toString(),s=f("dav"+c+r.filename),i={id:(e==null?void 0:e.fileid)<0?z(s):(e==null?void 0:e.fileid)||0,source:s,mtime:new Date(r.lastmod),mime:r.mime||"application/octet-stream",size:(e==null?void 0:e.size)||0,permissions:a,owner:o,root:c,attributes:{...r,...e,hasPreview:e==null?void 0:e["has-preview"],failed:(e==null?void 0:e.fileid)<0}};return delete i.attributes.props,r.type==="file"?new g(i):new y(i)},X=(r="/")=>{const t=new AbortController,n=w();return new v(async(e,a,o)=>{o(()=>t.abort());try{const s=await A.getDirectoryContents(r,{details:!0,data:n,includeSelf:!0,signal:t.signal}),i=s.data[0],p=s.data.slice(1);if(i.filename!==r)throw new Error("Root node does not match requested path");e({folder:u(i),contents:p.map(d=>{try{return u(d)}catch(h){return D.error("Invalid node detected '".concat(d.basename,"'"),{error:h}),null}}).filter(Boolean)})}catch(s){a(s)}})};export{X as a,k as g,z as h,u as r}; |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{a$ as s,T as l,al as o,a8 as i,bT as n}from"../core-common.mjs";import{n as u}from"./icons-Dg_LJaFK.mjs";const r=s({name:"LegacyDialogPrompt",components:{NcDialog:l,NcTextField:o,NcPasswordField:i},props:{name:{type:String,required:!0},text:{type:String,required:!0},isPassword:{type:Boolean,required:!0},inputName:{type:String,default:"prompt-input"}},emits:["close"],data(){return{inputValue:""}},computed:{buttons(){return[{label:n("core","No"),callback:()=>this.$emit("close",!1,this.inputValue)},{label:n("core","Yes"),type:"primary",callback:()=>this.$emit("close",!0,this.inputValue)}]}},mounted(){this.$nextTick(()=>{var t,e;return(e=(t=this.$refs.input)==null?void 0:t.focus)==null?void 0:e.call(t)})}});var p=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("NcDialog",{attrs:{"dialog-classes":"legacy-prompt__dialog",buttons:t.buttons,name:t.name},on:{"update:open":function(a){return t.$emit("close",!1,t.inputValue)}}},[e("p",{staticClass:"legacy-prompt__text",domProps:{textContent:t._s(t.text)}}),t.isPassword?e("NcPasswordField",{ref:"input",staticClass:"legacy-prompt__input",attrs:{autocomplete:"new-password",label:t.name,name:t.inputName,value:t.inputValue},on:{"update:value":function(a){t.inputValue=a}}}):e("NcTextField",{ref:"input",staticClass:"legacy-prompt__input",attrs:{label:t.name,name:t.inputName,value:t.inputValue},on:{"update:value":function(a){t.inputValue=a}}})],1)},c=[],m=u(r,p,c,!1,null,"f6675a57");const g=m.exports;export{g as default}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"LegacyDialogPrompt-B6qYGKu3.mjs","sources":["../../core/src/components/LegacyDialogPrompt.vue"],"sourcesContent":["<template>\n\t<NcDialog dialog-classes=\"legacy-prompt__dialog\"\n\t\t:buttons=\"buttons\"\n\t\t:name=\"name\"\n\t\t@update:open=\"$emit('close', false, inputValue)\">\n\t\t<p class=\"legacy-prompt__text\" v-text=\"text\" />\n\t\t<NcPasswordField v-if=\"isPassword\"\n\t\t\tref=\"input\"\n\t\t\tautocomplete=\"new-password\"\n\t\t\tclass=\"legacy-prompt__input\"\n\t\t\t:label=\"name\"\n\t\t\t:name=\"inputName\"\n\t\t\t:value.sync=\"inputValue\" />\n\t\t<NcTextField v-else\n\t\t\tref=\"input\"\n\t\t\tclass=\"legacy-prompt__input\"\n\t\t\t:label=\"name\"\n\t\t\t:name=\"inputName\"\n\t\t\t:value.sync=\"inputValue\" />\n\t</NcDialog>\n</template>\n\n<script lang=\"ts\">\nimport { translate as t } from '@nextcloud/l10n'\nimport { defineComponent } from 'vue'\n\nimport NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'\nimport NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'\nimport NcPasswordField from '@nextcloud/vue/dist/Components/NcPasswordField.js'\n\nexport default defineComponent({\n\tname: 'LegacyDialogPrompt',\n\n\tcomponents: {\n\t\tNcDialog,\n\t\tNcTextField,\n\t\tNcPasswordField,\n\t},\n\n\tprops: {\n\t\tname: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\ttext: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\tisPassword: {\n\t\t\ttype: Boolean,\n\t\t\trequired: true,\n\t\t},\n\n\t\tinputName: {\n\t\t\ttype: String,\n\t\t\tdefault: 'prompt-input',\n\t\t},\n\t},\n\n\temits: ['close'],\n\n\tdata() {\n\t\treturn {\n\t\t\tinputValue: '',\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tbuttons() {\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tlabel: t('core', 'No'),\n\t\t\t\t\tcallback: () => this.$emit('close', false, this.inputValue),\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: t('core', 'Yes'),\n\t\t\t\t\ttype: 'primary',\n\t\t\t\t\tcallback: () => this.$emit('close', true, this.inputValue),\n\t\t\t\t},\n\t\t\t]\n\t\t},\n\t},\n\n\tmounted() {\n\t\tthis.$nextTick(() => this.$refs.input?.focus?.())\n\t},\n})\n</script>\n\n<style scoped lang=\"scss\">\n.legacy-prompt {\n\t&__text {\n\t\tmargin-block: 0 .75em;\n\t}\n\n\t&__input {\n\t\tmargin-block: 0 1em;\n\t}\n}\n\n:deep(.legacy-prompt__dialog .dialog__actions) {\n\tmin-width: calc(100% - 12px);\n\tjustify-content: space-between;\n}\n</style>\n"],"names":["_sfc_main","defineComponent","NcDialog","NcTextField","NcPasswordField","t","_b","_a"],"mappings":";gHA8BA,MAAAA,EAAAC,EAAA,CACA,KAAA,qBAEA,WAAA,CAAA,SACAC,EAAA,YACAC,EAAA,gBACAC,CACA,EAEA,MAAA,CACA,KAAA,CACA,KAAA,OACA,SAAA,EACA,EAEA,KAAA,CACA,KAAA,OACA,SAAA,EACA,EAEA,WAAA,CACA,KAAA,QACA,SAAA,EACA,EAEA,UAAA,CACA,KAAA,OACA,QAAA,cACA,CACA,EAEA,MAAA,CAAA,OAAA,EAEA,MAAA,CACA,MAAA,CACA,WAAA,EAAA,CAEA,EAEA,SAAA,CACA,SAAA,CACA,MAAA,CACA,CACA,MAAAC,EAAA,OAAA,IAAA,EACA,SAAA,IAAA,KAAA,MAAA,QAAA,GAAA,KAAA,UAAA,CACA,EACA,CACA,MAAAA,EAAA,OAAA,KAAA,EACA,KAAA,UACA,SAAA,IAAA,KAAA,MAAA,QAAA,GAAA,KAAA,UAAA,CACA,CAAA,CAEA,CACA,EAEA,SAAA,CACA,KAAA,UAAA,IAAA,SAAA,OAAAC,GAAAC,EAAA,KAAA,MAAA,QAAA,KAAA,OAAAA,EAAA,QAAA,KAAA,OAAAD,EAAA,KAAAC,CAAA,CAAA,CAAA,CACA,CACA,CAAA"} |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{aY as c,cg as u,a$ as h,bB as m}from"../core-common.mjs";import{m as i}from"./marked.esm-tfH3s0ej.mjs";import{n as d}from"./icons-Dg_LJaFK.mjs";const p=(t,r)=>{const o=c(()=>{var n;return Math.min(Math.max((n=r.value)!=null?n:1,1),6)}),l=new i.Renderer;return l.link=function(n,e,a){let s='<a href="'.concat(n,'" rel="noreferrer noopener" target="_blank"');return e&&(s+=' title="'+e+'"'),s+=">"+a+"</a>",s},l.image=function(n,e,a){return a||(e!=null?e:"")},l.heading=(n,e)=>{const a=Math.max(o.value,e);return"<h".concat(a,">").concat(n,"</h").concat(a,">")},{html:c(()=>{var n;return u.sanitize(i(((n=t.value)!=null?n:"").trim(),{renderer:l,gfm:!1,breaks:!1,pedantic:!1}),{SAFE_FOR_JQUERY:!0,ALLOWED_TAGS:["h1","h2","h3","h4","h5","h6","strong","p","a","ul","ol","li","em","del","blockquote"]})})}},f=h({__name:"Markdown",props:{markdown:null,minHeadingLevel:{default:2}},setup(t){const r=t,{html:o}=p(m(r,"markdown"),m(r,"minHeadingLevel"));return{__sfc:!0,props:r,html:o}}});var _=function(){var t=this,r=t._self._c,o=t._self._setupProxy;return r("div",{staticClass:"markdown",domProps:{innerHTML:t._s(o.html)}})},v=[],g=d(f,_,v,!1,null,"66cb1358");const L=g.exports;export{L as M}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"Markdown-kHeGrDZG.mjs","sources":["../../apps/updatenotification/src/composables/useMarkdown.ts","../../apps/updatenotification/src/components/Markdown.vue"],"sourcesContent":["import type { Ref } from 'vue'\n\nimport { marked } from 'marked'\nimport { computed } from 'vue'\nimport dompurify from 'dompurify'\n\nexport const useMarkdown = (text: Ref<string|undefined|null>, minHeadingLevel: Ref<number|undefined>) => {\n\tconst minHeading = computed(() => Math.min(Math.max(minHeadingLevel.value ?? 1, 1), 6))\n\tconst renderer = new marked.Renderer()\n\n\trenderer.link = function(href, title, text) {\n\t\tlet out = `<a href=\"${href}\" rel=\"noreferrer noopener\" target=\"_blank\"`\n\t\tif (title) {\n\t\t\tout += ' title=\"' + title + '\"'\n\t\t}\n\t\tout += '>' + text + '</a>'\n\t\treturn out\n\t}\n\n\trenderer.image = function(href, title, text) {\n\t\tif (text) {\n\t\t\treturn text\n\t\t}\n\t\treturn title ?? ''\n\t}\n\n\trenderer.heading = (text: string, level: number) => {\n\t\tconst headingLevel = Math.max(minHeading.value, level)\n\t\treturn `<h${headingLevel}>${text}</h${headingLevel}>`\n\t}\n\n\tconst html = computed(() => dompurify.sanitize(\n\t\tmarked((text.value ?? '').trim(), {\n\t\t\trenderer,\n\t\t\tgfm: false,\n\t\t\tbreaks: false,\n\t\t\tpedantic: false,\n\t\t}),\n\t\t{\n\t\t\tSAFE_FOR_JQUERY: true,\n\t\t\tALLOWED_TAGS: [\n\t\t\t\t'h1',\n\t\t\t\t'h2',\n\t\t\t\t'h3',\n\t\t\t\t'h4',\n\t\t\t\t'h5',\n\t\t\t\t'h6',\n\t\t\t\t'strong',\n\t\t\t\t'p',\n\t\t\t\t'a',\n\t\t\t\t'ul',\n\t\t\t\t'ol',\n\t\t\t\t'li',\n\t\t\t\t'em',\n\t\t\t\t'del',\n\t\t\t\t'blockquote',\n\t\t\t],\n\t\t},\n\t))\n\n\treturn { html }\n}\n","<template>\n\t<!-- eslint-disable-next-line vue/no-v-html -->\n\t<div class=\"markdown\" v-html=\"html\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { toRef } from 'vue'\nimport { useMarkdown } from '../composables/useMarkdown'\n\nconst props = withDefaults(\n\tdefineProps<{\n\t\tmarkdown: string\n\t\tminHeadingLevel?: 1|2|3|4|5|6\n\t}>(),\n\t{\n\t\tminHeadingLevel: 2,\n\t},\n)\n\nconst { html } = useMarkdown(toRef(props, 'markdown'), toRef(props, 'minHeadingLevel'))\n</script>\n\n<style scoped lang=\"scss\">\n.markdown {\n\t:deep {\n\t\tul {\n\t\t\tlist-style: disc;\n\t\t\tpadding-inline-start: 20px;\n\t\t}\n\n\t\th3, h4, h5, h6 {\n\t\t\tfont-weight: 600;\n\t\t\tline-height: 1.5;\n\t\t\tmargin-top: 24px;\n\t\t\tmargin-bottom: 12px;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\n\t\th3 {\n\t\t\tfont-size: 20px;\n\t\t}\n\n\t\th4 {\n\t\t\tfont-size: 18px;\n\t\t}\n\n\t\th5 {\n\t\t\tfont-size: 17px;\n\t\t}\n\n\t\th6 {\n\t\t\tfont-size: var(--default-font-size);\n\t\t}\n\t}\n}\n</style>\n"],"names":["useMarkdown","text","minHeadingLevel","minHeading","computed","_a","renderer","marked","href","title","out","level","headingLevel","dompurify","html","toRef","props"],"mappings":";uJAMa,MAAAA,EAAc,CAACC,EAAkCC,IAA2C,CAClG,MAAAC,EAAaC,EAAS,IAAG,CAPhC,IAAAC,EAOwC,OAAA,KAAA,IAAI,KAAK,KAAIA,EAAAH,EAAgB,QAAhB,KAAyBG,EAAA,EAAG,CAAC,EAAG,CAAC,CAAA,CAAC,EAChFC,EAAW,IAAIC,EAAO,SAE5B,OAAAD,EAAS,KAAO,SAASE,EAAMC,EAAOR,EAAM,CACvC,IAAAS,EAAM,YAAY,OAAIF,EAAA,6CAAA,EAC1B,OAAIC,IACHC,GAAO,WAAaD,EAAQ,KAE7BC,GAAO,IAAMT,EAAO,OACbS,CAAA,EAGRJ,EAAS,MAAQ,SAASE,EAAMC,EAAOR,EAAM,CAC5C,OAAIA,IAGGQ,GAAAA,KAAAA,EAAS,GAAA,EAGRH,EAAA,QAAU,CAACL,EAAcU,IAAkB,CACnD,MAAMC,EAAe,KAAK,IAAIT,EAAW,MAAOQ,CAAK,EACrD,MAAO,KAAK,OAAYC,EAAA,GAAA,EAAI,OAAAX,EAAI,OAAM,OAAYW,EAAA,GAAA,CAAA,EAgC5C,CAAE,KA7BIR,EAAS,IAAG,CA/B1B,IAAAC,EA+BuC,OAAAQ,EAAA,SACrCN,IAAQF,EAAKJ,EAAA,QAAL,KAAcI,EAAA,IAAI,OAAQ,CACjC,SAAAC,EACA,IAAK,GACL,OAAQ,GACR,SAAU,EAAA,CACV,EACD,CACC,gBAAiB,GACjB,aAAc,CACb,KACA,KACA,KACA,KACA,KACA,KACA,SACA,IACA,IACA,KACA,KACA,KACA,KACA,MACA,YACD,CACD,CAAA,CACD,CAAC,CAEa,CACf,8FC1CM,CAAE,KAAAQ,CAAK,EAAId,EAAYe,EAAMC,EAAO,UAAU,EAAGD,EAAMC,EAAO,iBAAiB,CAAC"} |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{n as f,ao as q}from"./icons-Dg_LJaFK.mjs";import{ck as L,aY as l,c0 as O,a$ as h,b_ as _,a1 as j,bv as p,cj as C,cl as W,bM as w}from"../core-common.mjs";import{L as N}from"./vue-router.esm-CkRP8kF4.mjs";const A=["post","showcase","carousel"],E={type:{type:String,required:!0,validator:e=>typeof e=="string"&&A.includes(e)},id:{type:String,required:!0},date:{type:Number,required:!1,default:void 0},expiryDate:{type:Number,required:!1,default:void 0},headline:{type:Object,required:!1,default:()=>null},link:{type:String,required:!1,default:()=>null}},T=(e,t)=>{var r,i,s;return(s=(i=(r=e[t])!=null?r:e[t.split("_")[0]])!=null?i:e.en)!=null?s:null},u=e=>{const t=L();return l(()=>e!=null&&e.value?T(e.value,t):null)},v=Object.fromEntries(Object.entries(O("core","apps")).map(([e,t])=>{var r;return[(r=t.app)!=null?r:e,t.href]})),U=h({name:"AppLink",components:{RouterLink:N},props:{href:{type:String,required:!0}},data(){return{routerProps:void 0,linkProps:void 0}},watch:{href:{immediate:!0,handler(){var e,t;const r=this.href.match(/^app:\/\/([^/]+)(\/.+)?$/);if(this.routerProps=void 0,this.linkProps=void 0,r===null){this.linkProps={href:this.href,target:"_blank",rel:"noreferrer noopener"};return}const i=r[1];if(r[2]){this.linkProps={href:_("/apps/".concat(i).concat(r[2]))};return}if(i in v){this.linkProps={href:v[i]};return}this.routerProps={to:{name:"apps-details",params:{category:(t=(e=this.$route.params)==null?void 0:e.category)!=null?t:"discover",id:i}}}}}}});var R=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.linkProps?t("a",e._b({},"a",e.linkProps,!1),[e._t("default")],2):e.routerProps?t("RouterLink",e._b({},"RouterLink",e.routerProps,!1),[e._t("default")],2):e._e()},$=[],z=f(U,R,$,!1,null,null);const F=z.exports,H=h({components:{AppLink:F,NcIconSvgWrapper:j},props:{...E,text:{type:Object,required:!1,default:()=>null},media:{type:Object,required:!1,default:()=>null},inline:{type:Boolean,required:!1,default:!1},domId:{type:String,required:!1,default:null}},setup(e){const t=u(l(()=>e.headline)),r=u(l(()=>e.text)),i=u(l(()=>{var a;return(a=e.media)==null?void 0:a.content})),s=l(()=>i.value!==null?[i.value.src].flat():void 0),g=l(()=>{var a,n;return(n=(a=i.value)==null?void 0:a.alt)!=null?n:""}),c=l(()=>{var a;return((a=s==null?void 0:s.value)==null?void 0:a[0].mime.startsWith("image/"))===!0}),y=l(()=>!t.value&&!r.value),k=l(()=>{var a,n;return(n=(a=i.value)==null?void 0:a.link)!=null?n:e.link}),d=p(!1),P=l(()=>{var a;return((a=i.value)==null?void 0:a.link)&&d.value}),m=p(),{width:b}=C(m),S=l(()=>b.value<600),x=a=>a.startsWith("/")?a:_("/settings/api/apps/media?fileName={fileName}",{fileName:a}),o=p(),I=W(o,{threshold:.3});return w(()=>{if(!c.value&&o.value){const a=o.value;I.value?(a.muted=!0,a.play()):(a.pause(),a.ended&&(a.currentTime=0,d.value=!1))}}),{mdiPlayCircleOutline:q,container:m,translatedText:r,translatedHeadline:t,mediaElement:o,mediaSources:s,mediaAlt:g,mediaLink:k,hasPlaybackEnded:d,showPlayVideo:P,isFullWidth:y,isSmallWidth:S,isImage:c,generatePrivacyUrl:x}}});var M=function(){var r,i;var e=this,t=e._self._c;return e._self._setupProxy,t("article",{ref:"container",staticClass:"app-discover-post",class:{"app-discover-post--reverse":e.media&&e.media.alignment==="start","app-discover-post--small":e.isSmallWidth},attrs:{id:e.domId}},[e.headline||e.text?t(e.link?"AppLink":"div",{tag:"component",staticClass:"app-discover-post__text",attrs:{href:e.link}},[t(e.inline?"h4":"h3",{tag:"component"},[e._v(" "+e._s(e.translatedHeadline)+" ")]),t("p",[e._v(e._s(e.translatedText))])],1):e._e(),e.mediaSources?t(e.mediaLink?"AppLink":"div",{tag:"component",staticClass:"app-discover-post__media",class:{"app-discover-post__media--fullwidth":e.isFullWidth,"app-discover-post__media--start":((r=e.media)==null?void 0:r.alignment)==="start","app-discover-post__media--end":((i=e.media)==null?void 0:i.alignment)==="end"},attrs:{href:e.mediaLink}},[t(e.isImage?"picture":"video",{ref:"mediaElement",tag:"component",staticClass:"app-discover-post__media-element",attrs:{muted:!e.isImage,playsinline:!e.isImage,preload:!e.isImage&&"auto"},on:{ended:function(s){e.hasPlaybackEnded=!0}}},[e._l(e.mediaSources,function(s){return t("source",{key:s.src,attrs:{src:e.isImage?void 0:e.generatePrivacyUrl(s.src),srcset:e.isImage?e.generatePrivacyUrl(s.src):void 0,type:s.mime}})}),e.isImage?t("img",{attrs:{src:e.generatePrivacyUrl(e.mediaSources[0].src),alt:e.mediaAlt}}):e._e()],2),t("div",{staticClass:"app-discover-post__play-icon-wrapper"},[!e.isImage&&e.showPlayVideo?t("NcIconSvgWrapper",{staticClass:"app-discover-post__play-icon",attrs:{path:e.mdiPlayCircleOutline,size:92}}):e._e()],1)],1):e._e()],1)},V=[],B=f(H,M,V,!1,null,"99362b3b");const D=B.exports,J=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));export{D as P,J as a,E as c,u}; |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{a$ as r,aY as o,bv as i,cj as c,bT as m}from"../core-common.mjs";import{P as d,c as u,u as _}from"./PostType-BsSwLs-S.mjs";import{u as f}from"./apps-store-CqZcVQv4.mjs";import{A as v}from"./AppStore-DKqnVN2P.mjs";import{n as l}from"./icons-Dg_LJaFK.mjs";import"./vue-router.esm-CkRP8kF4.mjs";import"./index-7XKGWWeV.mjs";import"./_plugin-vue2_normalizer-VrK6B12S-B9aYHv6f.mjs";import"./pinia-DMoXqkoa.mjs";import"./logger-BPaGOp_B.mjs";import"./composables-C8V-ruf2.mjs";import"./AppsConstants-CNQ6opBQ.mjs";import"./AppManagement-CsFrpT7q.mjs";import"./rebuild-navigation-CYHkuJ-k.mjs";import"./index-BPFDgvSy.mjs";import"./preload-helper-BG02UnR2.mjs";const h=r({__name:"AppType",props:{modelValue:null},setup(e){const t=e,s=f(),a=o(()=>s.getAppById(t.modelValue.appId)),p=o(()=>t.modelValue.appId?"https://apps.nextcloud.com/apps/".concat(t.modelValue.appId):"#");return{__sfc:!0,props:t,store:s,app:a,appStoreLink:p,AppItem:v}}});var y=function(){var e=this,t=e._self._c,s=e._self._setupProxy;return s.app?t(s.AppItem,{staticClass:"app-discover-app",attrs:{app:s.app,category:"discover",inline:"","list-view":!1}}):t("a",{staticClass:"app-discover-app app-discover-app__skeleton",attrs:{href:s.appStoreLink,target:"_blank",title:e.modelValue.appId,rel:"noopener noreferrer"}},[t("span",{staticClass:"skeleton-element"}),t("span",{staticClass:"skeleton-element"}),t("span",{staticClass:"skeleton-element"}),t("span",{staticClass:"skeleton-element"}),t("span",{staticClass:"skeleton-element"})])},k=[],x=l(h,y,k,!1,null,"44d37eed");const C=x.exports,w=r({name:"ShowcaseType",components:{AppType:C,PostType:d},props:{...u,content:{type:Array,required:!0}},setup(e){const t=_(o(()=>e.headline)),s=i(),{width:a}=c(s),p=o(()=>a.value<768),n=o(()=>a.value<512);return{t:m,container:s,isSmallWidth:p,isExtraSmallWidth:n,translatedHeadline:t}}});var A=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("section",{ref:"container",staticClass:"app-discover-showcase",class:{"app-discover-showcase--small":e.isSmallWidth,"app-discover-showcase--extra-small":e.isExtraSmallWidth}},[e.translatedHeadline?t("h3",[e._v(" "+e._s(e.translatedHeadline)+" ")]):e._e(),t("ul",{staticClass:"app-discover-showcase__list"},e._l(e.content,function(s,a){var p;return t("li",{key:(p=s.id)!=null?p:a,staticClass:"app-discover-showcase__item"},[s.type==="post"?t("PostType",e._b({attrs:{inline:""}},"PostType",s,!1)):s.type==="app"?t("AppType",{attrs:{"model-value":s}}):e._e()],1)}),0)])},T=[],I=l(w,A,T,!1,null,"f4b70fcb");const F=I.exports;export{F as default}; |
@@ -0,0 +1,2 @@ | |||
/*! third party licenses: dist/vendor.LICENSE.txt */ | |||
import{_ as e}from"./_isIterateeCall-DqjdgTx_.mjs";import{k as c,i as m}from"./_overRest-BQssXRnF.mjs";var v=e,l=c;function p(n,t){return n&&v(n,t,l)}var x=p,_=m;function a(n,t){return function(r,f){if(r==null)return r;if(!_(r))return n(r,f);for(var i=r.length,o=t?i:-1,u=Object(r);(t?o--:++o<i)&&f(u[o],o,u)!==!1;);return r}}var b=a,h=x,k=b,s=k(h),g=s;export{g as _}; |
@@ -0,0 +1 @@ | |||
{"version":3,"file":"_baseEach-B1XNSXSY.mjs","sources":["../../node_modules/lodash/_baseForOwn.js","../../node_modules/lodash/_createBaseEach.js","../../node_modules/lodash/_baseEach.js"],"sourcesContent":["var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n"],"names":["baseFor","require$$0","keys","require$$1","baseForOwn","object","iteratee","_baseForOwn","isArrayLike","createBaseEach","eachFunc","fromRight","collection","length","index","iterable","_createBaseEach","baseEach","_baseEach"],"mappings":";uGAAA,IAAIA,EAAUC,EACVC,EAAOC,EAUX,SAASC,EAAWC,EAAQC,EAAU,CACpC,OAAOD,GAAUL,EAAQK,EAAQC,EAAUJ,CAAI,CACjD,CAEA,IAAAK,EAAiBH,ECfbI,EAAcP,EAUlB,SAASQ,EAAeC,EAAUC,EAAW,CAC3C,OAAO,SAASC,EAAYN,EAAU,CACpC,GAAIM,GAAc,KAChB,OAAOA,EAET,GAAI,CAACJ,EAAYI,CAAU,EACzB,OAAOF,EAASE,EAAYN,CAAQ,EAMtC,QAJIO,EAASD,EAAW,OACpBE,EAAQH,EAAYE,EAAS,GAC7BE,EAAW,OAAOH,CAAU,GAExBD,EAAYG,IAAU,EAAEA,EAAQD,IAClCP,EAASS,EAASD,CAAK,EAAGA,EAAOC,CAAQ,IAAM,IAAnD,CAIF,OAAOH,CACX,CACA,CAEA,IAAAI,EAAiBP,EC/BbL,EAAaH,EACbQ,EAAiBN,EAUjBc,EAAWR,EAAeL,CAAU,EAExCc,EAAiBD","x_google_ignoreList":[0,1,2]} |