@jskit-ai/users-web 0.1.43 → 0.1.45
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.descriptor.mjs +25 -15
- package/package.json +9 -7
- package/src/client/components/ConsoleSettingsClientElement.vue +2 -2
- package/src/client/index.js +2 -0
- package/templates/src/pages/console/settings/index.vue +4 -14
- package/templates/src/pages/console/settings.vue +29 -0
- package/test/settingsPlacementContract.test.js +2 -9
package/package.descriptor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Object.freeze({
|
|
2
2
|
packageVersion: 1,
|
|
3
3
|
packageId: "@jskit-ai/users-web",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.45",
|
|
5
5
|
kind: "runtime",
|
|
6
6
|
description: "Users web module: account/profile UI plus shared shell link components.",
|
|
7
7
|
dependsOn: [
|
|
@@ -47,6 +47,14 @@ export default Object.freeze({
|
|
|
47
47
|
subpath: "./client/components/ProfileClientElement",
|
|
48
48
|
summary: "Exports profile settings client element scaffold component."
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
subpath: "./client/components/ConsoleSettingsClientElement",
|
|
52
|
+
summary: "Exports console settings landing-page client element."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
subpath: "./client/components/WorkspaceSettingsClientElement",
|
|
56
|
+
summary: "Exports workspace settings client element."
|
|
57
|
+
},
|
|
50
58
|
{
|
|
51
59
|
subpath: "./client/composables/useAddEdit",
|
|
52
60
|
summary: "Exports add/edit operation composable."
|
|
@@ -102,13 +110,7 @@ export default Object.freeze({
|
|
|
102
110
|
host: "console-settings",
|
|
103
111
|
position: "primary-menu",
|
|
104
112
|
surfaces: ["console"],
|
|
105
|
-
source: "templates/src/pages/console/settings
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
host: "console-settings",
|
|
109
|
-
position: "forms",
|
|
110
|
-
surfaces: ["console"],
|
|
111
|
-
source: "templates/src/pages/console/settings/index.vue"
|
|
113
|
+
source: "templates/src/pages/console/settings.vue"
|
|
112
114
|
}
|
|
113
115
|
],
|
|
114
116
|
contributions: [
|
|
@@ -151,12 +153,12 @@ export default Object.freeze({
|
|
|
151
153
|
runtime: {
|
|
152
154
|
"@tanstack/vue-query": "5.92.12",
|
|
153
155
|
"@mdi/js": "^7.4.47",
|
|
154
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
155
|
-
"@jskit-ai/realtime": "0.1.
|
|
156
|
-
"@jskit-ai/kernel": "0.1.
|
|
157
|
-
"@jskit-ai/shell-web": "0.1.
|
|
158
|
-
"@jskit-ai/uploads-image-web": "0.1.
|
|
159
|
-
"@jskit-ai/users-core": "0.1.
|
|
156
|
+
"@jskit-ai/http-runtime": "0.1.29",
|
|
157
|
+
"@jskit-ai/realtime": "0.1.29",
|
|
158
|
+
"@jskit-ai/kernel": "0.1.30",
|
|
159
|
+
"@jskit-ai/shell-web": "0.1.29",
|
|
160
|
+
"@jskit-ai/uploads-image-web": "0.1.8",
|
|
161
|
+
"@jskit-ai/users-core": "0.1.40",
|
|
160
162
|
vuetify: "^4.0.0"
|
|
161
163
|
},
|
|
162
164
|
dev: {}
|
|
@@ -212,11 +214,19 @@ export default Object.freeze({
|
|
|
212
214
|
category: "users-web",
|
|
213
215
|
id: "users-web-component-account-settings-invites"
|
|
214
216
|
},
|
|
217
|
+
{
|
|
218
|
+
from: "templates/src/pages/console/settings.vue",
|
|
219
|
+
toSurface: "console",
|
|
220
|
+
toSurfacePath: "settings.vue",
|
|
221
|
+
reason: "Install console settings shell route scaffold for users-web console UI.",
|
|
222
|
+
category: "users-web",
|
|
223
|
+
id: "users-web-page-console-settings-shell"
|
|
224
|
+
},
|
|
215
225
|
{
|
|
216
226
|
from: "templates/src/pages/console/settings/index.vue",
|
|
217
227
|
toSurface: "console",
|
|
218
228
|
toSurfacePath: "settings/index.vue",
|
|
219
|
-
reason: "Install console settings page scaffold for users-web console UI.",
|
|
229
|
+
reason: "Install console settings landing page scaffold for users-web console UI.",
|
|
220
230
|
category: "users-web",
|
|
221
231
|
id: "users-web-page-console-settings"
|
|
222
232
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/users-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./client": "./src/client/index.js",
|
|
10
10
|
"./client/providers/UsersWorkspacesClientProvider": "./src/client/providers/UsersWorkspacesClientProvider.js",
|
|
11
|
+
"./client/components/ConsoleSettingsClientElement": "./src/client/components/ConsoleSettingsClientElement.vue",
|
|
12
|
+
"./client/components/WorkspaceSettingsClientElement": "./src/client/components/WorkspaceSettingsClientElement.vue",
|
|
11
13
|
"./client/components/WorkspaceMembersClientElement": "./src/client/components/WorkspaceMembersClientElement.vue",
|
|
12
14
|
"./client/composables/useAddEdit": "./src/client/composables/records/useAddEdit.js",
|
|
13
15
|
"./client/composables/useCrudAddEdit": "./src/client/composables/records/useCrudAddEdit.js",
|
|
@@ -26,12 +28,12 @@
|
|
|
26
28
|
"dependencies": {
|
|
27
29
|
"@tanstack/vue-query": "5.92.12",
|
|
28
30
|
"@mdi/js": "^7.4.47",
|
|
29
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
30
|
-
"@jskit-ai/kernel": "0.1.
|
|
31
|
-
"@jskit-ai/realtime": "0.1.
|
|
32
|
-
"@jskit-ai/shell-web": "0.1.
|
|
33
|
-
"@jskit-ai/uploads-image-web": "0.1.
|
|
34
|
-
"@jskit-ai/users-core": "0.1.
|
|
31
|
+
"@jskit-ai/http-runtime": "0.1.29",
|
|
32
|
+
"@jskit-ai/kernel": "0.1.30",
|
|
33
|
+
"@jskit-ai/realtime": "0.1.29",
|
|
34
|
+
"@jskit-ai/shell-web": "0.1.29",
|
|
35
|
+
"@jskit-ai/uploads-image-web": "0.1.8",
|
|
36
|
+
"@jskit-ai/users-core": "0.1.40",
|
|
35
37
|
"vuetify": "^4.0.0"
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<v-sheet class="pa-6 pa-sm-8" rounded="lg" border>
|
|
6
6
|
<h1 class="text-h5 text-sm-h4 mb-3">Console settings</h1>
|
|
7
7
|
<p class="text-body-2 text-sm-body-1 mb-0">
|
|
8
|
-
No console settings are
|
|
9
|
-
|
|
8
|
+
No console settings sections are available yet. Install a module that adds a page and menu entry to
|
|
9
|
+
<code>console-settings:primary-menu</code>.
|
|
10
10
|
</p>
|
|
11
11
|
</v-sheet>
|
|
12
12
|
</v-col>
|
package/src/client/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import { UsersWebClientProvider } from "./providers/UsersWebClientProvider.js";
|
|
|
2
2
|
|
|
3
3
|
export { UsersWebClientProvider } from "./providers/UsersWebClientProvider.js";
|
|
4
4
|
export { UsersWorkspacesClientProvider } from "./providers/UsersWorkspacesClientProvider.js";
|
|
5
|
+
export { default as ConsoleSettingsClientElement } from "./components/ConsoleSettingsClientElement.vue";
|
|
6
|
+
export { default as WorkspaceSettingsClientElement } from "./components/WorkspaceSettingsClientElement.vue";
|
|
5
7
|
|
|
6
8
|
const clientProviders = Object.freeze([UsersWebClientProvider]);
|
|
7
9
|
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="settings-page">
|
|
3
|
-
<ShellOutlet host="console-settings" position="primary-menu" />
|
|
4
|
-
<ShellOutlet host="console-settings" position="forms" />
|
|
5
|
-
</section>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
1
|
<script setup>
|
|
9
|
-
import
|
|
2
|
+
import ConsoleSettingsClientElement from "@jskit-ai/users-web/client/components/ConsoleSettingsClientElement";
|
|
10
3
|
</script>
|
|
11
4
|
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
gap: 1rem;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
5
|
+
<template>
|
|
6
|
+
<ConsoleSettingsClientElement />
|
|
7
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ShellOutlet from "@jskit-ai/shell-web/client/components/ShellOutlet";
|
|
3
|
+
import { RouterView } from "vue-router";
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
7
|
+
<section class="settings-shell d-flex flex-column ga-4">
|
|
8
|
+
<v-card rounded="lg" elevation="1" border>
|
|
9
|
+
<v-card-item>
|
|
10
|
+
<v-card-title>Console settings</v-card-title>
|
|
11
|
+
<v-card-subtitle>Global configuration and reference data for the whole app.</v-card-subtitle>
|
|
12
|
+
</v-card-item>
|
|
13
|
+
<v-divider />
|
|
14
|
+
<v-card-text class="pt-4">
|
|
15
|
+
<v-row no-gutters>
|
|
16
|
+
<v-col cols="12" md="3" lg="2" class="pr-md-4 mb-4 mb-md-0">
|
|
17
|
+
<v-list nav density="comfortable" rounded="lg" border>
|
|
18
|
+
<ShellOutlet host="console-settings" position="primary-menu" />
|
|
19
|
+
</v-list>
|
|
20
|
+
</v-col>
|
|
21
|
+
|
|
22
|
+
<v-col cols="12" md="9" lg="10">
|
|
23
|
+
<RouterView />
|
|
24
|
+
</v-col>
|
|
25
|
+
</v-row>
|
|
26
|
+
</v-card-text>
|
|
27
|
+
</v-card>
|
|
28
|
+
</section>
|
|
29
|
+
</template>
|
|
@@ -16,10 +16,9 @@ function readSettingsOutlets() {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
test("users-web console settings template exposes surface-derived settings outlets", async () => {
|
|
19
|
-
const source = await readFile(path.join(PACKAGE_DIR, "templates", "src", "pages", "console", "settings
|
|
19
|
+
const source = await readFile(path.join(PACKAGE_DIR, "templates", "src", "pages", "console", "settings.vue"), "utf8");
|
|
20
20
|
|
|
21
21
|
assert.match(source, /<ShellOutlet host="console-settings" position="primary-menu" \/>/);
|
|
22
|
-
assert.match(source, /<ShellOutlet host="console-settings" position="forms" \/>/);
|
|
23
22
|
});
|
|
24
23
|
|
|
25
24
|
test("users-web descriptor metadata advertises console settings outlets with standard positions", () => {
|
|
@@ -31,13 +30,7 @@ test("users-web descriptor metadata advertises console settings outlets with sta
|
|
|
31
30
|
host: "console-settings",
|
|
32
31
|
position: "primary-menu",
|
|
33
32
|
surfaces: ["console"],
|
|
34
|
-
source: "templates/src/pages/console/settings
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
host: "console-settings",
|
|
38
|
-
position: "forms",
|
|
39
|
-
surfaces: ["console"],
|
|
40
|
-
source: "templates/src/pages/console/settings/index.vue"
|
|
33
|
+
source: "templates/src/pages/console/settings.vue"
|
|
41
34
|
}
|
|
42
35
|
]
|
|
43
36
|
);
|