create-velox-app 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +0 -0
- package/dist/index.js +21 -14
- package/dist/index.js.map +1 -1
- package/dist/templates/auth.d.ts +6 -3
- package/dist/templates/auth.d.ts.map +1 -1
- package/dist/templates/auth.js +56 -1112
- package/dist/templates/auth.js.map +1 -1
- package/dist/templates/compiler.d.ts +68 -0
- package/dist/templates/compiler.d.ts.map +1 -0
- package/dist/templates/compiler.js +149 -0
- package/dist/templates/compiler.js.map +1 -0
- package/dist/templates/default.d.ts +5 -2
- package/dist/templates/default.d.ts.map +1 -1
- package/dist/templates/default.js +51 -509
- package/dist/templates/default.js.map +1 -1
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js +19 -10
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/placeholders.d.ts +70 -0
- package/dist/templates/placeholders.d.ts.map +1 -0
- package/dist/templates/placeholders.js +145 -0
- package/dist/templates/placeholders.js.map +1 -0
- package/dist/templates/shared/index.d.ts +9 -0
- package/dist/templates/shared/index.d.ts.map +1 -0
- package/dist/templates/shared/index.js +9 -0
- package/dist/templates/shared/index.js.map +1 -0
- package/dist/templates/shared/root.d.ts +14 -0
- package/dist/templates/shared/root.d.ts.map +1 -0
- package/dist/templates/shared/root.js +43 -0
- package/dist/templates/shared/root.js.map +1 -0
- package/dist/templates/shared/web-base.d.ts +18 -0
- package/dist/templates/shared/web-base.d.ts.map +1 -0
- package/dist/templates/shared/web-base.js +63 -0
- package/dist/templates/shared/web-base.js.map +1 -0
- package/dist/templates/shared/web-styles.d.ts +10 -0
- package/dist/templates/shared/web-styles.d.ts.map +1 -0
- package/dist/templates/shared/web-styles.js +26 -0
- package/dist/templates/shared/web-styles.js.map +1 -0
- package/dist/templates/shared.d.ts +2 -13
- package/dist/templates/shared.d.ts.map +1 -1
- package/dist/templates/shared.js +2 -289
- package/dist/templates/shared.js.map +1 -1
- package/dist/templates/source/api/config/app.d.ts +13 -0
- package/dist/templates/source/api/config/app.d.ts.map +1 -0
- package/dist/templates/source/api/config/app.js +14 -0
- package/dist/templates/source/api/config/app.js.map +1 -0
- package/dist/templates/source/api/config/auth.d.ts +34 -0
- package/dist/templates/source/api/config/auth.d.ts.map +1 -0
- package/dist/templates/source/api/config/auth.js +165 -0
- package/dist/templates/source/api/config/auth.js.map +1 -0
- package/dist/templates/source/api/config/index.auth.d.ts +6 -0
- package/dist/templates/source/api/config/index.auth.d.ts.map +1 -0
- package/dist/templates/source/api/config/index.auth.js +6 -0
- package/dist/templates/source/api/config/index.auth.js.map +1 -0
- package/dist/templates/source/api/config/index.default.d.ts +5 -0
- package/dist/templates/source/api/config/index.default.d.ts.map +1 -0
- package/dist/templates/source/api/config/index.default.js +5 -0
- package/dist/templates/source/api/config/index.default.js.map +1 -0
- package/dist/templates/source/api/database/index.d.ts +9 -0
- package/dist/templates/source/api/database/index.d.ts.map +1 -0
- package/dist/templates/source/api/database/index.js +18 -0
- package/dist/templates/source/api/database/index.js.map +1 -0
- package/dist/templates/source/api/index.auth.d.ts +5 -0
- package/dist/templates/source/api/index.auth.d.ts.map +1 -0
- package/dist/templates/source/api/index.auth.js +59 -0
- package/dist/templates/source/api/index.auth.js.map +1 -0
- package/dist/templates/source/api/index.default.d.ts +5 -0
- package/dist/templates/source/api/index.default.d.ts.map +1 -0
- package/dist/templates/source/api/index.default.js +56 -0
- package/dist/templates/source/api/index.default.js.map +1 -0
- package/dist/templates/source/api/prisma.config.d.ts +9 -0
- package/dist/templates/source/api/prisma.config.d.ts.map +1 -0
- package/dist/templates/source/api/prisma.config.js +15 -0
- package/dist/templates/source/api/prisma.config.js.map +1 -0
- package/dist/templates/source/api/procedures/auth.d.ts +14 -0
- package/dist/templates/source/api/procedures/auth.d.ts.map +1 -0
- package/dist/templates/source/api/procedures/auth.js +221 -0
- package/dist/templates/source/api/procedures/auth.js.map +1 -0
- package/dist/templates/source/api/procedures/health.d.ts +5 -0
- package/dist/templates/source/api/procedures/health.d.ts.map +1 -0
- package/dist/templates/source/api/procedures/health.js +21 -0
- package/dist/templates/source/api/procedures/health.js.map +1 -0
- package/dist/templates/source/api/procedures/index.auth.d.ts +7 -0
- package/dist/templates/source/api/procedures/index.auth.d.ts.map +1 -0
- package/dist/templates/source/api/procedures/index.auth.js +7 -0
- package/dist/templates/source/api/procedures/index.auth.js.map +1 -0
- package/dist/templates/source/api/procedures/index.default.d.ts +6 -0
- package/dist/templates/source/api/procedures/index.default.d.ts.map +1 -0
- package/dist/templates/source/api/procedures/index.default.js +6 -0
- package/dist/templates/source/api/procedures/index.default.js.map +1 -0
- package/dist/templates/source/api/procedures/users.auth.d.ts +7 -0
- package/dist/templates/source/api/procedures/users.auth.d.ts.map +1 -0
- package/dist/templates/source/api/procedures/users.auth.js +111 -0
- package/dist/templates/source/api/procedures/users.auth.js.map +1 -0
- package/dist/templates/source/api/procedures/users.default.d.ts +5 -0
- package/dist/templates/source/api/procedures/users.default.d.ts.map +1 -0
- package/dist/templates/source/api/procedures/users.default.js +86 -0
- package/dist/templates/source/api/procedures/users.default.js.map +1 -0
- package/dist/templates/source/api/schemas/index.d.ts +5 -0
- package/dist/templates/source/api/schemas/index.d.ts.map +1 -0
- package/dist/templates/source/api/schemas/index.js +5 -0
- package/dist/templates/source/api/schemas/index.js.map +1 -0
- package/dist/templates/source/api/schemas/user.d.ts +11 -0
- package/dist/templates/source/api/schemas/user.d.ts.map +1 -0
- package/dist/templates/source/api/schemas/user.js +20 -0
- package/dist/templates/source/api/schemas/user.js.map +1 -0
- package/dist/templates/source/api/tsup.config.d.ts +3 -0
- package/dist/templates/source/api/tsup.config.d.ts.map +1 -0
- package/dist/templates/source/api/tsup.config.js +10 -0
- package/dist/templates/source/api/tsup.config.js.map +1 -0
- package/dist/templates/source/web/main.d.ts +9 -0
- package/dist/templates/source/web/main.d.ts.map +1 -0
- package/dist/templates/source/web/main.js +27 -0
- package/dist/templates/source/web/main.js.map +1 -0
- package/dist/templates/source/web/routes/__root.d.ts +2 -0
- package/dist/templates/source/web/routes/__root.d.ts.map +1 -0
- package/dist/templates/source/web/routes/__root.js +28 -0
- package/dist/templates/source/web/routes/__root.js.map +1 -0
- package/dist/templates/source/web/routes/about.d.ts +2 -0
- package/dist/templates/source/web/routes/about.d.ts.map +1 -0
- package/dist/templates/source/web/routes/about.js +33 -0
- package/dist/templates/source/web/routes/about.js.map +1 -0
- package/dist/templates/source/web/routes/index.auth.d.ts +2 -0
- package/dist/templates/source/web/routes/index.auth.d.ts.map +1 -0
- package/dist/templates/source/web/routes/index.auth.js +159 -0
- package/dist/templates/source/web/routes/index.auth.js.map +1 -0
- package/dist/templates/source/web/routes/index.default.d.ts +2 -0
- package/dist/templates/source/web/routes/index.default.d.ts.map +1 -0
- package/dist/templates/source/web/routes/index.default.js +60 -0
- package/dist/templates/source/web/routes/index.default.js.map +1 -0
- package/dist/templates/source/web/vite.config.d.ts +3 -0
- package/dist/templates/source/web/vite.config.d.ts.map +1 -0
- package/dist/templates/source/web/vite.config.js +22 -0
- package/dist/templates/source/web/vite.config.js.map +1 -0
- package/package.json +11 -9
- package/src/templates/source/api/config/app.ts +13 -0
- package/src/templates/source/api/config/auth.ts +202 -0
- package/src/templates/source/api/config/database.ts +22 -0
- package/src/templates/source/api/env.auth +22 -0
- package/src/templates/source/api/env.default +13 -0
- package/src/templates/source/api/index.auth.ts +30 -0
- package/src/templates/source/api/index.default.ts +27 -0
- package/src/templates/source/api/package.auth.json +40 -0
- package/src/templates/source/api/package.default.json +38 -0
- package/src/templates/source/api/prisma/schema.auth.prisma +30 -0
- package/src/templates/source/api/prisma/schema.default.prisma +28 -0
- package/src/templates/source/api/prisma.config.ts +15 -0
- package/src/templates/source/api/procedures/auth.ts +285 -0
- package/src/templates/source/api/procedures/health.ts +24 -0
- package/src/templates/source/api/procedures/users.auth.ts +170 -0
- package/src/templates/source/api/procedures/users.default.ts +119 -0
- package/src/templates/source/api/schemas/user.ts +29 -0
- package/src/templates/source/api/tsconfig.json +12 -0
- package/src/templates/source/api/tsup.config.ts +10 -0
- package/src/templates/source/root/CLAUDE.auth.md +148 -0
- package/src/templates/source/root/CLAUDE.default.md +128 -0
- package/src/templates/source/root/README.md +72 -0
- package/src/templates/source/root/gitignore +37 -0
- package/src/templates/source/root/package.json +17 -0
- package/src/templates/source/root/pnpm-workspace.yaml +2 -0
- package/src/templates/source/root/tsconfig.json +19 -0
- package/src/templates/source/web/App.module.css +282 -0
- package/src/templates/source/web/favicon.svg +12 -0
- package/src/templates/source/web/index.html +13 -0
- package/src/templates/source/web/main.tsx +38 -0
- package/src/templates/source/web/package.json +26 -0
- package/src/templates/source/web/routes/__root.tsx +31 -0
- package/src/templates/source/web/routes/about.tsx +36 -0
- package/src/templates/source/web/routes/index.auth.tsx +230 -0
- package/src/templates/source/web/routes/index.default.tsx +79 -0
- package/src/templates/source/web/styles/global.css +90 -0
- package/src/templates/source/web/tsconfig.json +24 -0
- package/src/templates/source/web/vite.config.ts +22 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Template Placeholder System
|
|
3
|
+
*
|
|
4
|
+
* Handles placeholder replacement in template source files.
|
|
5
|
+
* Uses simple string replacement for maximum speed.
|
|
6
|
+
*/
|
|
7
|
+
import type { TemplateConfig } from './types.js';
|
|
8
|
+
/**
|
|
9
|
+
* All supported placeholders and their descriptions.
|
|
10
|
+
* Placeholders use the format __PLACEHOLDER_NAME__
|
|
11
|
+
*/
|
|
12
|
+
export declare const PLACEHOLDERS: {
|
|
13
|
+
/** User-provided project name (e.g., "my-app") */
|
|
14
|
+
readonly PROJECT_NAME: "__PROJECT_NAME__";
|
|
15
|
+
/** Package manager choice (npm, pnpm, yarn) */
|
|
16
|
+
readonly PACKAGE_MANAGER: "__PACKAGE_MANAGER__";
|
|
17
|
+
/** Current VeloxTS framework version */
|
|
18
|
+
readonly VELOXTS_VERSION: "__VELOXTS_VERSION__";
|
|
19
|
+
/** Package manager run command (npm run, pnpm, yarn) */
|
|
20
|
+
readonly RUN_CMD: "__RUN_CMD__";
|
|
21
|
+
/** API server port (default: 3210) */
|
|
22
|
+
readonly API_PORT: "__API_PORT__";
|
|
23
|
+
/** Web dev server port (default: 8080) */
|
|
24
|
+
readonly WEB_PORT: "__WEB_PORT__";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Default template configuration for templates that don't need real values.
|
|
28
|
+
* Used when compiling templates that only need placeholder markers stripped,
|
|
29
|
+
* not actual user-provided values (e.g., shared templates, route files).
|
|
30
|
+
*/
|
|
31
|
+
export declare const DEFAULT_CONFIG: TemplateConfig;
|
|
32
|
+
/**
|
|
33
|
+
* Auth template configuration for auth-specific templates.
|
|
34
|
+
* Same as DEFAULT_CONFIG but with template set to 'auth'.
|
|
35
|
+
*/
|
|
36
|
+
export declare const AUTH_CONFIG: TemplateConfig;
|
|
37
|
+
/**
|
|
38
|
+
* Apply placeholder replacements to template content.
|
|
39
|
+
*
|
|
40
|
+
* Uses replaceAll for fast, simple string replacement.
|
|
41
|
+
* No dependencies, no parsing overhead.
|
|
42
|
+
*
|
|
43
|
+
* @param content - Template content with placeholders
|
|
44
|
+
* @param config - Template configuration
|
|
45
|
+
* @returns Content with placeholders replaced
|
|
46
|
+
*/
|
|
47
|
+
export declare function applyPlaceholders(content: string, config: TemplateConfig): string;
|
|
48
|
+
/**
|
|
49
|
+
* Apply placeholders to JSON content (handles proper escaping).
|
|
50
|
+
*/
|
|
51
|
+
export declare function applyPlaceholdersToJson(content: Record<string, unknown>, config: TemplateConfig): string;
|
|
52
|
+
/**
|
|
53
|
+
* Conditional block markers for template-specific content.
|
|
54
|
+
* Use these in source files to mark sections that should only appear in certain templates.
|
|
55
|
+
*/
|
|
56
|
+
export declare const CONDITIONALS: {
|
|
57
|
+
readonly AUTH_START: "/* @if auth */";
|
|
58
|
+
readonly AUTH_END: "/* @endif auth */";
|
|
59
|
+
readonly DEFAULT_START: "/* @if default */";
|
|
60
|
+
readonly DEFAULT_END: "/* @endif default */";
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Process conditional blocks in template content.
|
|
64
|
+
*
|
|
65
|
+
* @param content - Template content with conditional blocks
|
|
66
|
+
* @param template - Which template is being generated
|
|
67
|
+
* @returns Content with appropriate blocks included/removed
|
|
68
|
+
*/
|
|
69
|
+
export declare function processConditionals(content: string, template: TemplateConfig['template']): string;
|
|
70
|
+
//# sourceMappingURL=placeholders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../src/templates/placeholders.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAMjD;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,kDAAkD;;IAElD,+CAA+C;;IAE/C,wCAAwC;;IAExC,wDAAwD;;IAExD,sCAAsC;;IAEtC,0CAA0C;;CAElC,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,cAK5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,cAKzB,CAAC;AAaF;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,MAAM,CAgBjF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,EAAE,cAAc,GACrB,MAAM,CAGR;AAaD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAcX;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,MAAM,CAwBR"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Template Placeholder System
|
|
3
|
+
*
|
|
4
|
+
* Handles placeholder replacement in template source files.
|
|
5
|
+
* Uses simple string replacement for maximum speed.
|
|
6
|
+
*/
|
|
7
|
+
import { VELOXTS_VERSION } from './shared.js';
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Placeholder Definitions
|
|
10
|
+
// ============================================================================
|
|
11
|
+
/**
|
|
12
|
+
* All supported placeholders and their descriptions.
|
|
13
|
+
* Placeholders use the format __PLACEHOLDER_NAME__
|
|
14
|
+
*/
|
|
15
|
+
export const PLACEHOLDERS = {
|
|
16
|
+
/** User-provided project name (e.g., "my-app") */
|
|
17
|
+
PROJECT_NAME: '__PROJECT_NAME__',
|
|
18
|
+
/** Package manager choice (npm, pnpm, yarn) */
|
|
19
|
+
PACKAGE_MANAGER: '__PACKAGE_MANAGER__',
|
|
20
|
+
/** Current VeloxTS framework version */
|
|
21
|
+
VELOXTS_VERSION: '__VELOXTS_VERSION__',
|
|
22
|
+
/** Package manager run command (npm run, pnpm, yarn) */
|
|
23
|
+
RUN_CMD: '__RUN_CMD__',
|
|
24
|
+
/** API server port (default: 3210) */
|
|
25
|
+
API_PORT: '__API_PORT__',
|
|
26
|
+
/** Web dev server port (default: 8080) */
|
|
27
|
+
WEB_PORT: '__WEB_PORT__',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Default template configuration for templates that don't need real values.
|
|
31
|
+
* Used when compiling templates that only need placeholder markers stripped,
|
|
32
|
+
* not actual user-provided values (e.g., shared templates, route files).
|
|
33
|
+
*/
|
|
34
|
+
export const DEFAULT_CONFIG = {
|
|
35
|
+
projectName: '',
|
|
36
|
+
packageManager: 'pnpm',
|
|
37
|
+
template: 'default',
|
|
38
|
+
database: 'sqlite',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Auth template configuration for auth-specific templates.
|
|
42
|
+
* Same as DEFAULT_CONFIG but with template set to 'auth'.
|
|
43
|
+
*/
|
|
44
|
+
export const AUTH_CONFIG = {
|
|
45
|
+
projectName: '',
|
|
46
|
+
packageManager: 'pnpm',
|
|
47
|
+
template: 'auth',
|
|
48
|
+
database: 'sqlite',
|
|
49
|
+
};
|
|
50
|
+
// ============================================================================
|
|
51
|
+
// Placeholder Replacement
|
|
52
|
+
// ============================================================================
|
|
53
|
+
/**
|
|
54
|
+
* Get the run command for the package manager.
|
|
55
|
+
*/
|
|
56
|
+
function getRunCommand(packageManager) {
|
|
57
|
+
return packageManager === 'npm' ? 'npm run' : packageManager;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Apply placeholder replacements to template content.
|
|
61
|
+
*
|
|
62
|
+
* Uses replaceAll for fast, simple string replacement.
|
|
63
|
+
* No dependencies, no parsing overhead.
|
|
64
|
+
*
|
|
65
|
+
* @param content - Template content with placeholders
|
|
66
|
+
* @param config - Template configuration
|
|
67
|
+
* @returns Content with placeholders replaced
|
|
68
|
+
*/
|
|
69
|
+
export function applyPlaceholders(content, config) {
|
|
70
|
+
const replacements = {
|
|
71
|
+
[PLACEHOLDERS.PROJECT_NAME]: config.projectName,
|
|
72
|
+
[PLACEHOLDERS.PACKAGE_MANAGER]: config.packageManager,
|
|
73
|
+
[PLACEHOLDERS.VELOXTS_VERSION]: VELOXTS_VERSION,
|
|
74
|
+
[PLACEHOLDERS.RUN_CMD]: getRunCommand(config.packageManager),
|
|
75
|
+
[PLACEHOLDERS.API_PORT]: '3210',
|
|
76
|
+
[PLACEHOLDERS.WEB_PORT]: '8080',
|
|
77
|
+
};
|
|
78
|
+
let result = content;
|
|
79
|
+
for (const [placeholder, value] of Object.entries(replacements)) {
|
|
80
|
+
result = result.replaceAll(placeholder, value);
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Apply placeholders to JSON content (handles proper escaping).
|
|
86
|
+
*/
|
|
87
|
+
export function applyPlaceholdersToJson(content, config) {
|
|
88
|
+
const jsonString = JSON.stringify(content, null, 2);
|
|
89
|
+
return applyPlaceholders(jsonString, config);
|
|
90
|
+
}
|
|
91
|
+
// ============================================================================
|
|
92
|
+
// Conditional Content
|
|
93
|
+
// ============================================================================
|
|
94
|
+
/**
|
|
95
|
+
* Escape special regex characters in a string.
|
|
96
|
+
*/
|
|
97
|
+
function escapeRegex(str) {
|
|
98
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Conditional block markers for template-specific content.
|
|
102
|
+
* Use these in source files to mark sections that should only appear in certain templates.
|
|
103
|
+
*/
|
|
104
|
+
export const CONDITIONALS = {
|
|
105
|
+
AUTH_START: '/* @if auth */',
|
|
106
|
+
AUTH_END: '/* @endif auth */',
|
|
107
|
+
DEFAULT_START: '/* @if default */',
|
|
108
|
+
DEFAULT_END: '/* @endif default */',
|
|
109
|
+
};
|
|
110
|
+
/** Pre-compiled regex for auth conditional blocks (performance optimization) */
|
|
111
|
+
const AUTH_BLOCK_PATTERN = new RegExp(`${escapeRegex(CONDITIONALS.AUTH_START)}[\\s\\S]*?${escapeRegex(CONDITIONALS.AUTH_END)}`, 'g');
|
|
112
|
+
/** Pre-compiled regex for default conditional blocks (performance optimization) */
|
|
113
|
+
const DEFAULT_BLOCK_PATTERN = new RegExp(`${escapeRegex(CONDITIONALS.DEFAULT_START)}[\\s\\S]*?${escapeRegex(CONDITIONALS.DEFAULT_END)}`, 'g');
|
|
114
|
+
/**
|
|
115
|
+
* Process conditional blocks in template content.
|
|
116
|
+
*
|
|
117
|
+
* @param content - Template content with conditional blocks
|
|
118
|
+
* @param template - Which template is being generated
|
|
119
|
+
* @returns Content with appropriate blocks included/removed
|
|
120
|
+
*/
|
|
121
|
+
export function processConditionals(content, template) {
|
|
122
|
+
let result = content;
|
|
123
|
+
// Process auth conditionals
|
|
124
|
+
if (template === 'auth') {
|
|
125
|
+
// Keep auth content but remove markers
|
|
126
|
+
result = result.replaceAll(CONDITIONALS.AUTH_START, '');
|
|
127
|
+
result = result.replaceAll(CONDITIONALS.AUTH_END, '');
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
// Remove entire auth blocks
|
|
131
|
+
result = result.replace(AUTH_BLOCK_PATTERN, '');
|
|
132
|
+
}
|
|
133
|
+
// Process default conditionals
|
|
134
|
+
if (template === 'default') {
|
|
135
|
+
// Keep default content but remove markers
|
|
136
|
+
result = result.replaceAll(CONDITIONALS.DEFAULT_START, '');
|
|
137
|
+
result = result.replaceAll(CONDITIONALS.DEFAULT_END, '');
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
// Remove entire default blocks
|
|
141
|
+
result = result.replace(DEFAULT_BLOCK_PATTERN, '');
|
|
142
|
+
}
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=placeholders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholders.js","sourceRoot":"","sources":["../../src/templates/placeholders.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,+EAA+E;AAC/E,0BAA0B;AAC1B,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,kDAAkD;IAClD,YAAY,EAAE,kBAAkB;IAChC,+CAA+C;IAC/C,eAAe,EAAE,qBAAqB;IACtC,wCAAwC;IACxC,eAAe,EAAE,qBAAqB;IACtC,wDAAwD;IACxD,OAAO,EAAE,aAAa;IACtB,sCAAsC;IACtC,QAAQ,EAAE,cAAc;IACxB,0CAA0C;IAC1C,QAAQ,EAAE,cAAc;CAChB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,WAAW,EAAE,EAAE;IACf,cAAc,EAAE,MAAM;IACtB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,QAAQ;CACnB,CAAC;AAEF;;;GAGG;AACH,MA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KAAK,SAAS,EAAE,CAAC;QAC3B,0CAA0C;QAC1C,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC3D,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;SAAM,CAAC;QACN,+BAA+B;QAC/B,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Root Workspace Configuration Templates
|
|
3
|
+
*
|
|
4
|
+
* Uses source file compilation for workspace root files.
|
|
5
|
+
*/
|
|
6
|
+
import type { TemplateConfig, TemplateFile } from '../types.js';
|
|
7
|
+
export declare function generateRootPackageJson(config: TemplateConfig): string;
|
|
8
|
+
export declare function generatePnpmWorkspaceYaml(): string;
|
|
9
|
+
export declare function generateRootTsConfig(): string;
|
|
10
|
+
export declare function generateRootGitignore(): string;
|
|
11
|
+
export declare function generateRootReadme(config: TemplateConfig): string;
|
|
12
|
+
export declare function generateRootClaudeMd(config: TemplateConfig, isAuthTemplate: boolean): string;
|
|
13
|
+
export declare function generateRootFiles(config: TemplateConfig, isAuthTemplate: boolean): TemplateFile[];
|
|
14
|
+
//# sourceMappingURL=root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/root.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAEtE;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAEjE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,GAAG,MAAM,CAG5F;AAMD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,GAAG,YAAY,EAAE,CASjG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Root Workspace Configuration Templates
|
|
3
|
+
*
|
|
4
|
+
* Uses source file compilation for workspace root files.
|
|
5
|
+
*/
|
|
6
|
+
import { compileTemplate } from '../compiler.js';
|
|
7
|
+
import { DEFAULT_CONFIG } from '../placeholders.js';
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Root Template Compilation
|
|
10
|
+
// ============================================================================
|
|
11
|
+
export function generateRootPackageJson(config) {
|
|
12
|
+
return compileTemplate('root/package.json', config);
|
|
13
|
+
}
|
|
14
|
+
export function generatePnpmWorkspaceYaml() {
|
|
15
|
+
return compileTemplate('root/pnpm-workspace.yaml', DEFAULT_CONFIG);
|
|
16
|
+
}
|
|
17
|
+
export function generateRootTsConfig() {
|
|
18
|
+
return compileTemplate('root/tsconfig.json', DEFAULT_CONFIG);
|
|
19
|
+
}
|
|
20
|
+
export function generateRootGitignore() {
|
|
21
|
+
return compileTemplate('root/gitignore', DEFAULT_CONFIG);
|
|
22
|
+
}
|
|
23
|
+
export function generateRootReadme(config) {
|
|
24
|
+
return compileTemplate('root/README.md', config);
|
|
25
|
+
}
|
|
26
|
+
export function generateRootClaudeMd(config, isAuthTemplate) {
|
|
27
|
+
const sourceFile = isAuthTemplate ? 'root/CLAUDE.auth.md' : 'root/CLAUDE.default.md';
|
|
28
|
+
return compileTemplate(sourceFile, config);
|
|
29
|
+
}
|
|
30
|
+
// ============================================================================
|
|
31
|
+
// Generate All Root Files
|
|
32
|
+
// ============================================================================
|
|
33
|
+
export function generateRootFiles(config, isAuthTemplate) {
|
|
34
|
+
return [
|
|
35
|
+
{ path: 'package.json', content: generateRootPackageJson(config) },
|
|
36
|
+
{ path: 'pnpm-workspace.yaml', content: generatePnpmWorkspaceYaml() },
|
|
37
|
+
{ path: 'tsconfig.json', content: generateRootTsConfig() },
|
|
38
|
+
{ path: '.gitignore', content: generateRootGitignore() },
|
|
39
|
+
{ path: 'README.md', content: generateRootReadme(config) },
|
|
40
|
+
{ path: 'CLAUDE.md', content: generateRootClaudeMd(config, isAuthTemplate) },
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../src/templates/shared/root.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E,MAAM,UAAU,uBAAuB,CAAC,MAAsB;IAC5D,OAAO,eAAe,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,yBAAy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
* Web Package Base Templates
|
|
3
|
+
*
|
|
4
|
+
* Uses source file compilation for React frontend templates.
|
|
5
|
+
*/
|
|
6
|
+
import type { TemplateConfig, TemplateFile } from '../types.js';
|
|
7
|
+
export declare function generateWebPackageJson(): string;
|
|
8
|
+
export declare function generateWebTsConfig(): string;
|
|
9
|
+
export declare function generateViteConfig(config: TemplateConfig): string;
|
|
10
|
+
export declare function generateWebIndexHtml(config: TemplateConfig): string;
|
|
11
|
+
export declare function generateFavicon(): string;
|
|
12
|
+
export declare function generateMainTsx(): string;
|
|
13
|
+
export declare function generateRootRoute(): string;
|
|
14
|
+
export declare function generateDefaultIndexRoute(): string;
|
|
15
|
+
export declare function generateAuthIndexRoute(): string;
|
|
16
|
+
export declare function generateAboutRoute(): string;
|
|
17
|
+
export declare function generateWebBaseFiles(config: TemplateConfig, isAuthTemplate: boolean): TemplateFile[];
|
|
18
|
+
//# sourceMappingURL=web-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-base.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/web-base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhE,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAEjE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAEnE;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAMD,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,cAAc,EACtB,cAAc,EAAE,OAAO,GACtB,YAAY,EAAE,CAoBhB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Package Base Templates
|
|
3
|
+
*
|
|
4
|
+
* Uses source file compilation for React frontend templates.
|
|
5
|
+
*/
|
|
6
|
+
import { compileTemplate } from '../compiler.js';
|
|
7
|
+
import { AUTH_CONFIG, DEFAULT_CONFIG } from '../placeholders.js';
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Web Template Compilation
|
|
10
|
+
// ============================================================================
|
|
11
|
+
export function generateWebPackageJson() {
|
|
12
|
+
return compileTemplate('web/package.json', DEFAULT_CONFIG);
|
|
13
|
+
}
|
|
14
|
+
export function generateWebTsConfig() {
|
|
15
|
+
return compileTemplate('web/tsconfig.json', DEFAULT_CONFIG);
|
|
16
|
+
}
|
|
17
|
+
export function generateViteConfig(config) {
|
|
18
|
+
return compileTemplate('web/vite.config.ts', config);
|
|
19
|
+
}
|
|
20
|
+
export function generateWebIndexHtml(config) {
|
|
21
|
+
return compileTemplate('web/index.html', config);
|
|
22
|
+
}
|
|
23
|
+
export function generateFavicon() {
|
|
24
|
+
return compileTemplate('web/favicon.svg', DEFAULT_CONFIG);
|
|
25
|
+
}
|
|
26
|
+
export function generateMainTsx() {
|
|
27
|
+
return compileTemplate('web/main.tsx', DEFAULT_CONFIG);
|
|
28
|
+
}
|
|
29
|
+
export function generateRootRoute() {
|
|
30
|
+
return compileTemplate('web/routes/__root.tsx', DEFAULT_CONFIG);
|
|
31
|
+
}
|
|
32
|
+
export function generateDefaultIndexRoute() {
|
|
33
|
+
return compileTemplate('web/routes/index.default.tsx', DEFAULT_CONFIG);
|
|
34
|
+
}
|
|
35
|
+
export function generateAuthIndexRoute() {
|
|
36
|
+
return compileTemplate('web/routes/index.auth.tsx', AUTH_CONFIG);
|
|
37
|
+
}
|
|
38
|
+
export function generateAboutRoute() {
|
|
39
|
+
return compileTemplate('web/routes/about.tsx', DEFAULT_CONFIG);
|
|
40
|
+
}
|
|
41
|
+
// ============================================================================
|
|
42
|
+
// Generate All Web Base Files
|
|
43
|
+
// ============================================================================
|
|
44
|
+
export function generateWebBaseFiles(config, isAuthTemplate) {
|
|
45
|
+
return [
|
|
46
|
+
// Config files
|
|
47
|
+
{ path: 'apps/web/package.json', content: generateWebPackageJson() },
|
|
48
|
+
{ path: 'apps/web/tsconfig.json', content: generateWebTsConfig() },
|
|
49
|
+
{ path: 'apps/web/vite.config.ts', content: generateViteConfig(config) },
|
|
50
|
+
{ path: 'apps/web/index.html', content: generateWebIndexHtml(config) },
|
|
51
|
+
{ path: 'apps/web/public/favicon.svg', content: generateFavicon() },
|
|
52
|
+
// Entry point
|
|
53
|
+
{ path: 'apps/web/src/main.tsx', content: generateMainTsx() },
|
|
54
|
+
// Routes
|
|
55
|
+
{ path: 'apps/web/src/routes/__root.tsx', content: generateRootRoute() },
|
|
56
|
+
{
|
|
57
|
+
path: 'apps/web/src/routes/index.tsx',
|
|
58
|
+
content: isAuthTemplate ? generateAuthIndexRoute() : generateDefaultIndexRoute(),
|
|
59
|
+
},
|
|
60
|
+
{ path: 'apps/web/src/routes/about.tsx', content: generateAboutRoute() },
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=web-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-base.js","sourceRoot":"","sources":["../../../src/templates/shared/web-base.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGjE,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E,MAAM,UAAU,sBAAsB;IACpC,OAAO,eAAe,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM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BAAqB,EAAE,OAAO,EAAE,oBAAoB,CAAC,MAAM,CAAC,EAAE;QACtE,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE;QAEnE,cAAc;QACd,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE;QAE7D,SAAS;QACT,EAAE,IAAI,EAAE,gCAAgC,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE;QACxE;YACE,IAAI,EAAE,+BAA+B;YACrC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC,yBAAyB,EAAE;SACjF;QACD,EAAE,IAAI,EAAE,+BAA+B,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE;KACzE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Package Styles
|
|
3
|
+
*
|
|
4
|
+
* Uses source file compilation for CSS templates.
|
|
5
|
+
*/
|
|
6
|
+
import type { TemplateFile } from '../types.js';
|
|
7
|
+
export declare function generateGlobalCss(): string;
|
|
8
|
+
export declare function generateAppModuleCss(): string;
|
|
9
|
+
export declare function generateWebStyleFiles(): TemplateFile[];
|
|
10
|
+
//# sourceMappingURL=web-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-styles.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/web-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAMD,wBAAgB,qBAAqB,IAAI,YAAY,EAAE,CAKtD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web Package Styles
|
|
3
|
+
*
|
|
4
|
+
* Uses source file compilation for CSS templates.
|
|
5
|
+
*/
|
|
6
|
+
import { compileTemplate } from '../compiler.js';
|
|
7
|
+
import { DEFAULT_CONFIG } from '../placeholders.js';
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Style Compilation
|
|
10
|
+
// ============================================================================
|
|
11
|
+
export function generateGlobalCss() {
|
|
12
|
+
return compileTemplate('web/styles/global.css', DEFAULT_CONFIG);
|
|
13
|
+
}
|
|
14
|
+
export function generateAppModuleCss() {
|
|
15
|
+
return compileTemplate('web/App.module.css', DEFAULT_CONFIG);
|
|
16
|
+
}
|
|
17
|
+
// ============================================================================
|
|
18
|
+
// Generate All Style Files
|
|
19
|
+
// ============================================================================
|
|
20
|
+
export function generateWebStyleFiles() {
|
|
21
|
+
return [
|
|
22
|
+
{ path: 'apps/web/src/styles/global.css', content: generateGlobalCss() },
|
|
23
|
+
{ path: 'apps/web/src/App.module.css', content: generateAppModuleCss() },
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=web-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-styles.js","sourceRoot":"","sources":["../../../src/templates/shared/web-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E,MAAM,UAAU,iBAAiB;IAC/B,OAAO,eAAe,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO,eAAe,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;AAC/D,CAAC;AAED,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E,MAAM,UAAU,qBAAqB;IACnC,OAAO;QACL,EAAE,IAAI,EAAE,gCAAgC,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE;QACxE,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE;KACzE,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared Template
|
|
2
|
+
* Shared Template Constants
|
|
3
3
|
*
|
|
4
|
-
* Common
|
|
4
|
+
* Common constants used across all templates.
|
|
5
5
|
*/
|
|
6
|
-
import type { TemplateConfig, TemplateFile } from './types.js';
|
|
7
6
|
/**
|
|
8
7
|
* VeloxTS framework version for generated projects.
|
|
9
8
|
* This is automatically updated during releases via changesets.
|
|
10
9
|
*/
|
|
11
10
|
export declare const VELOXTS_VERSION: string;
|
|
12
|
-
export declare function generateTsConfig(): string;
|
|
13
|
-
export declare function generateTsupConfig(): string;
|
|
14
|
-
export declare function generateGitignore(): string;
|
|
15
|
-
export declare function generatePrismaConfig(): string;
|
|
16
|
-
export declare function generateConfigIndex(): string;
|
|
17
|
-
export declare function generateConfigApp(): string;
|
|
18
|
-
export declare function generateHealthProcedures(): string;
|
|
19
|
-
export declare function generateIndexHtml(): string;
|
|
20
|
-
export declare function generateReadme(config: TemplateConfig): string;
|
|
21
|
-
export declare function generateSharedFiles(config: TemplateConfig): TemplateFile[];
|
|
22
11
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/templates/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/templates/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAA+C,CAAC"}
|