Skip to content

Commit

Permalink
Merge pull request #384 from appwrite/feat-custom-smtp
Browse files Browse the repository at this point in the history
smtp update
  • Loading branch information
christyjacob4 authored Aug 9, 2023
2 parents 2a7c57e + f2ed6d1 commit adf9315
Show file tree
Hide file tree
Showing 26 changed files with 1,994 additions and 1,847 deletions.
2,627 changes: 794 additions & 1,833 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@analytics/google-analytics": "^1.0.5",
"@appwrite.io/console": "npm:christy-console@^0.3.0",
"@appwrite.io/console": "npm:christy-console@^0.4.0",
"@appwrite.io/pink": "^0.0.6-rc.14",
"@analytics/google-tag-manager": "^0.5.3",
"@popperjs/core": "^2.11.6",
Expand Down
14 changes: 13 additions & 1 deletion src/lib/actions/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export enum Submit {
ProjectUpdateName = 'submit_project_update_name',
ProjectUpdateTeam = 'submit_project_update_team',
ProjectService = 'submit_project_service',
ProjectUpdateSMTP = 'submit_project_update_smtp',
MemberCreate = 'submit_member_create',
MemberDelete = 'submit_member_delete',
MembershipUpdateStatus = 'submit_membership_update_status',
Expand Down Expand Up @@ -221,5 +222,16 @@ export enum Submit {
BucketUpdateExtensions = 'submit_bucket_update_extensions',
FileCreate = 'submit_file_create',
FileDelete = 'submit_file_delete',
FileUpdatePermissions = 'submit_file_update_permissions'
FileUpdatePermissions = 'submit_file_update_permissions',
EmailChangeLocale = 'submit_email_change_locale',
EmailResetTemplate = 'submit_email_reset_template',
EmailUpdateInviteTemplate = 'submit_email_update_invite_template',
EmailUpdateMagicUrlTemplate = 'submit_email_update_magic_url_template',
EmailUpdateRecoveryTemplate = 'submit_email_update_recovery_template',
EmailUpdateVerificationTemplate = 'submit_email_update_verification_template',
SmsChangeLocale = 'submit_sms_change_locale',
SmsResetTemplate = 'submit_sms_reset_template',
SmsUpdateInviteTemplate = 'submit_sms_update_invite_template',
SmsUpdateLoginTemplate = 'submit_sms_update_login_template',
SmsUpdateVerificationTemplate = 'submit_sms_update_verification_template'
}
15 changes: 14 additions & 1 deletion src/lib/components/alert.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
export let dismissible = false;
export let type: 'info' | 'success' | 'warning' | 'error' = 'info';
export let buttons: Buttons[] = [];
export let isAction = false;
export let isStandalone = false;
const dispatch = createEventDispatcher();
</script>

<section
class="alert"
class:is-action={isAction}
class:is-standalone={isStandalone}
class:is-success={type === 'success'}
class:is-warning={type === 'warning'}
class:is-danger={type === 'error'}
Expand Down Expand Up @@ -39,7 +43,7 @@
</h6>
{/if}
<p class="alert-message"><slot /></p>
{#if buttons?.length}
{#if buttons?.length && !isAction}
<div class="alert-buttons u-flex">
{#each buttons as button}
<button class="button is-text" on:click={button.method}>
Expand All @@ -49,5 +53,14 @@
</div>
{/if}
</div>
{#if buttons?.length && isAction}
<div class="alert-buttons u-flex u-gap-16 u-cross-child-center">
{#each buttons as button}
<button class="button is-text" on:click={button.method}>
<span class="text">{button.name}</span>
</button>
{/each}
</div>
{/if}
</div>
</section>
4 changes: 3 additions & 1 deletion src/lib/components/collapsibleItem.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<script lang="ts">
import { clickOnEnter } from '$lib/helpers/a11y';
export let withIndentation = false;
export let open = false;
</script>

<li class="collapsible-item">
<details class="collapsible-wrapper" {open}>
<summary class="collapsible-button">
<summary class="collapsible-button" on:keyup={clickOnEnter} on:click>
<slot name="beforetitle" />
<div>
<span class="text"><slot name="title" /></span>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/id.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export let value: string;
export let event: string = null;
export let centered = true;
function truncateText(node: HTMLElement) {
const MAX_TRIES = 100;
Expand Down Expand Up @@ -49,6 +50,7 @@
<Copy {value} {event}>
<div
class="interactive-text-output is-buttons-on-top"
class:u-text-center={centered}
style:min-inline-size="0"
style:display="inline-flex">
<span
Expand Down
16 changes: 12 additions & 4 deletions src/lib/elements/forms/inputSelectSearch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
export let placeholder = '';
export let required = false;
export let disabled = false;
export let fullWidth = false;
export let autofocus = false;
export let interactiveOutput = false;
// Input value
// stretch is used inside of a flex container to give the element flex:1
export let stretch = true;
export let search = '';
// The actual selected value
export let value: Option['value'];
Expand Down Expand Up @@ -82,9 +84,12 @@
value = option.value;
search = option.label;
// It's not working without this line.
!$$slots.output && (element.value = search);
if ($$slots.output) {
search = '';
} else {
element.value = search;
}
hasFocus = false;
search = '';
dispatch('select', option);
}
Expand All @@ -99,7 +104,10 @@
$: showClearBtn = (hasFocus && search) || value;
</script>

<li class="u-position-relative form-item u-stretch">
<li
class="u-position-relative form-item"
class:u-width-full-line={fullWidth}
class:u-stretch={stretch}>
<DropList
bind:show={hasFocus}
noStyle
Expand Down
3 changes: 2 additions & 1 deletion src/lib/elements/forms/inputTextarea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { FormItem, Helper, Label } from '.';
import NullCheckbox from './nullCheckbox.svelte';
import TextCounter from './textCounter.svelte';
import { clickOnEnter } from '$lib/helpers/a11y';
export let label: string;
export let showLabel = true;
Expand Down Expand Up @@ -60,7 +61,7 @@
{label}
</Label>

<div class="input-text-wrapper">
<div class="input-text-wrapper" on:click on:keyup={clickOnEnter}>
<textarea
{id}
{placeholder}
Expand Down
16 changes: 11 additions & 5 deletions src/routes/console/project-[project]/auth/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@
hasChildren: true,
event: 'teams'
},
{
href: `${path}/security`,
title: 'Security',
event: 'security'
},
{
href: `${path}/templates`,
title: 'Templates',
hasChildren: false,
event: 'templates'
},
{
href: `${path}/usage`,
title: 'Usage',
hasChildren: true,
event: 'usage'
},
{
href: `${path}/security`,
title: 'Security',
event: 'security'
},
{
href: `${path}/settings`,
title: 'Settings',
Expand Down
Loading

0 comments on commit adf9315

Please sign in to comment.