-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ready endpoints for workers to enterprise
- Loading branch information
1 parent
52ad48a
commit 1ef482e
Showing
5 changed files
with
65 additions
and
47 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 |
---|---|---|
|
@@ -61,6 +61,8 @@ | |
let renewing = false | ||
let opening = false | ||
let to: string = '' | ||
async function reloadKeyrenewalAttemptInfo() { | ||
latestKeyRenewalAttempt = await SettingService.getLatestKeyRenewalAttempt() | ||
} | ||
|
@@ -747,6 +749,30 @@ | |
{:else if setting.fieldType == 'smtp_connect'} | ||
<div class="flex flex-col gap-4 border rounded p-4"> | ||
{#if $values[setting.key]} | ||
<div class="flex gap-4" | ||
><input type="email" bind:value={to} placeholder="[email protected]" /> | ||
<Button | ||
disabled={to == ''} | ||
on:click={async () => { | ||
let smtp = $values[setting.key] | ||
await SettingService.testSmtp({ | ||
requestBody: { | ||
to, | ||
smtp: { | ||
host: smtp['smtp_host'], | ||
username: smtp['smtp_username'], | ||
password: smtp['smtp_password'], | ||
port: smtp['smtp_port'], | ||
from: smtp['smtp_from'], | ||
tls_implicit: smtp['smtp_tls_implicit'], | ||
disable_tls: smtp['smtp_disable_tls'] | ||
} | ||
} | ||
}) | ||
sendUserToast('Test email sent') | ||
}}>Test SMTP settings</Button | ||
></div | ||
> | ||
<div> | ||
<label for="smtp_host" class="block text-sm font-medium">Host</label> | ||
<input | ||
|
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 |
---|---|---|
|
@@ -210,8 +210,6 @@ | |
oauths['snowflake_oauth'].connect_config = connect_config | ||
} | ||
let to: string = '' | ||
async function sendStats() { | ||
await SettingService.sendStats() | ||
sendUserToast('Usage sent') | ||
|
@@ -339,32 +337,6 @@ | |
{/each} | ||
</div> | ||
</div> | ||
{#if category == 'SMTP'} | ||
{@const smtp = $values['smtp_settings']} | ||
<div class="flex gap-4" | ||
><input type="email" bind:value={to} placeholder="[email protected]" /> | ||
<Button | ||
disabled={to == '' || !smtp} | ||
on:click={async () => { | ||
await SettingService.testSmtp({ | ||
requestBody: { | ||
to, | ||
smtp: { | ||
host: smtp['smtp_host'], | ||
username: smtp['smtp_username'], | ||
password: smtp['smtp_password'], | ||
port: smtp['smtp_port'], | ||
from: smtp['smtp_from'], | ||
tls_implicit: smtp['smtp_tls_implicit'], | ||
disable_tls: smtp['smtp_disable_tls'] | ||
} | ||
} | ||
}) | ||
sendUserToast('Test email sent') | ||
}}>Test SMTP settings</Button | ||
></div | ||
> | ||
{/if} | ||
</TabContent> | ||
{/each} | ||
</svelte:fragment> | ||
|