-
Notifications
You must be signed in to change notification settings - Fork 593
/
Copy pathplugins.ts
71 lines (65 loc) · 3.36 KB
/
plugins.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { environment } from '@gauzy/config';
import { ChangelogPlugin } from '@gauzy/plugin-changelog';
import { IntegrationAIPlugin } from '@gauzy/plugin-integration-ai';
import { IntegrationGithubPlugin } from '@gauzy/plugin-integration-github';
import { IntegrationJiraPlugin } from '@gauzy/plugin-integration-jira';
import { IntegrationHubstaffPlugin } from '@gauzy/plugin-integration-hubstaff';
import { IntegrationMakeComPlugin } from '@gauzy/plugin-integration-make-com';
import { IntegrationZapierPlugin } from '@gauzy/plugin-integration-zapier';
import { IntegrationUpworkPlugin } from '@gauzy/plugin-integration-upwork';
import { JitsuAnalyticsPlugin } from '@gauzy/plugin-jitsu-analytics';
import { JobProposalPlugin } from '@gauzy/plugin-job-proposal';
import { JobSearchPlugin } from '@gauzy/plugin-job-search';
import { KnowledgeBasePlugin } from '@gauzy/plugin-knowledge-base';
import { ProductReviewsPlugin } from '@gauzy/plugin-product-reviews';
import { VideosPlugin } from '@gauzy/plugin-videos';
import { RegistryPlugin } from '@gauzy/plugin-registry';
import { SentryTracing as SentryPlugin } from './sentry';
import { PosthogAnalytics as PosthogPlugin } from './posthog';
const { jitsu, sentry, posthog } = environment;
/**
* An array of plugins to be included or used in the codebase.
*/
export const plugins = [
// Includes the SentryPlugin based on the presence of Sentry configuration.
...(sentry && sentry.dsn ? [SentryPlugin] : []),
// Includes the PostHogPlugin based on the presence of PostHog configuration.
...(posthog?.posthogEnabled && posthog?.posthogKey ? [PosthogPlugin] : []),
// Initializes the Jitsu Analytics Plugin by providing a configuration object.
JitsuAnalyticsPlugin.init({
config: {
host: jitsu.serverHost,
writeKey: jitsu.serverWriteKey,
debug: jitsu.debug,
echoEvents: jitsu.echoEvents
}
}),
// Indicates the inclusion or intention to use the ChangelogPlugin in the codebase.
ChangelogPlugin,
// Indicates the inclusion or intention to use the IntegrationAIPlugin in the codebase.
IntegrationAIPlugin,
// Indicates the inclusion or intention to use the IntegrationGithubPlugin in the codebase.
IntegrationGithubPlugin,
// Indicates the inclusion or intention to use the IntegrationHubstaffPlugin in the codebase.
IntegrationHubstaffPlugin,
// Indicates the inclusion or intention to use the IntegrationMakeComPlugin in the codebase.
IntegrationMakeComPlugin,
// Indicates the inclusion or intention to use the IntegrationJiraPlugin in the codebase.
IntegrationJiraPlugin,
// Indicates the inclusion or intention to use the IntegrationUpworkPlugin in the codebase.
IntegrationUpworkPlugin,
// Indicates the inclusion or intention to use the IntegrationZapierPlugin in the codebase.
IntegrationZapierPlugin,
// Indicates the inclusion or intention to use the JobProposalPlugin in the codebase.
JobProposalPlugin,
// Indicates the inclusion or intention to use the JobSearchPlugin in the codebase.
JobSearchPlugin,
// Indicates the inclusion or intention to use the KnowledgeBasePlugin in the codebase.
KnowledgeBasePlugin,
// Indicates the inclusion or intention to use the ProductReviewsPlugin in the codebase.
ProductReviewsPlugin,
// Indicates the inclusion or intention to use the VideosPlugin in the codebase.
VideosPlugin,
// Indicates the inclusion or intention to use the RegistryPlugin in the codebase.
RegistryPlugin
];