updatenotification-view-changelog-page.js 7.3 KB

12
  1. (()=>{"use strict";var t,n={22905:(t,n,e)=>{var a=e(85471),o=e(53334),r=e(32981),i=e(18195),p=e(22378),s=e(60023),l=e(42838),d=e.n(l);const c=(0,a.pM)({__name:"Markdown",props:{markdown:null,minHeadingLevel:{default:2}},setup(t){const n=t,{html:e}=((t,n)=>{const e=(0,a.EW)((()=>Math.min(Math.max(n.value??1,1),6))),o=new s.xI.Renderer;return o.link=function(t,n,e){let a=`<a href="${t}" rel="noreferrer noopener" target="_blank"`;return n&&(a+=' title="'+n+'"'),a+=">"+e+"</a>",a},o.image=function(t,n,e){return e||(n??"")},o.heading=(t,n)=>{const a=Math.max(e.value,n);return`<h${a}>${t}</h${a}>`},{html:(0,a.EW)((()=>d().sanitize((0,s.xI)((t.value??"").trim(),{renderer:o,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"]})))}})((0,a.lW)(n,"markdown"),(0,a.lW)(n,"minHeadingLevel"));return{__sfc:!0,props:n,html:e}}});var A=e(85072),m=e.n(A),u=e(97825),h=e.n(u),f=e(77659),g=e.n(f),v=e(55056),C=e.n(v),b=e(10540),w=e.n(b),x=e(41113),_=e.n(x),k=e(39858),y={};y.styleTagTransform=_(),y.setAttributes=C(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=w(),m()(k.A,y),k.A&&k.A.locals&&k.A.locals;var N=e(14486);const M=(0,N.A)(c,(function(){var t=this,n=t._self._c,e=t._self._setupProxy;return n("div",{staticClass:"markdown",domProps:{innerHTML:t._s(e.html)}})}),[],!1,null,"4fb3448b",null).exports,O=(0,a.pM)({__name:"App",setup(t){const{appName:n,appVersion:e,text:a}=(0,r.C)("updatenotification","changelog");return{__sfc:!0,appName:n,appVersion:e,markdown:a,t:o.Tl,NcAppContent:i.A,NcContent:p.A,Markdown:M}}});var P=e(93277),z={};z.styleTagTransform=_(),z.setAttributes=C(),z.insert=g().bind(null,"head"),z.domAPI=h(),z.insertStyleElement=w(),m()(P.A,z),P.A&&P.A.locals&&P.A.locals;const S=(0,N.A)(O,(function(){var t=this,n=t._self._c,e=t._self._setupProxy;return n(e.NcContent,{attrs:{"app-name":"updatenotification"}},[n(e.NcAppContent,{attrs:{"page-heading":e.t("updatenotification","Changelog for app {app}",{app:e.appName})}},[n("div",{staticClass:"changelog__wrapper"},[n("h2",{staticClass:"changelog__heading"},[t._v("\n\t\t\t\t"+t._s(e.t("updatenotification","What's new in {app} version {version}",{app:e.appName,version:e.appVersion}))+"\n\t\t\t")]),t._v(" "),n(e.Markdown,{attrs:{markdown:e.markdown,"min-heading-level":3}})],1)])],1)}),[],!1,null,"0efdc2a2",null).exports;new a.Ay({name:"ViewChangelogPage",render:t=>t(S),el:"#content"})},39858:(t,n,e)=>{e.d(n,{A:()=>p});var a=e(71354),o=e.n(a),r=e(76314),i=e.n(r)()(o());i.push([t.id,".markdown[data-v-4fb3448b] ul{list-style:disc;padding-inline-start:20px}.markdown[data-v-4fb3448b] h3,.markdown[data-v-4fb3448b] h4,.markdown[data-v-4fb3448b] h5,.markdown[data-v-4fb3448b] h6{font-weight:600;line-height:1.5;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.markdown[data-v-4fb3448b] h3{font-size:20px}.markdown[data-v-4fb3448b] h4{font-size:18px}.markdown[data-v-4fb3448b] h5{font-size:17px}.markdown[data-v-4fb3448b] h6{font-size:var(--default-font-size)}","",{version:3,sources:["webpack://./apps/updatenotification/src/components/Markdown.vue"],names:[],mappings:"AAGE,8BACC,eAAA,CACA,yBAAA,CAGD,wHACC,eAAA,CACA,eAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,8BACC,cAAA,CAGD,8BACC,cAAA,CAGD,8BACC,cAAA,CAGD,8BACC,kCAAA",sourcesContent:["\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"],sourceRoot:""}]);const p=i},93277:(t,n,e)=>{e.d(n,{A:()=>p});var a=e(71354),o=e.n(a),r=e(76314),i=e.n(r)()(o());i.push([t.id,"\n.changelog__wrapper[data-v-0efdc2a2] {\n\tmax-width: max(50vw,700px);\n\tmargin-inline: auto;\n}\n.changelog__heading[data-v-0efdc2a2] {\n\tfont-size: 30px;\n\tmargin-block: var(--app-navigation-padding, 8px) 1em;\n}\n","",{version:3,sources:["webpack://./apps/updatenotification/src/views/App.vue"],names:[],mappings:";AAiCA;CACA,0BAAA;CACA,mBAAA;AACA;AAEA;CACA,eAAA;CACA,oDAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n<template>\n\t<NcContent app-name=\"updatenotification\">\n\t\t<NcAppContent :page-heading=\"t('updatenotification', 'Changelog for app {app}', { app: appName })\">\n\t\t\t<div class=\"changelog__wrapper\">\n\t\t\t\t<h2 class=\"changelog__heading\">\n\t\t\t\t\t{{ t('updatenotification', 'What\\'s new in {app} version {version}', { app: appName, version: appVersion }) }}\n\t\t\t\t</h2>\n\t\t\t\t<Markdown :markdown=\"markdown\" :min-heading-level=\"3\" />\n\t\t\t</div>\n\t\t</NcAppContent>\n\t</NcContent>\n</template>\n\n<script setup lang=\"ts\">\nimport { translate as t } from '@nextcloud/l10n'\nimport { loadState } from '@nextcloud/initial-state'\n\nimport NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent.js'\nimport NcContent from '@nextcloud/vue/dist/Components/NcContent.js'\nimport Markdown from '../components/Markdown.vue'\n\nconst {\n\tappName,\n\tappVersion,\n\ttext: markdown,\n} = loadState<{ appName: string, appVersion: string, text: string }>('updatenotification', 'changelog')\n<\/script>\n\n<style scoped>\n.changelog__wrapper {\n\tmax-width: max(50vw,700px);\n\tmargin-inline: auto;\n}\n\n.changelog__heading {\n\tfont-size: 30px;\n\tmargin-block: var(--app-navigation-padding, 8px) 1em;\n}\n</style>\n"],sourceRoot:""}]);const p=i}},e={};function a(t){var o=e[t];if(void 0!==o)return o.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=n,t=[],a.O=(n,e,o,r)=>{if(!e){var i=1/0;for(d=0;d<t.length;d++){e=t[d][0],o=t[d][1],r=t[d][2];for(var p=!0,s=0;s<e.length;s++)(!1&r||i>=r)&&Object.keys(a.O).every((t=>a.O[t](e[s])))?e.splice(s--,1):(p=!1,r<i&&(i=r));if(p){t.splice(d--,1);var l=o();void 0!==l&&(n=l)}}return n}r=r||0;for(var d=t.length;d>0&&t[d-1][2]>r;d--)t[d]=t[d-1];t[d]=[e,o,r]},a.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return a.d(n,{a:n}),n},a.d=(t,n)=>{for(var e in n)a.o(n,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},a.e=()=>Promise.resolve(),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),a.j=6600,(()=>{a.b=document.baseURI||self.location.href;var t={6600:0};a.O.j=n=>0===t[n];var n=(n,e)=>{var o,r,i=e[0],p=e[1],s=e[2],l=0;if(i.some((n=>0!==t[n]))){for(o in p)a.o(p,o)&&(a.m[o]=p[o]);if(s)var d=s(a)}for(n&&n(e);l<i.length;l++)r=i[l],a.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return a.O(d)},e=self.webpackChunknextcloud=self.webpackChunknextcloud||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))})(),a.nc=void 0;var o=a.O(void 0,[4208],(()=>a(22905)));o=a.O(o)})();
  2. //# sourceMappingURL=updatenotification-view-changelog-page.js.map?v=87eb369685a052e14957