-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #688 from CodeForAfrica/chore/update-email-template
Update email template
- Loading branch information
Showing
10 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
Sentry.init({ | ||
const options = { | ||
dsn: process.env.SENTRY_DSN, | ||
environment: process.env.SENTRY_ENV, | ||
environment: process.env.SENTRY_ENV ?? "local", | ||
tracesSampleRate: 1, | ||
debug: false, | ||
}); | ||
}; | ||
|
||
Sentry.init(options); | ||
|
||
export function initSentry() { | ||
Sentry.init(options); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
export function emailKeyTemplate(key: string) { | ||
return `<div> | ||
<p> | ||
Follow the instructions on your <a href="https://s3.amazonaws.com/outline-vpn/invite.html#${encodeURIComponent( | ||
key, | ||
)}">Invitation Link</a> to download the Outline app and get connected. | ||
</p> | ||
<p>Having trouble accessing the invitation link?</p> | ||
<ol> | ||
<li>Copy your access key: ${key}</li> | ||
<li>Follow our invitation instructions on GitHub: https://github.com/Jigsaw-Code/outline-client/blob/master/docs/invitation_instructions.md</li> | ||
</ol> | ||
</div>`; | ||
export function emailKeyTemplate(key: string, name: string) { | ||
return ` | ||
<div> | ||
<p>Hi ${name},</p> | ||
<p>Use the following instructions to set up Outline VPN on your devices:</p> | ||
<ol> | ||
<li>Download and install the Outline app for your device:</li> | ||
<ul> | ||
<li>iOS: <a href="https://itunes.apple.com/app/outline-app/id1356177741">Download from App Store</a></li> | ||
<li>MacOS: <a href="https://itunes.apple.com/app/outline-app/id1356178125">Download from App Store</a></li> | ||
<li>Windows: <a href="https://s3.amazonaws.com/outline-releases/client/windows/stable/Outline-Client.exe">Download</a></li> | ||
<li>Linux: <a href="https://s3.amazonaws.com/outline-releases/client/linux/stable/Outline-Client.AppImage">Download</a></li> | ||
<li>Android: <a href="https://play.google.com/store/apps/details?id=org.outline.android.client">Download from Google Play</a></li> | ||
<li>Android alternative link: <a href="https://s3.amazonaws.com/outline-releases/client/android/stable/Outline-Client.apk">Download APK</a></li> | ||
</ul> | ||
<li>Copy your Access key ${key}</li> | ||
<li>Open the Outline client app. If your access key is auto-detected, tap 'Connect'. If your access key is not auto-detected, paste it in the field, then tap 'Connect'. You are good to go!</li> | ||
</ol> | ||
<p>NOTE: The same key can be used for multiple devices.</p> | ||
</div>`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.