mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: remove secret
This commit is contained in:
1 parent
01a6760a67
commit
f2583d36c6
3 files changed
+76
-95
No files matched your search
+10
-44
@@ -8,16 +8,8 @@
|
||||
import { Wizard } from '$lib/layout';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import {
|
||||
Fieldset,
|
||||
Layout,
|
||||
Icon,
|
||||
Typography,
|
||||
Input,
|
||||
Tag,
|
||||
Selector
|
||||
} from '@appwrite.io/pink-svelte';
|
||||
import { IconGithub, IconExternalLink, IconPencil } from '@appwrite.io/pink-icons-svelte';
|
||||
import { Fieldset, Layout, Icon, Input, Tag } from '@appwrite.io/pink-svelte';
|
||||
import { IconGithub, IconPencil } from '@appwrite.io/pink-icons-svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import { ID, Runtime } from '@appwrite.io/console';
|
||||
import { CustomId } from '$lib/components';
|
||||
@@ -27,6 +19,7 @@
|
||||
import type { PageData } from './$types';
|
||||
import { getLatestTag } from '$lib/helpers/github';
|
||||
import { writable } from 'svelte/store';
|
||||
import Link from '$lib/elements/link.svelte';
|
||||
|
||||
let {
|
||||
data
|
||||
@@ -172,25 +165,19 @@
|
||||
|
||||
<Wizard
|
||||
title="Deploy function"
|
||||
columnSize="s"
|
||||
column={true}
|
||||
bind:showExitModal
|
||||
href={`${base}/project-${page.params.region}-${page.params.project}/functions/`}
|
||||
confirmExit>
|
||||
<Form onSubmit={create} {isSubmitting}>
|
||||
<Layout.Stack gap="xl">
|
||||
<Card padding="s" radius="s">
|
||||
<Layout.Stack gap="m">
|
||||
<Typography.Text variant="m-500" color="--fgcolor-neutral-primary">
|
||||
Repository
|
||||
</Typography.Text>
|
||||
<Layout.Stack direction="row" alignItems="center" gap="s">
|
||||
<Icon icon={IconGithub} size="m" />
|
||||
<Typography.Text variant="m-400">
|
||||
{data.repository.owner}/{data.repository.name}
|
||||
</Typography.Text>
|
||||
<Button secondary size="s" external href={data.repository.url}>
|
||||
<Icon icon={IconExternalLink} slot="end" size="s" />
|
||||
</Button>
|
||||
</Layout.Stack>
|
||||
<Layout.Stack direction="row" alignItems="center" gap="s">
|
||||
<Icon icon={IconGithub} />
|
||||
<Link variant="quiet" href={data.repository.url} size="m" external icon>
|
||||
{data.repository.owner}/{data.repository.name}
|
||||
</Link>
|
||||
</Layout.Stack>
|
||||
</Card>
|
||||
|
||||
@@ -271,27 +258,6 @@
|
||||
required
|
||||
bind:value={variable.value}
|
||||
style="flex: 2" />
|
||||
<Layout.Stack
|
||||
direction="column"
|
||||
gap="s"
|
||||
alignItems="center"
|
||||
style="max-width: 60px;">
|
||||
{#if i === 0}
|
||||
<Typography.Text variant="m-500">Secret</Typography.Text>
|
||||
{/if}
|
||||
|
||||
<Layout.Stack
|
||||
direction="row"
|
||||
gap="s"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
height="2.5rem">
|
||||
<Selector.Checkbox
|
||||
size="s"
|
||||
id={`secret-${i}`}
|
||||
bind:checked={variable.secret} />
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
{/each}
|
||||
</Layout.Stack>
|
||||
|
||||
+1
-30
@@ -8,15 +8,7 @@
|
||||
import { Wizard } from '$lib/layout';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import {
|
||||
Fieldset,
|
||||
Layout,
|
||||
Icon,
|
||||
Typography,
|
||||
Input,
|
||||
Tag,
|
||||
Selector
|
||||
} from '@appwrite.io/pink-svelte';
|
||||
import { Fieldset, Layout, Icon, Typography, Input, Tag } from '@appwrite.io/pink-svelte';
|
||||
import { IconGithub, IconPencil } from '@appwrite.io/pink-icons-svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import Domain from '../domain.svelte';
|
||||
@@ -296,27 +288,6 @@
|
||||
required
|
||||
bind:value={variable.value}
|
||||
style="flex: 2" />
|
||||
<Layout.Stack
|
||||
direction="column"
|
||||
gap="s"
|
||||
alignItems="center"
|
||||
style="max-width: 60px;">
|
||||
{#if i === 0}
|
||||
<Typography.Text variant="m-500">Secret</Typography.Text>
|
||||
{/if}
|
||||
|
||||
<Layout.Stack
|
||||
direction="row"
|
||||
gap="s"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
height="2.5rem">
|
||||
<Selector.Checkbox
|
||||
size="s"
|
||||
id={`secret-${i}`}
|
||||
bind:checked={variable.secret} />
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
{/each}
|
||||
</Layout.Stack>
|
||||
|
||||
@@ -11,7 +11,16 @@
|
||||
import { isCloud } from '$lib/system';
|
||||
import { ID, Query, type Models, Region } from '@appwrite.io/console';
|
||||
import { IconGithub, IconPencil, IconPlus } from '@appwrite.io/pink-icons-svelte';
|
||||
import { Card, Divider, Icon, Input, Layout, Tag, Typography } from '@appwrite.io/pink-svelte';
|
||||
import {
|
||||
Badge,
|
||||
Card,
|
||||
Divider,
|
||||
Icon,
|
||||
Input,
|
||||
Layout,
|
||||
Tag,
|
||||
Typography
|
||||
} from '@appwrite.io/pink-svelte';
|
||||
import { filterRegions } from '$lib/helpers/regions';
|
||||
import { loadAvailableRegions } from '$routes/(console)/regions';
|
||||
import { regions as regionsStore } from '$lib/stores/organization';
|
||||
@@ -141,23 +150,9 @@
|
||||
<title>Deploy {data.deploymentData.name} - Appwrite</title>
|
||||
</svelte:head>
|
||||
|
||||
<div
|
||||
style="display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem;">
|
||||
<div style:max-width="592px" style:width="100%">
|
||||
<Layout.Stack gap="xl" alignItems="center">
|
||||
{#if $app.themeInUse === 'dark'}
|
||||
<img
|
||||
src="{base}/images/appwrite-logo-dark.svg"
|
||||
width="150"
|
||||
height="28"
|
||||
alt="Appwrite Logo" />
|
||||
{:else}
|
||||
<img
|
||||
src="{base}/images/appwrite-logo-light.svg"
|
||||
width="150"
|
||||
height="28"
|
||||
alt="Appwrite Logo" />
|
||||
{/if}
|
||||
<div class="auth-bg">
|
||||
<section class="console-container">
|
||||
<div style:max-width="592px" style:width="100%">
|
||||
<Card.Base padding="s" radius="l" style="width: 100%;">
|
||||
<Layout.Stack gap="xl">
|
||||
<Layout.Stack gap="l">
|
||||
@@ -184,7 +179,10 @@
|
||||
</Typography.Text>
|
||||
<Layout.Stack direction="row" gap="xs" wrap="wrap">
|
||||
{#each data.envKeys as envKey}
|
||||
<Tag size="s">{envKey}</Tag>
|
||||
<Badge
|
||||
content={envKey}
|
||||
size="s"
|
||||
variant="secondary" />
|
||||
{/each}
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
@@ -284,6 +282,52 @@
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
</Card.Base>
|
||||
</Layout.Stack>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<footer>
|
||||
{#if $app.themeInUse === 'dark'}
|
||||
<img
|
||||
src="{base}/images/appwrite-logo-dark.svg"
|
||||
width="120"
|
||||
height="22"
|
||||
alt="Appwrite Logo" />
|
||||
{:else}
|
||||
<img
|
||||
src="{base}/images/appwrite-logo-light.svg"
|
||||
width="120"
|
||||
height="22"
|
||||
alt="Appwrite Logo" />
|
||||
{/if}
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
.auth-bg {
|
||||
position: fixed;
|
||||
background: var(--bgcolor-neutral-default, #fff);
|
||||
background-size: cover;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
section {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
footer {
|
||||
padding: 2rem 1rem;
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user