chore: review comments

This commit is contained in:
Christy Jacob
2022-11-22 19:57:20 +00:00
parent 74e16ff8b6
commit a7b15656d1
3 changed files with 13 additions and 5 deletions
+7
View File
@@ -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
+2 -2
View File
@@ -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,
+4 -3
View File
@@ -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',