UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

51 lines (50 loc) 1.63 kB
/* * Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com> * This file is part of Sync-in | The open source file sync and share solution * See the LICENSE file for licensing details */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: Object.getOwnPropertyDescriptor(all, name).get }); } _export(exports, { get defaultFooter () { return defaultFooter; }, get mailAuthor () { return mailAuthor; }, get mailEventOnElement () { return mailEventOnElement; }, get mailItalicContent () { return mailItalicContent; }, get mailTemplate () { return mailTemplate; } }); const _shared = require("../../../common/shared"); const defaultFooter = 'If you no longer wish to receive notifications, change your preferences directly from your user space'; const mailTemplate = (content, footer)=>` <html lang="en"> <meta charset="utf-8"/> <body> <div> ${content} </div> <small style="color:#666"> -- ${footer} </small> </body </html>`; const mailAuthor = (author)=>`<img style="border-radius: 50% !important; vertical-align: middle; object-fit: cover;" height="40" width="40" src="${author.avatarBase64}" alt="avatar">&nbsp;<b>${author.fullName}</b>&nbsp;`; const mailEventOnElement = (event, element)=>`${event}&nbsp;:&nbsp;<b>${(0, _shared.capitalizeString)(element)}</b>`; const mailItalicContent = (content)=>`<p><i>${content}</i></p>`; //# sourceMappingURL=templates.js.map