dino.app
10 | {el};
12 | }
13 |
14 | if (leaf.italic) {
15 | el = {el};
16 | }
17 |
18 | if (leaf.underline) {
19 | el = {el};
20 | }
21 |
22 | if (leaf.highlighted) {
23 | el = (
24 |
25 | {el}
26 |
27 | );
28 | }
29 |
30 | return {el};
31 | };
32 |
--------------------------------------------------------------------------------
/server/src/utils/sendEmail.ts:
--------------------------------------------------------------------------------
1 | import nodemailer from "nodemailer";
2 |
3 | // async..await is not allowed in global scope, must use a wrapper
4 | export async function sendEmail(to: string, html: string) {
5 | let transporter = nodemailer.createTransport({
6 | host: "smtp.ethereal.email",
7 | port: 587,
8 | secure: false,
9 | auth: {
10 | user: "mds43vi6nviwucqv@ethereal.email",
11 | pass: "xJsQzVAuFYKqx5xUR9",
12 | },
13 | });
14 |
15 | // send mail with defined transport object
16 | let info = await transporter.sendMail({
17 | from: '"Fred Foo 👻" 31 | {name} 32 |
33 |28 | We{"'"}ve sent an email with a link to change your 29 | password! 30 |
31 | )} 32 |{children}
; 17 | case "H1": 18 | return ( 19 |{children};
55 | case "image":
56 | return 58 | {name} 59 |
60 | 92 |119 | {data?.getNote.title} 120 |
121 |{children}
195 |114 | Quick Find 115 |
116 |123 | Settings 124 |
125 |196 | Saving... 197 |
198 | ) : ( 199 |200 | Saved{" "} 201 | 202 | {timeSinceShort(note.updatedAt)} ago 203 | 204 |
205 | )} 206 |
22 | Dino is a new way to jot down your thoughts
23 | and all the stuff that you want to access easily and
24 | quickly. Cos
25 | {"'"} not everything is about productivity
26 |
50 |
54 | Unlike other tools, Dino has a zero
55 | learning curve which means you can start using it
56 | without any confusion
57 |
66 |
75 |
79 | Dino user interface is clean, minimal and
80 | organised so you only get to see your docs when you want
81 | to
82 |
*/}
90 |
95 |
28 | Dino is a new way to jot down your thoughts
29 | and all the stuff that you want to access easily and
30 | quickly. Cos
31 | {"'"} not everything is about productivity
32 |
56 |
60 | Unlike other tools, Dino has a zero
61 | learning curve which means you can start using it
62 | without any confusion
63 |
72 |
81 |
85 | Dino user interface is clean, minimal and
86 | organised so you only get to see your docs when you want
87 | to
88 |
*/}
96 |
101 |