kimu-core 0.4.1 → 0.5.0
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/.editorconfig +116 -30
- package/.gitattributes +81 -11
- package/.github/FUNDING.yml +8 -8
- package/.github/kimu-copilot-instructions.md +3779 -3779
- package/.github/workflows/deploy-demo.yml +39 -39
- package/.nvmrc +1 -0
- package/.prettierignore +44 -0
- package/.prettierrc +16 -0
- package/FUNDING.md +31 -31
- package/icon.svg +10 -10
- package/kimu-core-0.5.0.tgz +0 -0
- package/package.json +10 -3
- package/scripts/minify-css-assets.js +82 -82
- package/src/core/index.ts +47 -47
- package/src/core/kimu-global-styles.ts +136 -136
- package/src/core/kimu-reactive.ts +196 -196
- package/src/extensions/{kimu-home → app-root}/component.ts +5 -5
- package/src/extensions/extensions-manifest.json +4 -4
- package/src/main.ts +3 -3
- package/src/modules-repository/api-axios/CHANGELOG.md +48 -48
- package/src/modules-repository/api-axios/QUICK-REFERENCE.md +178 -178
- package/src/modules-repository/api-axios/README.md +304 -304
- package/src/modules-repository/api-axios/api-axios-service.ts +355 -355
- package/src/modules-repository/api-axios/examples.ts +293 -293
- package/src/modules-repository/api-axios/index.ts +19 -19
- package/src/modules-repository/api-axios/interfaces.ts +71 -71
- package/src/modules-repository/api-axios/module.ts +41 -41
- package/src/modules-repository/api-core/CHANGELOG.md +42 -42
- package/src/modules-repository/api-core/QUICK-REFERENCE.md +192 -192
- package/src/modules-repository/api-core/README.md +435 -435
- package/src/modules-repository/api-core/api-core-service.ts +289 -289
- package/src/modules-repository/api-core/examples.ts +432 -432
- package/src/modules-repository/api-core/index.ts +8 -8
- package/src/modules-repository/api-core/interfaces.ts +83 -83
- package/src/modules-repository/api-core/module.ts +30 -30
- package/src/modules-repository/event-bus/README.md +273 -273
- package/src/modules-repository/event-bus/event-bus-service.ts +176 -176
- package/src/modules-repository/event-bus/module.ts +30 -30
- package/src/modules-repository/notification/README.md +423 -423
- package/src/modules-repository/notification/module.ts +30 -30
- package/src/modules-repository/notification/notification-service.ts +436 -436
- package/src/modules-repository/router/README.it.md +61 -10
- package/src/modules-repository/router/README.md +61 -10
- package/src/modules-repository/router/router-config.ts.example +61 -0
- package/src/modules-repository/router/router.ts +18 -0
- package/src/modules-repository/state/README.md +409 -409
- package/src/modules-repository/state/module.ts +30 -30
- package/src/modules-repository/state/state-service.ts +296 -296
- package/src/modules-repository/theme/README.md +311 -267
- package/src/modules-repository/theme/module.ts +30 -30
- package/src/modules-repository/theme/pre-build.js +40 -40
- package/src/modules-repository/theme/theme-service.ts +411 -389
- package/src/modules-repository/theme/themes/theme-cherry-blossom.css +78 -78
- package/src/modules-repository/theme/themes/theme-cozy.css +111 -111
- package/src/modules-repository/theme/themes/theme-cyberpunk.css +150 -150
- package/src/modules-repository/theme/themes/theme-dark.css +79 -79
- package/src/modules-repository/theme/themes/theme-forest.css +171 -171
- package/src/modules-repository/theme/themes/theme-gold.css +100 -100
- package/src/modules-repository/theme/themes/theme-high-contrast.css +126 -126
- package/src/modules-repository/theme/themes/theme-lava.css +101 -101
- package/src/modules-repository/theme/themes/theme-lavender.css +90 -90
- package/src/modules-repository/theme/themes/theme-light.css +79 -79
- package/src/modules-repository/theme/themes/theme-matrix.css +103 -103
- package/src/modules-repository/theme/themes/theme-midnight.css +81 -81
- package/src/modules-repository/theme/themes/theme-nord.css +94 -94
- package/src/modules-repository/theme/themes/theme-ocean.css +84 -84
- package/src/modules-repository/theme/themes/theme-retro80s.css +343 -343
- package/src/modules-repository/theme/themes/theme-sunset.css +62 -62
- package/src/modules-repository/theme/themes-config-default.json +19 -0
- package/src/modules-repository/theme/themes-config.d.ts +27 -27
- package/src/modules-repository/theme/{themes-config.json → themes-config.json.example} +223 -213
- /package/src/extensions/{kimu-home → app-root}/lang/en.json +0 -0
- /package/src/extensions/{kimu-home → app-root}/lang/it.json +0 -0
- /package/src/extensions/{kimu-home → app-root}/style.css +0 -0
- /package/src/extensions/{kimu-home → app-root}/view.html +0 -0
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pre-Build Script for Theme Module
|
|
3
|
-
*
|
|
4
|
-
* This script runs BEFORE the theme module is compiled.
|
|
5
|
-
* It copies CSS theme files to public/themes/ so they're available
|
|
6
|
-
* during development and will be included in the Vite build.
|
|
7
|
-
*
|
|
8
|
-
* This approach keeps the module self-contained and independent.
|
|
9
|
-
*/
|
|
10
|
-
import fs from 'fs';
|
|
11
|
-
import path from 'path';
|
|
12
|
-
|
|
13
|
-
export default async function preBuild({ moduleDir, rootDir }) {
|
|
14
|
-
const themesDir = path.join(moduleDir, 'themes');
|
|
15
|
-
|
|
16
|
-
if (!fs.existsSync(themesDir)) {
|
|
17
|
-
console.log('⚠️ No themes directory found, skipping theme copy');
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const cssFiles = fs.readdirSync(themesDir).filter(f => f.endsWith('.css'));
|
|
22
|
-
|
|
23
|
-
if (cssFiles.length === 0) {
|
|
24
|
-
console.log('⚠️ No CSS files found in themes directory');
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Copy to public/themes/ (Vite will include them in build automatically)
|
|
29
|
-
const publicThemesDir = path.join(rootDir, 'public', 'themes');
|
|
30
|
-
fs.mkdirSync(publicThemesDir, { recursive: true });
|
|
31
|
-
|
|
32
|
-
for (const cssFile of cssFiles) {
|
|
33
|
-
fs.copyFileSync(
|
|
34
|
-
path.join(themesDir, cssFile),
|
|
35
|
-
path.join(publicThemesDir, cssFile)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
console.log(`📄 Theme module: Copied ${cssFiles.length} CSS files to public/themes/`);
|
|
40
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Pre-Build Script for Theme Module
|
|
3
|
+
*
|
|
4
|
+
* This script runs BEFORE the theme module is compiled.
|
|
5
|
+
* It copies CSS theme files to public/themes/ so they're available
|
|
6
|
+
* during development and will be included in the Vite build.
|
|
7
|
+
*
|
|
8
|
+
* This approach keeps the module self-contained and independent.
|
|
9
|
+
*/
|
|
10
|
+
import fs from 'fs';
|
|
11
|
+
import path from 'path';
|
|
12
|
+
|
|
13
|
+
export default async function preBuild({ moduleDir, rootDir }) {
|
|
14
|
+
const themesDir = path.join(moduleDir, 'themes');
|
|
15
|
+
|
|
16
|
+
if (!fs.existsSync(themesDir)) {
|
|
17
|
+
console.log('⚠️ No themes directory found, skipping theme copy');
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const cssFiles = fs.readdirSync(themesDir).filter(f => f.endsWith('.css'));
|
|
22
|
+
|
|
23
|
+
if (cssFiles.length === 0) {
|
|
24
|
+
console.log('⚠️ No CSS files found in themes directory');
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Copy to public/themes/ (Vite will include them in build automatically)
|
|
29
|
+
const publicThemesDir = path.join(rootDir, 'public', 'themes');
|
|
30
|
+
fs.mkdirSync(publicThemesDir, { recursive: true });
|
|
31
|
+
|
|
32
|
+
for (const cssFile of cssFiles) {
|
|
33
|
+
fs.copyFileSync(
|
|
34
|
+
path.join(themesDir, cssFile),
|
|
35
|
+
path.join(publicThemesDir, cssFile)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
console.log(`📄 Theme module: Copied ${cssFiles.length} CSS files to public/themes/`);
|
|
40
|
+
}
|