@open-pencil/cloud 0.17.0-beta.5 → 0.17.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +560 -93
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1101 -186
- package/dist/client.js.map +1 -1
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +2 -2
- package/dist/contract2.js +390 -44
- package/dist/contract2.js.map +1 -1
- package/dist/email.d.ts +366 -3
- package/dist/email.d.ts.map +1 -1
- package/dist/email.js +1403 -556
- package/dist/email.js.map +1 -1
- package/dist/errors.js +16 -3
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +878 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index2.d.ts +12 -2
- package/dist/index2.d.ts.map +1 -1
- package/dist/listen.mjs +589 -128
- package/dist/listen.mjs.map +1 -1
- package/dist/runtime-cloudflare.d.ts +4 -0
- package/dist/runtime-cloudflare.d.ts.map +1 -1
- package/dist/runtime-cloudflare.js +8690 -6325
- package/dist/runtime-cloudflare.js.map +1 -1
- package/dist/runtime-node.d.mts +10098 -5401
- package/dist/runtime-node.d.mts.map +1 -1
- package/dist/server.d.ts +13807 -7638
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +11723 -9412
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +10659 -8650
- package/dist/server.mjs.map +1 -1
- package/dist/server2.mjs +79 -57
- package/dist/server2.mjs.map +1 -1
- package/package.json +13 -4
- package/src/admin/api/routes.ts +263 -190
- package/src/admin/audit/service.ts +9 -1
- package/src/admin/bootstrap.ts +86 -0
- package/src/admin/documents/service.ts +119 -4
- package/src/admin/email/service.ts +2 -1
- package/src/admin/enrollment/email.ts +17 -3
- package/src/admin/enrollment/service.ts +71 -10
- package/src/admin/errors.ts +5 -0
- package/src/admin/index.ts +1 -0
- package/src/admin/reports/service.ts +9 -3
- package/src/admin/schema.ts +6 -5
- package/src/admin/users/service.ts +173 -16
- package/src/client/api.ts +29 -2
- package/src/client/comments.ts +205 -0
- package/src/client/device-authorization.ts +4 -20
- package/src/client/discovery.ts +4 -2
- package/src/client/files/archive.ts +60 -0
- package/src/client/files/checksum.ts +7 -0
- package/src/client/files/download.ts +122 -0
- package/src/client/files/images.ts +89 -0
- package/src/client/files/index.ts +15 -0
- package/src/client/files/objects.ts +173 -0
- package/src/client/files/save.ts +79 -0
- package/src/client/index.ts +3 -6
- package/src/client/portal/account.ts +20 -2
- package/src/client/portal/administration.ts +52 -5
- package/src/client/portal/request.ts +4 -2
- package/src/client/tour.ts +44 -0
- package/src/client/versions.ts +7 -1
- package/src/contract/account.ts +61 -11
- package/src/contract/admin/index.ts +48 -3
- package/src/contract/billing.ts +73 -4
- package/src/contract/comments.ts +223 -0
- package/src/contract/discovery.ts +47 -19
- package/src/contract/index.ts +10 -0
- package/src/contract/links.ts +5 -0
- package/src/contract/relay.ts +3 -1
- package/src/contract/services.ts +44 -4
- package/src/contract/workspaces.ts +5 -0
- package/src/email/locales/ar.json +28 -0
- package/src/email/locales/de.json +28 -0
- package/src/email/locales/es.json +28 -0
- package/src/email/locales/fr.json +28 -0
- package/src/email/locales/it.json +28 -0
- package/src/email/locales/ja.json +28 -0
- package/src/email/locales/pl.json +28 -0
- package/src/email/locales/pt-br.json +28 -0
- package/src/email/locales/ru.json +28 -0
- package/src/email/locales/zh-cn.json +28 -0
- package/src/email/messages.ts +35 -0
- package/src/email/render.ts +18 -0
- package/src/email/samples.ts +28 -1
- package/src/email/schema.ts +29 -3
- package/src/email/templates/BrandEmail.vue +3 -1
- package/src/email/templates/CommentNotification.vue +39 -0
- package/src/email/templates/EnrollmentInvitation.vue +53 -0
- package/src/email/templates/TwoStepChanged.vue +17 -2
- package/src/email/templates/brand.ts +6 -0
- package/src/errors/posthog.ts +28 -4
- package/src/runtime/cloudflare/email.ts +2 -0
- package/src/runtime/cloudflare/relay/index.ts +21 -6
- package/src/runtime/cloudflare/worker.ts +6 -0
- package/src/runtime/cloudflare/xml.ts +12 -0
- package/src/runtime/node/admin.ts +51 -47
- package/src/runtime/node/email/runtime.ts +1 -0
- package/src/runtime/node/email/transport.ts +1 -0
- package/src/runtime/node/server.ts +8 -2
- package/src/runtime/posthog/errors.ts +3 -1
- package/src/runtime/site/server.ts +4 -1
- package/src/server/account/actions.ts +3 -1
- package/src/server/account/deletion.ts +38 -4
- package/src/server/account/routes.ts +67 -46
- package/src/server/account/tokens.ts +3 -3
- package/src/server/api/router.ts +22 -7
- package/src/server/app/checks.ts +6 -1
- package/src/server/app/cors.ts +44 -0
- package/src/server/app/index.ts +76 -76
- package/src/server/app/routes.ts +14 -5
- package/src/server/app/services.ts +49 -15
- package/src/server/auth/access-control.ts +13 -8
- package/src/server/auth/account.ts +13 -12
- package/src/server/auth/activity.ts +7 -2
- package/src/server/auth/adapter.ts +16 -3
- package/src/server/auth/email.ts +29 -17
- package/src/server/auth/endpoints.ts +4 -0
- package/src/server/auth/factory.ts +83 -64
- package/src/server/auth/index.ts +1 -1
- package/src/server/auth/methods.ts +162 -0
- package/src/server/auth/mfa-assurance.ts +147 -10
- package/src/server/auth/rate-limit.ts +31 -0
- package/src/server/auth/runtime.ts +19 -5
- package/src/server/auth/social-providers.ts +70 -24
- package/src/server/billing/index.ts +2 -0
- package/src/server/billing/notify.ts +55 -0
- package/src/server/billing/seats.ts +17 -0
- package/src/server/billing/tokens.ts +1 -1
- package/src/server/cleanup/documents.ts +5 -2
- package/src/server/cleanup/revisions.ts +6 -3
- package/src/server/cleanup/uploads.ts +2 -1
- package/src/server/collaboration/relay/connection.ts +7 -2
- package/src/server/collaboration/relay/hub.ts +55 -24
- package/src/server/collaboration/routes.ts +8 -5
- package/src/server/comments/index.ts +9 -0
- package/src/server/comments/notify.ts +277 -0
- package/src/server/comments/routes.ts +352 -0
- package/src/server/comments/rows.ts +249 -0
- package/src/server/comments/service.ts +570 -0
- package/src/server/community/routes.ts +6 -6
- package/src/server/config/deployment.ts +19 -6
- package/src/server/config/index.ts +1 -1
- package/src/server/config/public.ts +19 -6
- package/src/server/config/schema.ts +14 -2
- package/src/server/config/toml/schema.ts +27 -4
- package/src/server/db/index.ts +2 -1
- package/src/server/db/migrate.ts +21 -1
- package/src/server/db/migrations/015_comments.ts +57 -0
- package/src/server/db/migrations/016_comment_notifications.ts +76 -0
- package/src/server/db/migrations/017_invitation_emails.ts +19 -0
- package/src/server/db/migrations/018_enrollment_source.ts +17 -0
- package/src/server/db/tables.ts +92 -2
- package/src/server/documents/access.ts +17 -0
- package/src/server/documents/images.ts +6 -1
- package/src/server/documents/routes.ts +12 -12
- package/src/server/documents/service.ts +19 -5
- package/src/server/documents/summary.ts +15 -0
- package/src/server/documents/versions/routes.ts +7 -8
- package/src/server/documents/versions/service.ts +5 -2
- package/src/server/email/service.ts +8 -2
- package/src/server/email/types.ts +1 -0
- package/src/server/errors/index.ts +48 -3
- package/src/server/index.ts +15 -1
- package/src/server/internal/routes.ts +8 -2
- package/src/server/internal/service.ts +10 -0
- package/src/server/invitations/budget.ts +3 -1
- package/src/server/invitations/index.ts +1 -0
- package/src/server/invitations/links.ts +6 -0
- package/src/server/pictures/service.ts +3 -1
- package/src/server/policy/workspace.ts +5 -2
- package/src/server/reports/routes.ts +2 -2
- package/src/server/reports/service.ts +3 -1
- package/src/server/services/routes.ts +2 -2
- package/src/server/sharing/capabilities/service.ts +1 -1
- package/src/server/sharing/document-routes.ts +3 -3
- package/src/server/sharing/invitations/service.ts +3 -4
- package/src/server/sharing/routes.ts +15 -15
- package/src/server/validation.ts +33 -25
- package/src/server/workspaces/members.ts +50 -12
- package/src/server/workspaces/repository.ts +23 -12
- package/src/server/workspaces/routes.ts +8 -8
- package/src/services/app.ts +30 -19
- package/src/services/config.ts +47 -8
- package/src/services/metering.ts +15 -27
- package/src/client/billing.ts +0 -80
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Votre accès à OpenPencil Cloud n’est plus actif.",
|
|
38
38
|
"enrollmentRevoked": "Votre accès à OpenPencil Cloud n’est plus actif.",
|
|
39
39
|
"enrollmentRevokedAction": "Ouvrir OpenPencil",
|
|
40
|
+
"invitationSubject": "Vous pouvez essayer OpenPencil Cloud dès maintenant",
|
|
41
|
+
"invitationHeading": "Cloud est ouvert",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud est ouvert, vous pouvez vous connecter.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud est prêt",
|
|
44
|
+
"invitationWaitlistPreview": "Vous vous êtes inscrit sur la liste d’attente ; Cloud est ouvert.",
|
|
45
|
+
"invitationWaitlistBeta": "C’est encore une bêta : certaines fonctionnalités sont désactivées, et certaines choses vont casser. Quand ça arrive, répondez à cet e-mail pour me le dire, ou {link} si vous préférez. Je lis les deux.",
|
|
46
|
+
"invitationWaitlistThanks": "Merci de vous être inscrit sur la liste d’attente d’OpenPencil Cloud. Voici le seul e-mail que nous vous avions promis : Cloud est ouvert, et vous pouvez vous connecter dès maintenant.",
|
|
47
|
+
"invitationThanks": "Il y a quelque temps, vous avez demandé à essayer OpenPencil Cloud. Merci pour votre curiosité, et pour votre patience. Nous étions encore en train de le tester et nous n’étions pas prêts à laisser entrer qui que ce soit.",
|
|
48
|
+
"invitationBeta": "C’est ouvert maintenant, et vous pouvez vous connecter. C’est encore une bêta : certaines fonctionnalités sont désactivées, et certaines choses vont casser. Quand ça arrive, répondez à cet e-mail pour me le dire, ou {link} si vous préférez. Je lis les deux.",
|
|
49
|
+
"invitationIssueLink": "ouvrez une issue sur GitHub",
|
|
50
|
+
"invitationDesktop": "Pour utiliser Cloud dans l’application de bureau, il vous faut la version bêta, sur la {link}.",
|
|
51
|
+
"invitationDownloadLink": "page de téléchargement",
|
|
52
|
+
"invitationAction": "Ouvrir Cloud",
|
|
53
|
+
"invitationSignatureName": "Danila",
|
|
54
|
+
"invitationSignatureRole": "Fondateur d’OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Nouvelle demande d’accès à OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Nouvelle demande d’accès",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} a demandé l’accès à OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Une clé d’accès a été supprimée de votre compte.",
|
|
101
116
|
"twoStepResetHeading": "La connexion en deux étapes a été réinitialisée",
|
|
102
117
|
"twoStepReset": "Un administrateur a supprimé votre app d’authentification, vos codes de récupération et vos clés d’accès pour que vous puissiez les configurer à nouveau.",
|
|
118
|
+
"signInMethodRemovedHeading": "Méthode de connexion supprimée",
|
|
119
|
+
"signInMethodRemoved": "Un administrateur a supprimé une méthode de connexion de votre compte : {method}.",
|
|
120
|
+
"signInMethodPassword": "mot de passe",
|
|
103
121
|
"twoStepNotYou": "Si ce n’était pas vous, changez votre mot de passe et contactez votre administrateur.",
|
|
104
122
|
"reviewSecurity": "Vérifier la sécurité",
|
|
105
123
|
"storageFullSubject": "Vos fichiers OpenPencil Cloud sont en lecture seule",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Les administrateurs ont examiné votre signalement concernant « {document} » et estimé qu’il n’enfreint pas les règles. Il reste donc tel quel.",
|
|
132
150
|
"reportDisagree": "Si vous n’êtes pas d’accord, écrivez à {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Si vous n’êtes pas d’accord, demandez aux administrateurs du serveur de le réexaminer.",
|
|
152
|
+
"commentMentionSubject": "{author} vous a mentionné dans « {document} »",
|
|
153
|
+
"commentReplySubject": "{author} a répondu dans « {document} »",
|
|
154
|
+
"commentMentionHeading": "Vous avez été mentionné",
|
|
155
|
+
"commentReplyHeading": "Nouvelle réponse",
|
|
156
|
+
"commentMention": "{author} vous a mentionné dans un commentaire sur « {document} » :",
|
|
157
|
+
"commentReply": "{author} a répondu dans une discussion de « {document} » à laquelle vous participez :",
|
|
158
|
+
"commentSomeone": "Quelqu’un",
|
|
159
|
+
"openComment": "Ouvrir le commentaire",
|
|
160
|
+
"commentSettings": "Vous recevez ces e-mails selon vos réglages de notifications. Modifiez-les dans {link}.",
|
|
161
|
+
"commentSettingsLink": "les réglages de votre compte",
|
|
134
162
|
"waitlistSubject": "Confirmez votre place sur la liste d’attente d’OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Confirmez votre adresse e-mail",
|
|
136
164
|
"waitlistPreview": "Un clic pour rejoindre la liste d’attente d’OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Il tuo accesso a OpenPencil Cloud non è più attivo.",
|
|
38
38
|
"enrollmentRevoked": "Il tuo accesso a OpenPencil Cloud non è più attivo.",
|
|
39
39
|
"enrollmentRevokedAction": "Apri OpenPencil",
|
|
40
|
+
"invitationSubject": "Ora puoi provare OpenPencil Cloud",
|
|
41
|
+
"invitationHeading": "Cloud è aperto",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud è aperto e ora puoi accedere.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud è pronto",
|
|
44
|
+
"invitationWaitlistPreview": "Ti sei iscritto alla lista d’attesa; Cloud ora è aperto.",
|
|
45
|
+
"invitationWaitlistBeta": "È ancora una beta: alcune funzioni sono disattivate e qualcosa si romperà. Quando succede, rispondi a questa email e dimmelo, oppure {link} se ti trovi a tuo agio. Leggo entrambi.",
|
|
46
|
+
"invitationWaitlistThanks": "Grazie per esserti iscritto alla lista d’attesa di OpenPencil Cloud. Ecco l’unica email che ti avevamo promesso: Cloud è aperto e puoi accedere già ora.",
|
|
47
|
+
"invitationThanks": "Tempo fa hai chiesto di provare OpenPencil Cloud. Grazie per averlo chiesto e per aver aspettato. Lo stavamo ancora testando e non eravamo pronti a far entrare nessuno.",
|
|
48
|
+
"invitationBeta": "Ora è aperto e puoi accedere. È ancora una beta: alcune funzioni sono disattivate e qualcosa si romperà. Quando succede, rispondi a questa email e dimmelo, oppure {link} se ti trovi a tuo agio. Leggo entrambi.",
|
|
49
|
+
"invitationIssueLink": "apri una issue su GitHub",
|
|
50
|
+
"invitationDesktop": "Per usare Cloud nell’app desktop ti serve la versione beta, dalla {link}.",
|
|
51
|
+
"invitationDownloadLink": "pagina dei download",
|
|
52
|
+
"invitationAction": "Apri Cloud",
|
|
53
|
+
"invitationSignatureName": "Danila",
|
|
54
|
+
"invitationSignatureRole": "Fondatore di OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Nuova richiesta di accesso a OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Nuova richiesta di accesso",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} ha richiesto l’accesso a OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Dal tuo account è stata rimossa una passkey.",
|
|
101
116
|
"twoStepResetHeading": "La verifica in due passaggi è stata reimpostata",
|
|
102
117
|
"twoStepReset": "Un amministratore ha rimosso la tua app di autenticazione, i codici di recupero e le passkey, così puoi configurarli di nuovo.",
|
|
118
|
+
"signInMethodRemovedHeading": "Metodo di accesso rimosso",
|
|
119
|
+
"signInMethodRemoved": "Un amministratore ha rimosso un metodo di accesso dal tuo account: {method}.",
|
|
120
|
+
"signInMethodPassword": "password",
|
|
103
121
|
"twoStepNotYou": "Se non sei stato tu, cambia la password e contatta il tuo amministratore.",
|
|
104
122
|
"reviewSecurity": "Controlla la sicurezza",
|
|
105
123
|
"storageFullSubject": "I tuoi file su OpenPencil Cloud sono in sola lettura",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Gli amministratori hanno esaminato la tua segnalazione su «{document}» e hanno stabilito che non viola le regole, quindi resta com’è.",
|
|
132
150
|
"reportDisagree": "Se non sei d’accordo, scrivi a {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Se non sei d’accordo, chiedi agli amministratori del server di ricontrollarlo.",
|
|
152
|
+
"commentMentionSubject": "{author} ti ha menzionato in «{document}»",
|
|
153
|
+
"commentReplySubject": "{author} ha risposto in «{document}»",
|
|
154
|
+
"commentMentionHeading": "Sei stato menzionato",
|
|
155
|
+
"commentReplyHeading": "Nuova risposta",
|
|
156
|
+
"commentMention": "{author} ti ha menzionato in un commento su «{document}»:",
|
|
157
|
+
"commentReply": "{author} ha risposto in una discussione di «{document}» a cui partecipi:",
|
|
158
|
+
"commentSomeone": "Qualcuno",
|
|
159
|
+
"openComment": "Apri il commento",
|
|
160
|
+
"commentSettings": "Ricevi queste email in base alle impostazioni delle notifiche. Cambiale nelle {link}.",
|
|
161
|
+
"commentSettingsLink": "impostazioni del tuo account",
|
|
134
162
|
"waitlistSubject": "Conferma il tuo posto nella lista d’attesa di OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Conferma la tua email",
|
|
136
164
|
"waitlistPreview": "Un clic per entrare nella lista d’attesa di OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "OpenPencil Cloud へのアクセスは無効になりました。",
|
|
38
38
|
"enrollmentRevoked": "OpenPencil Cloud へのアクセスは無効になりました。",
|
|
39
39
|
"enrollmentRevokedAction": "OpenPencil を開く",
|
|
40
|
+
"invitationSubject": "OpenPencil Cloud を試せるようになりました",
|
|
41
|
+
"invitationHeading": "Cloud を公開しました",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud を公開しました。今すぐサインインできます。",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud の準備ができました",
|
|
44
|
+
"invitationWaitlistPreview": "ウェイトリストにご登録いただいた OpenPencil Cloud が利用できるようになりました。",
|
|
45
|
+
"invitationWaitlistBeta": "まだベータ版のため、一部の機能はオフになっていて、不具合も出るはずです。問題があれば、このメールに返信して教えてください。抵抗がなければ、{link}こともできます。どちらも私が読んでいます。",
|
|
46
|
+
"invitationWaitlistThanks": "OpenPencil Cloud のウェイトリストにご登録いただき、ありがとうございます。お約束していた一度きりのご連絡です。Cloud を公開しました。今すぐサインインできます。",
|
|
47
|
+
"invitationThanks": "少し前に OpenPencil Cloud の利用を申し込んでいただきました。興味を持ってくださったこと、そしてお待ちいただいたことに感謝します。その頃はまだテスト中で、どなたにも使っていただける状態ではありませんでした。",
|
|
48
|
+
"invitationBeta": "現在は公開中で、サインインしていただけます。まだベータ版のため、一部の機能はオフになっていて、不具合も出るはずです。問題があれば、このメールに返信して教えてください。抵抗がなければ、{link}こともできます。どちらも私が読んでいます。",
|
|
49
|
+
"invitationIssueLink": "GitHub で issue を作成する",
|
|
50
|
+
"invitationDesktop": "デスクトップアプリで Cloud を使うには、{link}からベータ版を入手してください。",
|
|
51
|
+
"invitationDownloadLink": "ダウンロードページ",
|
|
52
|
+
"invitationAction": "Cloud を開く",
|
|
53
|
+
"invitationSignatureName": "ダニラ",
|
|
54
|
+
"invitationSignatureRole": "OpenPencil 創業者",
|
|
40
55
|
"enrollmentNotificationSubject": "OpenPencil Cloud への新しいアクセスリクエスト",
|
|
41
56
|
"enrollmentNotificationHeading": "新しいアクセスリクエスト",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} から OpenPencil Cloud へのアクセスリクエストが届きました。",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "アカウントからパスキーが削除されました。",
|
|
101
116
|
"twoStepResetHeading": "2段階認証がリセットされました",
|
|
102
117
|
"twoStepReset": "管理者があなたの認証アプリ、リカバリーコード、パスキーを削除しました。もう一度設定できます。",
|
|
118
|
+
"signInMethodRemovedHeading": "サインイン方法が削除されました",
|
|
119
|
+
"signInMethodRemoved": "管理者があなたのアカウントのサインイン方法を削除しました: {method}",
|
|
120
|
+
"signInMethodPassword": "パスワード",
|
|
103
121
|
"twoStepNotYou": "心当たりがない場合は、パスワードを変更し、管理者に連絡してください。",
|
|
104
122
|
"reviewSecurity": "セキュリティを確認",
|
|
105
123
|
"storageFullSubject": "OpenPencil Cloud のファイルが読み取り専用になりました",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "管理者が「{document}」に関するあなたの報告を確認し、ルールに違反していないと判断しました。そのため、ドキュメントはそのまま残ります。",
|
|
132
150
|
"reportDisagree": "この判断に同意できない場合は、{email} にご連絡ください。",
|
|
133
151
|
"reportDisagreeAdministrators": "この判断に同意できない場合は、サーバーの管理者に再確認を依頼してください。",
|
|
152
|
+
"commentMentionSubject": "{author}さんが「{document}」であなたをメンションしました",
|
|
153
|
+
"commentReplySubject": "{author}さんが「{document}」で返信しました",
|
|
154
|
+
"commentMentionHeading": "メンションされました",
|
|
155
|
+
"commentReplyHeading": "新しい返信",
|
|
156
|
+
"commentMention": "{author}さんが「{document}」のコメントであなたをメンションしました:",
|
|
157
|
+
"commentReply": "{author}さんが、あなたが参加している「{document}」のスレッドに返信しました:",
|
|
158
|
+
"commentSomeone": "だれか",
|
|
159
|
+
"openComment": "コメントを開く",
|
|
160
|
+
"commentSettings": "これらのメールは通知設定に従って届きます。{link}で変更できます。",
|
|
161
|
+
"commentSettingsLink": "アカウント設定",
|
|
134
162
|
"waitlistSubject": "OpenPencil Cloud のウェイトリストへの登録を確認してください",
|
|
135
163
|
"waitlistHeading": "メールアドレスを確認",
|
|
136
164
|
"waitlistPreview": "ワンクリックで OpenPencil Cloud のウェイトリストに登録できます。",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Twój dostęp do OpenPencil Cloud nie jest już aktywny.",
|
|
38
38
|
"enrollmentRevoked": "Twój dostęp do OpenPencil Cloud nie jest już aktywny.",
|
|
39
39
|
"enrollmentRevokedAction": "Otwórz OpenPencil",
|
|
40
|
+
"invitationSubject": "Możesz już wypróbować OpenPencil Cloud",
|
|
41
|
+
"invitationHeading": "Cloud jest otwarty",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud jest otwarty i możesz się już zalogować.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud jest gotowy",
|
|
44
|
+
"invitationWaitlistPreview": "Zapisałeś się na listę oczekujących; Cloud jest już otwarty.",
|
|
45
|
+
"invitationWaitlistBeta": "To wciąż beta: niektóre funkcje są wyłączone, a niektóre rzeczy się zepsują. Kiedy tak się stanie, odpisz na tego maila i daj mi znać albo {link}, jeśli wolisz. Czytam jedno i drugie.",
|
|
46
|
+
"invitationWaitlistThanks": "Dziękuję za zapisanie się na listę oczekujących OpenPencil Cloud. Oto jedyny e-mail, który obiecaliśmy: Cloud jest otwarty i możesz się już zalogować.",
|
|
47
|
+
"invitationThanks": "Dziękuję za zainteresowanie OpenPencil Cloud i za cierpliwość. Kiedy przyszła Twoja prośba o dostęp, wciąż go testowaliśmy i nie byliśmy gotowi nikogo wpuścić.",
|
|
48
|
+
"invitationBeta": "Teraz jest otwarty i możesz się zalogować. To wciąż beta: niektóre funkcje są wyłączone, a niektóre rzeczy się zepsują. Kiedy tak się stanie, odpisz na tego maila i daj mi znać albo {link}, jeśli wolisz. Czytam jedno i drugie.",
|
|
49
|
+
"invitationIssueLink": "zgłoś issue na GitHubie",
|
|
50
|
+
"invitationDesktop": "Żeby używać Cloud w aplikacji na komputer, potrzebujesz wersji beta ze {link}.",
|
|
51
|
+
"invitationDownloadLink": "strony pobierania",
|
|
52
|
+
"invitationAction": "Otwórz Cloud",
|
|
53
|
+
"invitationSignatureName": "Danila",
|
|
54
|
+
"invitationSignatureRole": "Założyciel OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Nowa prośba o dostęp do OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Nowa prośba o dostęp",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} prosi o dostęp do OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Z Twojego konta usunięto klucz dostępu.",
|
|
101
116
|
"twoStepResetHeading": "Zresetowano logowanie dwuetapowe",
|
|
102
117
|
"twoStepReset": "Administrator usunął Twoją aplikację uwierzytelniającą, kody odzyskiwania i klucze dostępu, więc możesz skonfigurować je od nowa.",
|
|
118
|
+
"signInMethodRemovedHeading": "Usunięto metodę logowania",
|
|
119
|
+
"signInMethodRemoved": "Administrator usunął metodę logowania z Twojego konta: {method}.",
|
|
120
|
+
"signInMethodPassword": "hasło",
|
|
103
121
|
"twoStepNotYou": "Jeśli to nie Ty, zmień hasło i skontaktuj się z administratorem.",
|
|
104
122
|
"reviewSecurity": "Sprawdź zabezpieczenia",
|
|
105
123
|
"storageFullSubject": "Twoje pliki w OpenPencil Cloud są tylko do odczytu",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Administratorzy sprawdzili Twoje zgłoszenie dotyczące dokumentu „{document}” i uznali, że nie narusza on zasad, więc pozostaje bez zmian.",
|
|
132
150
|
"reportDisagree": "Jeśli nie zgadzasz się z tą decyzją, napisz na adres {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Jeśli nie zgadzasz się z tą decyzją, poproś administratorów serwera o ponowne sprawdzenie.",
|
|
152
|
+
"commentMentionSubject": "{author} wspomniał(a) o Tobie w „{document}”",
|
|
153
|
+
"commentReplySubject": "{author} odpowiedział(a) w „{document}”",
|
|
154
|
+
"commentMentionHeading": "Ktoś o Tobie wspomniał",
|
|
155
|
+
"commentReplyHeading": "Nowa odpowiedź",
|
|
156
|
+
"commentMention": "{author} wspomniał(a) o Tobie w komentarzu do „{document}”:",
|
|
157
|
+
"commentReply": "{author} odpowiedział(a) w wątku dokumentu „{document}”, w którym uczestniczysz:",
|
|
158
|
+
"commentSomeone": "Ktoś",
|
|
159
|
+
"openComment": "Otwórz komentarz",
|
|
160
|
+
"commentSettings": "Te e-maile dostajesz zgodnie z ustawieniami powiadomień. Zmienisz je w {link}.",
|
|
161
|
+
"commentSettingsLink": "ustawieniach konta",
|
|
134
162
|
"waitlistSubject": "Potwierdź swoje miejsce na liście oczekujących OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Potwierdź adres e-mail",
|
|
136
164
|
"waitlistPreview": "Jedno kliknięcie, aby dołączyć do listy oczekujących OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Seu acesso ao OpenPencil Cloud não está mais ativo.",
|
|
38
38
|
"enrollmentRevoked": "Seu acesso ao OpenPencil Cloud não está mais ativo.",
|
|
39
39
|
"enrollmentRevokedAction": "Abrir o OpenPencil",
|
|
40
|
+
"invitationSubject": "Você já pode experimentar o OpenPencil Cloud",
|
|
41
|
+
"invitationHeading": "O Cloud está aberto",
|
|
42
|
+
"invitationPreview": "O OpenPencil Cloud está aberto e você já pode entrar.",
|
|
43
|
+
"invitationWaitlistSubject": "O OpenPencil Cloud está pronto",
|
|
44
|
+
"invitationWaitlistPreview": "Você entrou na lista de espera; o Cloud já está aberto.",
|
|
45
|
+
"invitationWaitlistBeta": "Ainda é uma beta: alguns recursos estão desligados e algumas coisas vão quebrar. Quando acontecer, responda a este e-mail e me conte, ou {link} se preferir. Eu leio os dois.",
|
|
46
|
+
"invitationWaitlistThanks": "Obrigado por entrar na lista de espera do OpenPencil Cloud. Este é o único e-mail que prometemos: o Cloud está aberto, e você já pode entrar.",
|
|
47
|
+
"invitationThanks": "Há um tempo você pediu para experimentar o OpenPencil Cloud. Obrigado pela curiosidade de pedir, e por esperar. Ainda estávamos testando e não estávamos prontos para deixar ninguém entrar.",
|
|
48
|
+
"invitationBeta": "Agora está aberto e você pode entrar. Ainda é uma beta: alguns recursos estão desligados e algumas coisas vão quebrar. Quando acontecer, responda a este e-mail e me conte, ou {link} se preferir. Eu leio os dois.",
|
|
49
|
+
"invitationIssueLink": "abra uma issue no GitHub",
|
|
50
|
+
"invitationDesktop": "Para usar o Cloud no app para computador, você precisa da versão beta da {link}.",
|
|
51
|
+
"invitationDownloadLink": "página de downloads",
|
|
52
|
+
"invitationAction": "Abrir o Cloud",
|
|
53
|
+
"invitationSignatureName": "Danila",
|
|
54
|
+
"invitationSignatureRole": "Fundador do OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Nova solicitação de acesso ao OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Nova solicitação de acesso",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} solicitou acesso ao OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Uma chave de acesso foi removida da sua conta.",
|
|
101
116
|
"twoStepResetHeading": "A verificação em duas etapas foi redefinida",
|
|
102
117
|
"twoStepReset": "Um administrador removeu seu app autenticador, seus códigos de recuperação e suas chaves de acesso para que você possa configurá-los novamente.",
|
|
118
|
+
"signInMethodRemovedHeading": "Forma de entrar removida",
|
|
119
|
+
"signInMethodRemoved": "Um administrador removeu uma forma de entrar na sua conta: {method}.",
|
|
120
|
+
"signInMethodPassword": "senha",
|
|
103
121
|
"twoStepNotYou": "Se não foi você, altere sua senha e fale com o administrador.",
|
|
104
122
|
"reviewSecurity": "Revisar segurança",
|
|
105
123
|
"storageFullSubject": "Seus arquivos do OpenPencil Cloud estão somente leitura",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Os administradores analisaram sua denúncia sobre “{document}” e concluíram que ele não viola as regras, então ele continua como está.",
|
|
132
150
|
"reportDisagree": "Se você não concordar, escreva para {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Se você não concordar, peça aos administradores do servidor que analisem novamente.",
|
|
152
|
+
"commentMentionSubject": "{author} mencionou você em “{document}”",
|
|
153
|
+
"commentReplySubject": "{author} respondeu em “{document}”",
|
|
154
|
+
"commentMentionHeading": "Você foi mencionado",
|
|
155
|
+
"commentReplyHeading": "Nova resposta",
|
|
156
|
+
"commentMention": "{author} mencionou você em um comentário em “{document}”:",
|
|
157
|
+
"commentReply": "{author} respondeu em uma conversa de “{document}” da qual você participa:",
|
|
158
|
+
"commentSomeone": "Alguém",
|
|
159
|
+
"openComment": "Abrir o comentário",
|
|
160
|
+
"commentSettings": "Você recebe estes e-mails conforme suas configurações de notificação. Altere-as nas {link}.",
|
|
161
|
+
"commentSettingsLink": "configurações da sua conta",
|
|
134
162
|
"waitlistSubject": "Confirme seu lugar na lista de espera do OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Confirme seu e-mail",
|
|
136
164
|
"waitlistPreview": "Só um clique para entrar na lista de espera do OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "Ваш доступ к OpenPencil Cloud больше не действует.",
|
|
38
38
|
"enrollmentRevoked": "Ваш доступ к OpenPencil Cloud больше не действует.",
|
|
39
39
|
"enrollmentRevokedAction": "Открыть OpenPencil",
|
|
40
|
+
"invitationSubject": "OpenPencil Cloud уже можно попробовать",
|
|
41
|
+
"invitationHeading": "Cloud открыт",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud открыт, можно входить.",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud готов",
|
|
44
|
+
"invitationWaitlistPreview": "Вы записались в лист ожидания; Cloud уже открыт.",
|
|
45
|
+
"invitationWaitlistBeta": "Это пока бета: часть функций выключена, что-то будет ломаться. Когда сломается, просто ответьте на это письмо или {link}, если так удобнее. Я читаю всё.",
|
|
46
|
+
"invitationWaitlistThanks": "Спасибо, что записались в лист ожидания OpenPencil Cloud. Это то единственное письмо, которое мы обещали: Cloud открыт, и вы уже можете войти.",
|
|
47
|
+
"invitationThanks": "Некоторое время назад вы просили доступ к OpenPencil Cloud. Спасибо за интерес и за терпение: тогда мы ещё тестировали его и не были готовы никого пускать.",
|
|
48
|
+
"invitationBeta": "Теперь он открыт, можно входить. Это пока бета: часть функций выключена, что-то будет ломаться. Когда сломается, просто ответьте на это письмо или {link}, если так удобнее. Я читаю всё.",
|
|
49
|
+
"invitationIssueLink": "заведите issue на GitHub",
|
|
50
|
+
"invitationDesktop": "Чтобы пользоваться Cloud в приложении для компьютера, нужна бета-версия со {link}.",
|
|
51
|
+
"invitationDownloadLink": "страницы загрузки",
|
|
52
|
+
"invitationAction": "Открыть Cloud",
|
|
53
|
+
"invitationSignatureName": "Данила",
|
|
54
|
+
"invitationSignatureRole": "Основатель OpenPencil",
|
|
40
55
|
"enrollmentNotificationSubject": "Новая заявка на доступ к OpenPencil Cloud",
|
|
41
56
|
"enrollmentNotificationHeading": "Новая заявка на доступ",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} запрашивает доступ к OpenPencil Cloud.",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "Из вашего аккаунта удалён ключ доступа.",
|
|
101
116
|
"twoStepResetHeading": "Двухэтапный вход сброшен",
|
|
102
117
|
"twoStepReset": "Администратор удалил ваше приложение-аутентификатор, резервные коды и ключи доступа, чтобы вы могли настроить их заново.",
|
|
118
|
+
"signInMethodRemovedHeading": "Способ входа удалён",
|
|
119
|
+
"signInMethodRemoved": "Администратор удалил способ входа в ваш аккаунт: {method}.",
|
|
120
|
+
"signInMethodPassword": "пароль",
|
|
103
121
|
"twoStepNotYou": "Если это были не вы, смените пароль и обратитесь к администратору.",
|
|
104
122
|
"reviewSecurity": "Проверить безопасность",
|
|
105
123
|
"storageFullSubject": "Ваши файлы в OpenPencil Cloud доступны только для чтения",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "Администраторы рассмотрели вашу жалобу на «{document}» и не нашли нарушений правил, поэтому документ остаётся без изменений.",
|
|
132
150
|
"reportDisagree": "Если вы не согласны, напишите на {email}.",
|
|
133
151
|
"reportDisagreeAdministrators": "Если вы не согласны, попросите администраторов сервера проверить документ ещё раз.",
|
|
152
|
+
"commentMentionSubject": "{author} упомянул(а) вас в «{document}»",
|
|
153
|
+
"commentReplySubject": "{author} ответил(а) в «{document}»",
|
|
154
|
+
"commentMentionHeading": "Вас упомянули",
|
|
155
|
+
"commentReplyHeading": "Новый ответ",
|
|
156
|
+
"commentMention": "{author} упомянул(а) вас в комментарии к «{document}»:",
|
|
157
|
+
"commentReply": "{author} ответил(а) в обсуждении «{document}», в котором вы участвуете:",
|
|
158
|
+
"commentSomeone": "Кто-то",
|
|
159
|
+
"openComment": "Открыть комментарий",
|
|
160
|
+
"commentSettings": "Эти письма приходят по вашим настройкам уведомлений. Изменить их можно в {link}.",
|
|
161
|
+
"commentSettingsLink": "настройках аккаунта",
|
|
134
162
|
"waitlistSubject": "Подтвердите место в листе ожидания OpenPencil Cloud",
|
|
135
163
|
"waitlistHeading": "Подтвердите почту",
|
|
136
164
|
"waitlistPreview": "Один клик — и вы в листе ожидания OpenPencil Cloud.",
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
"enrollmentRevokedPreview": "你的 OpenPencil Cloud 访问权限已失效。",
|
|
38
38
|
"enrollmentRevoked": "你的 OpenPencil Cloud 访问权限已失效。",
|
|
39
39
|
"enrollmentRevokedAction": "打开 OpenPencil",
|
|
40
|
+
"invitationSubject": "现在可以试用 OpenPencil Cloud 了",
|
|
41
|
+
"invitationHeading": "Cloud 已开放",
|
|
42
|
+
"invitationPreview": "OpenPencil Cloud 已开放,现在就可以登录。",
|
|
43
|
+
"invitationWaitlistSubject": "OpenPencil Cloud 已就绪",
|
|
44
|
+
"invitationWaitlistPreview": "你加入了候补名单;Cloud 现已开放。",
|
|
45
|
+
"invitationWaitlistBeta": "它还是测试版:有些功能尚未开启,也难免会出问题。遇到问题时,直接回复这封邮件告诉我就行;如果你愿意,也可以{link}。两种方式我都会看。",
|
|
46
|
+
"invitationWaitlistThanks": "感谢你加入 OpenPencil Cloud 的候补名单。这是我们承诺的唯一一封邮件:Cloud 已经开放,你现在就可以登录。",
|
|
47
|
+
"invitationThanks": "不久前你申请试用 OpenPencil Cloud。谢谢你的关注,也谢谢你耐心等待。那时我们还在测试,还没准备好对任何人开放。",
|
|
48
|
+
"invitationBeta": "现在已经开放,你可以登录了。它还是测试版:有些功能尚未开启,也难免会出问题。遇到问题时,直接回复这封邮件告诉我就行;如果你愿意,也可以{link}。两种方式我都会看。",
|
|
49
|
+
"invitationIssueLink": "在 GitHub 上提交 issue",
|
|
50
|
+
"invitationDesktop": "要在桌面应用中使用 Cloud,需要从{link}下载测试版。",
|
|
51
|
+
"invitationDownloadLink": "下载页面",
|
|
52
|
+
"invitationAction": "打开 Cloud",
|
|
53
|
+
"invitationSignatureName": "达尼拉",
|
|
54
|
+
"invitationSignatureRole": "OpenPencil 创始人",
|
|
40
55
|
"enrollmentNotificationSubject": "新的 OpenPencil Cloud 访问申请",
|
|
41
56
|
"enrollmentNotificationHeading": "新的访问申请",
|
|
42
57
|
"enrollmentNotificationPreview": "{email} 申请访问 OpenPencil Cloud。",
|
|
@@ -100,6 +115,9 @@
|
|
|
100
115
|
"passkeyRemoved": "你的账号移除了一个通行密钥。",
|
|
101
116
|
"twoStepResetHeading": "两步验证已重置",
|
|
102
117
|
"twoStepReset": "管理员已移除你的身份验证器应用、恢复码和通行密钥,你可以重新设置。",
|
|
118
|
+
"signInMethodRemovedHeading": "登录方式已移除",
|
|
119
|
+
"signInMethodRemoved": "管理员已从你的账户中移除一种登录方式:{method}。",
|
|
120
|
+
"signInMethodPassword": "密码",
|
|
103
121
|
"twoStepNotYou": "如果不是你本人操作,请修改密码并联系管理员。",
|
|
104
122
|
"reviewSecurity": "查看安全设置",
|
|
105
123
|
"storageFullSubject": "你的 OpenPencil Cloud 文件已变为只读",
|
|
@@ -131,6 +149,16 @@
|
|
|
131
149
|
"reportDismissed": "管理员审核了你对“{document}”的举报,认为它没有违反规则,因此将保持原样。",
|
|
132
150
|
"reportDisagree": "如果你不同意,请发送邮件至 {email}。",
|
|
133
151
|
"reportDisagreeAdministrators": "如果你不同意,请联系服务器管理员重新审核。",
|
|
152
|
+
"commentMentionSubject": "{author} 在“{document}”中提到了你",
|
|
153
|
+
"commentReplySubject": "{author} 在“{document}”中回复了",
|
|
154
|
+
"commentMentionHeading": "有人提到了你",
|
|
155
|
+
"commentReplyHeading": "新回复",
|
|
156
|
+
"commentMention": "{author} 在“{document}”的评论中提到了你:",
|
|
157
|
+
"commentReply": "{author} 在你参与的“{document}”讨论中回复了:",
|
|
158
|
+
"commentSomeone": "有人",
|
|
159
|
+
"openComment": "打开评论",
|
|
160
|
+
"commentSettings": "你会按通知设置收到这些邮件。可在{link}中更改。",
|
|
161
|
+
"commentSettingsLink": "账户设置",
|
|
134
162
|
"waitlistSubject": "确认你在 OpenPencil Cloud 候补名单中的位置",
|
|
135
163
|
"waitlistHeading": "确认你的邮箱",
|
|
136
164
|
"waitlistPreview": "只需点击一下,即可加入 OpenPencil Cloud 候补名单。",
|
package/src/email/messages.ts
CHANGED
|
@@ -52,6 +52,25 @@ export const emailMessageDefaults = {
|
|
|
52
52
|
enrollmentRevokedPreview: 'Your OpenPencil Cloud access is no longer active.',
|
|
53
53
|
enrollmentRevoked: 'Your OpenPencil Cloud access is no longer active.',
|
|
54
54
|
enrollmentRevokedAction: 'Open OpenPencil',
|
|
55
|
+
invitationSubject: 'You can try OpenPencil Cloud now',
|
|
56
|
+
invitationHeading: 'Cloud is open',
|
|
57
|
+
invitationPreview: 'OpenPencil Cloud is open, and you can sign in now.',
|
|
58
|
+
invitationWaitlistSubject: 'OpenPencil Cloud is ready',
|
|
59
|
+
invitationWaitlistPreview: 'You joined the waitlist; Cloud is open now.',
|
|
60
|
+
invitationWaitlistBeta:
|
|
61
|
+
'It’s still a beta: some features are switched off, and some things will break. When they do, reply to this email and tell me, or {link} if you’re comfortable with that. I read both.',
|
|
62
|
+
invitationWaitlistThanks:
|
|
63
|
+
'Thank you for joining the OpenPencil Cloud waitlist. Here’s the one email we promised: Cloud is open, and you can sign in now.',
|
|
64
|
+
invitationThanks:
|
|
65
|
+
'A while ago you asked to try OpenPencil Cloud. Thanks for being curious enough to ask, and for waiting. We were still testing it then and weren’t ready to let anyone in.',
|
|
66
|
+
invitationBeta:
|
|
67
|
+
'It’s open now, and you can sign in. It’s still a beta: some features are switched off, and some things will break. When they do, reply to this email and tell me, or {link} if you’re comfortable with that. I read both.',
|
|
68
|
+
invitationIssueLink: 'open an issue on GitHub',
|
|
69
|
+
invitationDesktop: 'To use Cloud in the desktop app, you need the beta release from the {link}.',
|
|
70
|
+
invitationDownloadLink: 'download page',
|
|
71
|
+
invitationAction: 'Open Cloud',
|
|
72
|
+
invitationSignatureName: 'Danila',
|
|
73
|
+
invitationSignatureRole: 'Founder of OpenPencil',
|
|
55
74
|
|
|
56
75
|
enrollmentNotificationSubject: 'New OpenPencil Cloud access request',
|
|
57
76
|
enrollmentNotificationHeading: 'New access request',
|
|
@@ -132,6 +151,11 @@ export const emailMessageDefaults = {
|
|
|
132
151
|
twoStepResetHeading: 'Two-step sign-in was reset',
|
|
133
152
|
twoStepReset:
|
|
134
153
|
'An administrator removed your authenticator app, recovery codes, and passkeys, so you can set them up again.',
|
|
154
|
+
signInMethodRemovedHeading: 'Sign-in method removed',
|
|
155
|
+
signInMethodRemoved: params(
|
|
156
|
+
'An administrator removed {method} from the ways you sign in to your account.'
|
|
157
|
+
),
|
|
158
|
+
signInMethodPassword: 'your password',
|
|
135
159
|
twoStepNotYou: 'If this wasn’t you, change your password and contact your administrator.',
|
|
136
160
|
reviewSecurity: 'Review security',
|
|
137
161
|
|
|
@@ -186,6 +210,17 @@ export const emailMessageDefaults = {
|
|
|
186
210
|
reportDisagreeAdministrators:
|
|
187
211
|
'If you disagree, ask the server’s administrators to look at it again.',
|
|
188
212
|
|
|
213
|
+
commentMentionSubject: params('{author} mentioned you in “{document}”'),
|
|
214
|
+
commentReplySubject: params('{author} replied in “{document}”'),
|
|
215
|
+
commentMentionHeading: 'You were mentioned',
|
|
216
|
+
commentReplyHeading: 'New reply',
|
|
217
|
+
commentMention: params('{author} mentioned you in a comment on “{document}”:'),
|
|
218
|
+
commentReply: params('{author} replied in a thread you’re part of on “{document}”:'),
|
|
219
|
+
commentSomeone: 'Someone',
|
|
220
|
+
openComment: 'Open the comment',
|
|
221
|
+
commentSettings: 'You get these emails as your notification settings say. Change them in {link}.',
|
|
222
|
+
commentSettingsLink: 'your account settings',
|
|
223
|
+
|
|
189
224
|
waitlistSubject: 'Confirm your place on the OpenPencil Cloud waitlist',
|
|
190
225
|
waitlistHeading: 'Confirm your email',
|
|
191
226
|
waitlistPreview: 'One click to join the OpenPencil Cloud waitlist.',
|
package/src/email/render.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type {
|
|
|
14
14
|
TransactionalEmailKind,
|
|
15
15
|
TransactionalEmailPayloadByKind
|
|
16
16
|
} from './schema'
|
|
17
|
+
import CommentNotification from './templates/CommentNotification.vue'
|
|
17
18
|
import DocumentBlocked from './templates/DocumentBlocked.vue'
|
|
18
19
|
import DocumentInvitation from './templates/DocumentInvitation.vue'
|
|
19
20
|
import DocumentReport from './templates/DocumentReport.vue'
|
|
@@ -23,6 +24,7 @@ import DocumentRestored from './templates/DocumentRestored.vue'
|
|
|
23
24
|
import EmailChangeRequested from './templates/EmailChangeRequested.vue'
|
|
24
25
|
import EmailRoot from './templates/EmailRoot.vue'
|
|
25
26
|
import EmailVerification from './templates/EmailVerification.vue'
|
|
27
|
+
import EnrollmentInvitation from './templates/EnrollmentInvitation.vue'
|
|
26
28
|
import EnrollmentNotification from './templates/EnrollmentNotification.vue'
|
|
27
29
|
import EnrollmentUpdate from './templates/EnrollmentUpdate.vue'
|
|
28
30
|
import NewSignIn from './templates/NewSignIn.vue'
|
|
@@ -80,6 +82,10 @@ const EMAILS: {
|
|
|
80
82
|
props: { kind: 'revoked' },
|
|
81
83
|
subject: (_payload, t) => t.enrollmentRevokedSubject
|
|
82
84
|
},
|
|
85
|
+
'enrollment-invited': {
|
|
86
|
+
component: EnrollmentInvitation,
|
|
87
|
+
subject: (payload, t) => (payload.waitlist ? t.invitationWaitlistSubject : t.invitationSubject)
|
|
88
|
+
},
|
|
83
89
|
'admin-enrollment-notification': {
|
|
84
90
|
component: EnrollmentNotification,
|
|
85
91
|
subject: (_payload, t) => t.enrollmentNotificationSubject
|
|
@@ -123,6 +129,18 @@ const EMAILS: {
|
|
|
123
129
|
'document-report-decided': {
|
|
124
130
|
component: DocumentReportDecided,
|
|
125
131
|
subject: (payload, t) => t.reportDecidedSubject({ document: payload.documentName })
|
|
132
|
+
},
|
|
133
|
+
'comment-notification': {
|
|
134
|
+
component: CommentNotification,
|
|
135
|
+
subject: (payload, t) => {
|
|
136
|
+
const words = {
|
|
137
|
+
author: payload.authorName ?? t.commentSomeone,
|
|
138
|
+
document: payload.documentName
|
|
139
|
+
}
|
|
140
|
+
return payload.reason === 'mention'
|
|
141
|
+
? t.commentMentionSubject(words)
|
|
142
|
+
: t.commentReplySubject(words)
|
|
143
|
+
}
|
|
126
144
|
}
|
|
127
145
|
}
|
|
128
146
|
|
package/src/email/samples.ts
CHANGED
|
@@ -33,12 +33,18 @@ export const EMAIL_SAMPLES: TransactionalEmailContent[] = [
|
|
|
33
33
|
'enrollment-requested',
|
|
34
34
|
'enrollment-approved',
|
|
35
35
|
'enrollment-rejected',
|
|
36
|
-
'enrollment-revoked'
|
|
36
|
+
'enrollment-revoked',
|
|
37
|
+
'enrollment-invited'
|
|
37
38
|
] as const
|
|
38
39
|
).map((kind): TransactionalEmailContent => ({
|
|
39
40
|
kind,
|
|
40
41
|
payload: { name: 'Ada', actionURL: EMAIL_SAMPLE_URL }
|
|
41
42
|
})),
|
|
43
|
+
// The letter to someone from openpencil.dev's waitlist, which gave no name.
|
|
44
|
+
{
|
|
45
|
+
kind: 'enrollment-invited',
|
|
46
|
+
payload: { name: null, actionURL: EMAIL_SAMPLE_URL, waitlist: true }
|
|
47
|
+
},
|
|
42
48
|
{
|
|
43
49
|
kind: 'admin-enrollment-notification',
|
|
44
50
|
payload: {
|
|
@@ -74,6 +80,15 @@ export const EMAIL_SAMPLES: TransactionalEmailContent[] = [
|
|
|
74
80
|
kind: 'two-step-changed',
|
|
75
81
|
payload: { name: 'Ada', change: 'passkey-added', actionURL: EMAIL_SAMPLE_URL }
|
|
76
82
|
},
|
|
83
|
+
{
|
|
84
|
+
kind: 'two-step-changed',
|
|
85
|
+
payload: {
|
|
86
|
+
name: 'Ada',
|
|
87
|
+
change: 'sign-in-method-removed',
|
|
88
|
+
method: 'google',
|
|
89
|
+
actionURL: EMAIL_SAMPLE_URL
|
|
90
|
+
}
|
|
91
|
+
},
|
|
77
92
|
{
|
|
78
93
|
kind: 'document-report',
|
|
79
94
|
payload: {
|
|
@@ -111,5 +126,17 @@ export const EMAIL_SAMPLES: TransactionalEmailContent[] = [
|
|
|
111
126
|
{
|
|
112
127
|
kind: 'document-report-decided',
|
|
113
128
|
payload: { documentName: 'Homepage', outcome: 'blocked', contactEmail: 'abuse@example.com' }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
kind: 'comment-notification',
|
|
132
|
+
payload: {
|
|
133
|
+
name: 'Ada',
|
|
134
|
+
authorName: 'Grace',
|
|
135
|
+
documentName: 'Homepage',
|
|
136
|
+
reason: 'mention',
|
|
137
|
+
excerpt: '@Ada can we tighten the heading before launch?',
|
|
138
|
+
actionURL: EMAIL_SAMPLE_URL,
|
|
139
|
+
settingsURL: EMAIL_SAMPLE_URL
|
|
140
|
+
}
|
|
114
141
|
}
|
|
115
142
|
]
|
package/src/email/schema.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type TransactionalEmailKind =
|
|
|
13
13
|
| 'enrollment-approved'
|
|
14
14
|
| 'enrollment-rejected'
|
|
15
15
|
| 'enrollment-revoked'
|
|
16
|
+
| 'enrollment-invited'
|
|
16
17
|
| 'email-verification'
|
|
17
18
|
| 'password-reset'
|
|
18
19
|
| 'password-changed'
|
|
@@ -25,6 +26,7 @@ export type TransactionalEmailKind =
|
|
|
25
26
|
| 'document-restored'
|
|
26
27
|
| 'document-report-received'
|
|
27
28
|
| 'document-report-decided'
|
|
29
|
+
| 'comment-notification'
|
|
28
30
|
|
|
29
31
|
const documentInvitationEmailPayloadSchema = v.object({
|
|
30
32
|
/** Null when the inviter's account is gone, so the email says someone invited you. */
|
|
@@ -47,7 +49,9 @@ const workspaceInvitationEmailPayloadSchema = v.object({
|
|
|
47
49
|
const enrollmentEmailPayloadSchema = v.object({
|
|
48
50
|
/** Null when the request named no one, so the email greets no one by name. */
|
|
49
51
|
name: v.nullable(v.string()),
|
|
50
|
-
actionURL: v.string()
|
|
52
|
+
actionURL: v.string(),
|
|
53
|
+
/** An invitation letter to someone from openpencil.dev's waitlist, who asked nowhere else. */
|
|
54
|
+
waitlist: v.optional(v.literal(true))
|
|
51
55
|
})
|
|
52
56
|
|
|
53
57
|
const adminEnrollmentNotificationPayloadSchema = v.object({
|
|
@@ -104,6 +108,22 @@ const documentReportDecidedPayloadSchema = v.object({
|
|
|
104
108
|
contactEmail: v.nullable(v.pipe(v.string(), v.email()))
|
|
105
109
|
})
|
|
106
110
|
|
|
111
|
+
/** To someone a comment names, or who takes part in its thread: what it says, and where. */
|
|
112
|
+
const commentNotificationPayloadSchema = v.object({
|
|
113
|
+
/** The recipient's name, or null when the account has none. */
|
|
114
|
+
name: v.nullable(v.string()),
|
|
115
|
+
/** Who wrote the comment, or null when the account has no name. */
|
|
116
|
+
authorName: v.nullable(v.string()),
|
|
117
|
+
documentName: v.string(),
|
|
118
|
+
/** The comment names the recipient, or answers a thread they take part in. */
|
|
119
|
+
reason: v.picklist(['mention', 'reply']),
|
|
120
|
+
/** The start of what the comment says. */
|
|
121
|
+
excerpt: v.string(),
|
|
122
|
+
actionURL: v.string(),
|
|
123
|
+
/** Where the recipient chooses which comments they hear about. */
|
|
124
|
+
settingsURL: v.string()
|
|
125
|
+
})
|
|
126
|
+
|
|
107
127
|
const authenticationEmailPayloadSchema = v.object({
|
|
108
128
|
name: v.string(),
|
|
109
129
|
actionURL: v.optional(v.string()),
|
|
@@ -133,12 +153,15 @@ export const twoStepChangeSchema = v.picklist([
|
|
|
133
153
|
'authenticator-off',
|
|
134
154
|
'passkey-added',
|
|
135
155
|
'passkey-removed',
|
|
136
|
-
'reset-by-administrator'
|
|
156
|
+
'reset-by-administrator',
|
|
157
|
+
'sign-in-method-removed'
|
|
137
158
|
])
|
|
138
159
|
|
|
139
160
|
const twoStepChangedPayloadSchema = v.object({
|
|
140
161
|
name: v.string(),
|
|
141
162
|
change: twoStepChangeSchema,
|
|
163
|
+
/** For a removed sign-in method, which: `credential` for a password, or a provider. */
|
|
164
|
+
method: v.optional(v.string()),
|
|
142
165
|
actionURL: v.string()
|
|
143
166
|
})
|
|
144
167
|
|
|
@@ -157,6 +180,7 @@ export const transactionalEmailContentSchema = v.variant('kind', [
|
|
|
157
180
|
content('enrollment-approved', enrollmentEmailPayloadSchema),
|
|
158
181
|
content('enrollment-rejected', enrollmentEmailPayloadSchema),
|
|
159
182
|
content('enrollment-revoked', enrollmentEmailPayloadSchema),
|
|
183
|
+
content('enrollment-invited', enrollmentEmailPayloadSchema),
|
|
160
184
|
content('email-verification', authenticationEmailPayloadSchema),
|
|
161
185
|
content('password-reset', authenticationEmailPayloadSchema),
|
|
162
186
|
content('password-changed', authenticationEmailPayloadSchema),
|
|
@@ -168,7 +192,8 @@ export const transactionalEmailContentSchema = v.variant('kind', [
|
|
|
168
192
|
content('document-blocked', documentBlockedPayloadSchema),
|
|
169
193
|
content('document-restored', documentRestoredPayloadSchema),
|
|
170
194
|
content('document-report-received', documentReportReceivedPayloadSchema),
|
|
171
|
-
content('document-report-decided', documentReportDecidedPayloadSchema)
|
|
195
|
+
content('document-report-decided', documentReportDecidedPayloadSchema),
|
|
196
|
+
content('comment-notification', commentNotificationPayloadSchema)
|
|
172
197
|
])
|
|
173
198
|
|
|
174
199
|
/** A transactional email's kind with the payload that kind renders. */
|
|
@@ -216,3 +241,4 @@ export type DocumentReportReceivedPayload = v.InferOutput<
|
|
|
216
241
|
typeof documentReportReceivedPayloadSchema
|
|
217
242
|
>
|
|
218
243
|
export type DocumentReportDecidedPayload = v.InferOutput<typeof documentReportDecidedPayloadSchema>
|
|
244
|
+
export type CommentNotificationPayload = v.InferOutput<typeof commentNotificationPayloadSchema>
|
|
@@ -19,7 +19,8 @@ import { useEmailLocalization } from './localization'
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* The branded email every OpenPencil service sends, in its reader's language and direction: a
|
|
22
|
-
* heading, the paragraphs in the default slot, one button,
|
|
22
|
+
* heading, the paragraphs in the default slot, one button, the sender's name in `signature` when a
|
|
23
|
+
* person writes, and small print in `note`.
|
|
23
24
|
*/
|
|
24
25
|
const { preview, heading, action } = defineProps<{
|
|
25
26
|
/** The line mail clients show beside the subject. */
|
|
@@ -44,6 +45,7 @@ const { locale, dir, t } = useEmailLocalization()
|
|
|
44
45
|
<Section v-if="action" :style="styles.action">
|
|
45
46
|
<Button :href="action.url" :style="styles.button">{{ action.label }}</Button>
|
|
46
47
|
</Section>
|
|
48
|
+
<Text v-if="$slots.signature" :style="styles.signature"><slot name="signature" /></Text>
|
|
47
49
|
<Text v-if="$slots.note" :style="styles.note"><slot name="note" /></Text>
|
|
48
50
|
</Container>
|
|
49
51
|
<Text :style="styles.footer">
|