diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelte index 004909298..435037fd6 100644 --- a/src/lib/components/navbar.svelte +++ b/src/lib/components/navbar.svelte @@ -23,14 +23,13 @@ Navbar, Icon, Layout, - Link, Tooltip, - Card, ActionMenu, ToggleButton, Button, Avatar, - Typography + Typography, + Popover } from '@appwrite.io/pink-svelte'; import { toggleCommandCenter } from '$lib/commandCenter/commandCenter.svelte'; import { @@ -209,91 +208,79 @@ {isMac() ? '⌘ + K' : 'Ctrl + K'} - { - showAccountMenu = !showAccountMenu; - shouldAnimateThemeToggle = false; - if (showAccountMenu) { - trackEvent(Click.MenuDropDownClick); - } - }}> -
+ +
-
- {#if showAccountMenu} -
- + + + - - -
- - {$user.email} - -
- - Account +
+ + {$user.email} + +
+ + Account - logout()}>Sign out -
- - Theme -
- { - setTimeout(() => { - shouldAnimateThemeToggle = true; - }, 150); - }} - buttons={[ - { - id: 'light', - label: 'Light', - icon: IconSun - }, - { - id: 'dark', - label: 'Dark', - icon: IconMoon - }, - { - id: 'auto', - label: 'System', - icon: IconMode - } - ]}> -
-
+ logout()}>Sign out +
+ + Theme +
+ { + setTimeout(() => { + shouldAnimateThemeToggle = true; + }, 150); + }} + buttons={[ + { + id: 'light', + label: 'Light', + icon: IconSun + }, + { + id: 'dark', + label: 'Dark', + icon: IconMoon + }, + { + id: 'auto', + label: 'System', + icon: IconMode + } + ]}>
- +
- -
- - {/if} +
+
+
@@ -405,24 +392,6 @@ } } - .account-container { - position: absolute; - right: var(--space-7); - top: var(--base-44); - width: 244px; - display: flex; - z-index: 1; - } - - .account-backdrop { - position: absolute; - left: 0; - top: 0; - width: 100vw; - height: 100vh; - background-color: transparent; - } - /* The default drop list has a max-inline width of 280px, which squeezes the support modal. */ :global(.extended-width) { max-inline-size: none; diff --git a/src/routes/(console)/organization-[organization]/createProject.svelte b/src/routes/(console)/organization-[organization]/createProject.svelte index 2e45d77c2..5e70a1acd 100644 --- a/src/routes/(console)/organization-[organization]/createProject.svelte +++ b/src/routes/(console)/organization-[organization]/createProject.svelte @@ -20,7 +20,7 @@ let error: string; let showCustomId = false; let disabled: boolean = false; - let name: string = 'Appwrite project'; + let name: string = 'New project'; async function create() { try { diff --git a/src/routes/(console)/organization-[organization]/createProjectCloud.svelte b/src/routes/(console)/organization-[organization]/createProjectCloud.svelte index fa8dd9975..075f3d4c0 100644 --- a/src/routes/(console)/organization-[organization]/createProjectCloud.svelte +++ b/src/routes/(console)/organization-[organization]/createProjectCloud.svelte @@ -17,7 +17,7 @@ export let showCreateProjectCloud: boolean; let id: string = null; - let name: string = 'Appwrite project'; + let name: string = 'New project'; let region: string = Region.Fra; let error: string = null; diff --git a/src/routes/(console)/organization-[organization]/domains/domain-[domain]/table.svelte b/src/routes/(console)/organization-[organization]/domains/domain-[domain]/table.svelte index 006738f20..8fde81408 100644 --- a/src/routes/(console)/organization-[organization]/domains/domain-[domain]/table.svelte +++ b/src/routes/(console)/organization-[organization]/domains/domain-[domain]/table.svelte @@ -39,12 +39,11 @@ let showDelete = false; let selectedRecord: Models.DnsRecord = null; - function formatRecordName(name: string) { - const limit = 30; + function formatName(name: string, limit: number = 30) { return { - value: name.length > limit ? `${name.slice(0, limit)}...` : name, - truncated: name.length > limit, - whole: name + value: name ? (name.length > limit ? `${name.slice(0, limit)}...` : name) : '-', + truncated: name ? name.length > limit : undefined, + whole: name ?? '-' }; } @@ -65,7 +64,7 @@ {#each $columns as column} {#if column.id === 'name'} - {@const formatted = formatRecordName(record.name)} + {@const formatted = formatName(record.name)} {formatted.value} {:else if column.id === 'comment'} - {record?.comment ?? '-'} + {@const formatted = formatName(record?.comment)} + + {formatted.value} + + {#if showing} + {formatted.whole} + {/if} + + {:else if column.id === '$createdAt'} diff --git a/src/routes/(console)/project-[region]-[project]/overview/platforms/createFlutter.svelte b/src/routes/(console)/project-[region]-[project]/overview/platforms/createFlutter.svelte index 59460df7e..8d0aa74df 100644 --- a/src/routes/(console)/project-[region]-[project]/overview/platforms/createFlutter.svelte +++ b/src/routes/(console)/project-[region]-[project]/overview/platforms/createFlutter.svelte @@ -115,9 +115,11 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.reg projectId, platform, $createPlatform.name, - $createPlatform.key || undefined, + platform === PlatformType.Flutterweb ? undefined : $createPlatform.key || undefined, undefined, - undefined + platform === PlatformType.Flutterweb + ? $createPlatform.hostname || undefined + : undefined ); isPlatformCreated = true; @@ -189,19 +191,35 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.reg bind:value={$createPlatform.name} /> - - - - - {placeholder[platform].tooltip} - - - + {#if platform === PlatformType.Flutterweb} + + + + + {placeholder[platform].tooltip} + + + + {:else} + + + + + {placeholder[platform].tooltip} + + + + {/if}