-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathresources.ts
More file actions
42 lines (37 loc) · 1.21 KB
/
resources.ts
File metadata and controls
42 lines (37 loc) · 1.21 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
/**
* 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 gettingStartedContent from '../resources/getting-started.md';
import performancePatternsContent from '../resources/performance-patterns.md';
import queryBasicsContent from '../resources/query-basics.md';
import securityTemplatesContent from '../resources/security-templates.md';
/**
* Get the getting started guide content
*/
export function getGettingStartedGuide(): string {
return gettingStartedContent;
}
/**
* Get the query basics guide content
*/
export function getQueryBasicsGuide(): string {
return queryBasicsContent;
}
/**
* Get the security templates content
*/
export function getSecurityTemplates(): string {
return securityTemplatesContent;
}
/**
* Get the performance patterns content
*/
export function getPerformancePatterns(): string {
return performancePatternsContent;
}