soma-core 1.0.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/app/api/page/route.ts +97 -0
- package/app/globals.css +3 -0
- package/app/layout.tsx +18 -0
- package/app/page.tsx +129 -0
- package/bin/soma.cjs +2 -0
- package/core/base/SomaApi.ts +14 -0
- package/core/base/SomaDict.ts +168 -0
- package/core/base/SomaEntity.ts +41 -0
- package/core/base/SomaHttpClient.ts +126 -0
- package/core/base/SomaLocaleOnlyPageRoot.ts +4 -0
- package/core/base/SomaPageRootBase.ts +54 -0
- package/core/base/SomaValidator.ts +147 -0
- package/core/base/index.ts +7 -0
- package/core/compiler/full-manifest-builder.ts +43 -0
- package/core/compiler/manifest-compiler.ts +237 -0
- package/core/compiler/route-builder.ts +31 -0
- package/core/compiler/soma-precompile.ts +48 -0
- package/core/compiler/soma-webpack-loader.js +35 -0
- package/core/compiler/vite-plugin-soma.ts +73 -0
- package/core/container/SomaContainerAdapter.ts +169 -0
- package/core/diagnostics/SomaDiagnostics.ts +186 -0
- package/core/engine/asset-resolver.ts +67 -0
- package/core/engine/dom-renderer.ts +366 -0
- package/core/engine/event-engine.ts +287 -0
- package/core/engine/lis.ts +60 -0
- package/core/engine/reactive-proxy.ts +225 -0
- package/core/engine/render-engine.ts +264 -0
- package/core/engine/runtime-builder.ts +100 -0
- package/core/engine/scope-resolver.ts +252 -0
- package/core/engine/soma-bootstrap.ts +244 -0
- package/core/index.ts +6 -0
- package/core/infra/auth/IAuthService.ts +13 -0
- package/core/infra/auth/TokenAuthService.ts +98 -0
- package/core/infra/cache/ICache.ts +13 -0
- package/core/infra/cache/MemoryCache.ts +95 -0
- package/core/infra/cache/ServerFileCache.ts +123 -0
- package/core/infra/config/IConfig.ts +9 -0
- package/core/infra/config/SomaConfig.ts +85 -0
- package/core/infra/event-bus/IEventBus.ts +9 -0
- package/core/infra/event-bus/SomaEventBus.ts +53 -0
- package/core/infra/http/IHttpClient.ts +21 -0
- package/core/infra/http/SomaHttpService.ts +141 -0
- package/core/infra/i18n/DefaultI18n.ts +41 -0
- package/core/infra/i18n/II18n.ts +7 -0
- package/core/infra/logger/ConsoleLogger.ts +81 -0
- package/core/infra/logger/ILogger.ts +19 -0
- package/core/infra/notify/DefaultNotifyService.ts +31 -0
- package/core/infra/notify/INotifyService.ts +14 -0
- package/core/infra/permission/IPermission.ts +10 -0
- package/core/infra/permission/SomaPermission.ts +48 -0
- package/core/infra/router/IRouter.ts +19 -0
- package/core/infra/router/SomaRouter.ts +66 -0
- package/core/infra/storage/IStorageService.ts +7 -0
- package/core/infra/storage/MemoryStorageService.ts +53 -0
- package/core/infra/timer/ITimer.ts +9 -0
- package/core/infra/timer/SomaTimer.ts +118 -0
- package/core/middleware/SomaMiddlewareChain.ts +29 -0
- package/core/parser/pipeline-parser.ts +276 -0
- package/core/parser/ui-config-parser.ts +336 -0
- package/core/parser/yaml-loader.ts +36 -0
- package/core/router/RouteHandler.ts +93 -0
- package/core/runtime/SomaSnapshotStore.ts +98 -0
- package/core/scheduler/SomaScheduler.ts +190 -0
- package/core/types/domain.types.ts +88 -0
- package/core/types/engine.types.ts +35 -0
- package/core/types/event.types.ts +57 -0
- package/core/types/keyboard.types.ts +18 -0
- package/core/types/manifest.types.ts +30 -0
- package/core/types/scheduler.types.ts +10 -0
- package/core/types/ui-config.types.ts +89 -0
- package/core/validation/contract-validator.ts +465 -0
- package/dist/cli/soma.js +49 -0
- package/global.d.ts +14 -0
- package/next.config.js +61 -0
- package/package.json +77 -0
- package/postcss.config.js +6 -0
- package/tailwind.config.ts +21 -0
- package/tsconfig.json +35 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"experimentalDecorators": true,
|
|
17
|
+
"emitDecoratorMetadata": true,
|
|
18
|
+
"plugins": [
|
|
19
|
+
{ "name": "next" }
|
|
20
|
+
],
|
|
21
|
+
"paths": {
|
|
22
|
+
"@core/*": ["./core/*"],
|
|
23
|
+
"@soma-host/*": ["../app-demo/*"],
|
|
24
|
+
"@/*": ["./*"]
|
|
25
|
+
},
|
|
26
|
+
"baseUrl": "."
|
|
27
|
+
},
|
|
28
|
+
"include": [
|
|
29
|
+
"next-env.d.ts",
|
|
30
|
+
"**/*.ts",
|
|
31
|
+
"**/*.tsx",
|
|
32
|
+
".next/types/**/*.ts"
|
|
33
|
+
],
|
|
34
|
+
"exclude": ["node_modules"]
|
|
35
|
+
}
|