@frockbot/plugin-admin 0.3.0 → 0.3.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/package.json +5 -4
- package/src/backend.ts +14 -0
- package/src/client/index.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-admin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@frockbot/client-core": "0.3.
|
|
24
|
-
"@frockbot/client-ui": "0.3.
|
|
25
|
-
"@frockbot/
|
|
23
|
+
"@frockbot/client-core": "0.3.2",
|
|
24
|
+
"@frockbot/client-ui": "0.3.2",
|
|
25
|
+
"@frockbot/kernel-contracts": "0.3.2",
|
|
26
|
+
"@frockbot/plugin-shell": "0.3.2",
|
|
26
27
|
"cordis": "4.0.0-rc.8",
|
|
27
28
|
"vue": "3.5.41"
|
|
28
29
|
},
|
package/src/backend.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
type DeploymentPolicyV1,
|
|
6
6
|
type SetSignupsCommandV1,
|
|
7
7
|
} from "./shared.js";
|
|
8
|
+
import { defineGatewayContribution } from "@frockbot/kernel-contracts/contributions";
|
|
8
9
|
|
|
9
10
|
export interface AdminGatewayHost {
|
|
10
11
|
readDeploymentPolicy(): Promise<DeploymentPolicyV1>;
|
|
@@ -118,3 +119,16 @@ export namespace createAdminBackendContribution {
|
|
|
118
119
|
return () => lifecycle.mount(createAdminBackendContribution(host));
|
|
119
120
|
}
|
|
120
121
|
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The manifest's gateway `backend` entry, resolved by specifier. The
|
|
125
|
+
* application looks this descriptor up in its Contribution table; it never
|
|
126
|
+
* branches on which Package it belongs to.
|
|
127
|
+
*/
|
|
128
|
+
export const backendContribution = defineGatewayContribution<
|
|
129
|
+
AdminGatewayHost,
|
|
130
|
+
AdminBackendRouteContribution
|
|
131
|
+
>({
|
|
132
|
+
specifier: "@frockbot/plugin-admin/backend",
|
|
133
|
+
create: createAdminBackendContribution.plugin,
|
|
134
|
+
});
|
package/src/client/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
} from "@frockbot/client-core";
|
|
7
7
|
import AdminSurface from "./AdminSurface.vue";
|
|
8
8
|
import { adminRequestKey } from "./state.js";
|
|
9
|
+
import { defineClientContribution } from "@frockbot/kernel-contracts/contributions";
|
|
9
10
|
|
|
10
11
|
export const ADMIN_SURFACE_ID = "admin";
|
|
11
12
|
|
|
@@ -26,3 +27,13 @@ export const adminClientPlugin: ClientPlugin = (ctx) => {
|
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export default adminClientPlugin;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The manifest's `client` entry, resolved by specifier. The application looks
|
|
33
|
+
* this descriptor up in its Contribution table; it never branches on which
|
|
34
|
+
* Package it belongs to.
|
|
35
|
+
*/
|
|
36
|
+
export const clientContribution = defineClientContribution<ClientPlugin>({
|
|
37
|
+
specifier: "@frockbot/plugin-admin/client",
|
|
38
|
+
plugin: adminClientPlugin,
|
|
39
|
+
});
|