|
1 | 1 | <script lang="ts"> |
2 | | - import { app } from '$lib/stores/app'; |
3 | | - import AppwriteLogoDark from '$lib/images/appwrite-logo-dark.svg'; |
4 | | - import AppwriteLogoLight from '$lib/images/appwrite-logo-light.svg'; |
5 | 2 | import { Vcs, Client } from '@appwrite.io/console'; |
6 | 3 | import { onMount } from 'svelte'; |
7 | 4 | import { getApiEndpoint } from '$lib/stores/sdk'; |
| 5 | + import { Badge, Layout, Typography } from '@appwrite.io/pink-svelte'; |
| 6 | + import { Button } from '$lib/elements/forms'; |
8 | 7 |
|
9 | 8 | export let data; |
10 | 9 |
|
|
52 | 51 | } |
53 | 52 | </script> |
54 | 53 |
|
55 | | -<section class="container" style="display: grid; place-items: center; min-height: 100vh;"> |
56 | | - <div class="u-flex u-flex-vertical u-cross-center" style="width: 100%"> |
57 | | - <div class="card" style="min-width: 600px; max-width: 100%;"> |
58 | | - <h1 class="heading-level-2">Authorize External Deployment</h1> |
59 | | - <small style="margin-block-start: 8px;display: block;" |
60 | | - >The deployment for pull request <code class="inline-code" |
61 | | - >#{providerPullRequestId}</code> is awaiting approval. When authorized, deployments |
62 | | - will be started. |
63 | | - </small> |
64 | | - |
65 | | - <div class="with-borders" style="margin-block-start: 1rem;display: block;"> |
66 | | - <button disabled={loading} on:click={approveDeployment} class="button" type="button" |
67 | | - >Approve Deployment</button> |
68 | | - </div> |
69 | | - |
70 | | - {#if error} |
71 | | - <p style="margin-block-start: 1rem" class="u-color-text-danger">{error}</p> |
72 | | - {/if} |
73 | | - |
74 | | - {#if success} |
75 | | - <p style="margin-block-start: 1rem" class="u-color-text-success">{success}</p> |
76 | | - {/if} |
77 | | - </div> |
78 | | - <div class="u-gap-4 u-flex u-main-center u-cross-center" style="margin-block-start: 2rem;"> |
79 | | - <span class="text">Powered by</span> |
80 | | - <a |
81 | | - href="https://appwrite.io/" |
82 | | - target="_blank" |
83 | | - style="display: grid;place-items: center;"> |
84 | | - {#if $app.themeInUse === 'dark'} |
85 | | - <img |
86 | | - src={AppwriteLogoDark} |
87 | | - width="120" |
88 | | - class="u-block u-only-dark" |
89 | | - alt="Appwrite Logo" /> |
90 | | - {:else} |
91 | | - <img |
92 | | - src={AppwriteLogoLight} |
93 | | - width="120" |
94 | | - class="u-block u-only-light" |
95 | | - alt="Appwrite Logo" /> |
96 | | - {/if} |
97 | | - </a> |
98 | | - </div> |
99 | | - </div> |
| 54 | +<section class="container" style="display: grid; place-items: center;"> |
| 55 | + <Layout.Stack gap="l" alignItems="center" style="width: 500px;"> |
| 56 | + {#if error} |
| 57 | + <Badge type="error" variant="secondary" content={error} /> |
| 58 | + {/if} |
| 59 | + <Typography.Title size="l" align="center" variant="m-500"> |
| 60 | + The deployment for pull request #{providerPullRequestId} |
| 61 | + is awaiting approval. When authorized, deployments will be started. |
| 62 | + </Typography.Title> |
| 63 | + <Button on:click={approveDeployment} secondary>Approve Deployment</Button> |
| 64 | + </Layout.Stack> |
100 | 65 | </section> |
0 commit comments