forked from knadh/listmonk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to toggle sending opt-in confirmation. Closes knadh#363.
- Loading branch information
Showing
18 changed files
with
81 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,22 @@ | |
placeholder='https://listmonk.yoursite.com' :maxlength="300" /> | ||
</b-field> | ||
|
||
<b-field :label="$t('settings.general.logoURL')" label-position="on-border" | ||
:message="$t('settings.general.logoURLHelp')"> | ||
<b-input v-model="data['app.logo_url']" name="app.logo_url" | ||
placeholder='https://listmonk.yoursite.com/logo.png' :maxlength="300" /> | ||
</b-field> | ||
|
||
<b-field :label="$t('settings.general.faviconURL')" label-position="on-border" | ||
:message="$t('settings.general.faviconURLHelp')"> | ||
<b-input v-model="data['app.favicon_url']" name="app.favicon_url" | ||
placeholder='https://listmonk.yoursite.com/favicon.png' :maxlength="300" /> | ||
</b-field> | ||
<div class="columns"> | ||
<div class="column is-6"> | ||
<b-field :label="$t('settings.general.logoURL')" label-position="on-border" | ||
:message="$t('settings.general.logoURLHelp')"> | ||
<b-input v-model="data['app.logo_url']" name="app.logo_url" | ||
placeholder='https://listmonk.yoursite.com/logo.png' :maxlength="300" /> | ||
</b-field> | ||
</div> | ||
<div class="column is-6"> | ||
<b-field :label="$t('settings.general.faviconURL')" label-position="on-border" | ||
:message="$t('settings.general.faviconURLHelp')"> | ||
<b-input v-model="data['app.favicon_url']" name="app.favicon_url" | ||
placeholder='https://listmonk.yoursite.com/favicon.png' :maxlength="300" /> | ||
</b-field> | ||
</div> | ||
</div> | ||
|
||
<hr /> | ||
<b-field :label="$t('settings.general.fromEmail')" label-position="on-border" | ||
|
@@ -25,20 +30,32 @@ | |
placeholder='Listmonk <[email protected]>' | ||
pattern="(.+?)\s<(.+?)@(.+?)>" :maxlength="300" /> | ||
</b-field> | ||
|
||
<b-field :label="$t('settings.general.adminNotifEmails')" label-position="on-border" | ||
:message="$t('settings.general.adminNotifEmailsHelp')"> | ||
<b-taginput v-model="data['app.notify_emails']" name="app.notify_emails" | ||
:before-adding="(v) => v.match(/(.+?)@(.+?)/)" | ||
placeholder='[email protected]' /> | ||
</b-field> | ||
|
||
<b-field :label="$t('settings.general.enablePublicSubPage')" | ||
:message="$t('settings.general.enablePublicSubPageHelp')"> | ||
<b-switch v-model="data['app.enable_public_subscription_page']" | ||
name="app.enable_public_subscription_page" /> | ||
</b-field> | ||
<hr /> | ||
<div class="columns"> | ||
<div class="column is-6"> | ||
<b-field :label="$t('settings.general.enablePublicSubPage')" | ||
:message="$t('settings.general.enablePublicSubPageHelp')"> | ||
<b-switch v-model="data['app.enable_public_subscription_page']" | ||
name="app.enable_public_subscription_page" /> | ||
</b-field> | ||
</div> | ||
<div class="column is-6"> | ||
<b-field :label="$t('settings.general.sendOptinConfirm')" | ||
:message="$t('settings.general.sendOptinConfirmHelp')"> | ||
<b-switch v-model="data['app.send_optin_confirmation']" | ||
name="app.send_optin_confirmation" /> | ||
</b-field> | ||
</div> | ||
</div> | ||
|
||
<hr /> | ||
<b-field :label="$t('settings.general.checkUpdates')" | ||
:message="$t('settings.general.checkUpdatesHelp')"> | ||
<b-switch v-model="data['app.check_updates']" | ||
|
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
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
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 |
---|---|---|
|
@@ -183,6 +183,7 @@ INSERT INTO settings (key, value) VALUES | |
('app.message_sliding_window_duration', '"1h"'), | ||
('app.message_sliding_window_rate', '10000'), | ||
('app.enable_public_subscription_page', 'true'), | ||
('app.send_optin_confirmation', 'true'), | ||
('app.check_updates', 'true'), | ||
('app.notify_emails', '["[email protected]", "[email protected]"]'), | ||
('app.lang', '"en"'), | ||
|