mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
chore: review comments
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# This configuration file was automatically generated by Gitpod.
|
||||
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
|
||||
# and commit this file to your remote git repository to share the goodness with others.
|
||||
|
||||
tasks:
|
||||
- init: npm install && npm run build
|
||||
command: npm run dev
|
||||
@@ -3,7 +3,7 @@ import googleAnalytics from '@analytics/google-analytics';
|
||||
import { get } from 'svelte/store';
|
||||
import { page } from '$app/stores';
|
||||
import { user } from '$lib/stores/user';
|
||||
import { CONSOLE_MODE_SELF_HOSTED } from '$lib/constants';
|
||||
import { Mode } from '$lib/constants';
|
||||
|
||||
const analytics = Analytics({
|
||||
app: 'appwrite',
|
||||
@@ -49,7 +49,7 @@ function sendEventToGrowth(event: string, path: string, data: object = null): vo
|
||||
action: event,
|
||||
label: event,
|
||||
url: window.location.origin + path,
|
||||
account: import.meta.env.VITE_CONSOLE_MODE?.toString() ?? CONSOLE_MODE_SELF_HOSTED,
|
||||
account: import.meta.env.VITE_CONSOLE_MODE?.toString() ?? Mode.SELF_HOSTED,
|
||||
data: {
|
||||
email,
|
||||
name,
|
||||
|
||||
@@ -2,9 +2,10 @@ export const PAGE_LIMIT = 12; // default page limit
|
||||
export const CARD_LIMIT = 6; // default card limit
|
||||
export const INTERVAL = 5 * 60000; // default interval to check for feedback
|
||||
|
||||
/** Constants to identify console mode */
|
||||
export const CONSOLE_MODE_SELF_HOSTED = 'self-hosted';
|
||||
export const CONSOLE_MODE_CLOUD = 'cloud';
|
||||
export enum Mode {
|
||||
CLOUD = 'mode:cloud',
|
||||
SELF_HOSTED = 'mode:self-hosted'
|
||||
}
|
||||
|
||||
export enum Dependencies {
|
||||
ORGANIZATION = 'dependency:organization',
|
||||
|
||||
Reference in New Issue
Block a user