Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension Manifest Map: Health Check #2364

Merged
merged 10 commits into from
Sep 30, 2024
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"./entity": "./dist-cms/packages/core/entity/index.js",
"./event": "./dist-cms/packages/core/event/index.js",
"./extension-registry": "./dist-cms/packages/core/extension-registry/index.js",
"./health-check": "./dist-cms/packages/health-check/index.js",
"./help": "./dist-cms/packages/help/index.js",
"./icon": "./dist-cms/packages/core/icon-registry/index.js",
"./id": "./dist-cms/packages/core/id/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/packages/core/extension-registry/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type * from './global-context.extension.js';
export type * from './header-app.extension.js';
export type * from './menu-item-element.interface.js';
export type * from './menu-item.extension.js';
export type * from './menu-item-element.interface.js';
export type * from './menu.extension.js';
export type * from './preview-app.extension.js';
export type * from './repository.extension.js';
Expand Down
5 changes: 2 additions & 3 deletions src/packages/core/extension-registry/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { ManifestCurrentUserAction, ManifestCurrentUserActionDefaultKind }
import type { ManifestDynamicRootOrigin, ManifestDynamicRootQueryStep } from './dynamic-root.model.js';
import type { ManifestFileUploadPreview } from './file-upload-preview.model.js';
import type { ManifestExternalLoginProvider } from './external-login-provider.model.js';
import type { ManifestHealthCheck } from './health-check.model.js';
import type { ManifestTinyMcePlugin } from './tinymce-plugin.model.js';
import type { ManifestUfmComponent } from './ufm-component.model.js';
import type { ManifestUfmFilter } from './ufm-filter.model.js';
Expand All @@ -18,7 +17,8 @@ export type * from './current-user-action.model.js';
export type * from './dynamic-root.model.js';
export type * from './file-upload-preview.model.js';
export type * from './external-login-provider.model.js';
export type * from './health-check.model.js';
export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './mfa-login-provider.model.js';
export type * from './monaco-markdown-editor-action.model.js';
export type * from './mfa-login-provider.model.js';
Expand All @@ -40,7 +40,6 @@ export type ManifestTypes =
| ManifestFileUploadPreview
| ManifestExternalLoginProvider
| ManifestGranularUserPermission
| ManifestHealthCheck
| ManifestMfaLoginProvider
| ManifestMonacoMarkdownEditorAction
| ManifestTinyMcePlugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { UmbDashboardHealthCheckGroupElement } from './views/health-check-group.element.js';
import { UmbHealthCheckDashboardContext, UMB_HEALTHCHECK_DASHBOARD_CONTEXT } from './health-check-dashboard.context.js';
import type { ManifestHealthCheck } from './health-check.extension.js';
import { html, customElement, state } from '@umbraco-cms/backoffice/external/lit';
import type { HealthCheckGroupResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
import { HealthCheckService } from '@umbraco-cms/backoffice/external/backend-api';
import type { UmbRoute } from '@umbraco-cms/backoffice/router';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import type { ManifestHealthCheck } from '@umbraco-cms/backoffice/extension-registry';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UmbHealthCheckContext } from './health-check.context.js';
import type { ManifestHealthCheck } from '@umbraco-cms/backoffice/extension-registry';
import type { ManifestHealthCheck } from './health-check.extension.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import { loadManifestApi } from '@umbraco-cms/backoffice/extension-api';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ export interface HealthCheck {
name: string;
description: string;
}

declare global {
interface UmbExtensionManifestMap {
umbHealthCheck: ManifestHealthCheck;
}
}
1 change: 1 addition & 0 deletions src/packages/health-check/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './health-check.extension.js';
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { UmbHealthCheckContext } from '../health-check.context.js';
import type { UmbHealthCheckDashboardContext } from '../health-check-dashboard.context.js';
import { UMB_HEALTHCHECK_DASHBOARD_CONTEXT } from '../health-check-dashboard.context.js';
import type { ManifestHealthCheck } from '../health-check.extension.js';
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { css, html, nothing, customElement, property, state } from '@umbraco-cms/backoffice/external/lit';
import { ensureSlash, path } from '@umbraco-cms/backoffice/router';
import type { ManifestHealthCheck } from '@umbraco-cms/backoffice/extension-registry';
import type { HealthCheckGroupWithResultResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
import { StatusResultTypeModel } from '@umbraco-cms/backoffice/external/backend-api';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
Expand Down
2 changes: 1 addition & 1 deletion src/packages/health-check/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ const dist = '../../../dist-cms/packages/health-check';
rmSync(dist, { recursive: true, force: true });

export default defineConfig({
...getDefaultConfig({ dist, entry: ['manifests.ts', 'umbraco-package.ts'] }),
...getDefaultConfig({ dist }),
});
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
"@umbraco-cms/backoffice/entity": ["./src/packages/core/entity/index.ts"],
"@umbraco-cms/backoffice/event": ["./src/packages/core/event/index.ts"],
"@umbraco-cms/backoffice/extension-registry": ["./src/packages/core/extension-registry/index.ts"],
"@umbraco-cms/backoffice/health-check": ["./src/packages/health-check/index.ts"],
"@umbraco-cms/backoffice/help": ["./src/packages/help/index.ts"],
"@umbraco-cms/backoffice/icon": ["./src/packages/core/icon-registry/index.ts"],
"@umbraco-cms/backoffice/id": ["./src/packages/core/id/index.ts"],
Expand Down
Loading