18 lines
1.5 KiB
JavaScript
18 lines
1.5 KiB
JavaScript
import{d as _,i as d,a as p,u,b as h,c as m,e as f,o as n,f as r,g as t,t as s,h as a,F as g,r as v,n as x,j as y,k as b,l as N,m as k,p as P,q as S,_ as j}from"./index-b4b4a2ac.js";import{N as w}from"./NoteDisplay-39559114.js";const T={class:"m-4"},V={class:"mb-10"},C={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},E={class:"text-lg"},H={class:"font-bold flex gap-2"},L={class:"opacity-50"},z=t("div",{class:"flex-auto"},null,-1),B={key:0,class:"border-gray-400/50 mb-8"},F=_({__name:"PresenterPrint",setup(M){d(p),u(`
|
|
@page {
|
|
size: A4;
|
|
margin-top: 1.5cm;
|
|
margin-bottom: 1cm;
|
|
}
|
|
* {
|
|
-webkit-print-color-adjust: exact;
|
|
}
|
|
html,
|
|
html body,
|
|
html #app,
|
|
html #page-root {
|
|
height: auto;
|
|
overflow: auto !important;
|
|
}
|
|
`),h({title:`Notes - ${m.title}`});const i=f(()=>b.slice(0,-1).map(o=>{var l;return(l=o.meta)==null?void 0:l.slide}).filter(o=>o!==void 0&&o.noteHTML!==""));return(o,l)=>(n(),r("div",{id:"page-root",style:x(a(y))},[t("div",T,[t("div",V,[t("h1",C,s(a(m).title),1),t("div",D,s(new Date().toLocaleString()),1)]),(n(!0),r(g,null,v(a(i),(e,c)=>(n(),r("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",E,[t("div",H,[t("div",L,s(e==null?void 0:e.no)+"/"+s(a(N)),1),k(" "+s(e==null?void 0:e.title)+" ",1),z])]),P(w,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<a(i).length-1?(n(),r("hr",B)):S("v-if",!0)]))),128))])],4))}}),I=j(F,[["__file","/home/laurent/Documents/Cours/ENSEEIHT/Projet-long/prez/node_modules/@slidev/client/internals/PresenterPrint.vue"]]);export{I as default};
|