@colosoft/admin-template-core
v0.4.0
Published
Framework-agnostic core of the Colosoft admin template: runtime settings, optional OIDC, HTTP client, i18n catalog, menu and permissions, inversify helpers and an optional SignalR module.
Downloads
1,382
Readme
@colosoft/admin-template-core
Framework-agnostic core of the Colosoft admin template (no Vue dependency).
| Area | Main exports |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Runtime settings | loadSettings, mergeSettings, resolveSiteBase, AdminSettings |
| Authentication (optional) | AuthService (userManagerSettings, userManager), createUserManagerSettings, AUTH_ROUTES, hasAccess |
| HTTP | createHttpClient (query), ApiError, parseApiError, toApiError, apiErrorMessage |
| Query and paging | serializeQuery, formatLocalDateTime, parseLinkHeader, readLinkPage |
| i18n | MessageCatalog, coreMessages, detectLocale, SUPPORTED_LOCALES |
| Menu and permissions | MenuSection, filterMenu, mergeMenuSections, AccessRequirement |
| Container | serviceId, createContainer, getService, resolveAll, ContainerModule, coreServices |
| Search | SearchProvider, searchAll |
| Theme, environment | ThemeService, normalizeEnvironment |
| Realtime (optional) | @colosoft/admin-template-core/realtime: RealtimeConnection (withCredentials, onReconnected, connectionFactory), hubConnectionOptions (peer dependency @microsoft/signalr) |
The dist is plain Node ESM (relative imports carry .js), so Node and Vitest load it without bundling. License: MIT.
