1
0

updatenotification-view-changelog-page.js 7.3 KB

12
  1. (()=>{"use strict";var t,n={73965:(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),c=e.n(l);const d=(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)((()=>{var t;return Math.min(Math.max(null!==(t=n.value)&&void 0!==t?t:1,1),6)})),o=new s.xI.Renderer;return o.link=function(t,n,e){let a='<a href="'.concat(t,'" rel="noreferrer noopener" target="_blank"');return n&&(a+=' title="'+n+'"'),a+=">"+e+"</a>",a},o.image=function(t,n,e){return e||(null!=n?n:"")},o.heading=(t,n)=>{const a=Math.max(e.value,n);return"<h".concat(a,">").concat(t,"</h").concat(a,">")},{html:(0,a.EW)((()=>{var n;return c().sanitize((0,s.xI)((null!==(n=t.value)&&void 0!==n?n:"").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),w=e(10540),x=e.n(w),_=e(41113),k=e.n(_),b=e(62464),y={};y.styleTagTransform=k(),y.setAttributes=C(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=x(),m()(b.A,y),b.A&&b.A.locals&&b.A.locals;var N=e(14486);const M=(0,N.A)(d,(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,"c31cd53a",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 z=e(48652),j={};j.styleTagTransform=k(),j.setAttributes=C(),j.insert=g().bind(null,"head"),j.domAPI=h(),j.insertStyleElement=x(),m()(z.A,j),z.A&&z.A.locals&&z.A.locals;const B=(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,"3e0fef72",null).exports;new a.Ay({name:"ViewChangelogPage",render:t=>t(B),el:"#content"})},62464:(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-c31cd53a] ul{list-style:disc;padding-inline-start:20px}.markdown[data-v-c31cd53a] h3,.markdown[data-v-c31cd53a] h4,.markdown[data-v-c31cd53a] h5,.markdown[data-v-c31cd53a] h6{font-weight:600;line-height:1.5;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.markdown[data-v-c31cd53a] h3{font-size:20px}.markdown[data-v-c31cd53a] h4{font-size:18px}.markdown[data-v-c31cd53a] h5{font-size:17px}.markdown[data-v-c31cd53a] 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},48652:(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-3e0fef72] {\n\tmax-width: max(50vw,700px);\n\tmargin-inline: auto;\n}\n.changelog__heading[data-v-3e0fef72] {\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:";AA6BA;CACA,0BAAA;CACA,mBAAA;AACA;AAEA;CACA,eAAA;CACA,oDAAA;AACA",sourcesContent:["<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(c=0;c<t.length;c++){e=t[c][0],o=t[c][1],r=t[c][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(c--,1);var l=o();void 0!==l&&(n=l)}}return n}r=r||0;for(var c=t.length;c>0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[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 c=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(c)},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(73965)));o=a.O(o)})();
  2. //# sourceMappingURL=updatenotification-view-changelog-page.js.map?v=84dba192a6db1452bb3b