-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathresources.ts
More file actions
98 lines (86 loc) · 2.74 KB
/
resources.ts
File metadata and controls
98 lines (86 loc) · 2.74 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/**
* CodeQL learning resources utilities.
*
* Resource files are imported as static string literals at build time via
* esbuild's `loader: { '.md': 'text' }` configuration. This ensures they
* are embedded in the bundled JS and available at runtime regardless of the
* execution layout (monorepo source, npm install, or VSIX bundle).
*/
// Static imports — esbuild inlines the file contents as string literals.
import dataExtensionsOverviewContent from '../resources/data-extensions-overview.md';
import dataflowMigrationContent from '../resources/dataflow-migration-v1-to-v2.md';
import learningQueryBasicsContent from '../resources/learning-query-basics.md';
import performancePatternsContent from '../resources/performance-patterns.md';
import qlTestDrivenDevelopmentContent from '../resources/ql-test-driven-development.md';
import queryUnitTestingContent from '../resources/codeql-query-unit-testing.md';
import securityTemplatesContent from '../resources/security-templates.md';
import serverOverviewContent from '../resources/server-overview.md';
import serverPromptsContent from '../resources/server-prompts.md';
import serverQueriesContent from '../resources/server-queries.md';
import serverToolsContent from '../resources/server-tools.md';
/**
* Get the query basics learning guide content
*/
export function getLearningQueryBasics(): string {
return learningQueryBasicsContent;
}
/**
* Get the performance patterns content
*/
export function getPerformancePatterns(): string {
return performancePatternsContent;
}
/**
* Get the security templates content
*/
export function getSecurityTemplates(): string {
return securityTemplatesContent;
}
/**
* Get the server overview content
*/
export function getServerOverview(): string {
return serverOverviewContent;
}
/**
* Get the server prompts overview content
*/
export function getServerPrompts(): string {
return serverPromptsContent;
}
/**
* Get the server queries (bundled tools queries) overview content
*/
export function getServerQueries(): string {
return serverQueriesContent;
}
/**
* Get the server tools overview content
*/
export function getServerTools(): string {
return serverToolsContent;
}
/**
* Get the test-driven development guide content
*/
export function getTestDrivenDevelopment(): string {
return qlTestDrivenDevelopmentContent;
}
/**
* Get the query unit testing guide content
*/
export function getQueryUnitTesting(): string {
return queryUnitTestingContent;
}
/**
* Get the data extensions overview content
*/
export function getDataExtensionsOverview(): string {
return dataExtensionsOverviewContent;
}
/**
* Get the dataflow migration (v1 to v2) guide content
*/
export function getDataflowMigration(): string {
return dataflowMigrationContent;
}