mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add command shortcut, fix sites overview
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
canSeeDatabases,
|
||||
canSeeFunctions,
|
||||
canSeeMessages,
|
||||
canWriteProjects
|
||||
canWriteProjects,
|
||||
canWriteSites
|
||||
} from '$lib/stores/roles';
|
||||
|
||||
onMount(() => {
|
||||
@@ -88,6 +89,15 @@
|
||||
group: 'navigation',
|
||||
disabled: !$canWriteProjects
|
||||
},
|
||||
{
|
||||
label: 'Go to Sites',
|
||||
callback: () => {
|
||||
goto(`${base}/project-${$project.$id}/sites`);
|
||||
},
|
||||
keys: ['g', 'i'],
|
||||
group: 'navigation',
|
||||
disabled: !$canWriteSites
|
||||
},
|
||||
{
|
||||
label: 'Go to Overview',
|
||||
callback: () => {
|
||||
|
||||
@@ -9,7 +9,12 @@
|
||||
import { canWriteSites } from '$lib/stores/roles.js';
|
||||
import { Icon, Popover, Image, ActionMenu } from '@appwrite.io/pink-svelte';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { IconDotsHorizontal, IconRefresh } from '@appwrite.io/pink-icons-svelte';
|
||||
import {
|
||||
IconCog,
|
||||
IconDotsHorizontal,
|
||||
IconGlobeAlt,
|
||||
IconRefresh
|
||||
} from '@appwrite.io/pink-icons-svelte';
|
||||
import { Card } from '@appwrite.io/pink-svelte';
|
||||
import { base } from '$app/paths';
|
||||
import { page } from '$app/stores';
|
||||
@@ -42,6 +47,8 @@
|
||||
|
||||
// TODO: remove
|
||||
const TMPSITEROLES = true;
|
||||
|
||||
$: console.log(data.siteList);
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
@@ -78,6 +85,16 @@
|
||||
<ActionMenu.Item.Button leadingIcon={IconRefresh} disabled>
|
||||
Redeploy
|
||||
</ActionMenu.Item.Button>
|
||||
<ActionMenu.Item.Anchor
|
||||
href={`${base}/project-${$page.params.project}/sites/site-${site.$id}/domains`}
|
||||
leadingIcon={IconGlobeAlt}>
|
||||
Domains
|
||||
</ActionMenu.Item.Anchor>
|
||||
<ActionMenu.Item.Anchor
|
||||
href={`${base}/project-${$page.params.project}/sites/site-${site.$id}/settings`}
|
||||
leadingIcon={IconCog}>
|
||||
Settings
|
||||
</ActionMenu.Item.Anchor>
|
||||
</ActionMenu.Root>
|
||||
</svelte:fragment>
|
||||
</Popover>
|
||||
|
||||
Reference in New Issue
Block a user