mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Add domains
This commit is contained in:
1 parent
64d0e1a89c
commit
4687ff329e
4 files changed
+19
No files matched your search
@@ -144,6 +144,7 @@ export enum Click {
|
||||
DatabaseIndexDelete = 'click_index_delete',
|
||||
DatabaseColletionDelete = 'click_collection_delete',
|
||||
DatabaseDatabaseDelete = 'click_database_delete',
|
||||
DomainCreateClick = 'click_domain_create',
|
||||
FilterApplyClick = 'click_apply_filter',
|
||||
FunctionsRedeployClick = 'click_function_redeploy',
|
||||
FunctionsDeploymentDeleteClick = 'click_deployment_delete',
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
import { onMount } from 'svelte';
|
||||
import AddCollaboratorModal from '../../(components)/addCollaboratorModal.svelte';
|
||||
import { protocol } from '$routes/(console)/store';
|
||||
import { Click, trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
export let data;
|
||||
|
||||
@@ -91,6 +92,11 @@
|
||||
<Card.Link
|
||||
radius="s"
|
||||
padding="s"
|
||||
on:click={() => {
|
||||
trackEvent(Click.DomainCreateClick, {
|
||||
source: 'sites_create_finish'
|
||||
});
|
||||
}}
|
||||
href={`${base}/project-${$page.params.project}/sites/site-${data.site.$id}/domains`}>
|
||||
<Layout.Stack gap="s" style="height: 100%">
|
||||
<Layout.Stack
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
import SearchQuery from '$lib/components/searchQuery.svelte';
|
||||
import { app } from '$lib/stores/app';
|
||||
import { RuleType } from '$lib/stores/sdk';
|
||||
import { Click, trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
export let data;
|
||||
|
||||
@@ -43,6 +44,11 @@
|
||||
<Layout.Stack direction="row" justifyContent="space-between">
|
||||
<SearchQuery search={data.search} placeholder="Search sites" />
|
||||
<Button
|
||||
on:click={() => {
|
||||
trackEvent(Click.DomainCreateClick, {
|
||||
source: 'sites_domain_overview'
|
||||
});
|
||||
}}
|
||||
href={`${base}/project-${$page.params.project}/sites/site-${$page.params.site}/domains/add-domain`}>
|
||||
<Icon icon={IconPlus} size="s" />
|
||||
Add domain
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { Link } from '$lib/elements';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { Card, Trim } from '$lib/components';
|
||||
import { Click, trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
export let proxyRuleList: Models.ProxyRuleList;
|
||||
|
||||
@@ -54,6 +55,11 @@
|
||||
<Button
|
||||
secondary
|
||||
size="s"
|
||||
on:click={() => {
|
||||
trackEvent(Click.DomainCreateClick, {
|
||||
source: 'sites_domain_overview'
|
||||
});
|
||||
}}
|
||||
href={`${base}/project-${$page.params.project}/sites/site-${$page.params.site}/domains/add-domain`}>
|
||||
Add domain
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user