From fa2a89ec2c521530d4b6e5607cdbcc43e36d5c92 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 27 Oct 2022 15:53:15 +0200 Subject: [PATCH] feat: use new modals --- package-lock.json | 28 +- package.json | 4 +- src/lib/components/dropTabsLink.svelte | 2 +- src/lib/components/eventModal.svelte | 261 +++++++++--------- src/lib/components/modal.svelte | 174 ++++++------ src/lib/components/permissions/custom.svelte | 40 ++- src/lib/components/permissions/team.svelte | 97 +++---- src/lib/components/permissions/user.svelte | 90 +++--- src/lib/layout/wizardExitModal.svelte | 26 +- src/routes/console/account/delete.svelte | 20 +- src/routes/console/createOrganization.svelte | 58 ++-- .../createMember.svelte | 40 ++- .../createProject.svelte | 46 ++- .../deleteMember.svelte | 32 +-- .../deleteOrganization.svelte | 26 +- .../authentication/_appleOAuth.svelte | 93 +++---- .../authentication/_auth0OAuth.svelte | 109 ++++---- .../authentication/_createTeam.svelte | 54 ++-- .../authentication/_createUser.svelte | 71 +++-- .../authentication/_mainOAuth.svelte | 99 +++---- .../authentication/_microsoftOAuth.svelte | 111 ++++---- .../authentication/_oktaOAuth.svelte | 119 ++++---- .../teams/team-[team]/createMembership.svelte | 50 ++-- .../teams/team-[team]/deleteMembership.svelte | 24 +- .../teams/team-[team]/deleteTeam.svelte | 24 +- .../user-[user]/deleteAllMemberships.svelte | 24 +- .../user-[user]/deleteAllSessions.svelte | 24 +- .../user-[user]/deleteMembership.svelte | 24 +- .../user-[user]/deleteSession.svelte | 20 +- .../user-[user]/deleteUser.svelte | 20 +- .../databases/_create.svelte | 56 ++-- .../attributes/+page.svelte | 8 +- .../attributes/createAttribute.svelte | 86 +++--- .../attributes/deleteAttribute.svelte | 25 +- .../attributes/overview.svelte | 30 +- .../document-[document]/delete.svelte | 24 +- .../indexes/createIndex.svelte | 196 +++++++------ .../indexes/deleteIndex.svelte | 24 +- .../settings/deleteCollection.svelte | 24 +- .../database-[database]/create.svelte | 56 ++-- .../database-[database]/delete.svelte | 24 +- .../functions/createVariable.svelte | 56 ++-- .../function-[function]/activate.svelte | 20 +- .../function-[function]/create.svelte | 141 +++++----- .../function-[function]/delete.svelte | 20 +- .../function-[function]/execute.svelte | 34 ++- .../settings/delete.svelte | 26 +- .../settings/uploadVariables.svelte | 27 +- .../overview/keys/[key]/delete.svelte | 20 +- .../overview/keys/create.svelte | 26 +- .../platforms/[platform]/delete.svelte | 20 +- .../settings/deleteProject.svelte | 61 ++-- .../settings/domains/delete.svelte | 24 +- .../settings/webhooks/[webhook]/delete.svelte | 20 +- .../webhooks/[webhook]/regenerate.svelte | 26 +- .../bucket-[bucket]/_deleteBucket.svelte | 20 +- .../bucket-[bucket]/_deleteFile.svelte | 20 +- .../storage/bucket-[bucket]/create.svelte | 56 ++-- .../file-[file]/deleteFile.svelte | 20 +- .../project-[project]/storage/create.svelte | 56 ++-- 60 files changed, 1437 insertions(+), 1619 deletions(-) diff --git a/package-lock.json b/package-lock.json index a01d15417..dda0bcd40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "0.0.1", "dependencies": { "@aw-labs/appwrite-console": "^6.0.0", - "@aw-labs/icons": "0.0.0-64", - "@aw-labs/ui": "0.0.0-64", + "@aw-labs/icons": "0.0.0-66", + "@aw-labs/ui": "0.0.0-66", "@popperjs/core": "^2.11.6", "echarts": "^5.4.0", "prismjs": "^1.29.0", @@ -80,14 +80,14 @@ } }, "node_modules/@aw-labs/icons": { - "version": "0.0.0-64", - "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-64.tgz", - "integrity": "sha512-oSZptwIflTmoaUwotXS5sOQsrYE+aDHVw7/iI+lvC6bGDg1sljKc2/LrevXX2Z3GTG8Wu27aYHVVgVFB5khSPw==" + "version": "0.0.0-66", + "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-66.tgz", + "integrity": "sha512-3r6pxixYZ6Bn9QTUbFk8XYwds+CHz1baRkOVsQ5HoFz6XgvzTWn3/+pvZZ56Ht2Ek//wr4wwI30pdCXaX4QIsA==" }, "node_modules/@aw-labs/ui": { - "version": "0.0.0-64", - "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-64.tgz", - "integrity": "sha512-s6ntXWKssiUjaberQEZYBFQw7+Ipfn8BOcxJ4DqCMSnvllZvnx9HbPynvKWcSpYgRRUr6wUHrEKBTfKQah1SGA==", + "version": "0.0.0-66", + "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-66.tgz", + "integrity": "sha512-5qFISwKzOyZq7Ix5FG/BhVKEcIMXd2/Y8Ioba+ejTQ8B9hzj6FlwxUw7hLT49ZDhU+kxpjJQV51hRpbHGvmEag==", "dependencies": { "@aw-labs/icons": "*", "normalize.css": "^8.0.1", @@ -7790,14 +7790,14 @@ } }, "@aw-labs/icons": { - "version": "0.0.0-64", - "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-64.tgz", - "integrity": "sha512-oSZptwIflTmoaUwotXS5sOQsrYE+aDHVw7/iI+lvC6bGDg1sljKc2/LrevXX2Z3GTG8Wu27aYHVVgVFB5khSPw==" + "version": "0.0.0-66", + "resolved": "https://registry.npmjs.org/@aw-labs/icons/-/icons-0.0.0-66.tgz", + "integrity": "sha512-3r6pxixYZ6Bn9QTUbFk8XYwds+CHz1baRkOVsQ5HoFz6XgvzTWn3/+pvZZ56Ht2Ek//wr4wwI30pdCXaX4QIsA==" }, "@aw-labs/ui": { - "version": "0.0.0-64", - "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-64.tgz", - "integrity": "sha512-s6ntXWKssiUjaberQEZYBFQw7+Ipfn8BOcxJ4DqCMSnvllZvnx9HbPynvKWcSpYgRRUr6wUHrEKBTfKQah1SGA==", + "version": "0.0.0-66", + "resolved": "https://registry.npmjs.org/@aw-labs/ui/-/ui-0.0.0-66.tgz", + "integrity": "sha512-5qFISwKzOyZq7Ix5FG/BhVKEcIMXd2/Y8Ioba+ejTQ8B9hzj6FlwxUw7hLT49ZDhU+kxpjJQV51hRpbHGvmEag==", "requires": { "@aw-labs/icons": "*", "normalize.css": "^8.0.1", diff --git a/package.json b/package.json index b1b88113d..353d2d643 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ }, "dependencies": { "@aw-labs/appwrite-console": "^6.0.0", - "@aw-labs/icons": "0.0.0-64", - "@aw-labs/ui": "0.0.0-64", + "@aw-labs/icons": "0.0.0-66", + "@aw-labs/ui": "0.0.0-66", "@popperjs/core": "^2.11.6", "echarts": "^5.4.0", "prismjs": "^1.29.0", diff --git a/src/lib/components/dropTabsLink.svelte b/src/lib/components/dropTabsLink.svelte index 3816c9efa..f1eb9481a 100644 --- a/src/lib/components/dropTabsLink.svelte +++ b/src/lib/components/dropTabsLink.svelte @@ -5,7 +5,7 @@
  • {#if disabled} - + {:else} diff --git a/src/lib/components/eventModal.svelte b/src/lib/components/eventModal.svelte index 2ab43504f..f812d7ceb 100644 --- a/src/lib/components/eventModal.svelte +++ b/src/lib/components/eventModal.svelte @@ -1,5 +1,5 @@ -
    - - Create Event + + Create Event +
    +

    Choose a service

    +
    + {#each services as service} + { + selectedService = service; + inputData = null; + }}>{service.name} + {/each} +
    +
    + {#if selectedService}
    -

    Choose a service

    +

    Choose a request (optional)

    - {#each services as service} + {#each selectedService.requests as request} { - selectedService = service; + selectedRequest === request + ? (selectedRequest = null) + : (selectedRequest = request); inputData = null; - }}>{service.name} + }}>{request.name} {/each}
    - {#if selectedService} -
    -

    Choose a request (optional)

    -
    - {#each selectedService.requests as request} - { - selectedRequest === request - ? (selectedRequest = null) - : (selectedRequest = request); - inputData = null; - }}>{request.name} - {/each} -
    -
    -
    -

    Choose an event (optional)

    -
    - {#each selectedRequest?.events ?? selectedService?.events as event} - { - selectedEvent === event - ? (selectedEvent = null) - : (selectedEvent = event); - inputData = null; - }}>{event} - {/each} -
    -
    - {#if selectedService?.name === 'users' && !selectedRequest?.name} -
    -

    Choose an attribute (optional)

    -
    - {#each selectedService?.attributes as attribute} - { - selectedAttribute === attribute - ? (selectedAttribute = null) - : (selectedAttribute = attribute); - inputData = null; - }}>{attribute} - {/each} -
    -
    - {/if} - {/if} - {#if showInput} -
    - -
    - - -
    + }}>{event} + {/each}
    - {:else} -
    -
    - {#if inputData} - {inputData} - {:else} - {#each Array.from(eventString.values()) as route, i} - - - {i + 1 < eventString?.size ? '.' : ''} - - {/each} - {/if} +
    + {#if selectedService?.name === 'users' && !selectedRequest?.name} +
    +

    Choose an attribute (optional)

    +
    + {#each selectedService?.attributes as attribute} + { + selectedAttribute === attribute + ? (selectedAttribute = null) + : (selectedAttribute = attribute); + inputData = null; + }}>{attribute} + {/each}
    -
    - - -
    -

    {helper ?? ''}

    {/if} + {/if} + {#if showInput} +
    + +
    + + +
    +
    + {:else} +
    +
    + {#if inputData} + {inputData} + {:else} + {#each Array.from(eventString.values()) as route, i} + + + {i + 1 < eventString?.size ? '.' : ''} + + {/each} + {/if} +
    +
    + + +
    +

    {helper ?? ''}

    +
    + {/if} - - - - - - + + + + + diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index 4a42b7533..fa4365d5c 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -1,9 +1,6 @@ - + -{#if show} - -{/if} + + {#if closable} + + {/if} + + + + {#if $$slots.footer} + + {/if} + + diff --git a/src/lib/components/permissions/custom.svelte b/src/lib/components/permissions/custom.svelte index edda2b7f7..617a63590 100644 --- a/src/lib/components/permissions/custom.svelte +++ b/src/lib/components/permissions/custom.svelte @@ -1,5 +1,5 @@ -{#if show} -
    - - Custom permission + + Custom permission - - - - A permission should be formatted as: user:[USER_ID] or team:[TEAM_ID]/[ROLE]¸ - - + + + + A permission should be formatted as: user:[USER_ID] or team:[TEAM_ID]/[ROLE]¸ + + - - - - - -{/if} + + + +
    diff --git a/src/lib/components/permissions/team.svelte b/src/lib/components/permissions/team.svelte index 53a4a07e3..073acd082 100644 --- a/src/lib/components/permissions/team.svelte +++ b/src/lib/components/permissions/team.svelte @@ -1,5 +1,5 @@ -{#if show} -
    - - Select teams - - {#if results?.teams} -
    - - - {#each results.teams as team (team.$id)} - {@const role = `team:${team.$id}`} - {@const exists = $groups.has(role)} - - - - - {/each} - -
    - onSelection(event, role)} /> - - -
    -
    - {/if} -
    -

    Total results: {results?.total}

    - -
    - - - -
    -
    -{/if} + + Select teams + + {#if results?.teams} +
    + + + {#each results.teams as team (team.$id)} + {@const role = `team:${team.$id}`} + {@const exists = $groups.has(role)} + + + + + {/each} + +
    + onSelection(event, role)} /> + + +
    +
    + {/if} +
    +

    Total results: {results?.total}

    + +
    + + + +
    diff --git a/src/lib/components/permissions/user.svelte b/src/lib/components/permissions/user.svelte index 3aef10173..30a83fcb3 100644 --- a/src/lib/components/permissions/user.svelte +++ b/src/lib/components/permissions/user.svelte @@ -1,5 +1,5 @@ -
    - - Select users - - {#if results?.users} -
    - - - {#each results.users as user (user.$id)} - {@const role = `user:${user.$id}`} - {@const exists = $groups.has(role)} - - - - - {/each} - -
    - onSelection(event, role)} /> - - -
    -
    - {/if} -
    -

    Total results: {results?.total}

    - + + Select users + + {#if results?.users} +
    + + + {#each results.users as user (user.$id)} + {@const role = `user:${user.$id}`} + {@const exists = $groups.has(role)} + + + + + {/each} + +
    + onSelection(event, role)} /> + + +
    - - - -
    - + {/if} +
    +

    Total results: {results?.total}

    + +
    + + + + diff --git a/src/lib/layout/wizardExitModal.svelte b/src/lib/layout/wizardExitModal.svelte index d9ab70bd7..8f29e59d9 100644 --- a/src/lib/layout/wizardExitModal.svelte +++ b/src/lib/layout/wizardExitModal.svelte @@ -1,6 +1,6 @@ -
    - - Exit Process -

    - Are you sure you want to exit from ? All data will be deleted. This action is - irreversible. -

    - - - - -
    -
    + + Exit Process +

    + Are you sure you want to exit from ? All data will be deleted. This action is + irreversible. +

    + + + + +
    diff --git a/src/routes/console/account/delete.svelte b/src/routes/console/account/delete.svelte index f64b36636..0e6a1e46e 100644 --- a/src/routes/console/account/delete.svelte +++ b/src/routes/console/account/delete.svelte @@ -1,6 +1,6 @@ -
    - - Delete Account -

    Are you sure you want to delete your account?

    - - - - -
    -
    + + Delete Account +

    Are you sure you want to delete your account?

    + + + + +
    diff --git a/src/routes/console/createOrganization.svelte b/src/routes/console/createOrganization.svelte index acce5fe55..93caa9649 100644 --- a/src/routes/console/createOrganization.svelte +++ b/src/routes/console/createOrganization.svelte @@ -1,7 +1,7 @@ -
    - - Create New Organization - - - {#if !showCustomId} -
    - (showCustomId = !showCustomId)}> - -
    - {:else} - - {/if} -
    - - - - -
    -
    + + Create New Organization + + + {#if !showCustomId} +
    + (showCustomId = !showCustomId)}> + +
    + {:else} + + {/if} +
    + + + + +
    diff --git a/src/routes/console/organization-[organization]/createMember.svelte b/src/routes/console/organization-[organization]/createMember.svelte index 925708576..8149227b5 100644 --- a/src/routes/console/organization-[organization]/createMember.svelte +++ b/src/routes/console/organization-[organization]/createMember.svelte @@ -1,7 +1,7 @@ -
    - - Invite Member - - - - - - - - - -
    + + Invite Member + + + + + + + + + diff --git a/src/routes/console/organization-[organization]/createProject.svelte b/src/routes/console/organization-[organization]/createProject.svelte index 92160bd86..953552594 100644 --- a/src/routes/console/organization-[organization]/createProject.svelte +++ b/src/routes/console/organization-[organization]/createProject.svelte @@ -1,7 +1,7 @@ -
    - - Create Project - - - {#if !showCustomId} -
    - (showCustomId = !showCustomId)}> - -
    - {:else} - - {/if} -
    - - - - -
    -
    + + Create Project + + + {#if !showCustomId} +
    + (showCustomId = !showCustomId)}> + +
    + {:else} + + {/if} +
    + + + + +
    diff --git a/src/routes/console/organization-[organization]/deleteMember.svelte b/src/routes/console/organization-[organization]/deleteMember.svelte index d40267d58..68e4fcca9 100644 --- a/src/routes/console/organization-[organization]/deleteMember.svelte +++ b/src/routes/console/organization-[organization]/deleteMember.svelte @@ -2,7 +2,7 @@ import { base } from '$app/paths'; import { goto } from '$app/navigation'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import type { Models } from '@aw-labs/appwrite-console'; @@ -40,19 +40,17 @@ $: isUser = selectedMember.userId === $user.$id; -
    - - - {isUser ? 'Leave Organization' : 'Delete Member'} - -

    - {isUser - ? `Are you sure you want to leave '${selectedMember.teamName}'?` - : `Are you sure you want to delete ${selectedMember.userName} from '${selectedMember.teamName}'?`} -

    - - - - -
    -
    + + + {isUser ? 'Leave Organization' : 'Delete Member'} + +

    + {isUser + ? `Are you sure you want to leave '${selectedMember.teamName}'?` + : `Are you sure you want to delete ${selectedMember.userName} from '${selectedMember.teamName}'?`} +

    + + + + +
    diff --git a/src/routes/console/organization-[organization]/deleteOrganization.svelte b/src/routes/console/organization-[organization]/deleteOrganization.svelte index 15c9ca702..d6de9d113 100644 --- a/src/routes/console/organization-[organization]/deleteOrganization.svelte +++ b/src/routes/console/organization-[organization]/deleteOrganization.svelte @@ -1,6 +1,6 @@ -
    - - Delete Organization -

    - Are you sure you want to delete {$organization.name}? All projects ({$organization.total}) - and data associated with this organization will be deleted. This action is irreversible. -

    - - - - -
    -
    + + Delete Organization +

    + Are you sure you want to delete {$organization.name}? All projects ({$organization.total}) + and data associated with this organization will be deleted. This action is irreversible. +

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_appleOAuth.svelte b/src/routes/console/project-[project]/authentication/_appleOAuth.svelte index 181236ece..97f64f1ba 100644 --- a/src/routes/console/project-[project]/authentication/_appleOAuth.svelte +++ b/src/routes/console/project-[project]/authentication/_appleOAuth.svelte @@ -1,14 +1,7 @@ -
    - - {provider.name} OAuth2 Settings - -

    - To use {provider.name} authentication in your application, first fill in this form. For - more info you can - - visit the docs. - -

    - - - - - - - To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. - -
    -

    URI

    - -
    -
    - - - - -
    -
    + + {provider.name} OAuth2 Settings + +

    + To use {provider.name} authentication in your application, first fill in this form. For more + info you can + + visit the docs. + +

    + + + + + + + To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. + +
    +

    URI

    + +
    +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_auth0OAuth.svelte b/src/routes/console/project-[project]/authentication/_auth0OAuth.svelte index 8a07aed3c..b5c85478b 100644 --- a/src/routes/console/project-[project]/authentication/_auth0OAuth.svelte +++ b/src/routes/console/project-[project]/authentication/_auth0OAuth.svelte @@ -1,14 +1,7 @@ -
    - - {provider.name} OAuth2 Settings - -

    - To use {provider.name} authentication in your application, first fill in this form. For - more info you can - visit the docs. -

    - - - - - - To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. - -
    -

    URI

    - -
    -
    - - - - -
    -
    + + {provider.name} OAuth2 Settings + +

    + To use {provider.name} authentication in your application, first fill in this form. For more + info you can + visit the docs. +

    + + + + + + To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. + +
    +

    URI

    + +
    +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_createTeam.svelte b/src/routes/console/project-[project]/authentication/_createTeam.svelte index 88004bd2a..080ed9964 100644 --- a/src/routes/console/project-[project]/authentication/_createTeam.svelte +++ b/src/routes/console/project-[project]/authentication/_createTeam.svelte @@ -1,7 +1,7 @@ -
    - - Create Team - - - {#if !showCustomId} -
    - (showCustomId = !showCustomId)} - > -
    - {:else} - - {/if} -
    - - - - -
    -
    + + Create Team + + + {#if !showCustomId} +
    + (showCustomId = !showCustomId)} + > +
    + {:else} + + {/if} +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_createUser.svelte b/src/routes/console/project-[project]/authentication/_createUser.svelte index f4c6858f4..eba9fba72 100644 --- a/src/routes/console/project-[project]/authentication/_createUser.svelte +++ b/src/routes/console/project-[project]/authentication/_createUser.svelte @@ -7,7 +7,6 @@ InputEmail, InputText, InputPhone, - Form, FormList } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; @@ -53,40 +52,38 @@ } -
    - - Create User - - - - - + + Create User + + + + + - {#if !showDropdown} -
    - (showDropdown = !showDropdown)}> - -
    - {:else} - - {/if} -
    - - - - -
    - + {#if !showDropdown} +
    + (showDropdown = !showDropdown)}> + +
    + {:else} + + {/if} +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_mainOAuth.svelte b/src/routes/console/project-[project]/authentication/_mainOAuth.svelte index 5c6074b32..88b5272cf 100644 --- a/src/routes/console/project-[project]/authentication/_mainOAuth.svelte +++ b/src/routes/console/project-[project]/authentication/_mainOAuth.svelte @@ -1,14 +1,7 @@ -
    - - {provider.name} OAuth2 Settings - -

    - To use {provider.name} authentication in your application, first fill in this form. For - more info you can - visit the docs. -

    - - - - - To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. - -
    -

    URI

    - -
    -
    - - - - -
    -
    + + {provider.name} OAuth2 Settings + +

    + To use {provider.name} authentication in your application, first fill in this form. For more + info you can + visit the docs. +

    + + + + + To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. + +
    +

    URI

    + +
    +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_microsoftOAuth.svelte b/src/routes/console/project-[project]/authentication/_microsoftOAuth.svelte index 695453153..84338c5e4 100644 --- a/src/routes/console/project-[project]/authentication/_microsoftOAuth.svelte +++ b/src/routes/console/project-[project]/authentication/_microsoftOAuth.svelte @@ -1,14 +1,7 @@ -
    - - {provider.name} OAuth2 Settings - -

    - To use {provider.name} authentication in your application, first fill in this form. For - more info you can - - visit the docs. - -

    - - - - - - To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. - -
    -

    URI

    - -
    -
    - - - - -
    -
    + + {provider.name} OAuth2 Settings + +

    + To use {provider.name} authentication in your application, first fill in this form. For more + info you can + + visit the docs. + +

    + + + + + + To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. + +
    +

    URI

    + +
    +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/_oktaOAuth.svelte b/src/routes/console/project-[project]/authentication/_oktaOAuth.svelte index 01ec179b7..6b2bac5d7 100644 --- a/src/routes/console/project-[project]/authentication/_oktaOAuth.svelte +++ b/src/routes/console/project-[project]/authentication/_oktaOAuth.svelte @@ -1,14 +1,7 @@ -
    - - {provider.name} OAuth2 Settings - -

    - To use {provider.name} authentication in your application, first fill in this form. For - more info you can - visit the docs. -

    - - - - - + + {provider.name} OAuth2 Settings + +

    + To use {provider.name} authentication in your application, first fill in this form. For more + info you can + visit the docs. +

    + + + + + - - To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. - -
    -

    URI

    - -
    -
    - - - - -
    - + + To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration. + +
    +

    URI

    + +
    +
    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/teams/team-[team]/createMembership.svelte b/src/routes/console/project-[project]/authentication/teams/team-[team]/createMembership.svelte index 742dde867..155c41180 100644 --- a/src/routes/console/project-[project]/authentication/teams/team-[team]/createMembership.svelte +++ b/src/routes/console/project-[project]/authentication/teams/team-[team]/createMembership.svelte @@ -1,7 +1,7 @@ -
    - - Create Membership - - - - - Roles are used to manage access permissions. You can create any role you want. - + + Create Membership + + + + + Roles are used to manage access permissions. You can create any role you want. + - - - - - - - - + + + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteMembership.svelte b/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteMembership.svelte index 19fafb6a3..30c91e5fc 100644 --- a/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteMembership.svelte +++ b/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteMembership.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import type { Models } from '@aw-labs/appwrite-console'; @@ -34,15 +34,13 @@ }; -
    - - Delete Member -

    - Are you sure you want to delete {selectedMembership.userName} from '{selectedMembership.teamName}'? -

    - - - - -
    -
    + + Delete Member +

    + Are you sure you want to delete {selectedMembership.userName} from '{selectedMembership.teamName}'? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteTeam.svelte b/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteTeam.svelte index e906e405e..5447d9162 100644 --- a/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteTeam.svelte +++ b/src/routes/console/project-[project]/authentication/teams/team-[team]/deleteTeam.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import type { Models } from '@aw-labs/appwrite-console'; @@ -25,16 +25,14 @@ }; -
    - - Delete Team + + Delete Team -

    - Are you sure you want to delete {team.name}? -

    - - - - -
    - +

    + Are you sure you want to delete {team.name}? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/user-[user]/deleteAllMemberships.svelte b/src/routes/console/project-[project]/authentication/user-[user]/deleteAllMemberships.svelte index 0a853040b..58a522966 100644 --- a/src/routes/console/project-[project]/authentication/user-[user]/deleteAllMemberships.svelte +++ b/src/routes/console/project-[project]/authentication/user-[user]/deleteAllMemberships.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { user } from './store'; @@ -32,16 +32,14 @@ //TODO: implelment delete all memberships -
    - - Delete All Memberships + + Delete All Memberships -

    - Are you sure you want to delete {$user.name}'s all memberships? -

    - - - - -
    - +

    + Are you sure you want to delete {$user.name}'s all memberships? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/user-[user]/deleteAllSessions.svelte b/src/routes/console/project-[project]/authentication/user-[user]/deleteAllSessions.svelte index 5dbe05bbb..f80d82f50 100644 --- a/src/routes/console/project-[project]/authentication/user-[user]/deleteAllSessions.svelte +++ b/src/routes/console/project-[project]/authentication/user-[user]/deleteAllSessions.svelte @@ -3,7 +3,7 @@ import { page } from '$app/stores'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { user } from './store'; @@ -28,15 +28,13 @@ }; -
    - - Delete All Sessions -

    - Are you sure you want to delete all of {$user.name}'s sessions? -

    - - - - -
    -
    + + Delete All Sessions +

    + Are you sure you want to delete all of {$user.name}'s sessions? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/user-[user]/deleteMembership.svelte b/src/routes/console/project-[project]/authentication/user-[user]/deleteMembership.svelte index 2b1cb76d6..c398d6120 100644 --- a/src/routes/console/project-[project]/authentication/user-[user]/deleteMembership.svelte +++ b/src/routes/console/project-[project]/authentication/user-[user]/deleteMembership.svelte @@ -4,7 +4,7 @@ import { page } from '$app/stores'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import type { Models } from '@aw-labs/appwrite-console'; @@ -37,15 +37,13 @@ }; -
    - - Delete Member -

    - Are you sure you want to delete {selectedMembership.userName} from '{selectedMembership.teamName}'? -

    - - - - -
    -
    + + Delete Member +

    + Are you sure you want to delete {selectedMembership.userName} from '{selectedMembership.teamName}'? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/user-[user]/deleteSession.svelte b/src/routes/console/project-[project]/authentication/user-[user]/deleteSession.svelte index e346e4ce3..8091070ce 100644 --- a/src/routes/console/project-[project]/authentication/user-[user]/deleteSession.svelte +++ b/src/routes/console/project-[project]/authentication/user-[user]/deleteSession.svelte @@ -3,7 +3,7 @@ import { page } from '$app/stores'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; @@ -27,14 +27,12 @@ }; -
    - - Delete Sessions + + Delete Sessions -

    Are you sure you want to delete this session?

    - - - - -
    - +

    Are you sure you want to delete this session?

    + + + + +
    diff --git a/src/routes/console/project-[project]/authentication/user-[user]/deleteUser.svelte b/src/routes/console/project-[project]/authentication/user-[user]/deleteUser.svelte index 4a8d50daa..737db2113 100644 --- a/src/routes/console/project-[project]/authentication/user-[user]/deleteUser.svelte +++ b/src/routes/console/project-[project]/authentication/user-[user]/deleteUser.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { user } from './store'; @@ -29,13 +29,11 @@ }; -
    - - Delete User -

    Are you sure you want to delete {$user.name} from '{$project.name}'?

    - - - - -
    -
    + + Delete User +

    Are you sure you want to delete {$user.name} from '{$project.name}'?

    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/_create.svelte b/src/routes/console/project-[project]/databases/_create.svelte index 864baecc4..eed9550f6 100644 --- a/src/routes/console/project-[project]/databases/_create.svelte +++ b/src/routes/console/project-[project]/databases/_create.svelte @@ -1,7 +1,7 @@ -
    - - Create Database - - + + Create Database + + - {#if !showCustomId} -
    - (showCustomId = !showCustomId)} - > -
    - {:else} - - {/if} -
    - - - - -
    - + {#if !showCustomId} +
    + (showCustomId = !showCustomId)} + > +
    + {:else} + + {/if} +
    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte index 6e9a8388a..2714091da 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/+page.svelte @@ -120,8 +120,6 @@ -{#if selectedAttribute} - - - -{/if} + + + diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/createAttribute.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/createAttribute.svelte index 716158353..7bca49fd3 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/createAttribute.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/createAttribute.svelte @@ -1,7 +1,7 @@ -
    (submitted = true)}> - - Create Attribute - -
    - - -
    -
    -
    - - ({ value: n.name, label: n.name }))} - id="type" - label="Attribute type" - placeholder="Select type" - bind:value={selectedOption} + (submitted = true)}> + Create Attribute + +
    + - {#if selectedOption} - ($option = null)} /> - {/if} - - - - - - - + +
    +
    +
    + + ({ value: n.name, label: n.name }))} + id="type" + label="Attribute type" + placeholder="Select type" + bind:value={selectedOption} + required /> + {#if selectedOption} + ($option = null)} /> + {/if} +
    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/deleteAttribute.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/deleteAttribute.svelte index 9d4c32e91..32e956dbe 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/deleteAttribute.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/deleteAttribute.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { collection } from '../store'; import type { Attributes } from '../store'; @@ -35,17 +35,14 @@ }; -
    - - Delete Attribute + + Delete Attribute -

    - Are you sure you want to delete '{selectedAttribute.key}' from {$collection.name}? -

    - - - - -
    - +

    + Are you sure you want to delete '{selectedAttribute.key}' from {$collection.name}? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/overview.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/overview.svelte index e6a1d4cb4..ac098f928 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/overview.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/overview.svelte @@ -14,20 +14,18 @@ } -{#if selectedAttribute} - - Overview - - + + Overview + + - {#if selectedAttribute} - - {/if} - - -{/if} + {#if selectedAttribute} + + {/if} + + diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/delete.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/delete.svelte index 490e4a076..7fcc6a4c4 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/delete.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/delete.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { collection } from '../store'; @@ -32,16 +32,14 @@ }; -
    - - Delete Document + + Delete Document -

    - Are you sure you want to delete the document from {$collection.name}? -

    - - - - -
    - +

    + Are you sure you want to delete the document from {$collection.name}? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte index a18878840..c8f444c73 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte @@ -1,6 +1,6 @@ -
    - - Create Index - - - + + Create Index + + + - {#if attributeList?.length} - {#each attributeList as index, i} -
  • -
    - -
    - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
  • - {/each} - {/if} - {#if !attributeList?.length || newAttr} + {#if attributeList?.length} + {#each attributeList as index, i}
  • - @@ -171,9 +119,7 @@
    - @@ -184,32 +130,84 @@
  • - {/if} - -
    - - - - -
    - + {/each} + {/if} + {#if !attributeList?.length || newAttr} +
  • +
    + +
    + +
    +
    +
    + +
    + +
    +
    + +
    + +
    +
  • + {/if} + + + + + + + diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/deleteIndex.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/deleteIndex.svelte index aadfe3296..f4b59ec44 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/deleteIndex.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/indexes/deleteIndex.svelte @@ -1,6 +1,6 @@ -
    - - Delete Index + + Delete Index -

    - Are you sure you want to delete '{selectedIndex.key}' from {$collection.name}? -

    - - - - -
    - +

    + Are you sure you want to delete '{selectedIndex.key}' from {$collection.name}? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/deleteCollection.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/deleteCollection.svelte index d4f8638f8..b5b57fc07 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/deleteCollection.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/settings/deleteCollection.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { collection } from '../store'; @@ -28,16 +28,14 @@ }; -
    - - Delete Collection + + Delete Collection -

    - Are you sure you want to delete {$collection.name}? -

    - - - - -
    - +

    + Are you sure you want to delete {$collection.name}? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/create.svelte b/src/routes/console/project-[project]/databases/database-[database]/create.svelte index ac54188b8..3b99cb29a 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/create.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/create.svelte @@ -3,7 +3,7 @@ import { Modal, CustomId } from '$lib/components'; import { Pill } from '$lib/elements'; - import { Button, InputText, Form, FormList } from '$lib/elements/forms'; + import { Button, InputText, FormList } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { createEventDispatcher } from 'svelte'; @@ -40,32 +40,30 @@ }; -
    - - Create Collection - - + + Create Collection + + - {#if !showCustomId} -
    - (showCustomId = !showCustomId)} - > -
    - {:else} - - {/if} -
    - - - - -
    - + {#if !showCustomId} +
    + (showCustomId = !showCustomId)} + > +
    + {:else} + + {/if} +
    + + + + +
    diff --git a/src/routes/console/project-[project]/databases/database-[database]/delete.svelte b/src/routes/console/project-[project]/databases/database-[database]/delete.svelte index 696eda69d..a82be62a9 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/delete.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/delete.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { database } from './store'; @@ -25,16 +25,14 @@ }; -
    - - Delete Database + + Delete Database -

    - Are you sure you want to delete {$database.name}? -

    - - - - -
    - +

    + Are you sure you want to delete {$database.name}? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/functions/createVariable.svelte b/src/routes/console/project-[project]/functions/createVariable.svelte index 2b76cbcbd..2654e31c6 100644 --- a/src/routes/console/project-[project]/functions/createVariable.svelte +++ b/src/routes/console/project-[project]/functions/createVariable.svelte @@ -1,5 +1,5 @@ -
    - - - {selectedVar ? 'Update' : 'Create'} Variable - - - - - - - - - - -
    + + + {selectedVar ? 'Update' : 'Create'} Variable + + + + + + + + + + diff --git a/src/routes/console/project-[project]/functions/function-[function]/activate.svelte b/src/routes/console/project-[project]/functions/function-[function]/activate.svelte index deeb750ac..0313ab76c 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/activate.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/activate.svelte @@ -1,6 +1,6 @@ -
    - - Activate Deployment -

    Are you sure you want to activate this deployment?

    - - - - -
    -
    + + Activate Deployment +

    Are you sure you want to activate this deployment?

    + + + + +
    diff --git a/src/routes/console/project-[project]/functions/function-[function]/create.svelte b/src/routes/console/project-[project]/functions/function-[function]/create.svelte index 86476dbd6..d06639530 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/create.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/create.svelte @@ -1,11 +1,10 @@ -
    - - Create Deployment - - (mode = Mode.CLI)} selected={mode === Mode.CLI}>CLI - (mode = Mode.Github)} selected={mode === Mode.Github}> - GitHub - Soon! - - (mode = Mode.Manual)} selected={mode === Mode.Manual}>Manual - - {#if mode === Mode.CLI} -

    - You can deploy your function from the Appwrite CLI using Unix, CMD, or PowerShell. - Check out our Documentation to learn more about deploying your functions, or how to install and use the - Appwrite CLI. -

    - - {#each ['Unix', 'CMD', 'PowerShell'] as category} - - {category} - - - {/each} - - {:else if mode === Mode.Github} -
    -
    - github -
    -
    -

    Coming Soon!

    -

    - Creating deployments will be easier than ever with our upcoming Git - Integration. Just set up a repository and we’ll do the rest. -

    -
    + + Create Deployment + + (mode = Mode.CLI)} selected={mode === Mode.CLI}>CLI + (mode = Mode.Github)} selected={mode === Mode.Github}> + GitHub - Soon! + + (mode = Mode.Manual)} selected={mode === Mode.Manual}>Manual + + {#if mode === Mode.CLI} +

    + You can deploy your function from the Appwrite CLI using Unix, CMD, or PowerShell. Check + out our Documentation to learn more about deploying your functions, or how to install and use the + Appwrite CLI. +

    + + {#each ['Unix', 'CMD', 'PowerShell'] as category} + + {category} + + + {/each} + + {:else if mode === Mode.Github} +
    +
    + github
    - {:else if mode === Mode.Manual} - - - - - This deployment will be activated after the build is completed. - +
    +

    Coming Soon!

    +

    + Creating deployments will be easier than ever with our upcoming Git Integration. + Just set up a repository and we’ll do the rest. +

    +
    +
    + {:else if mode === Mode.Manual} + + + + + This deployment will be activated after the build is completed. + + {/if} + + {#if mode === Mode.Manual} + + + {:else} + {/if} - - {#if mode === Mode.Manual} - - - {:else} - - {/if} - -
    - + + diff --git a/src/routes/console/project-[project]/functions/function-[function]/delete.svelte b/src/routes/console/project-[project]/functions/function-[function]/delete.svelte index 2b2562d04..78fa59a2a 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/delete.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/delete.svelte @@ -2,7 +2,7 @@ import { invalidate } from '$app/navigation'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import type { Models } from '@aw-labs/appwrite-console'; @@ -31,13 +31,11 @@ }; -
    - - Delete Deployment -

    Are you sure you want to delete this deployment?

    - - - - -
    -
    + + Delete Deployment +

    Are you sure you want to delete this deployment?

    + + + + +
    diff --git a/src/routes/console/project-[project]/functions/function-[function]/execute.svelte b/src/routes/console/project-[project]/functions/function-[function]/execute.svelte index 4bd3d0e01..093cd4e3a 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/execute.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/execute.svelte @@ -1,6 +1,6 @@ -
    - - Execute Function - - - - Here's an example of some custom data. - {#if showJson} - - {/if} - + + Execute Function + + + + Here's an example of some custom data. + {#if showJson} + + {/if} + - - - - - - + + + + +
    diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte index 854459e13..1ffb3d806 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/delete.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; @@ -28,16 +28,14 @@ }; -
    - - Delete Function -

    - Are you sure you want to delete this function and all associated deployments from your - project? -

    - - - - -
    -
    + + Delete Function +

    + Are you sure you want to delete this function and all associated deployments from your + project? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/uploadVariables.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/uploadVariables.svelte index c8e53a5d4..5c6122235 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/uploadVariables.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/uploadVariables.svelte @@ -3,7 +3,7 @@ import { page } from '$app/stores'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form, InputFile } from '$lib/elements/forms'; + import { Button, InputFile } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { createEventDispatcher } from 'svelte'; @@ -59,19 +59,16 @@ } -
    - - Upload Variables -

    - Upload multiple variables via a .env file that will be passed to your function at - runtime. -

    + + Upload Variables +

    + Upload multiple variables via a .env file that will be passed to your function at runtime. +

    - + - - - - -
    - + + + + +
    diff --git a/src/routes/console/project-[project]/overview/keys/[key]/delete.svelte b/src/routes/console/project-[project]/overview/keys/[key]/delete.svelte index 09d218fca..966b01304 100644 --- a/src/routes/console/project-[project]/overview/keys/[key]/delete.svelte +++ b/src/routes/console/project-[project]/overview/keys/[key]/delete.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import { project } from '../../../store'; @@ -30,14 +30,12 @@ } -
    - - Delete API Key -

    The API Key will be permanently deleted. This action is irreversible.

    + + Delete API Key +

    The API Key will be permanently deleted. This action is irreversible.

    - - - - -
    - + + + + +
    diff --git a/src/routes/console/project-[project]/overview/keys/create.svelte b/src/routes/console/project-[project]/overview/keys/create.svelte index 461abb546..dea215fe2 100644 --- a/src/routes/console/project-[project]/overview/keys/create.svelte +++ b/src/routes/console/project-[project]/overview/keys/create.svelte @@ -2,7 +2,7 @@ import { invalidate } from '$app/navigation'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { InputText, Button, Form, FormList } from '$lib/elements/forms'; + import { InputText, Button, FormList } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import { project } from '../../.../../store'; @@ -29,16 +29,14 @@ } -
    - - Create API Key - - - - - - - - - -
    + + Create API Key + + + + + + + + + diff --git a/src/routes/console/project-[project]/overview/platforms/[platform]/delete.svelte b/src/routes/console/project-[project]/overview/platforms/[platform]/delete.svelte index 600ee1381..3aa450e49 100644 --- a/src/routes/console/project-[project]/overview/platforms/[platform]/delete.svelte +++ b/src/routes/console/project-[project]/overview/platforms/[platform]/delete.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import { project } from '../../../store'; @@ -30,14 +30,12 @@ }; -
    - - Delete Platform -

    The Platform will be permanently deleted. This action is irreversible.

    + + Delete Platform +

    The Platform will be permanently deleted. This action is irreversible.

    - - - - -
    - + + + + +
    diff --git a/src/routes/console/project-[project]/settings/deleteProject.svelte b/src/routes/console/project-[project]/settings/deleteProject.svelte index 79145234a..b2a60018d 100644 --- a/src/routes/console/project-[project]/settings/deleteProject.svelte +++ b/src/routes/console/project-[project]/settings/deleteProject.svelte @@ -2,7 +2,7 @@ import { goto } from '$app/navigation'; import { base } from '$app/paths'; import { Modal } from '$lib/components'; - import { Button, Form, FormList, InputPassword, InputText } from '$lib/elements/forms'; + import { Button, FormList, InputPassword, InputText } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import { project } from '../store'; @@ -30,34 +30,33 @@ }; -
    - - Delete Project -

    - This project will be deleted, along with all of its metadata, stats, and other - resources. This action is irreversible. -

    + + Delete Project +

    + This project will be deleted, along with all of its metadata, stats, and other + resources. This action is irreversible. +

    - - - - - - - - -
    - + + + + + + + + +
    diff --git a/src/routes/console/project-[project]/settings/domains/delete.svelte b/src/routes/console/project-[project]/settings/domains/delete.svelte index b6a504225..64fbadb67 100644 --- a/src/routes/console/project-[project]/settings/domains/delete.svelte +++ b/src/routes/console/project-[project]/settings/domains/delete.svelte @@ -1,6 +1,6 @@ -
    - - Delete Domain -

    - Are you sure you want to delete {selectedDomain.domain} from '{$project.name}'? -

    - - - - -
    -
    + + Delete Domain +

    + Are you sure you want to delete {selectedDomain.domain} from '{$project.name}'? +

    + + + + +
    diff --git a/src/routes/console/project-[project]/settings/webhooks/[webhook]/delete.svelte b/src/routes/console/project-[project]/settings/webhooks/[webhook]/delete.svelte index cc247f027..ef181aaa9 100644 --- a/src/routes/console/project-[project]/settings/webhooks/[webhook]/delete.svelte +++ b/src/routes/console/project-[project]/settings/webhooks/[webhook]/delete.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import { project } from '../../../store'; @@ -30,13 +30,11 @@ } -
    - - Delete Webhook -

    Are you sure you want to delete {$webhook.name} from '{$project.name}'?

    - - - - -
    -
    + + Delete Webhook +

    Are you sure you want to delete {$webhook.name} from '{$project.name}'?

    + + + + +
    diff --git a/src/routes/console/project-[project]/settings/webhooks/[webhook]/regenerate.svelte b/src/routes/console/project-[project]/settings/webhooks/[webhook]/regenerate.svelte index 674d8ce9f..f7ec19762 100644 --- a/src/routes/console/project-[project]/settings/webhooks/[webhook]/regenerate.svelte +++ b/src/routes/console/project-[project]/settings/webhooks/[webhook]/regenerate.svelte @@ -3,7 +3,7 @@ import { page } from '$app/stores'; import { Modal } from '$lib/components'; import { Dependencies } from '$lib/constants'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForConsole } from '$lib/stores/sdk'; import { webhook } from './store'; @@ -29,16 +29,14 @@ } -
    - - Regenerate Key -

    - Are you sure you want to generate a new Signature Key? - You will not be able to recover your current key. -

    - - - - -
    -
    + + Regenerate Key +

    + Are you sure you want to generate a new Signature Key? + You will not be able to recover your current key. +

    + + + + +
    diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteBucket.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteBucket.svelte index 88c565e5b..3952d0d5c 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteBucket.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteBucket.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { bucket } from './store'; @@ -24,13 +24,11 @@ }; -
    - - Delete Bucket -

    Are you sure you want to delete {$bucket.name}?

    - - - - -
    -
    + + Delete Bucket +

    Are you sure you want to delete {$bucket.name}?

    + + + + +
    diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteFile.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteFile.svelte index b21e98870..c8f934069 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteFile.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/_deleteFile.svelte @@ -1,6 +1,6 @@ -
    - - Delete File -

    Are you sure you want to delete {file.name}?

    - - - - -
    -
    + + Delete File +

    Are you sure you want to delete {file.name}?

    + + + + +
    diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte index 28db7bbdd..3a1fee89b 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte @@ -1,5 +1,5 @@ -
    - - Upload File - -
    - -

    Max file size: {calculateSize($bucket.maximumFileSize)}

    -
    + + Upload File + +
    + +

    Max file size: {calculateSize($bucket.maximumFileSize)}

    +
    - {#if !showCustomId} -
    - (showCustomId = !showCustomId)}> - -
    - {:else} - - {/if} -

    Permissions

    - -
    - - - - -
    - + {#if !showCustomId} +
    + (showCustomId = !showCustomId)}> + +
    + {:else} + + {/if} +

    Permissions

    + +
    + + + + +
    diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/deleteFile.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/deleteFile.svelte index af533e7e4..3b8286a38 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/deleteFile.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/file-[file]/deleteFile.svelte @@ -3,7 +3,7 @@ import { base } from '$app/paths'; import { page } from '$app/stores'; import { Modal } from '$lib/components'; - import { Button, Form } from '$lib/elements/forms'; + import { Button } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdkForProject } from '$lib/stores/sdk'; import { file } from './store'; @@ -26,13 +26,11 @@ }; -
    - - Delete File -

    Are you sure you want to delete {$file.name}?

    - - - - -
    -
    + + Delete File +

    Are you sure you want to delete {$file.name}?

    + + + + +
    diff --git a/src/routes/console/project-[project]/storage/create.svelte b/src/routes/console/project-[project]/storage/create.svelte index 8ec10ab1c..0dda02bba 100644 --- a/src/routes/console/project-[project]/storage/create.svelte +++ b/src/routes/console/project-[project]/storage/create.svelte @@ -1,7 +1,7 @@ -
    - - Create Bucket - - + + Create Bucket + + - {#if !showCustomId} -
    - (showCustomId = !showCustomId)}> - -
    - {:else} - - {/if} -
    - - - - -
    - + {#if !showCustomId} +
    + (showCustomId = !showCustomId)}> + +
    + {:else} + + {/if} +
    + + + + +