mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
add footer
This commit is contained in:
1 parent
f215ec311f
commit
5d314138f2
6 files changed
+67
-17
No files matched your search
Vendored
+3
@@ -1 +1,4 @@
|
||||
/// <reference types="@sveltejs/kit" />
|
||||
declare interface Window {
|
||||
__APP_VERSION__: string;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<ul class="copyright">
|
||||
<li>
|
||||
<a class="link" href="https://github.com/appwrite/appwrite" target="_blank" rel="noopener">
|
||||
<i class="icon-github-circled" />
|
||||
GitHub
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="link" href="https://appwrite.io/discord" target="_blank" rel="noopener">
|
||||
<i class="icon-discord" />
|
||||
Discord
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
class="link"
|
||||
href="https://github.com/appwrite/appwrite/issues/new"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
Open an Issue
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="link" href="https://appwrite.io/docs" target="_blank" rel="noopener">Docs</a>
|
||||
</li>
|
||||
<li>API:0.13.2</li>
|
||||
<li>UI:{typeof window !== 'undefined' ? window.__APP_VERSION__ : ''}</li>
|
||||
</ul>
|
||||
|
||||
<style lang="scss">
|
||||
.copyright {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
</style>
|
||||
@@ -14,22 +14,24 @@
|
||||
|
||||
<div class="console-header">
|
||||
<div class="start">
|
||||
<div class="select">
|
||||
<select on:change={onChange}>
|
||||
{#await sdkForConsole.projects.list() then { projects }}
|
||||
{#each projects as project}
|
||||
<option value={project.$id} selected={currentProject === project.$id}>
|
||||
{project.name}
|
||||
</option>
|
||||
{/each}
|
||||
{/await}
|
||||
</select>
|
||||
<span class="icon-down-open" aria-hidden="true" />
|
||||
</div>
|
||||
{#if currentProject}
|
||||
<div class="select">
|
||||
<select on:change={onChange}>
|
||||
{#await sdkForConsole.projects.list() then { projects }}
|
||||
{#each projects as project}
|
||||
<option value={project.$id} selected={currentProject === project.$id}>
|
||||
{project.name}
|
||||
</option>
|
||||
{/each}
|
||||
{/await}
|
||||
</select>
|
||||
<span class="icon-down-open" aria-hidden="true" />
|
||||
</div>
|
||||
|
||||
<button class="button is-only-icon" aria-label="Create Project">
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</button>
|
||||
<button class="button is-only-icon" aria-label="Create Project">
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="end">
|
||||
{#if $user}
|
||||
|
||||
@@ -61,8 +61,8 @@
|
||||
</div>
|
||||
{/await}
|
||||
</Card>
|
||||
<h1>Platforms</h1>
|
||||
<Card>
|
||||
<h2>Platforms</h2>
|
||||
<article>
|
||||
{#each $project.platforms as platform}
|
||||
<div class="grid">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
import Notifications from '$lib/layout/notifications.svelte';
|
||||
import { browser } from '$app/env';
|
||||
import { app } from '$lib/stores/app';
|
||||
import Footer from '$lib/layout/footer.svelte';
|
||||
|
||||
onMount(async () => {
|
||||
try {
|
||||
@@ -36,4 +37,5 @@
|
||||
<SideNavigation />
|
||||
</svelte:fragment>
|
||||
<slot />
|
||||
<Footer />
|
||||
</Shell>
|
||||
+6
-1
@@ -11,7 +11,12 @@ const config = {
|
||||
prerender: {
|
||||
default: true
|
||||
},
|
||||
trailingSlash: 'always'
|
||||
trailingSlash: 'always',
|
||||
vite: {
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(process.env.npm_package_version)
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user