mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: check errors, login page alignment
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
$: if (execution?.errors) {
|
||||
selectedResponse = 'errors';
|
||||
}
|
||||
$: host = execution?.requestHeaders?.find((header) => header.name === 'host')?.value;
|
||||
</script>
|
||||
|
||||
<svelte:window on:keydown={handleKeydown} />
|
||||
@@ -100,11 +101,11 @@
|
||||
{toLocaleDateTime(execution.$createdAt)}
|
||||
</time>
|
||||
</li>
|
||||
{#if execution?.requestHeaders?.host}
|
||||
{#if host}
|
||||
<li class="text">
|
||||
<b>Host</b>
|
||||
<b>Host:</b>
|
||||
<span>
|
||||
{execution.requestHeaders.host}
|
||||
{host}
|
||||
</span>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
@@ -146,7 +146,9 @@
|
||||
class:is-cloud={isCloud}
|
||||
style:--url={`url(${AppwriteCloudBg})`}
|
||||
style:--url-mobile={`url(${AppwriteCloudBgMobile})`}>
|
||||
<div class="container u-flex u-flex-vertical u-cross-center" class:cloud-contents={isCloud}>
|
||||
<div
|
||||
class="container u-flex u-flex-vertical u-cross-center u-main-center"
|
||||
class:cloud-contents={isCloud}>
|
||||
{#if isCloud}
|
||||
<a class="mobile-logo is-only-mobile" href={user ? '/console' : '/'}>
|
||||
<img
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
const quickStart = marketplace.find((template) => template.id === 'starter');
|
||||
const templates = marketplace.filter((template) => template.id !== 'starter').slice(0, 3);
|
||||
|
||||
function connect(event: CustomEvent<Models.Repository>) {
|
||||
function connect(event: CustomEvent<Models.ProviderRepository>) {
|
||||
repository.set(event.detail);
|
||||
wizard.start(CreateGit);
|
||||
}
|
||||
|
||||
@@ -95,8 +95,8 @@
|
||||
{/await}
|
||||
</div>
|
||||
<p class="text u-margin-block-start-8">
|
||||
View your configuration in <a
|
||||
href={$repository.html_url}
|
||||
Visit your repository on <a
|
||||
href={`https://github.com/${$repository.organization}/${$repository.name}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link">GitHub</a
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
let isAssistantEnabled = false;
|
||||
onMount(async () => {
|
||||
const vars = sdk.forConsole.console.variables();
|
||||
const vars = await sdk.forConsole.console.variables();
|
||||
isAssistantEnabled = vars._APP_ASSISTANT_ENABLED === true;
|
||||
});
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ export const project = derived(page, ($page) => $page.data.project as Models.Pro
|
||||
|
||||
export const onboarding = derived(
|
||||
project,
|
||||
($project) => $project.platforms.length === 0 && $project.keys.length === 0
|
||||
($project) => $project?.platforms?.length === 0 && $project?.keys?.length === 0
|
||||
);
|
||||
|
||||
function createStats() {
|
||||
|
||||
Reference in New Issue
Block a user