nodefony 7.0.2 → 10.0.0-alpha.2
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/.ai/symbols.json +36135 -0
- package/LICENSE +544 -0
- package/README.md +316 -694
- package/bin/nodefony +2183 -85
- package/dist/client/Container.js +367 -0
- package/dist/client/Event.js +198 -0
- package/dist/client/Service.js +344 -0
- package/dist/client/Tools.js +162 -0
- package/dist/client/client/ClientKernel.js +276 -0
- package/dist/client/client/angular/index.js +352 -0
- package/dist/client/client/announce.js +212 -0
- package/dist/client/client/debugbar/DebugBar.js +1624 -0
- package/dist/client/client/debugbar/format.js +103 -0
- package/dist/client/client/debugbar/hmr.js +37 -0
- package/dist/client/client/debugbar/index.js +29 -0
- package/dist/client/client/debugbar/model.js +133 -0
- package/dist/client/client/debugbar/network.js +173 -0
- package/dist/client/client/debugbar/profile.js +114 -0
- package/dist/client/client/index.js +34 -0
- package/dist/client/client/react/index.js +268 -0
- package/dist/client/client/realtime/AdaptiveRate.js +240 -0
- package/dist/client/client/realtime/BrowserWsTransport.js +57 -0
- package/dist/client/client/realtime/RealtimeClient.js +898 -0
- package/dist/client/client/realtime/localEvents.js +56 -0
- package/dist/client/client/realtime/notice.js +125 -0
- package/dist/client/client/realtime/observe.js +280 -0
- package/dist/client/client/roles/index.js +3 -0
- package/dist/client/client/roles/registry.js +97 -0
- package/dist/client/client/roles/roles.js +91 -0
- package/dist/client/client/shim/events.js +88 -0
- package/dist/client/client/shim/util.js +20 -0
- package/dist/client/client/svelte/index.js +319 -0
- package/dist/client/client/syslog/context.js +122 -0
- package/dist/client/client/syslog/errors.js +49 -0
- package/dist/client/client/syslog/uplink.js +106 -0
- package/dist/client/client/vue/index.js +321 -0
- package/dist/client/colors.js +63 -0
- package/dist/client/debugbar.standalone.js +4274 -0
- package/dist/client/realtime/IRealtimeTransport.js +32 -0
- package/dist/client/realtime/JsonRpcPeer.js +251 -0
- package/dist/client/realtime/channelRate.js +39 -0
- package/dist/client/realtime/platformChannels.js +155 -0
- package/dist/client/syslog/Pdu.js +224 -0
- package/dist/client/syslog/Syslog.js +1159 -0
- package/dist/client/syslog/drivers/pduFlow.js +106 -0
- package/dist/client/syslog/drivers/pduProtocol.js +28 -0
- package/dist/client/syslog/logColor.js +80 -0
- package/dist/client/types/src/Container.d.ts +221 -0
- package/dist/client/types/src/Event.d.ts +171 -0
- package/dist/client/types/src/FileClass.d.ts +184 -0
- package/dist/client/types/src/Service.d.ts +165 -0
- package/dist/client/types/src/Tools.d.ts +116 -0
- package/dist/client/types/src/client/ClientKernel.d.ts +90 -0
- package/dist/client/types/src/client/IClientKernel.d.ts +195 -0
- package/dist/client/types/src/client/angular/index.d.ts +273 -0
- package/dist/client/types/src/client/announce.d.ts +74 -0
- package/dist/client/types/src/client/debugbar/DebugBar.d.ts +279 -0
- package/dist/client/types/src/client/debugbar/format.d.ts +48 -0
- package/dist/client/types/src/client/debugbar/hmr.d.ts +16 -0
- package/dist/client/types/src/client/debugbar/index.d.ts +30 -0
- package/dist/client/types/src/client/debugbar/model.d.ts +158 -0
- package/dist/client/types/src/client/debugbar/network.d.ts +55 -0
- package/dist/client/types/src/client/debugbar/profile.d.ts +99 -0
- package/dist/client/types/src/client/index.d.ts +47 -0
- package/dist/client/types/src/client/react/index.d.ts +207 -0
- package/dist/client/types/src/client/realtime/AdaptiveRate.d.ts +138 -0
- package/dist/client/types/src/client/realtime/BrowserWsTransport.d.ts +27 -0
- package/dist/client/types/src/client/realtime/RealtimeClient.d.ts +573 -0
- package/dist/client/types/src/client/realtime/localEvents.d.ts +53 -0
- package/dist/client/types/src/client/realtime/notice.d.ts +70 -0
- package/dist/client/types/src/client/realtime/observe.d.ts +284 -0
- package/dist/client/types/src/client/roles/index.d.ts +15 -0
- package/dist/client/types/src/client/roles/registry.d.ts +72 -0
- package/dist/client/types/src/client/roles/roles.d.ts +68 -0
- package/dist/client/types/src/client/shim/cli-color.d.ts +2 -0
- package/dist/client/types/src/client/shim/events.d.ts +39 -0
- package/dist/client/types/src/client/shim/util.d.ts +14 -0
- package/dist/client/types/src/client/svelte/index.d.ts +216 -0
- package/dist/client/types/src/client/syslog/context.d.ts +76 -0
- package/dist/client/types/src/client/syslog/errors.d.ts +46 -0
- package/dist/client/types/src/client/syslog/uplink.d.ts +89 -0
- package/dist/client/types/src/client/transport/websocket.d.ts +5 -0
- package/dist/client/types/src/client/vue/index.d.ts +234 -0
- package/dist/client/types/src/colors.d.ts +32 -0
- package/dist/client/types/src/config/infra.d.ts +171 -0
- package/dist/client/types/src/kernel/bootReport.d.ts +112 -0
- package/dist/client/types/src/kernel/readinessRegistry.d.ts +104 -0
- package/dist/client/types/src/realtime/IRealtimeSocket.d.ts +142 -0
- package/dist/client/types/src/realtime/IRealtimeTransport.d.ts +50 -0
- package/dist/client/types/src/realtime/JsonRpcPeer.d.ts +251 -0
- package/dist/client/types/src/realtime/RealtimeEventMap.d.ts +269 -0
- package/dist/client/types/src/realtime/channelRate.d.ts +55 -0
- package/dist/client/types/src/realtime/platformChannels.d.ts +147 -0
- package/dist/client/types/src/syslog/Pdu.d.ts +134 -0
- package/dist/client/types/src/syslog/Syslog.d.ts +482 -0
- package/dist/client/types/src/syslog/drivers/ILogDriver.d.ts +177 -0
- package/dist/client/types/src/syslog/drivers/pduFlow.d.ts +53 -0
- package/dist/client/types/src/syslog/drivers/pduProtocol.d.ts +20 -0
- package/dist/client/types/src/syslog/logColor.d.ts +59 -0
- package/dist/client/types/src/types/ICliKernel.d.ts +28 -0
- package/dist/client/types/src/types/ICommand.d.ts +14 -0
- package/dist/client/types/src/types/IContainer.d.ts +35 -0
- package/dist/client/types/src/types/IKernel.d.ts +138 -0
- package/dist/client/types/src/types/IMcpTool.d.ts +157 -0
- package/dist/client/types/src/types/IModule.d.ts +73 -0
- package/dist/client/types/src/types/IPage.d.ts +119 -0
- package/dist/client/types/src/types/IService.d.ts +62 -0
- package/dist/client/types/src/types/ISyslog.d.ts +58 -0
- package/dist/client/types/src/types/ITransport.d.ts +5 -0
- package/dist/client/types/src/types/globals.d.ts +47 -0
- package/dist/node/Cli.js +750 -0
- package/dist/node/Container.js +367 -0
- package/dist/node/Error.js +309 -0
- package/dist/node/Event.js +198 -0
- package/dist/node/FileClass.js +308 -0
- package/dist/node/Nodefony.js +78 -0
- package/dist/node/Service.js +344 -0
- package/dist/node/Tools.js +205 -0
- package/dist/node/bin/resolveLocalCli.js +10 -0
- package/dist/node/bundler/index.js +103 -0
- package/dist/node/cli/agentTargets.js +461 -0
- package/dist/node/cli/aiMcp.js +553 -0
- package/dist/node/cli/aiMcpReport.js +129 -0
- package/dist/node/cli/aiSync.js +323 -0
- package/dist/node/cli/aiSyncReport.js +142 -0
- package/dist/node/cli/card.js +186 -0
- package/dist/node/cli/cardReport.js +110 -0
- package/dist/node/cli/completion.js +415 -0
- package/dist/node/cli/create.js +805 -0
- package/dist/node/cli/env.js +332 -0
- package/dist/node/cli/envReport.js +159 -0
- package/dist/node/cli/execPortable.js +60 -0
- package/dist/node/cli/gitHooks.js +191 -0
- package/dist/node/cli/gitHooksReport.js +119 -0
- package/dist/node/cli/globalFlags.js +67 -0
- package/dist/node/cli/helpReport.js +288 -0
- package/dist/node/cli/manPage.js +165 -0
- package/dist/node/cli/nodefonyBin.js +61 -0
- package/dist/node/cli/outdated.js +144 -0
- package/dist/node/cli/progress.js +555 -0
- package/dist/node/cli/projectRoot.js +32 -0
- package/dist/node/cli/promptPassword.js +44 -0
- package/dist/node/cli/prompts.js +86 -0
- package/dist/node/cli/scaffold/destination.js +92 -0
- package/dist/node/cli/scaffold/engine.js +2156 -0
- package/dist/node/cli/scaffold/entityFields.js +589 -0
- package/dist/node/cli/scaffold/format.js +243 -0
- package/dist/node/cli/scaffold/interactive.js +124 -0
- package/dist/node/cli/scaffold/moduleLayout.js +38 -0
- package/dist/node/cli/scaffold/reservedEntities.js +74 -0
- package/dist/node/cli/scaffold/spec.js +704 -0
- package/dist/node/cli/scaffold/steps.js +40 -0
- package/dist/node/cli/scaffold/userContractSource.js +133 -0
- package/dist/node/cli/scaffold/versions.js +57 -0
- package/dist/node/cli/scaffold/writer.js +172 -0
- package/dist/node/cli/startMenu.js +496 -0
- package/dist/node/cli/symbols.js +205 -0
- package/dist/node/cli/sysexits.js +34 -0
- package/dist/node/cli/tableReport.js +184 -0
- package/dist/node/cli/usageReport.js +144 -0
- package/dist/node/colors.js +63 -0
- package/dist/node/command/Builder.js +153 -0
- package/dist/node/command/Command.js +348 -0
- package/dist/node/config/configProvenance.js +101 -0
- package/dist/node/config/defaults.js +39 -0
- package/dist/node/config/defineConfig.js +129 -0
- package/dist/node/config/defineEnv.js +264 -0
- package/dist/node/config/envExample.js +41 -0
- package/dist/node/config/envOverride.js +423 -0
- package/dist/node/config/infra.js +163 -0
- package/dist/node/config/reactivity.js +23 -0
- package/dist/node/config/reservedEnv.js +118 -0
- package/dist/node/config/schema.js +134 -0
- package/dist/node/config/use.js +24 -0
- package/dist/node/finder/File.js +49 -0
- package/dist/node/finder/FileResult.js +86 -0
- package/dist/node/finder/Finder.js +201 -0
- package/dist/node/finder/Result.js +45 -0
- package/dist/node/index.js +121 -0
- package/dist/node/kernel/BootConfigurationError.js +54 -0
- package/dist/node/kernel/CliKernel.js +630 -0
- package/dist/node/kernel/Kernel.js +2198 -0
- package/dist/node/kernel/Module.js +453 -0
- package/dist/node/kernel/adminPlane/adminCaller.js +98 -0
- package/dist/node/kernel/adminPlane/adminRbac.js +51 -0
- package/dist/node/kernel/adminPlane/catalog.js +158 -0
- package/dist/node/kernel/adminPlane/executeAdmin.js +78 -0
- package/dist/node/kernel/checks/deep.js +335 -0
- package/dist/node/kernel/checks/freshness.js +139 -0
- package/dist/node/kernel/checks/gating.js +231 -0
- package/dist/node/kernel/checks/guards.js +232 -0
- package/dist/node/kernel/checks/lastBoot.js +136 -0
- package/dist/node/kernel/checks/live.js +330 -0
- package/dist/node/kernel/checks/packageDeps.js +292 -0
- package/dist/node/kernel/checks/readiness.js +153 -0
- package/dist/node/kernel/checks/renderReport.js +780 -0
- package/dist/node/kernel/checks/report.js +421 -0
- package/dist/node/kernel/checks/runDoctor.js +731 -0
- package/dist/node/kernel/checks/surface.js +364 -0
- package/dist/node/kernel/checks/walk.js +100 -0
- package/dist/node/kernel/checks/wiring.js +450 -0
- package/dist/node/kernel/commands/AiMcpCommand.js +65 -0
- package/dist/node/kernel/commands/AiSyncCommand.js +48 -0
- package/dist/node/kernel/commands/BuildCommand.js +49 -0
- package/dist/node/kernel/commands/CardCommand.js +50 -0
- package/dist/node/kernel/commands/ClusterCommand.js +58 -0
- package/dist/node/kernel/commands/CompletionCommand.js +31 -0
- package/dist/node/kernel/commands/CreateCommand.js +45 -0
- package/dist/node/kernel/commands/DevCommand.js +99 -0
- package/dist/node/kernel/commands/DoctorCommand.js +115 -0
- package/dist/node/kernel/commands/EnvCommand.js +52 -0
- package/dist/node/kernel/commands/GitHooksCommand.js +47 -0
- package/dist/node/kernel/commands/InspectCommand.js +153 -0
- package/dist/node/kernel/commands/InstallCommand.js +20 -0
- package/dist/node/kernel/commands/MenuCommand.js +261 -0
- package/dist/node/kernel/commands/OutdatedCommand.js +164 -0
- package/dist/node/kernel/commands/ProdCommand.js +60 -0
- package/dist/node/kernel/commands/StatusCommand.js +30 -0
- package/dist/node/kernel/commands/StopCommand.js +35 -0
- package/dist/node/kernel/commands/SymbolsCommand.js +45 -0
- package/dist/node/kernel/commands/runtimeLauncher.js +95 -0
- package/dist/node/kernel/decorators/kernelDecorator.js +110 -0
- package/dist/node/kernel/injector/injector.js +137 -0
- package/dist/node/kernel/injector/serviceOrder.js +106 -0
- package/dist/node/kernel/inspect/adminSubjects.js +194 -0
- package/dist/node/kernel/inspect/docOutline.js +86 -0
- package/dist/node/kernel/lifecycleTags.js +76 -0
- package/dist/node/kernel/moduleConfig.js +75 -0
- package/dist/node/kernel/moduleGating.js +68 -0
- package/dist/node/kernel/readinessRegistry.js +98 -0
- package/dist/node/kernel/resolveModuleEntry.js +61 -0
- package/dist/node/mcp/caller.js +40 -0
- package/dist/node/mcp/guard.js +51 -0
- package/dist/node/mcp/protocol.js +157 -0
- package/dist/node/mcp/server.js +216 -0
- package/dist/node/mcp/tools.js +861 -0
- package/dist/node/oauth/authorizationServer.js +221 -0
- package/dist/node/oauth/protectedResource.js +293 -0
- package/dist/node/package.js +4 -0
- package/dist/node/realtime/IRealtimeTransport.js +32 -0
- package/dist/node/realtime/JsonRpcPeer.js +251 -0
- package/dist/node/realtime/RealtimeEventMap.js +15 -0
- package/dist/node/realtime/channelRate.js +39 -0
- package/dist/node/realtime/platformChannels.js +155 -0
- package/dist/node/runtime/GcScheduler.js +92 -0
- package/dist/node/runtime/RequestContext.js +76 -0
- package/dist/node/runtime/bearer.js +84 -0
- package/dist/node/runtime/engineEnvironment.js +79 -0
- package/dist/node/runtime/loadEnv.js +105 -0
- package/dist/node/runtime/pageFacets.js +85 -0
- package/dist/node/runtime/pageFilters.js +103 -0
- package/dist/node/runtime/pageGuard.js +84 -0
- package/dist/node/runtime/pageQuery.js +160 -0
- package/dist/node/runtime/pageSort.js +114 -0
- package/dist/node/runtime/redact.js +43 -0
- package/dist/node/runtime/withTimeout.js +71 -0
- package/dist/node/service/cluster/ClusterManager.js +202 -0
- package/dist/node/service/cluster/ClusterProbeAggregator.js +120 -0
- package/dist/node/service/cluster/ClusterRelay.js +74 -0
- package/dist/node/service/cluster/clusterMaster.js +65 -0
- package/dist/node/service/cluster/clusterMessage.js +70 -0
- package/dist/node/service/cluster/cpuQuota.js +59 -0
- package/dist/node/service/cluster/instanceProbe.js +52 -0
- package/dist/node/service/cluster/podEnvironment.js +48 -0
- package/dist/node/service/cluster/processProbe.js +70 -0
- package/dist/node/service/cluster/richProcessProbe.js +115 -0
- package/dist/node/service/cluster/topology.js +71 -0
- package/dist/node/service/dev/BootReporter.js +490 -0
- package/dist/node/service/dev/DevSupervisor.js +1004 -0
- package/dist/node/service/dev/bootVerdict.js +158 -0
- package/dist/node/service/dev/detachedStart.js +372 -0
- package/dist/node/service/dev/devProcess.js +1137 -0
- package/dist/node/service/dev/devProjects.js +138 -0
- package/dist/node/service/dev/devStatusReport.js +395 -0
- package/dist/node/service/dev/devStop.js +263 -0
- package/dist/node/service/fetchService.js +35 -0
- package/dist/node/service/gitService.js +62 -0
- package/dist/node/syslog/Pdu.js +224 -0
- package/dist/node/syslog/Syslog.js +1159 -0
- package/dist/node/syslog/drivers/ClusterFileLogDriver.js +114 -0
- package/dist/node/syslog/drivers/FileLogDriver.js +127 -0
- package/dist/node/syslog/drivers/ILogDriver.js +26 -0
- package/dist/node/syslog/drivers/LokiLogDriver.js +144 -0
- package/dist/node/syslog/drivers/MemoryLogDriver.js +33 -0
- package/dist/node/syslog/drivers/OpenSearchLogDriver.js +159 -0
- package/dist/node/syslog/drivers/builtinLogDrivers.js +114 -0
- package/dist/node/syslog/drivers/filterPdus.js +71 -0
- package/dist/node/syslog/drivers/logDriverRegistry.js +83 -0
- package/dist/node/syslog/drivers/opensearchShared.js +17 -0
- package/dist/node/syslog/drivers/pduFlow.js +106 -0
- package/dist/node/syslog/drivers/pduProtocol.js +28 -0
- package/dist/node/syslog/httpFetch.js +43 -0
- package/dist/node/syslog/logColor.js +80 -0
- package/dist/node/syslog/sinks/FileSink.js +142 -0
- package/dist/node/syslog/transports/BatchingHttpTransport.js +98 -0
- package/dist/node/syslog/transports/ConsoleTransport.js +14 -0
- package/dist/node/syslog/transports/FileTransport.js +17 -0
- package/dist/node/syslog/transports/HttpTransport.js +44 -0
- package/dist/node/syslog/transports/LokiTransport.js +80 -0
- package/dist/node/syslog/transports/OpenSearchTransport.js +53 -0
- package/dist/node/syslog/transports/SyslogTransport.js +13 -0
- package/dist/node/syslog/transports/index.js +8 -0
- package/dist/node/testing/index.js +190 -0
- package/dist/types/Cli.d.ts +177 -0
- package/dist/types/Container.d.ts +221 -0
- package/dist/types/Error.d.ts +162 -0
- package/dist/types/Event.d.ts +171 -0
- package/dist/types/FileClass.d.ts +184 -0
- package/dist/types/Nodefony.d.ts +66 -0
- package/dist/types/Service.d.ts +165 -0
- package/dist/types/Tools.d.ts +116 -0
- package/dist/types/bin/resolveLocalCli.d.ts +49 -0
- package/dist/types/bundler/index.d.ts +66 -0
- package/dist/types/cli/agentTargets.d.ts +378 -0
- package/dist/types/cli/aiMcp.d.ts +239 -0
- package/dist/types/cli/aiMcpReport.d.ts +113 -0
- package/dist/types/cli/aiSync.d.ts +68 -0
- package/dist/types/cli/aiSyncReport.d.ts +149 -0
- package/dist/types/cli/card.d.ts +49 -0
- package/dist/types/cli/cardReport.d.ts +127 -0
- package/dist/types/cli/completion.d.ts +154 -0
- package/dist/types/cli/create.d.ts +177 -0
- package/dist/types/cli/env.d.ts +103 -0
- package/dist/types/cli/envReport.d.ts +153 -0
- package/dist/types/cli/execPortable.d.ts +54 -0
- package/dist/types/cli/gitHooks.d.ts +48 -0
- package/dist/types/cli/gitHooksReport.d.ts +101 -0
- package/dist/types/cli/globalFlags.d.ts +48 -0
- package/dist/types/cli/helpReport.d.ts +110 -0
- package/dist/types/cli/manPage.d.ts +21 -0
- package/dist/types/cli/nodefonyBin.d.ts +45 -0
- package/dist/types/cli/outdated.d.ts +119 -0
- package/dist/types/cli/progress.d.ts +349 -0
- package/dist/types/cli/projectRoot.d.ts +19 -0
- package/dist/types/cli/promptPassword.d.ts +22 -0
- package/dist/types/cli/prompts.d.ts +102 -0
- package/dist/types/cli/scaffold/destination.d.ts +70 -0
- package/dist/types/cli/scaffold/engine.d.ts +545 -0
- package/dist/types/cli/scaffold/entityFields.d.ts +238 -0
- package/dist/types/cli/scaffold/format.d.ts +78 -0
- package/dist/types/cli/scaffold/interactive.d.ts +11 -0
- package/dist/types/cli/scaffold/moduleLayout.d.ts +69 -0
- package/dist/types/cli/scaffold/reservedEntities.d.ts +49 -0
- package/dist/types/cli/scaffold/spec.d.ts +159 -0
- package/dist/types/cli/scaffold/steps.d.ts +24 -0
- package/dist/types/cli/scaffold/userContractSource.d.ts +86 -0
- package/dist/types/cli/scaffold/versions.d.ts +14 -0
- package/dist/types/cli/scaffold/writer.d.ts +100 -0
- package/dist/types/cli/startMenu.d.ts +195 -0
- package/dist/types/cli/symbols.d.ts +84 -0
- package/dist/types/cli/sysexits.d.ts +31 -0
- package/dist/types/cli/tableReport.d.ts +44 -0
- package/dist/types/cli/usageReport.d.ts +108 -0
- package/dist/types/client/ClientKernel.d.ts +90 -0
- package/dist/types/client/IClientKernel.d.ts +195 -0
- package/dist/types/client/angular/index.d.ts +273 -0
- package/dist/types/client/announce.d.ts +74 -0
- package/dist/types/client/debugbar/DebugBar.d.ts +279 -0
- package/dist/types/client/debugbar/format.d.ts +48 -0
- package/dist/types/client/debugbar/hmr.d.ts +16 -0
- package/dist/types/client/debugbar/index.d.ts +30 -0
- package/dist/types/client/debugbar/model.d.ts +158 -0
- package/dist/types/client/debugbar/network.d.ts +55 -0
- package/dist/types/client/debugbar/profile.d.ts +99 -0
- package/dist/types/client/index.d.ts +47 -0
- package/dist/types/client/react/index.d.ts +207 -0
- package/dist/types/client/realtime/AdaptiveRate.d.ts +138 -0
- package/dist/types/client/realtime/BrowserWsTransport.d.ts +27 -0
- package/dist/types/client/realtime/RealtimeClient.d.ts +573 -0
- package/dist/types/client/realtime/localEvents.d.ts +53 -0
- package/dist/types/client/realtime/notice.d.ts +70 -0
- package/dist/types/client/realtime/observe.d.ts +284 -0
- package/dist/types/client/roles/index.d.ts +15 -0
- package/dist/types/client/roles/registry.d.ts +72 -0
- package/dist/types/client/roles/roles.d.ts +68 -0
- package/dist/types/client/shim/cli-color.d.ts +2 -0
- package/dist/types/client/shim/events.d.ts +39 -0
- package/dist/types/client/shim/util.d.ts +14 -0
- package/dist/types/client/svelte/index.d.ts +216 -0
- package/dist/types/client/syslog/context.d.ts +76 -0
- package/dist/types/client/syslog/errors.d.ts +46 -0
- package/dist/types/client/syslog/uplink.d.ts +89 -0
- package/dist/types/client/transport/websocket.d.ts +5 -0
- package/dist/types/client/vue/index.d.ts +234 -0
- package/dist/types/colors.d.ts +32 -0
- package/dist/types/command/Builder.d.ts +47 -0
- package/dist/types/command/Command.d.ts +268 -0
- package/dist/types/config/configMeta.d.ts +53 -0
- package/dist/types/config/configProvenance.d.ts +58 -0
- package/dist/types/config/defaults.d.ts +33 -0
- package/dist/types/config/defineConfig.d.ts +70 -0
- package/dist/types/config/defineEnv.d.ts +170 -0
- package/dist/types/config/envExample.d.ts +23 -0
- package/dist/types/config/envOverride.d.ts +236 -0
- package/dist/types/config/index.d.ts +23 -0
- package/dist/types/config/infra.d.ts +171 -0
- package/dist/types/config/reactivity.d.ts +36 -0
- package/dist/types/config/reservedEnv.d.ts +145 -0
- package/dist/types/config/schema.d.ts +113 -0
- package/dist/types/config/types.d.ts +374 -0
- package/dist/types/config/use.d.ts +80 -0
- package/dist/types/finder/File.d.ts +26 -0
- package/dist/types/finder/FileResult.d.ts +14 -0
- package/dist/types/finder/Finder.d.ts +51 -0
- package/dist/types/finder/Result.d.ts +10 -0
- package/dist/types/index.d.ts +205 -0
- package/dist/types/kernel/BootConfigurationError.d.ts +50 -0
- package/dist/types/kernel/CliKernel.d.ts +289 -0
- package/dist/types/kernel/Kernel.d.ts +1255 -0
- package/dist/types/kernel/Module.d.ts +326 -0
- package/dist/types/kernel/adminPlane/adminCaller.d.ts +105 -0
- package/dist/types/kernel/adminPlane/adminRbac.d.ts +44 -0
- package/dist/types/kernel/adminPlane/catalog.d.ts +122 -0
- package/dist/types/kernel/adminPlane/executeAdmin.d.ts +99 -0
- package/dist/types/kernel/bootReport.d.ts +112 -0
- package/dist/types/kernel/checks/deep.d.ts +122 -0
- package/dist/types/kernel/checks/freshness.d.ts +49 -0
- package/dist/types/kernel/checks/gating.d.ts +134 -0
- package/dist/types/kernel/checks/guards.d.ts +57 -0
- package/dist/types/kernel/checks/lastBoot.d.ts +189 -0
- package/dist/types/kernel/checks/live.d.ts +110 -0
- package/dist/types/kernel/checks/packageDeps.d.ts +44 -0
- package/dist/types/kernel/checks/readiness.d.ts +97 -0
- package/dist/types/kernel/checks/renderReport.d.ts +107 -0
- package/dist/types/kernel/checks/report.d.ts +414 -0
- package/dist/types/kernel/checks/runDoctor.d.ts +361 -0
- package/dist/types/kernel/checks/surface.d.ts +148 -0
- package/dist/types/kernel/checks/walk.d.ts +45 -0
- package/dist/types/kernel/checks/wiring.d.ts +54 -0
- package/dist/types/kernel/commands/AiMcpCommand.d.ts +39 -0
- package/dist/types/kernel/commands/AiSyncCommand.d.ts +28 -0
- package/dist/types/kernel/commands/BuildCommand.d.ts +13 -0
- package/dist/types/kernel/commands/CardCommand.d.ts +34 -0
- package/dist/types/kernel/commands/ClusterCommand.d.ts +29 -0
- package/dist/types/kernel/commands/CompletionCommand.d.ts +17 -0
- package/dist/types/kernel/commands/CreateCommand.d.ts +16 -0
- package/dist/types/kernel/commands/DevCommand.d.ts +40 -0
- package/dist/types/kernel/commands/DoctorCommand.d.ts +55 -0
- package/dist/types/kernel/commands/EnvCommand.d.ts +35 -0
- package/dist/types/kernel/commands/GitHooksCommand.d.ts +27 -0
- package/dist/types/kernel/commands/InspectCommand.d.ts +59 -0
- package/dist/types/kernel/commands/InstallCommand.d.ts +7 -0
- package/dist/types/kernel/commands/MenuCommand.d.ts +58 -0
- package/dist/types/kernel/commands/OutdatedCommand.d.ts +47 -0
- package/dist/types/kernel/commands/ProdCommand.d.ts +29 -0
- package/dist/types/kernel/commands/StatusCommand.d.ts +17 -0
- package/dist/types/kernel/commands/StopCommand.d.ts +17 -0
- package/dist/types/kernel/commands/SymbolsCommand.d.ts +29 -0
- package/dist/types/kernel/commands/runtimeLauncher.d.ts +76 -0
- package/dist/types/kernel/decorators/kernelDecorator.d.ts +76 -0
- package/dist/types/kernel/injector/injector.d.ts +47 -0
- package/dist/types/kernel/injector/serviceOrder.d.ts +29 -0
- package/dist/types/kernel/inspect/adminSubjects.d.ts +169 -0
- package/dist/types/kernel/inspect/docOutline.d.ts +53 -0
- package/dist/types/kernel/lifecycleTags.d.ts +79 -0
- package/dist/types/kernel/moduleConfig.d.ts +35 -0
- package/dist/types/kernel/moduleGating.d.ts +78 -0
- package/dist/types/kernel/readinessRegistry.d.ts +104 -0
- package/dist/types/kernel/resolveModuleEntry.d.ts +46 -0
- package/dist/types/mcp/caller.d.ts +55 -0
- package/dist/types/mcp/guard.d.ts +66 -0
- package/dist/types/mcp/protocol.d.ts +163 -0
- package/dist/types/mcp/server.d.ts +70 -0
- package/dist/types/mcp/tools.d.ts +209 -0
- package/dist/types/oauth/authorizationServer.d.ts +204 -0
- package/dist/types/oauth/protectedResource.d.ts +339 -0
- package/dist/types/realtime/IRealtimeSocket.d.ts +142 -0
- package/dist/types/realtime/IRealtimeTransport.d.ts +50 -0
- package/dist/types/realtime/JsonRpcPeer.d.ts +251 -0
- package/dist/types/realtime/RealtimeEventMap.d.ts +269 -0
- package/dist/types/realtime/channelRate.d.ts +55 -0
- package/dist/types/realtime/platformChannels.d.ts +147 -0
- package/dist/types/runtime/GcScheduler.d.ts +96 -0
- package/dist/types/runtime/RequestContext.d.ts +152 -0
- package/dist/types/runtime/bearer.d.ts +88 -0
- package/dist/types/runtime/engineEnvironment.d.ts +115 -0
- package/dist/types/runtime/loadEnv.d.ts +86 -0
- package/dist/types/runtime/pageFacets.d.ts +104 -0
- package/dist/types/runtime/pageFilters.d.ts +139 -0
- package/dist/types/runtime/pageGuard.d.ts +78 -0
- package/dist/types/runtime/pageQuery.d.ts +138 -0
- package/dist/types/runtime/pageSort.d.ts +86 -0
- package/dist/types/runtime/redact.d.ts +27 -0
- package/dist/types/runtime/withTimeout.d.ts +51 -0
- package/dist/types/service/cluster/ClusterManager.d.ts +112 -0
- package/dist/types/service/cluster/ClusterProbeAggregator.d.ts +68 -0
- package/dist/types/service/cluster/ClusterRelay.d.ts +57 -0
- package/dist/types/service/cluster/clusterMaster.d.ts +40 -0
- package/dist/types/service/cluster/clusterMessage.d.ts +94 -0
- package/dist/types/service/cluster/cpuQuota.d.ts +37 -0
- package/dist/types/service/cluster/instanceProbe.d.ts +82 -0
- package/dist/types/service/cluster/podEnvironment.d.ts +35 -0
- package/dist/types/service/cluster/processProbe.d.ts +53 -0
- package/dist/types/service/cluster/richProcessProbe.d.ts +77 -0
- package/dist/types/service/cluster/topology.d.ts +64 -0
- package/dist/types/service/dev/BootReporter.d.ts +67 -0
- package/dist/types/service/dev/DevSupervisor.d.ts +117 -0
- package/dist/types/service/dev/bootVerdict.d.ts +99 -0
- package/dist/types/service/dev/detachedStart.d.ts +164 -0
- package/dist/types/service/dev/devProcess.d.ts +638 -0
- package/dist/types/service/dev/devProjects.d.ts +121 -0
- package/dist/types/service/dev/devStatusReport.d.ts +141 -0
- package/dist/types/service/dev/devStop.d.ts +57 -0
- package/dist/types/service/fetchService.d.ts +29 -0
- package/dist/types/service/gitService.d.ts +24 -0
- package/dist/types/syslog/Pdu.d.ts +134 -0
- package/dist/types/syslog/Syslog.d.ts +482 -0
- package/dist/types/syslog/drivers/ClusterFileLogDriver.d.ts +40 -0
- package/dist/types/syslog/drivers/FileLogDriver.d.ts +55 -0
- package/dist/types/syslog/drivers/ILogDriver.d.ts +177 -0
- package/dist/types/syslog/drivers/LokiLogDriver.d.ts +44 -0
- package/dist/types/syslog/drivers/MemoryLogDriver.d.ts +20 -0
- package/dist/types/syslog/drivers/OpenSearchLogDriver.d.ts +40 -0
- package/dist/types/syslog/drivers/builtinLogDrivers.d.ts +43 -0
- package/dist/types/syslog/drivers/filterPdus.d.ts +21 -0
- package/dist/types/syslog/drivers/logDriverRegistry.d.ts +100 -0
- package/dist/types/syslog/drivers/opensearchShared.d.ts +11 -0
- package/dist/types/syslog/drivers/pduFlow.d.ts +53 -0
- package/dist/types/syslog/drivers/pduProtocol.d.ts +20 -0
- package/dist/types/syslog/httpFetch.d.ts +48 -0
- package/dist/types/syslog/logColor.d.ts +59 -0
- package/dist/types/syslog/sinks/FileSink.d.ts +78 -0
- package/dist/types/syslog/transports/BatchingHttpTransport.d.ts +59 -0
- package/dist/types/syslog/transports/ConsoleTransport.d.ts +8 -0
- package/dist/types/syslog/transports/FileTransport.d.ts +13 -0
- package/dist/types/syslog/transports/HttpTransport.d.ts +15 -0
- package/dist/types/syslog/transports/LokiTransport.d.ts +45 -0
- package/dist/types/syslog/transports/OpenSearchTransport.d.ts +40 -0
- package/dist/types/syslog/transports/SyslogTransport.d.ts +9 -0
- package/dist/types/syslog/transports/index.d.ts +12 -0
- package/dist/types/testing/index.d.ts +197 -0
- package/dist/types/types/IAdminApi.d.ts +246 -0
- package/dist/types/types/ICliKernel.d.ts +28 -0
- package/dist/types/types/ICommand.d.ts +14 -0
- package/dist/types/types/IContainer.d.ts +35 -0
- package/dist/types/types/IIdempotencyStore.d.ts +159 -0
- package/dist/types/types/IKernel.d.ts +138 -0
- package/dist/types/types/IMcpTool.d.ts +157 -0
- package/dist/types/types/IModule.d.ts +73 -0
- package/dist/types/types/IModuleManifest.d.ts +49 -0
- package/dist/types/types/IPage.d.ts +119 -0
- package/dist/types/types/IService.d.ts +62 -0
- package/dist/types/types/ISyslog.d.ts +58 -0
- package/dist/types/types/ITransport.d.ts +5 -0
- package/dist/types/types/globals.d.ts +47 -0
- package/docs/angular-services.md +318 -0
- package/docs/catalogue.md +184 -0
- package/docs/cli.md +369 -0
- package/docs/client.md +616 -0
- package/docs/debugbar.md +218 -0
- package/docs/environnement.md +308 -0
- package/docs/index.md +388 -0
- package/docs/kernel.md +670 -0
- package/docs/progression.md +228 -0
- package/docs/react-hooks.md +686 -0
- package/docs/request-context.md +507 -0
- package/docs/service.md +590 -0
- package/docs/svelte-reactivite.md +293 -0
- package/docs/syslog.md +848 -0
- package/docs/testing.md +203 -0
- package/docs/vue-composables.md +255 -0
- package/man/nodefony.1 +152 -0
- package/package.json +163 -83
- package/templates/app/agents/AGENTS.md.tpl +967 -0
- package/templates/app/agents/POINTEUR.md.tpl +12 -0
- package/templates/app/base/Dockerfile.tpl +104 -0
- package/templates/app/base/README.md.tpl +314 -0
- package/templates/app/base/dockerignore.tpl +28 -0
- package/templates/app/base/env.ts.tpl +130 -0
- package/templates/app/base/gitattributes.tpl +28 -0
- package/templates/app/base/github/workflows/ci.yml.tpl +91 -0
- package/templates/app/base/gitignore.tpl +46 -0
- package/templates/app/base/gitlab-ci.yml.tpl +42 -0
- package/templates/app/base/index.ts.tpl +69 -0
- package/templates/app/base/nodefony.config.ts.tpl +342 -0
- package/templates/app/base/oxlintrc.json.tpl +127 -0
- package/templates/app/base/package.json.tpl +75 -0
- package/templates/app/base/prettierignore.tpl +24 -0
- package/templates/app/base/prettierrc.json.tpl +12 -0
- package/templates/app/base/rolldown.config.ts.tpl +8 -0
- package/templates/app/base/tests/config.test.ts.tpl +29 -0
- package/templates/app/base/tests/e2e.setup.ts.tpl +181 -0
- package/templates/app/base/tests/e2e.test.ts.tpl +105 -0
- package/templates/app/base/tests/migrations.e2e.test.ts.tpl +579 -0
- package/templates/app/base/tsconfig.json.tpl +47 -0
- package/templates/app/base/vitest.config.ts.tpl +88 -0
- package/templates/app/base/vitest.e2e.config.ts.tpl +39 -0
- package/templates/app/complete/compose.yaml.tpl +328 -0
- package/templates/app/complete/deploy/migrate-job.yaml.tpl +100 -0
- package/templates/app/complete/docker/db/init-nodefony-e2e.sql.tpl +30 -0
- package/templates/app/complete/docker/grafana/provisioning/datasources/loki.yaml.tpl +15 -0
- package/templates/app/complete/env.local.tpl +11 -0
- package/templates/app/complete/env.tpl +53 -0
- package/templates/app/complete/nodefony/entity/User.ts.tpl +69 -0
- package/templates/app/complete/nodefony/security/provisionUsers.ts.tpl +124 -0
- package/templates/app/complete/nodefony/service/AppBannerService.ts.tpl +98 -0
- package/templates/app/complete/nodefony/service/AppInfoService.ts.tpl +85 -0
- package/templates/app/frontend/angular/frontend/src/accent.css.tpl +34 -0
- package/templates/app/frontend/angular/frontend/src/app/app.component.ts.tpl +400 -0
- package/templates/app/frontend/react/frontend/src/App.tsx.tpl +421 -0
- package/templates/app/frontend/react/frontend/src/accent.css.tpl +30 -0
- package/templates/app/frontend/shared/frontend/src/brand.ts.tpl +3 -0
- package/templates/app/frontend/shared/frontend/src/showcase.css.tpl +224 -0
- package/templates/app/frontend/shared/nodefony/controllers/AppController.ts.tpl +45 -0
- package/templates/app/frontend/svelte/frontend/src/App.svelte.tpl +371 -0
- package/templates/app/frontend/svelte/frontend/src/accent.css.tpl +34 -0
- package/templates/app/frontend/vue/frontend/src/App.vue.tpl +367 -0
- package/templates/app/frontend/vue/frontend/src/accent.css.tpl +34 -0
- package/templates/app/home/nodefony/controllers/HomeController.ts.tpl +38 -0
- package/templates/command/nodefony/command/__NAME__.ts.tpl +132 -0
- package/templates/controller/duplex/nodefony/controllers/__NAME__.ts.tpl +188 -0
- package/templates/controller/example/nodefony/controllers/__NAME__.ts.tpl +348 -0
- package/templates/controller/hello/nodefony/controllers/__NAME__.ts.tpl +143 -0
- package/templates/controller/realtime/nodefony/controllers/__NAME__.ts.tpl +153 -0
- package/templates/controller/realtime/tests/__KEBAB__-realtime.test.ts.tpl +79 -0
- package/templates/controller/rest/nodefony/controllers/__NAME__.ts.tpl +159 -0
- package/templates/entity/base/nodefony/entity/__PASCAL__.schema.ts.tpl +31 -0
- package/templates/entity/base/nodefony/entity/__PASCAL__.ts.tpl +68 -0
- package/templates/entity/controller/nodefony/controllers/__PASCAL__Controller.ts.tpl +335 -0
- package/templates/entity/service/nodefony/service/__PASCAL__Service.ts.tpl +126 -0
- package/templates/entity/tests/tests/__KEBAB__.e2e.test.ts.tpl +358 -0
- package/templates/entity/tests/tests/__KEBAB__.test.ts.tpl +87 -0
- package/templates/front/angular/frontend/src/app/app.component.ts.tpl +30 -0
- package/templates/front/base/nodefony/controllers/__NAME__.ts.tpl +60 -0
- package/templates/front/react/frontend/src/App.tsx.tpl +26 -0
- package/templates/front/svelte/frontend/src/App.svelte.tpl +19 -0
- package/templates/front/vue/frontend/src/App.vue.tpl +23 -0
- package/templates/module/ai/AGENTS.md.tpl +71 -0
- package/templates/module/base/README.md.tpl +62 -0
- package/templates/module/base/docs/index.md.tpl +55 -0
- package/templates/module/base/index.ts.tpl +50 -0
- package/templates/module/base/nodefony/config/config.ts.tpl +60 -0
- package/templates/module/base/nodefony/config/defineModuleConfig.ts.tpl +55 -0
- package/templates/module/base/nodefony/src/errors/__PASCAL__Error.ts.tpl +20 -0
- package/templates/module/base/package.json.tpl +53 -0
- package/templates/module/base/rolldown.config.ts.tpl +14 -0
- package/templates/module/base/tests/__KEBAB__.test.ts.tpl +39 -0
- package/templates/module/base/tsconfig.json.tpl +42 -0
- package/templates/module/base/vitest.config.ts.tpl +27 -0
- package/templates/module/packages/CLAUDE.md.tpl +51 -0
- package/templates/module/packages/MEMORY.md.tpl +39 -0
- package/templates/module/packages/tsconfig.declarations.json.tpl +19 -0
- package/templates/module/packages/tsconfig.tests.json.tpl +11 -0
- package/templates/module/service/nodefony/interfaces/I__PASCAL__Service.ts.tpl +14 -0
- package/templates/module/service/nodefony/interfaces/index.ts.tpl +1 -0
- package/templates/module/service/nodefony/service/__PASCAL__Service.ts.tpl +116 -0
- package/templates/service/nodefony/interfaces/I__PASCAL__Service.ts.tpl +19 -0
- package/templates/service/nodefony/service/__PASCAL__Service.ts.tpl +136 -0
- package/templates/service/tests/__PASCAL__Service.test.ts.tpl +53 -0
- package/templates/shared/front-entry/angular/frontend/src/main.ts.tpl +17 -0
- package/templates/shared/front-entry/react/frontend/src/main.tsx.tpl +11 -0
- package/templates/shared/front-entry/svelte/frontend/src/main.ts.tpl +13 -0
- package/templates/shared/front-entry/vue/frontend/src/main.ts.tpl +12 -0
- package/templates/shared/front-registrar/nodefony/frontend/register__PASCAL__Entry.ts.tpl +40 -0
- package/templates/shared/front-shell/frontend/index.html.tpl +39 -0
- package/templates/shared/ng-app-tsconfig/frontend/tsconfig.app.json.tpl +18 -0
- package/templates/shared/svelte-shim/frontend/src/env.d.ts.tpl +12 -0
- package/templates/shared/vue-shim/frontend/src/env.d.ts.tpl +15 -0
- package/.yarnclean +0 -45
- package/CHANGELOG.md +0 -406
- package/autoloader.es6 +0 -253
- package/builder.es6 +0 -366
- package/cli/builder/bundles/bundle.js +0 -328
- package/cli/builder/bundles/controller.js +0 -73
- package/cli/builder/bundles/users-bundle/.yarnclean +0 -45
- package/cli/builder/bundles/users-bundle/Command/fixtureTask.js +0 -47
- package/cli/builder/bundles/users-bundle/Command/usersCommand.js +0 -105
- package/cli/builder/bundles/users-bundle/Entity/mongoose/userEntity.js +0 -168
- package/cli/builder/bundles/users-bundle/Entity/sequelize/userEntity.js +0 -231
- package/cli/builder/bundles/users-bundle/Fixtures/users.js +0 -117
- package/cli/builder/bundles/users-bundle/Fixtures/usersFixtures.js +0 -114
- package/cli/builder/bundles/users-bundle/Resources/config/config.js +0 -90
- package/cli/builder/bundles/users-bundle/Resources/config/routing.js +0 -17
- package/cli/builder/bundles/users-bundle/Resources/config/security.js +0 -96
- package/cli/builder/bundles/users-bundle/Resources/config/services.js +0 -7
- package/cli/builder/bundles/users-bundle/Resources/config/webpack/webpack.dev.config.js +0 -13
- package/cli/builder/bundles/users-bundle/Resources/config/webpack/webpack.prod.config.js +0 -31
- package/cli/builder/bundles/users-bundle/Resources/config/webpack.config.js +0 -146
- package/cli/builder/bundles/users-bundle/Resources/js/users.js +0 -153
- package/cli/builder/bundles/users-bundle/Resources/public/favicon.ico +0 -0
- package/cli/builder/bundles/users-bundle/Resources/public/images/users-logo.png +0 -0
- package/cli/builder/bundles/users-bundle/Resources/scss/awesome/font-awesome.config.js +0 -11
- package/cli/builder/bundles/users-bundle/Resources/scss/custom.scss +0 -23
- package/cli/builder/bundles/users-bundle/Resources/scss/users.scss +0 -59
- package/cli/builder/bundles/users-bundle/Resources/swagger/openapi/login.js +0 -235
- package/cli/builder/bundles/users-bundle/Resources/swagger/openapi/users.js +0 -232
- package/cli/builder/bundles/users-bundle/Resources/translations/login.en_en.yml +0 -14
- package/cli/builder/bundles/users-bundle/Resources/translations/login.fr_fr.yml +0 -14
- package/cli/builder/bundles/users-bundle/Resources/translations/users.en_en.yml +0 -35
- package/cli/builder/bundles/users-bundle/Resources/translations/users.fr_fr.yml +0 -36
- package/cli/builder/bundles/users-bundle/Resources/views/base.html.twig +0 -32
- package/cli/builder/bundles/users-bundle/Resources/views/footer.html.twig +0 -7
- package/cli/builder/bundles/users-bundle/Resources/views/header.html.twig +0 -90
- package/cli/builder/bundles/users-bundle/Resources/views/login/login.html.twig +0 -43
- package/cli/builder/bundles/users-bundle/Resources/views/users/createUser.html.twig +0 -296
- package/cli/builder/bundles/users-bundle/Resources/views/users/readUsers.html.twig +0 -94
- package/cli/builder/bundles/users-bundle/controller/api/graphql/graphqlController.js +0 -56
- package/cli/builder/bundles/users-bundle/controller/api/graphql/userResolver.js +0 -121
- package/cli/builder/bundles/users-bundle/controller/api/graphql/usertype.js +0 -58
- package/cli/builder/bundles/users-bundle/controller/api/openapi/loginApiController.js +0 -210
- package/cli/builder/bundles/users-bundle/controller/api/openapi/restUserController.js +0 -244
- package/cli/builder/bundles/users-bundle/controller/loginController.js +0 -91
- package/cli/builder/bundles/users-bundle/controller/usersController.js +0 -332
- package/cli/builder/bundles/users-bundle/package.json +0 -58
- package/cli/builder/bundles/users-bundle/readme.md +0 -360
- package/cli/builder/bundles/users-bundle/services/usersService.js +0 -411
- package/cli/builder/bundles/users-bundle/src/providers/mongoose/userProvider.js +0 -47
- package/cli/builder/bundles/users-bundle/src/providers/sequelize/userProvider.js +0 -48
- package/cli/builder/bundles/users-bundle/tests/loginTest.js +0 -182
- package/cli/builder/bundles/users-bundle/usersBundle.js +0 -26
- package/cli/builder/microService/microService.js +0 -261
- package/cli/builder/microService/skeletons/.editorconfig +0 -18
- package/cli/builder/microService/skeletons/.env-cmdrc.js +0 -32
- package/cli/builder/microService/skeletons/.jshintrc +0 -37
- package/cli/builder/microService/skeletons/README.md +0 -117
- package/cli/builder/microService/skeletons/bin/bash/hello.sh +0 -5
- package/cli/builder/microService/skeletons/bin/cli +0 -13
- package/cli/builder/microService/skeletons/bin/python/hello.py +0 -20
- package/cli/builder/microService/skeletons/config/config.js +0 -29
- package/cli/builder/microService/skeletons/config/pm2.config.js +0 -72
- package/cli/builder/microService/skeletons/config/webpack/webpack.config.dev.js +0 -8
- package/cli/builder/microService/skeletons/config/webpack/webpack.config.prod.js +0 -25
- package/cli/builder/microService/skeletons/config/webpack.config.js +0 -114
- package/cli/builder/microService/skeletons/package.json +0 -76
- package/cli/builder/microService/skeletons/src/browser/index.css +0 -3
- package/cli/builder/microService/skeletons/src/browser/index.js +0 -16
- package/cli/builder/microService/skeletons/src/browser/socketio.js +0 -46
- package/cli/builder/microService/skeletons/src/cli/cli.js +0 -224
- package/cli/builder/microService/skeletons/src/cli/menu.js +0 -28
- package/cli/builder/microService/skeletons/src/n-api/README.md +0 -1
- package/cli/builder/microService/skeletons/src/n-api/binding.gyp +0 -14
- package/cli/builder/microService/skeletons/src/n-api/hello.cc +0 -14
- package/cli/builder/microService/skeletons/src/n-api/hello.js +0 -23
- package/cli/builder/microService/skeletons/src/n-api/package.json +0 -15
- package/cli/builder/microService/skeletons/src/node/examples/index.js +0 -120
- package/cli/builder/microService/skeletons/src/node/index.js +0 -102
- package/cli/builder/microService/skeletons/src/node/services/markdown/markdown.js +0 -27
- package/cli/builder/microService/skeletons/src/node/services/servers/http.js +0 -45
- package/cli/builder/microService/skeletons/src/node/services/servers/https.js +0 -44
- package/cli/builder/microService/skeletons/src/node/services/socketio/socketio.js +0 -46
- package/cli/builder/microService/skeletons/src/node/services/syscall/syscall.js +0 -111
- package/cli/builder/microService/skeletons/src/node/services/worker/thread.js +0 -59
- package/cli/builder/microService/skeletons/src/node/services/worker/worker.js +0 -60
- package/cli/builder/microService/skeletons/src/templates/base.html +0 -12
- package/cli/builder/microService/skeletons/src/templates/socket.html +0 -23
- package/cli/builder/microService/skeletons/tests/unit/serviceTest.js +0 -30
- package/cli/builder/project/project.js +0 -474
- package/cli/builder/project/skeletons/README.md +0 -778
- package/cli/builder/project/skeletons/bin/dev-deploy.sh +0 -5
- package/cli/builder/project/skeletons/bin/generateCertificates.sh.skeleton +0 -180
- package/cli/builder/project/skeletons/bin/prod-deploy.sh +0 -3
- package/cli/builder/project/skeletons/config/config.js.skeleton +0 -178
- package/cli/builder/project/skeletons/config/openssl/ca/openssl.cnf.skeleton +0 -150
- package/cli/builder/project/skeletons/config/openssl/ca_intermediate/openssl.cnf.skeleton +0 -152
- package/cli/builder/project/skeletons/config/pm2.config.js.skeleton +0 -62
- package/cli/builder/project/skeletons/documentation.html.twig +0 -24
- package/cli/builder/project/skeletons/editorconfig.skeleton +0 -18
- package/cli/builder/project/skeletons/eslintignore.skeleton +0 -15
- package/cli/builder/project/skeletons/eslintrc.js.skeleton +0 -97
- package/cli/builder/project/skeletons/gitignore.skeleton +0 -32
- package/cli/builder/project/skeletons/migrations/2022.12.25T17.37.37.entity-user.js +0 -137
- package/cli/builder/project/skeletons/migrations/2022.12.25T17.37.38.entity-session.js +0 -97
- package/cli/builder/project/skeletons/migrations/2022.12.25T17.37.39.entity-requests.js +0 -115
- package/cli/builder/project/skeletons/migrations/2022.12.25T17.37.40.entity-jwts.js +0 -97
- package/cli/builder/project/skeletons/migrations/migrations.skeleton.js +0 -101
- package/cli/builder/project/skeletons/package.json.twig +0 -71
- package/cli/builder/react/reactBuilder.js +0 -224
- package/cli/builder/react/skeletons/app/Resources/databases/nodefony.db +0 -0
- package/cli/builder/react/skeletons/app/Resources/translations/messages.en_en.yml +0 -5
- package/cli/builder/react/skeletons/app/Resources/translations/messages.fr_fr.yml +0 -5
- package/cli/builder/react/skeletons/app/Resources/views/base.html.twig +0 -33
- package/cli/builder/react/skeletons/app/config/config.js +0 -392
- package/cli/builder/react/skeletons/app/config/routing.js +0 -10
- package/cli/builder/react/skeletons/app/config/security.js +0 -74
- package/cli/builder/react/skeletons/app/controller/appController.js +0 -22
- package/cli/builder/sandbox/sandBoxBuilder.js +0 -610
- package/cli/builder/sandbox/skeletons/Resources/css/entry.css +0 -48
- package/cli/builder/sandbox/skeletons/Resources/js/entry.js +0 -60
- package/cli/builder/sandbox/skeletons/Resources/public/manifest.json +0 -32
- package/cli/builder/sandbox/skeletons/Resources/translations/messages.en_en.yml +0 -5
- package/cli/builder/sandbox/skeletons/Resources/translations/messages.fr_fr.yml +0 -5
- package/cli/builder/sandbox/skeletons/Resources/views/base.html.twig +0 -46
- package/cli/builder/sandbox/skeletons/Resources/views/index.html.twig +0 -34
- package/cli/builder/sandbox/skeletons/bootstrap/custom.scss +0 -27
- package/cli/builder/sandbox/skeletons/bootstrap/entry.scss +0 -60
- package/cli/builder/sandbox/skeletons/workbox/templates/index.html.twig +0 -32
- package/cli/builder/sandbox/skeletons/workbox/workers/service-worker.js +0 -196
- package/cli/builder/skeletons/Resources/public/favicon.ico +0 -0
- package/cli/builder/skeletons/Resources/public/images/app-logo.png +0 -0
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/401.html.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/401.json.twig +0 -24
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/403.html.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/403.json.twig +0 -20
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/404.html.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/404.json.twig +0 -20
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/500.html.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/base.html.twig +0 -30
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/exception.html.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/exception.json.twig +0 -24
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/footer.html.twig +0 -33
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/header.html.twig +0 -6
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/index.html.twig +0 -6
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/index.json.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/layout.html.twig +0 -125
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/layout.json.twig +0 -5
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/timeout.html.twig +0 -1
- package/cli/builder/skeletons/Resources/views/framework-bundle/views/timeout.json.twig +0 -24
- package/cli/builder/skeletons/app/appKernel.js +0 -133
- package/cli/builder/skeletons/binding/binding.cc +0 -26
- package/cli/builder/skeletons/binding/binding.skeleton +0 -8
- package/cli/builder/skeletons/bundle/bundleClass.js +0 -37
- package/cli/builder/skeletons/command/commandClass.js +0 -11
- package/cli/builder/skeletons/command/taskClass.js +0 -20
- package/cli/builder/skeletons/config/config.js +0 -138
- package/cli/builder/skeletons/config/nodefony/elastic-bundle.js +0 -37
- package/cli/builder/skeletons/config/nodefony/framework-bundle.js +0 -22
- package/cli/builder/skeletons/config/nodefony/http-bundle.js +0 -104
- package/cli/builder/skeletons/config/nodefony/mail-bundle.js +0 -44
- package/cli/builder/skeletons/config/nodefony/mongoose-bundle.js +0 -51
- package/cli/builder/skeletons/config/nodefony/monitoring-bundle.js +0 -34
- package/cli/builder/skeletons/config/nodefony/realtime-bundle.js +0 -15
- package/cli/builder/skeletons/config/nodefony/redis-bundle.js +0 -44
- package/cli/builder/skeletons/config/nodefony/security-bundle.js +0 -25
- package/cli/builder/skeletons/config/nodefony/sequelize-bundle.js +0 -156
- package/cli/builder/skeletons/config/routing.js +0 -55
- package/cli/builder/skeletons/config/security.js +0 -102
- package/cli/builder/skeletons/config/services.js +0 -1
- package/cli/builder/skeletons/config/webpack/webpack.dev.config.js +0 -13
- package/cli/builder/skeletons/config/webpack/webpack.prod.config.js +0 -20
- package/cli/builder/skeletons/config/webpack.config.js +0 -148
- package/cli/builder/skeletons/controller/controllerClass.js +0 -75
- package/cli/builder/skeletons/package.json.twig +0 -57
- package/cli/builder/skeletons/unittest/testFile.js +0 -46
- package/cli/builder/vue/skeletons/Resources/public/images/app-logo.png +0 -0
- package/cli/builder/vue/skeletons/Resources/translations/messages.en_en.yml +0 -5
- package/cli/builder/vue/skeletons/Resources/translations/messages.fr_fr.yml +0 -5
- package/cli/builder/vue/skeletons/vue.config.js +0 -129
- package/cli/builder/vue/vueBuilder.js +0 -410
- package/cli/generate/generate.es6 +0 -103
- package/cli/install/install.js +0 -190
- package/cli/sequelize/sequelize.js +0 -94
- package/cli/start.js +0 -702
- package/cli/tools/pm2.es6 +0 -112
- package/cli/tools/tools.es6 +0 -97
- package/cli.es6 +0 -925
- package/container.es6 +0 -272
- package/error.es6 +0 -293
- package/fileClass.es6 +0 -242
- package/finder/file.es6 +0 -33
- package/finder/fileResult.es6 +0 -138
- package/finder/finder2.es6 +0 -275
- package/finder.es6 +0 -427
- package/kernel/annotations/annotations.es6 +0 -286
- package/kernel/api/api.es6 +0 -61
- package/kernel/api/graphqlApi.es6 +0 -107
- package/kernel/api/jsonApi.es6 +0 -177
- package/kernel/api/openApi.es6 +0 -139
- package/kernel/api/schemas/openApiSchema.js +0 -394
- package/kernel/babylon.es6 +0 -162
- package/kernel/bundle.es6 +0 -1200
- package/kernel/cliKernel.es6 +0 -869
- package/kernel/command.es6 +0 -78
- package/kernel/commands/nodefonyCommand.es6 +0 -247
- package/kernel/commands/tasks/bundlesTask.es6 +0 -59
- package/kernel/controllers/controller.es6 +0 -791
- package/kernel/fixture.es6 +0 -19
- package/kernel/injections/injections.es6 +0 -424
- package/kernel/kernel.es6 +0 -1960
- package/kernel/kernelWatcher.es6 +0 -387
- package/kernel/orm/entity.es6 +0 -59
- package/kernel/orm/orm.es6 +0 -139
- package/kernel/reader.es6 +0 -290
- package/kernel/security/encoder.es6 +0 -17
- package/kernel/security/factories/factory.es6 +0 -111
- package/kernel/security/factories/passeportFactory.es6 +0 -61
- package/kernel/security/provider.es6 +0 -58
- package/kernel/security/providers/chainProvider.es6 +0 -99
- package/kernel/security/providers/memoryProvider.es6 +0 -55
- package/kernel/security/providers/providerManager.es6 +0 -67
- package/kernel/security/providers/userEntityProvider.es6 +0 -50
- package/kernel/security/role.es6 +0 -12
- package/kernel/security/secureArea.es6 +0 -431
- package/kernel/security/tokens/token.es6 +0 -171
- package/kernel/security/user.es6 +0 -106
- package/kernel/serviceRealTime.es6 +0 -21
- package/kernel/services/connectionsService.es6 +0 -93
- package/kernel/services/cron/cronService.es6 +0 -123
- package/kernel/task.es6 +0 -80
- package/kernel/templates.es6 +0 -22
- package/kernel/templating/twig.es6 +0 -218
- package/kernel/tests/cliTest.js +0 -59
- package/kernel/tests/containerTest.js +0 -232
- package/kernel/tests/kernelTest.js +0 -39
- package/nodefony.es6 +0 -1084
- package/notificationsCenter.es6 +0 -118
- package/protocol.es6 +0 -86
- package/protocols/bayeux.es6 +0 -174
- package/protocols/jsonRpc/jsonrpc.es6 +0 -56
- package/result.es6 +0 -99
- package/service.es6 +0 -288
- package/syslog/pdu.es6 +0 -141
- package/syslog/syslog.es6 +0 -754
- package/watcher.es6 +0 -113
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { useEffect, <% if (!it.complete) { %>useRef, <% } %>useState, version as reactVersion } from "react";
|
|
2
|
+
<% if (it.complete) { %>// FAÇADE temps réel isomorphe du framework — aucun `new WebSocket` à la main
|
|
3
|
+
// (reconnexion, re-subscribe, état : gérés). Deux concepts suffisent : le
|
|
4
|
+
// Provider, qui reçoit l'adresse du serveur, et un hook par besoin.
|
|
5
|
+
// Subpath `nodefony/react` : une porte EXPLICITE, résolue à l'identique par
|
|
6
|
+
// Vite, Node et le typecheck (la racine `nodefony` dépend d'une condition
|
|
7
|
+
// d'export que `tsgo --noEmit` ne voit pas).
|
|
8
|
+
import {
|
|
9
|
+
NodefonyProvider,
|
|
10
|
+
useNodefony,
|
|
11
|
+
useNodefonyState,
|
|
12
|
+
useNodefonyChannelData,
|
|
13
|
+
} from "nodefony/react";
|
|
14
|
+
<% } %>import { NODEFONY_LOGO } from "./brand";
|
|
15
|
+
// Mise en page et palette de la démonstration — feuille PARTAGÉE par les trois
|
|
16
|
+
// vitrines (Vite l'injecte dans le document, elle est donc bien globale).
|
|
17
|
+
import "./showcase.css";
|
|
18
|
+
import "./accent.css";
|
|
19
|
+
|
|
20
|
+
interface ApiData {
|
|
21
|
+
hello: string;
|
|
22
|
+
pid: number;
|
|
23
|
+
/** Identité résolue par la zone firewall `main` (^/api) — « anonyme » sinon. */
|
|
24
|
+
who?: string;
|
|
25
|
+
}
|
|
26
|
+
<% if (it.complete) { %>
|
|
27
|
+
/** Réponse de la route PROTÉGÉE /api/secure/hello (zone `secure`, 401 sans session). */
|
|
28
|
+
interface SecureData {
|
|
29
|
+
message: string;
|
|
30
|
+
zone: string;
|
|
31
|
+
pid: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
<% } %>/**
|
|
35
|
+
* Page d'accueil de l'app — vitrine AUTONOME (zéro dépendance UI) :
|
|
36
|
+
* - panneau de marque (même design que le login de Studio : dégradé, glow,
|
|
37
|
+
* logo, slogan, 3 piliers du framework) ;
|
|
38
|
+
* - trois preuves INTERACTIVES : fetch HTTP, echo WebSocket live sur le MÊME
|
|
39
|
+
* controller (le différenciateur Nodefony), état React préservé par HMR.
|
|
40
|
+
* Édite ce fichier : la page se met à jour sans recharger ni perdre le compteur.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
const FEATURES = [
|
|
44
|
+
{
|
|
45
|
+
title: "Temps réel natif",
|
|
46
|
+
desc: "HTTP et WebSocket, co-citoyens dans le même contexte.",
|
|
47
|
+
// éclair (bolt)
|
|
48
|
+
icon: <path d="M13 2 4.5 12.5H11L9.5 22 18 11.5h-6.5L13 2z" />,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "Observabilité totale",
|
|
52
|
+
desc: "Métriques, logs et traces — en direct.",
|
|
53
|
+
// pulse (activity)
|
|
54
|
+
icon: <path d="M3 12h4l2.5-7 5 14 2.5-7h4" fill="none" strokeWidth="2" />,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "Zero Trust",
|
|
58
|
+
desc: "Sécurité par défaut, vos données protégées.",
|
|
59
|
+
// bouclier
|
|
60
|
+
icon: <path d="M12 2 5 5v6c0 5 3.5 8.5 7 11 3.5-2.5 7-6 7-11V5l-7-3z" />,
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
<% if (it.complete) { %>/** Un message du canal `live:events` (cf `nodefony/controllers/LiveController.ts`). */
|
|
65
|
+
interface LiveEvent {
|
|
66
|
+
text: string;
|
|
67
|
+
ts: number;
|
|
68
|
+
pid: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Carte temps réel — consomme la FAÇADE (hooks `nodefony/react`) : abonnement
|
|
73
|
+
* au montage, désabonnement au démontage, re-subscribe à la reconnexion, état
|
|
74
|
+
* de connexion — tout est porté par le client. Zéro `WebSocket` à la main.
|
|
75
|
+
*/
|
|
76
|
+
function LiveCard() {
|
|
77
|
+
// La socket du Provider — même instance que celle des hooks ci-dessous.
|
|
78
|
+
const live = useNodefony();
|
|
79
|
+
const state = useNodefonyState();
|
|
80
|
+
const last = useNodefonyChannelData<LiveEvent>("live:events");
|
|
81
|
+
const [pong, setPong] = useState<string | null>(null);
|
|
82
|
+
const ping = async () => {
|
|
83
|
+
const t0 = performance.now();
|
|
84
|
+
await live.request("live:ping", {});
|
|
85
|
+
setPong(`pong en ${Math.round(performance.now() - t0)} ms`);
|
|
86
|
+
};
|
|
87
|
+
// Ce que CETTE page envoie, TOUTES les pages abonnées le reçoivent : ouvrir
|
|
88
|
+
// un second onglet et cliquer suffit à le voir. C'est ce partage qui fait
|
|
89
|
+
// l'intérêt d'une socket — pas un battement qui parlerait pour ne rien dire.
|
|
90
|
+
const say = () =>
|
|
91
|
+
live.emit("live:say", {
|
|
92
|
+
text: `bonjour de la page (${Date.now() % 1000})`,
|
|
93
|
+
});
|
|
94
|
+
return (
|
|
95
|
+
<div className="nf-card">
|
|
96
|
+
<h2>3. Temps réel — la socket Nodefony</h2>
|
|
97
|
+
<p className="nf-dim">
|
|
98
|
+
<code>LiveController</code> (<code>--kind realtime</code>) publie le
|
|
99
|
+
canal <code>live:events</code> quand il se passe quelque chose — jamais
|
|
100
|
+
sur une horloge ; la page le consomme par les hooks{" "}
|
|
101
|
+
<code>nodefony/react</code>. Ouvrez un second onglet pour voir arriver
|
|
102
|
+
ce que celui-ci envoie.
|
|
103
|
+
</p>
|
|
104
|
+
<p>
|
|
105
|
+
état : <strong>{state}</strong>
|
|
106
|
+
{last && (
|
|
107
|
+
<>
|
|
108
|
+
{" "}
|
|
109
|
+
· reçu <strong>{last.text}</strong> (pid {last.pid})
|
|
110
|
+
</>
|
|
111
|
+
)}
|
|
112
|
+
</p>
|
|
113
|
+
<button onClick={ping}>RPC live:ping</button>{" "}
|
|
114
|
+
<button onClick={say}>envoyer sur le canal</button>
|
|
115
|
+
{pong && <span className="nf-dim"> {pong}</span>}
|
|
116
|
+
</div>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
<% } %>export function App() {
|
|
121
|
+
const [data, setData] = useState<ApiData | null>(null);
|
|
122
|
+
const [error, setError] = useState<string | null>(null);
|
|
123
|
+
const [count, setCount] = useState(0);
|
|
124
|
+
<% if (!it.complete) { %> const [wsInput, setWsInput] = useState("ping");
|
|
125
|
+
const [wsLog, setWsLog] = useState<string[]>([]);
|
|
126
|
+
const ws = useRef<WebSocket | null>(null);
|
|
127
|
+
<% } %>
|
|
128
|
+
<% if (it.complete) { %> const [username, setUsername] = useState("admin");
|
|
129
|
+
const [password, setPassword] = useState("admin");
|
|
130
|
+
const [authMsg, setAuthMsg] = useState<string | null>(null);
|
|
131
|
+
const [secureData, setSecureData] = useState<SecureData | null>(null);
|
|
132
|
+
<% } %>
|
|
133
|
+
// Rappelé après login/logout : la zone firewall `main` (^/api) résout
|
|
134
|
+
// l'identité par requête → `who` change sans recharger la page.
|
|
135
|
+
const refreshHello = () =>
|
|
136
|
+
fetch("/api/hello")
|
|
137
|
+
.then((r) => r.json())
|
|
138
|
+
.then((j) => {
|
|
139
|
+
const d = (j.result ?? j) as ApiData; // Nodefony wrappe `{ result }`
|
|
140
|
+
setData(d);
|
|
141
|
+
<% if (it.complete) { %> // Connecté → la route PROTÉGÉE prend le relais (zone `secure`,
|
|
142
|
+
// ^/api/secure : sans session le firewall répond 401 avant le controller).
|
|
143
|
+
if (d.who && d.who !== "anonyme") {
|
|
144
|
+
fetch("/api/secure/hello", { credentials: "same-origin" })
|
|
145
|
+
.then((r) => (r.ok ? r.json() : null))
|
|
146
|
+
.then((s) =>
|
|
147
|
+
setSecureData(s ? ((s.result ?? s) as SecureData) : null),
|
|
148
|
+
)
|
|
149
|
+
.catch(() => setSecureData(null));
|
|
150
|
+
} else {
|
|
151
|
+
setSecureData(null);
|
|
152
|
+
}
|
|
153
|
+
<% } %> // Un `then` REND une valeur — sinon le lint de l'application
|
|
154
|
+
// GÉNÉRÉE la refuse (`promise/always-return`).
|
|
155
|
+
return d;
|
|
156
|
+
})
|
|
157
|
+
.catch((e) => setError(e instanceof Error ? e.message : String(e)));
|
|
158
|
+
<% if (it.complete) { %>
|
|
159
|
+
// Flux session BFF du framework (cookie opaque HttpOnly — le front ne voit
|
|
160
|
+
// jamais de token) : mêmes endpoints que le login de la console /nodefony.
|
|
161
|
+
const doLogin = async () => {
|
|
162
|
+
setAuthMsg(null);
|
|
163
|
+
const r = await fetch("/nodefony/security/api/auth/login", {
|
|
164
|
+
method: "POST",
|
|
165
|
+
headers: { "Content-Type": "application/json" },
|
|
166
|
+
credentials: "same-origin",
|
|
167
|
+
body: JSON.stringify({ username, password }),
|
|
168
|
+
});
|
|
169
|
+
const j = (await r.json()) as {
|
|
170
|
+
result?: { user?: { username?: string } };
|
|
171
|
+
user?: { username?: string };
|
|
172
|
+
};
|
|
173
|
+
if (!r.ok) {
|
|
174
|
+
setAuthMsg("identifiants invalides");
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const u = j.result?.user ?? j.user;
|
|
178
|
+
setAuthMsg(`session ouverte — ${u?.username ?? username}`);
|
|
179
|
+
refreshHello();
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const doLogout = async () => {
|
|
183
|
+
await fetch("/nodefony/security/api/auth/logout", {
|
|
184
|
+
method: "POST",
|
|
185
|
+
credentials: "same-origin",
|
|
186
|
+
});
|
|
187
|
+
setAuthMsg("session fermée");
|
|
188
|
+
refreshHello();
|
|
189
|
+
};
|
|
190
|
+
<% } %>
|
|
191
|
+
useEffect(() => {
|
|
192
|
+
refreshHello();
|
|
193
|
+
<% if (it.complete) { %><% } else { %>
|
|
194
|
+
// WS même origine que la page (ws en http, wss en https).
|
|
195
|
+
// ⚠ Echo BRUT = démo du pipeline HTTP/WS partagé, pas un modèle : pour du
|
|
196
|
+
// WS métier, génère la bonne couche (`nodefony create controller <nom>
|
|
197
|
+
// --kind realtime`) et consomme-la par la FAÇADE client (`RealtimeClient`,
|
|
198
|
+
// hooks `nodefony/react`) au lieu d'un `new WebSocket` à la main.
|
|
199
|
+
const scheme = location.protocol === "https:" ? "wss" : "ws";
|
|
200
|
+
const socket = new WebSocket(`${scheme}://${location.host}/api/echo`);
|
|
201
|
+
socket.addEventListener("message", (ev) => {
|
|
202
|
+
setWsLog((log) => [...log.slice(-4), `← ${String(ev.data)}`]);
|
|
203
|
+
});
|
|
204
|
+
socket.addEventListener("error", () =>
|
|
205
|
+
setWsLog((log) => [...log, "⚠ connexion WS impossible"]),
|
|
206
|
+
);
|
|
207
|
+
ws.current = socket;
|
|
208
|
+
return () => {
|
|
209
|
+
// StrictMode (dev) monte/démonte l'effet 2× : fermer une socket encore
|
|
210
|
+
// en CONNECTING lève un warning navigateur (« closed before the
|
|
211
|
+
// connection is established ») — on attend l'open pour fermer proprement.
|
|
212
|
+
if (socket.readyState === WebSocket.CONNECTING) {
|
|
213
|
+
socket.addEventListener("open", () => socket.close());
|
|
214
|
+
} else {
|
|
215
|
+
socket.close();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
<% } %> }, []);
|
|
219
|
+
<% if (!it.complete) { %>
|
|
220
|
+
const sendWs = () => {
|
|
221
|
+
if (ws.current?.readyState === WebSocket.OPEN) {
|
|
222
|
+
ws.current.send(wsInput);
|
|
223
|
+
setWsLog((log) => [...log.slice(-4), `→ ${wsInput}`]);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
<% } %>
|
|
227
|
+
return (
|
|
228
|
+
<div className="nf-split">
|
|
229
|
+
{/* ── Panneau de marque (même design que le login Studio) ─────────── */}
|
|
230
|
+
<aside className="nf-hero">
|
|
231
|
+
<div className="nf-glow" aria-hidden />
|
|
232
|
+
<div
|
|
233
|
+
style={{
|
|
234
|
+
display: "flex",
|
|
235
|
+
gap: 14,
|
|
236
|
+
alignItems: "center",
|
|
237
|
+
position: "relative",
|
|
238
|
+
}}
|
|
239
|
+
>
|
|
240
|
+
<img
|
|
241
|
+
src={NODEFONY_LOGO}
|
|
242
|
+
alt="Nodefony"
|
|
243
|
+
height={42}
|
|
244
|
+
draggable={false}
|
|
245
|
+
/>
|
|
246
|
+
<span style={{ fontWeight: 700, fontSize: 26 }}><%= it.appName %></span>
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
<div style={{ maxWidth: 480, position: "relative" }}>
|
|
250
|
+
<h2>Le temps réel, nativement.</h2>
|
|
251
|
+
<p className="nf-sub">
|
|
252
|
+
Observez, comprenez et contrôlez chaque sous-système de Nodefony —
|
|
253
|
+
en direct.
|
|
254
|
+
</p>
|
|
255
|
+
{FEATURES.map((f) => (
|
|
256
|
+
<div className="nf-feature" key={f.title}>
|
|
257
|
+
<div className="nf-ficon">
|
|
258
|
+
<svg viewBox="0 0 24 24">{f.icon}</svg>
|
|
259
|
+
</div>
|
|
260
|
+
<div>
|
|
261
|
+
<div style={{ fontWeight: 600 }}>{f.title}</div>
|
|
262
|
+
<div style={{ fontSize: 14, color: "rgba(255,255,255,.78)" }}>
|
|
263
|
+
{f.desc}
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
))}
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div
|
|
271
|
+
style={{
|
|
272
|
+
display: "flex",
|
|
273
|
+
justifyContent: "space-between",
|
|
274
|
+
position: "relative",
|
|
275
|
+
}}
|
|
276
|
+
>
|
|
277
|
+
<span style={{ fontSize: 12, color: "rgba(255,255,255,.65)" }}>
|
|
278
|
+
Nodefony 10 · licence CeCILL-B
|
|
279
|
+
</span>
|
|
280
|
+
<a
|
|
281
|
+
href="https://github.com/nodefony/nodefony-core"
|
|
282
|
+
target="_blank"
|
|
283
|
+
rel="noreferrer noopener"
|
|
284
|
+
style={{ fontSize: 12, color: "rgba(255,255,255,.7)" }}
|
|
285
|
+
>
|
|
286
|
+
GitHub
|
|
287
|
+
</a>
|
|
288
|
+
</div>
|
|
289
|
+
</aside>
|
|
290
|
+
|
|
291
|
+
{/* ── Preuves interactives — TON app tourne ────────────────────────── */}
|
|
292
|
+
<main className="nf-main">
|
|
293
|
+
<header className="nf-fwhead">
|
|
294
|
+
{/* Logo officiel React — SVG inline (aucun asset externe). */}
|
|
295
|
+
<svg
|
|
296
|
+
className="nf-fwlogo"
|
|
297
|
+
viewBox="-11.5 -10.23174 23 20.46348"
|
|
298
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
299
|
+
aria-label="React"
|
|
300
|
+
>
|
|
301
|
+
<circle cx="0" cy="0" r="2.05" fill="#61dafb" />
|
|
302
|
+
<g stroke="#61dafb" strokeWidth="1" fill="none">
|
|
303
|
+
<ellipse rx="11" ry="4.2" />
|
|
304
|
+
<ellipse rx="11" ry="4.2" transform="rotate(60)" />
|
|
305
|
+
<ellipse rx="11" ry="4.2" transform="rotate(120)" />
|
|
306
|
+
</g>
|
|
307
|
+
</svg>
|
|
308
|
+
<div>
|
|
309
|
+
<h1>Votre app est en ligne.</h1>
|
|
310
|
+
<span className="nf-fwbadge">React v{reactVersion} · Vite HMR</span>
|
|
311
|
+
</div>
|
|
312
|
+
<% if (it.complete) { %> {/* Réponse de la route PROTÉGÉE — visible uniquement session ouverte. */}
|
|
313
|
+
{secureData && (
|
|
314
|
+
<span className="nf-hello">👋 {secureData.message}</span>
|
|
315
|
+
)}
|
|
316
|
+
<% } %> </header>
|
|
317
|
+
<p className="nf-dim">
|
|
318
|
+
<%= it.complete ? "Quatre" : "Trois" %> preuves interactives — édite <code>frontend/src/App.tsx</code>,
|
|
319
|
+
la page se met à jour par HMR sans perdre le compteur.
|
|
320
|
+
</p>
|
|
321
|
+
|
|
322
|
+
<div className="nf-card">
|
|
323
|
+
<% if (it.complete) { %> <h2>
|
|
324
|
+
1. Backend HTTP —{" "}
|
|
325
|
+
<code>GET {secureData ? "/api/secure/hello" : "/api/hello"}</code>
|
|
326
|
+
</h2>
|
|
327
|
+
<% } else { %> <h2>1. Backend HTTP — <code>GET /api/hello</code></h2>
|
|
328
|
+
<% } %> {error ? (
|
|
329
|
+
<pre style={{ color: "crimson" }}>{error}</pre>
|
|
330
|
+
) : data ? (
|
|
331
|
+
<pre>{JSON.stringify(<%= it.complete ? "secureData ?? data" : "data" %>, null, 2)}</pre>
|
|
332
|
+
) : (
|
|
333
|
+
<p>loading…</p>
|
|
334
|
+
)}
|
|
335
|
+
</div>
|
|
336
|
+
<% if (it.complete) { %>
|
|
337
|
+
<div className="nf-card">
|
|
338
|
+
<h2>
|
|
339
|
+
2. Firewall — l'identité vit dans la zone <code>^/api</code>
|
|
340
|
+
</h2>
|
|
341
|
+
<p className="nf-dim">
|
|
342
|
+
Deux zones dans <code>nodefony.config.ts</code> : <code>main</code>{" "}
|
|
343
|
+
(<code>^/api</code>, session → anonymous, jamais bloquante) et{" "}
|
|
344
|
+
<code>secure</code> (<code>^/api/secure</code>, session SEULE —
|
|
345
|
+
pattern plus spécifique, il gagne le match ; sans session le
|
|
346
|
+
firewall répond 401). Connecte-toi (compte dev seedé{" "}
|
|
347
|
+
<code>admin / admin</code>) : la carte 1 bascule sur{" "}
|
|
348
|
+
<code>GET /api/secure/hello</code> → « Bonjour admin ».
|
|
349
|
+
</p>
|
|
350
|
+
{data?.who && data.who !== "anonyme" ? (
|
|
351
|
+
<>
|
|
352
|
+
<span>
|
|
353
|
+
connecté — <strong>{data.who}</strong>
|
|
354
|
+
</span>{" "}
|
|
355
|
+
<button onClick={doLogout}>Se déconnecter</button>
|
|
356
|
+
</>
|
|
357
|
+
) : (
|
|
358
|
+
<>
|
|
359
|
+
<input
|
|
360
|
+
value={username}
|
|
361
|
+
onChange={(e) => setUsername(e.target.value)}
|
|
362
|
+
autoComplete="username"
|
|
363
|
+
aria-label="utilisateur"
|
|
364
|
+
/>{" "}
|
|
365
|
+
<input
|
|
366
|
+
type="password"
|
|
367
|
+
value={password}
|
|
368
|
+
onChange={(e) => setPassword(e.target.value)}
|
|
369
|
+
onKeyDown={(e) => e.key === "Enter" && doLogin()}
|
|
370
|
+
autoComplete="current-password"
|
|
371
|
+
aria-label="mot de passe"
|
|
372
|
+
/>{" "}
|
|
373
|
+
<button onClick={doLogin}>Se connecter</button>
|
|
374
|
+
</>
|
|
375
|
+
)}
|
|
376
|
+
{authMsg && <p className="nf-dim">{authMsg}</p>}
|
|
377
|
+
</div>
|
|
378
|
+
<% } %>
|
|
379
|
+
<% if (it.complete) { %> {/* Deux concepts pour du temps réel : ce Provider, et un hook dans la
|
|
380
|
+
carte. Le Provider fabrique la socket partagée pour cette URL et la
|
|
381
|
+
connecte — l'URL est RELATIVE, résolue contre la page (https → wss).
|
|
382
|
+
Deux Providers de même URL n'ouvrent qu'UNE connexion. */}
|
|
383
|
+
<NodefonyProvider url="/api/live/realtime">
|
|
384
|
+
<LiveCard />
|
|
385
|
+
</NodefonyProvider>
|
|
386
|
+
<% } else { %> <div className="nf-card">
|
|
387
|
+
<h2>2. WebSocket — MÊME controller que le HTTP</h2>
|
|
388
|
+
<p className="nf-dim">
|
|
389
|
+
<code>HelloController</code> porte la route GET <em>et</em> la route
|
|
390
|
+
WEBSOCKET : un seul pipeline (firewall, audit, logs).
|
|
391
|
+
</p>
|
|
392
|
+
<input
|
|
393
|
+
value={wsInput}
|
|
394
|
+
onChange={(e) => setWsInput(e.target.value)}
|
|
395
|
+
onKeyDown={(e) => e.key === "Enter" && sendWs()}
|
|
396
|
+
aria-label="message à envoyer"
|
|
397
|
+
/>{" "}
|
|
398
|
+
<button onClick={sendWs}>Envoyer en WS</button>
|
|
399
|
+
<pre>{wsLog.join("\n") || "(envoie un message)"}</pre>
|
|
400
|
+
</div>
|
|
401
|
+
<% } %>
|
|
402
|
+
<div className="nf-card">
|
|
403
|
+
<h2><%= it.complete ? 4 : 3 %>. ♻️ HMR check — état React préservé</h2>
|
|
404
|
+
<button onClick={() => setCount((c) => c + 1)}>
|
|
405
|
+
count is {count}
|
|
406
|
+
</button>
|
|
407
|
+
<p className="nf-dim">
|
|
408
|
+
Édite <code>frontend/src/App.tsx</code> — Vite recompile à la volée,
|
|
409
|
+
la page se met à jour <em>sans recharger</em> et le compteur est
|
|
410
|
+
conservé.
|
|
411
|
+
</p>
|
|
412
|
+
</div>
|
|
413
|
+
|
|
414
|
+
<% if (it.complete) { %> <p className="nf-dim">
|
|
415
|
+
Console d'administration : <a href="/nodefony">/nodefony</a> (Studio,
|
|
416
|
+
en dev)
|
|
417
|
+
</p>
|
|
418
|
+
<% } %> </main>
|
|
419
|
+
</div>
|
|
420
|
+
);
|
|
421
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Accent React — sa couleur et l'animation de son logo.
|
|
3
|
+
*
|
|
4
|
+
* La mise en page et la palette de la démonstration vivent dans
|
|
5
|
+
* `showcase.css`, PARTAGÉE par les trois vitrines : seules ces variables
|
|
6
|
+
* changent d'un framework à l'autre.
|
|
7
|
+
*
|
|
8
|
+
* Pourquoi un fichier CSS et non le bloc de styles du composant : Angular
|
|
9
|
+
* renomme les `@keyframes` déclarés dans `styles: [...]` (encapsulation de
|
|
10
|
+
* vue) — l'animation nommée par la variable ne serait alors plus trouvée.
|
|
11
|
+
* Les trois vitrines utilisent donc le même mécanisme, un import CSS que
|
|
12
|
+
* Vite injecte globalement.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
:root {
|
|
16
|
+
--nf-accent: #149eca;
|
|
17
|
+
/* Encre : la MÊME teinte, assez foncée pour être lue SUR le lavis.
|
|
18
|
+
La couleur de marque ne se négocie pas ; sa luminosité, si — écrire
|
|
19
|
+
`--nf-accent` sur `--nf-accent-wash` donnait 2,78:1, sous le seuil AA. */
|
|
20
|
+
--nf-accent-ink: #0b6a8a;
|
|
21
|
+
--nf-accent-glow: rgba(97, 218, 251, 0.35);
|
|
22
|
+
--nf-accent-wash: rgba(97, 218, 251, 0.14);
|
|
23
|
+
--nf-accent-line: rgba(97, 218, 251, 0.35);
|
|
24
|
+
--nf-logo-anim: nf-spin 16s linear infinite;
|
|
25
|
+
}
|
|
26
|
+
@keyframes nf-spin {
|
|
27
|
+
to {
|
|
28
|
+
transform: rotate(360deg);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Logo officiel Nodefony (data-URI — aucun asset externe, thème-safe). */
|
|
2
|
+
export const NODEFONY_LOGO =
|
|
3
|
+
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAABACAYAAACHm15kAAAXJElEQVR42r1aeXxU1dl+3nPunSV7QkIIYQdZFZCgRmRJsKIf1gVwRtQqKgoULLXQllrFOyNirdbtU+EDW3eq3hFXrIBoJoqyCCgiIJsgEAIJJJmss9xz3u+PSTBaWm2rvf/d+d1z57nPuy/Af/FiZhpjlRnt7nOYuVu7JwjM9O1zxn8DnGWxCCMsiMgB4DBz7gNvH5z40z998qtELJ77y+d32f6irGWjBtBHmv7+PP3YzJE/JBDyq9b7Tne9uX/2B7trp+48qjpW1DcCThwp3nQUpJoYNyBtx9SxnS8d3j1rn8UsgkT6R2OSmakkEJZE5AhA1dVH+y9488DU8xZuum5Hre5YF6kHoGIAXO6UNOqdbWJYZ++6fvmeJQX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aHGEIqTVrsCmHFaa1XHVWp/m/Ht/1kTanHSiBIhB8oa9FuP3Q3tPe3PLML3dV7bzuSOOR9KZIMySkZldc5OcXol/6kLJrzrj+sv79+zdSskj5V+Z2ZQaCpQ5zS48pS3Y/vubL2PgjNRFAakVExHEtuubmYlz/tDWBi3v+umu+e2v7YallWSKMsGjtU4KZey0JPz5381cbpzZF63RRrzNXXNTPv3Rw98FrFNS/PwD1tc4FUwzg7jd2zxwa2FhjzlrLmLrSkT9frTD17YRn1louunN93d2vf/kHZk5vPwCl1hmPz/a1ny/2i0Qifelrd04/yJYAkByGrt15uN91S7a/0fu2jxlTVzOmrUpgxqoEpq7iTvM280/u3/LZYysPXtMukT05rU2CbVffWBCnmtz+R1fb9DXVJfDSR0dn/M8j245kzVnPuOkdxrSVCUxbGce0Mu42byNPfOyzDa+sP3oVt6tlbJslmImZhcWW+FE2B77evUhuDzBzhzte3z9rzbaqW/bUUF5NpA4wkYBmQcIj++em4bzeqRsmn533p/MHdVjeltT6bJZ2MjHmH3VR5FtT2fxbn98z/dP9db/bfEJ5G+vrGC6RgNKCpNfon5+GC05L2zDujNz7Lh7S4dU2cGOsMqMkUKK/PXCiH3ofyB+CCJ1cuYkNXvhGxfzXt1ZfsbuGEWlsAISOQ2khzRSjV7YXA3LNLZcMzX3zprFdFhPRsR+VyX+04WIC2H+i+dy7Vhy+ZF9F5MY9tcg/GGkAdDwBZpDhNgsz09E5zTkytGfOS2f1SF92prfgs6IinKxxftQ1sORECwBOLoV0fCZ8ePbfttX4N1XGTqtodBBPtIA1A+xCYad8XD3Y1XzrBXkTOmemvhMKQfj9J2v1H33bT5QEwqI8WNrmxF1vfFI9adnG45fv3ntieEs0jj6n5VaPPi3ryekjOq7JzPQcSLZyf4DNln9HDXztNlpkK2D+/HNXqusf8/X/dTCGY3KYibcAAAAASUVORK5CYII=";
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Feuille de style de la page de démonstration — PARTAGÉE par les trois
|
|
3
|
+
* vitrines (React, Vue, Angular).
|
|
4
|
+
*
|
|
5
|
+
* Pourquoi un fichier CSS et non le bloc de styles de chaque framework : la
|
|
6
|
+
* mise en page, la palette et les composants (`.nf-card`, `.nf-hero`…) sont les
|
|
7
|
+
* mêmes dans les trois ; seul l'ACCENT change (la couleur du framework et
|
|
8
|
+
* l'animation de son logo). Tenir trois copies faisait qu'une retouche
|
|
9
|
+
* n'atteignait qu'une vitrine — et les trois avaient déjà commencé à diverger.
|
|
10
|
+
*
|
|
11
|
+
* L'accent se déclare en VARIABLES, posées par la vitrine qui importe ce
|
|
12
|
+
* fichier : `--nf-accent`, `--nf-accent-glow`, `--nf-accent-wash`,
|
|
13
|
+
* `--nf-accent-line`, `--nf-logo-anim` (plus le `@keyframes` qu'elle nomme).
|
|
14
|
+
*
|
|
15
|
+
* C'est TA page : supprime ce fichier et l'import qui le charge dès que la
|
|
16
|
+
* démonstration ne te sert plus.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--nf-bg: #f7f9fc;
|
|
21
|
+
--nf-fg: #1a1f26;
|
|
22
|
+
--nf-card: #fff;
|
|
23
|
+
--nf-border: #e2e8f0;
|
|
24
|
+
--nf-dim: #5b6472;
|
|
25
|
+
}
|
|
26
|
+
@media (prefers-color-scheme: dark) {
|
|
27
|
+
:root {
|
|
28
|
+
--nf-bg: #12161c;
|
|
29
|
+
--nf-fg: #e8ecf1;
|
|
30
|
+
--nf-card: #1a2028;
|
|
31
|
+
--nf-border: #2a3340;
|
|
32
|
+
--nf-dim: #98a2b3;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
body {
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
app-root {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nf-split {
|
|
44
|
+
display: flex;
|
|
45
|
+
min-height: 100vh;
|
|
46
|
+
font-family: system-ui, sans-serif;
|
|
47
|
+
background: var(--nf-bg);
|
|
48
|
+
color: var(--nf-fg);
|
|
49
|
+
}
|
|
50
|
+
.nf-hero {
|
|
51
|
+
flex: 1.05;
|
|
52
|
+
position: relative;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
color: #fff;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
padding: 48px;
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
background: linear-gradient(140deg, #022c4e 0%, #004d8c 45%, #0067ba 100%);
|
|
61
|
+
}
|
|
62
|
+
.nf-glow {
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset: 0;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
background:
|
|
67
|
+
radial-gradient(
|
|
68
|
+
circle at 26% 16%,
|
|
69
|
+
rgba(255, 255, 255, 0.16),
|
|
70
|
+
transparent 46%
|
|
71
|
+
),
|
|
72
|
+
radial-gradient(
|
|
73
|
+
circle at 88% 92%,
|
|
74
|
+
rgba(255, 255, 255, 0.08),
|
|
75
|
+
transparent 42%
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
/* `h2` et non `h1` : le titre de la PAGE est celui du contenu principal, et il
|
|
79
|
+
ne peut y en avoir qu'un. Cette bannière annonce, elle ne titre pas — sa
|
|
80
|
+
taille vient du style, jamais du niveau de titre. */
|
|
81
|
+
.nf-hero h2 {
|
|
82
|
+
font-size: clamp(30px, 3.4vw, 42px);
|
|
83
|
+
font-weight: 800;
|
|
84
|
+
line-height: 1.12;
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
.nf-hero .nf-sub {
|
|
88
|
+
font-size: 18px;
|
|
89
|
+
color: rgba(255, 255, 255, 0.82);
|
|
90
|
+
margin: 10px 0 0;
|
|
91
|
+
}
|
|
92
|
+
.nf-feature {
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: 14px;
|
|
95
|
+
align-items: flex-start;
|
|
96
|
+
margin-top: 22px;
|
|
97
|
+
}
|
|
98
|
+
.nf-ficon {
|
|
99
|
+
width: 42px;
|
|
100
|
+
height: 42px;
|
|
101
|
+
border-radius: 10px;
|
|
102
|
+
flex: none;
|
|
103
|
+
display: grid;
|
|
104
|
+
place-items: center;
|
|
105
|
+
background: rgba(255, 255, 255, 0.14);
|
|
106
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
107
|
+
}
|
|
108
|
+
.nf-ficon svg {
|
|
109
|
+
width: 22px;
|
|
110
|
+
height: 22px;
|
|
111
|
+
fill: #fff;
|
|
112
|
+
stroke: #fff;
|
|
113
|
+
}
|
|
114
|
+
.nf-fdesc {
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
color: rgba(255, 255, 255, 0.78);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.nf-main {
|
|
120
|
+
flex: 1;
|
|
121
|
+
padding: 48px 40px;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
overflow-y: auto;
|
|
124
|
+
}
|
|
125
|
+
.nf-card {
|
|
126
|
+
background: var(--nf-card);
|
|
127
|
+
border: 1px solid var(--nf-border);
|
|
128
|
+
border-radius: 10px;
|
|
129
|
+
padding: 20px;
|
|
130
|
+
margin-bottom: 18px;
|
|
131
|
+
}
|
|
132
|
+
.nf-card h2 {
|
|
133
|
+
margin: 0 0 10px;
|
|
134
|
+
font-size: 17px;
|
|
135
|
+
}
|
|
136
|
+
.nf-card pre {
|
|
137
|
+
background: rgba(127, 127, 127, 0.08);
|
|
138
|
+
padding: 10px;
|
|
139
|
+
border-radius: 6px;
|
|
140
|
+
overflow-x: auto;
|
|
141
|
+
}
|
|
142
|
+
.nf-card input {
|
|
143
|
+
padding: 7px 10px;
|
|
144
|
+
border-radius: 6px;
|
|
145
|
+
border: 1px solid var(--nf-border);
|
|
146
|
+
background: var(--nf-bg);
|
|
147
|
+
color: var(--nf-fg);
|
|
148
|
+
margin-right: 6px;
|
|
149
|
+
}
|
|
150
|
+
.nf-card button {
|
|
151
|
+
padding: 7px 14px;
|
|
152
|
+
border-radius: 6px;
|
|
153
|
+
border: none;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
background: #0067ba;
|
|
156
|
+
color: #fff;
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
.nf-card button:hover {
|
|
160
|
+
background: #0a79d6;
|
|
161
|
+
}
|
|
162
|
+
.nf-dim {
|
|
163
|
+
color: var(--nf-dim);
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nf-fwhead {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: 16px;
|
|
171
|
+
margin-bottom: 8px;
|
|
172
|
+
}
|
|
173
|
+
.nf-fwhead h1 {
|
|
174
|
+
margin: 0;
|
|
175
|
+
}
|
|
176
|
+
/* Logo et badge du framework — l'accent vient des variables ci-dessus. */
|
|
177
|
+
.nf-fwlogo {
|
|
178
|
+
width: 52px;
|
|
179
|
+
height: auto;
|
|
180
|
+
flex: none;
|
|
181
|
+
filter: drop-shadow(0 6px 14px var(--nf-accent-glow));
|
|
182
|
+
animation: var(--nf-logo-anim);
|
|
183
|
+
}
|
|
184
|
+
/* Le texte prend l'ENCRE, pas la couleur de marque : celle-ci, posée sur son
|
|
185
|
+
propre lavis, tombait à 2,78:1 — sous le seuil AA de 4,5:1. Même teinte,
|
|
186
|
+
luminosité abaissée ; le repli garde la marque si l'encre n'est pas définie. */
|
|
187
|
+
.nf-fwbadge {
|
|
188
|
+
display: inline-block;
|
|
189
|
+
margin-top: 4px;
|
|
190
|
+
padding: 2px 10px;
|
|
191
|
+
border-radius: 999px;
|
|
192
|
+
font-size: 12.5px;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
color: var(--nf-accent-ink, var(--nf-accent));
|
|
195
|
+
background: var(--nf-accent-wash);
|
|
196
|
+
border: 1px solid var(--nf-accent-line);
|
|
197
|
+
}
|
|
198
|
+
.nf-hello {
|
|
199
|
+
margin-left: auto;
|
|
200
|
+
padding: 7px 16px;
|
|
201
|
+
border-radius: 999px;
|
|
202
|
+
font-weight: 700;
|
|
203
|
+
font-size: 15px;
|
|
204
|
+
color: #2ea043;
|
|
205
|
+
white-space: nowrap;
|
|
206
|
+
background: rgba(46, 160, 67, 0.12);
|
|
207
|
+
border: 1px solid rgba(46, 160, 67, 0.35);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* Un cran plus foncé que le bleu de lien habituel : sur le gris très clair des
|
|
211
|
+
cartes, celui-ci tombait à 4,21:1 — sous les 4,5:1 exigés pour du texte de
|
|
212
|
+
14 px. Mesuré, pas estimé. */
|
|
213
|
+
a {
|
|
214
|
+
color: #0a6ec2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (max-width: 920px) {
|
|
218
|
+
.nf-split {
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
}
|
|
221
|
+
.nf-hero {
|
|
222
|
+
padding: 32px 24px;
|
|
223
|
+
}
|
|
224
|
+
}
|