1
0

updatenotification-view-changelog-page.js 6.8 KB

12
  1. (()=>{"use strict";var n,t={22905:(n,t,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(n){const t=n,{html:e}=((n,t)=>{const e=(0,a.EW)((()=>Math.min(Math.max(t.value??1,1),6))),o=new s.xI.Renderer;return o.link=function(n,t,e){let a=`<a href="${n}" rel="noreferrer noopener" target="_blank"`;return t&&(a+=' title="'+t+'"'),a+=">"+e+"</a>",a},o.image=function(n,t,e){return e||(t??"")},o.heading=(n,t)=>{const a=Math.max(e.value,t);return`<h${a}>${n}</h${a}>`},{html:(0,a.EW)((()=>d().sanitize((0,s.xI)((n.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)(t,"markdown"),(0,a.lW)(t,"minHeadingLevel"));return{__sfc:!0,props:t,html:e}}});var A=e(85072),m=e.n(A),u=e(97825),f=e.n(u),h=e(77659),g=e.n(h),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=f(),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 n=this,t=n._self._c,e=n._self._setupProxy;return t("div",{staticClass:"markdown",domProps:{innerHTML:n._s(e.html)}})}),[],!1,null,"4fb3448b",null).exports,O=(0,a.pM)({__name:"App",setup(n){const{appName:t,appVersion:e,text:a}=(0,r.C)("updatenotification","changelog");return{__sfc:!0,appName:t,appVersion:e,markdown:a,t:o.Tl,NcAppContent:i.A,NcContent:p.A,Markdown:M}}});var P=e(93277),S={};S.styleTagTransform=_(),S.setAttributes=C(),S.insert=g().bind(null,"head"),S.domAPI=f(),S.insertStyleElement=w(),m()(P.A,S),P.A&&P.A.locals&&P.A.locals;const T=(0,N.A)(O,(function(){var n=this,t=n._self._c,e=n._self._setupProxy;return t(e.NcContent,{attrs:{"app-name":"updatenotification"}},[t(e.NcAppContent,{attrs:{"page-heading":e.t("updatenotification","Changelog for app {app}",{app:e.appName})}},[t("div",{staticClass:"changelog__wrapper"},[t("h2",{staticClass:"changelog__heading"},[n._v("\n\t\t\t\t"+n._s(e.t("updatenotification","What's new in {app} version {version}",{app:e.appName,version:e.appVersion}))+"\n\t\t\t")]),n._v(" "),t(e.Markdown,{attrs:{markdown:e.markdown,"min-heading-level":3}})],1)])],1)}),[],!1,null,"0efdc2a2",null).exports;new a.Ay({name:"ViewChangelogPage",render:n=>n(T),el:"#content"})},39858:(n,t,e)=>{e.d(t,{A:()=>p});var a=e(71354),o=e.n(a),r=e(76314),i=e.n(r)()(o());i.push([n.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",sourceRoot:""}]);const p=i},93277:(n,t,e)=>{e.d(t,{A:()=>p});var a=e(71354),o=e.n(a),r=e(76314),i=e.n(r)()(o());i.push([n.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(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=t,n=[],a.O=(t,e,o,r)=>{if(!e){var i=1/0;for(d=0;d<n.length;d++){e=n[d][0],o=n[d][1],r=n[d][2];for(var p=!0,s=0;s<e.length;s++)(!1&r||i>=r)&&Object.keys(a.O).every((n=>a.O[n](e[s])))?e.splice(s--,1):(p=!1,r<i&&(i=r));if(p){n.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var d=n.length;d>0&&n[d-1][2]>r;d--)n[d]=n[d-1];n[d]=[e,o,r]},a.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return a.d(t,{a:t}),t},a.d=(n,t)=>{for(var e in t)a.o(t,e)&&!a.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},a.e=()=>Promise.resolve(),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),a.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),a.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},a.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),a.j=6600,(()=>{a.b=document.baseURI||self.location.href;var n={6600:0};a.O.j=t=>0===n[t];var t=(t,e)=>{var o,r,i=e[0],p=e[1],s=e[2],l=0;if(i.some((t=>0!==n[t]))){for(o in p)a.o(p,o)&&(a.m[o]=p[o]);if(s)var d=s(a)}for(t&&t(e);l<i.length;l++)r=i[l],a.o(n,r)&&n[r]&&n[r][0](),n[r]=0;return a.O(d)},e=self.webpackChunknextcloud=self.webpackChunknextcloud||[];e.forEach(t.bind(null,0)),e.push=t.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=bb3e777b747ae3f7f945