@jskit-ai/agent-docs 0.1.273 → 0.1.275
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/guide/agent/app-extras/assistant-conversation.md +7 -1
- package/guide/agent/app-extras/assistant-voice.md +5 -1
- package/guide/agent/app-setup/material-3-migration.md +180 -0
- package/guide/agent/app-setup/upgrading-jskit.md +5 -0
- package/guide/agent/framework/material-3.md +316 -73
- package/guide/agent/framework/ui-operations.md +18 -35
- package/guide/agent/framework/ui-pass.md +155 -0
- package/guide/agent/index.md +3 -0
- package/package.json +1 -1
- package/patterns/feature-package/example/booking-engine/package.json +1 -1
- package/patterns/minimal-foundation/example/package.json +5 -4
- package/patterns/minimal-foundation/example/src/main.js +5 -11
- package/patterns/minimal-foundation/example/src/pages/home/index.vue +5 -18
- package/patterns/minimal-foundation/example/src/theme/index.js +9 -0
- package/patterns/minimal-foundation/example/src/views/NotFound.vue +5 -4
- package/patterns/shell-foundation/example/package.json +6 -6
- package/patterns/shell-foundation/example/packages/main/package.json +1 -1
- package/patterns/shell-foundation/example/src/main.js +5 -11
- package/patterns/shell-foundation/example/src/pages/home/index.vue +21 -57
- package/patterns/shell-foundation/example/src/pages/home/settings/general/index.vue +24 -19
- package/patterns/shell-foundation/example/src/pages/home/settings.vue +27 -84
- package/patterns/shell-foundation/example/src/theme/index.js +9 -0
- package/patterns/shell-foundation/example/src/views/NotFound.vue +9 -7
- package/reference/autogen/PATTERN_INDEX.md +37 -37
- package/reference/autogen/README.md +1 -0
- package/reference/autogen/packages/agent-docs.md +8 -4
- package/reference/autogen/packages/assistant-core.md +3 -0
- package/reference/autogen/packages/console-web.md +5 -0
- package/reference/autogen/packages/http-web.md +29 -2
- package/reference/autogen/packages/kernel.md +2 -1
- package/reference/autogen/packages/material-web.md +54 -0
- package/reference/autogen/packages/shell-web.md +121 -9
- package/reference/autogen/tooling/jskit-catalog.md +81 -0
- package/reference/autogen/tooling/testUtils.md +7 -0
- package/skills/jskit/SKILL.md +11 -6
- package/skills/jskit/references/heuristics/INDEX.md +1 -1
- package/skills/jskit/references/heuristics/ui-contract.md +10 -7
- package/skills/jskit/references/heuristics/ui-testing.md +5 -3
- package/skills/jskit/references/material-3.md +315 -72
- package/skills/jskit/references/pattern-index.md +37 -37
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +5 -4
- package/skills/jskit/references/patterns/app/minimal-foundation/example/src/main.js +5 -11
- package/skills/jskit/references/patterns/app/minimal-foundation/example/src/pages/home/index.vue +5 -18
- package/skills/jskit/references/patterns/app/minimal-foundation/example/src/theme/index.js +9 -0
- package/skills/jskit/references/patterns/app/minimal-foundation/example/src/views/NotFound.vue +5 -4
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +6 -6
- package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/main.js +5 -11
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/pages/home/index.vue +21 -57
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/pages/home/settings/general/index.vue +24 -19
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/pages/home/settings.vue +27 -84
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/theme/index.js +9 -0
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/views/NotFound.vue +9 -7
- package/skills/jskit/references/patterns/assistant/assistant-surface/example/src/placement.js +1 -1
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
- package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +4 -4
- package/skills/jskit/references/patterns/console/console-surface/PATTERN.md +4 -2
- package/skills/jskit/references/patterns/console/console-surface/example/src/pages/console/index.vue +10 -40
- package/skills/jskit/references/patterns/console/console-surface/example/src/pages/console/settings/index.vue +3 -11
- package/skills/jskit/references/patterns/console/console-surface/example/src/pages/console/settings.vue +24 -72
- package/skills/jskit/references/patterns/console/console-surface/example/src/placement.js +28 -0
- package/skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md +13 -0
- package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookEditPage.vue +2 -0
- package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookFormFields.vue +0 -6
- package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookListPage.vue +5 -2
- package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookNewPage.vue +2 -0
- package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookViewPage.vue +5 -9
- package/skills/jskit/references/patterns/crud/json-api-resource-package/example/packages/books/package.json +2 -2
- package/skills/jskit/references/patterns/database/mysql-application/example/package.json +1 -1
- package/skills/jskit/references/patterns/database/postgres-application/example/package.json +1 -1
- package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
- package/skills/jskit/references/patterns/shell/application-shell/PATTERN.md +3 -1
- package/skills/jskit/references/patterns/shell/application-shell/example/expected-existing/src/pages/home/index.vue +5 -18
- package/skills/jskit/references/patterns/shell/application-shell/example/expected-existing/src/views/NotFound.vue +14 -0
- package/skills/jskit/references/patterns/shell/application-shell/example/src/pages/home/index.vue +21 -57
- package/skills/jskit/references/patterns/shell/application-shell/example/src/pages/home/settings/general/index.vue +24 -19
- package/skills/jskit/references/patterns/shell/application-shell/example/src/pages/home/settings.vue +27 -84
- package/skills/jskit/references/patterns/shell/application-shell/example/src/views/NotFound.vue +15 -0
- package/skills/jskit/references/patterns/ui/page-and-placement/example/src/components/SyncStatusElement.vue +2 -2
- package/skills/jskit/references/patterns/ui/page-and-placement/example/src/pages/home/reports/activity.vue +1 -1
- package/skills/jskit/references/patterns/ui/page-and-placement/example/src/pages/home/reports/overview.vue +1 -1
- package/skills/jskit/references/patterns/ui/page-and-placement/example/src/pages/home/reports.vue +6 -3
- package/skills/jskit/references/patterns/ui/page-and-placement/example/src/placement.js +1 -1
- package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsNotificationsSection.vue +2 -8
- package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsPreferencesSection.vue +2 -8
- package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsProfileSection.vue +5 -11
- package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsSignInMethodsSection.vue +3 -9
- package/skills/jskit/references/patterns/users/account-settings/example/src/pages/account/index.vue +7 -0
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +3 -3
- package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/packages/main/src/client/components/AccountPendingInvitesCue.vue +1 -2
- package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/src/components/WorkspaceNotFoundCard.vue +5 -6
- package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/src/pages/admin/workspace/settings/index.vue +5 -12
- package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/src/pages/admin/workspace/settings.vue +24 -72
- package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/src/surfaces/admin/index.vue +3 -4
- package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/src/surfaces/app/index.vue +3 -3
- package/skills/jskit/references/ui-operations.md +18 -35
- package/skills/jskit/references/ui-pass.md +150 -0
- package/patterns/shell-foundation/example/src/pages/home/settings/index.vue +0 -7
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/pages/home/settings/index.vue +0 -7
- package/skills/jskit/references/patterns/shell/application-shell/example/src/pages/home/settings/index.vue +0 -7
|
@@ -66,7 +66,9 @@ placement registry, topology, and adaptive smoke helper exported by
|
|
|
66
66
|
## Example files
|
|
67
67
|
|
|
68
68
|
`example/src/` contains the complete shell composition, standard link
|
|
69
|
-
components, settings routes, placement registry, and topology
|
|
69
|
+
components, settings routes, placement registry, and topology, and a not-found
|
|
70
|
+
view the shell renders, so the top app bar carries its title and the
|
|
71
|
+
navigation leads back into the app. The browser
|
|
70
72
|
example under `example/tests/` exercises the public adaptive-shell contract.
|
|
71
73
|
The `expected-existing/` files show the minimal foundation shapes replaced by
|
|
72
74
|
the complete shell; they are reference inputs, not merge instructions.
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section class="
|
|
3
|
-
<v-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</v-sheet>
|
|
2
|
+
<section class="d-flex flex-column align-center ga-4 py-16 text-center on-surface-variant">
|
|
3
|
+
<v-icon icon="$inbox" size="48" />
|
|
4
|
+
<p class="text-body-large mb-0">
|
|
5
|
+
Recent work, saved records, and next actions will appear here once this app has data.
|
|
6
|
+
</p>
|
|
8
7
|
</section>
|
|
9
8
|
</template>
|
|
10
|
-
|
|
11
|
-
<style scoped>
|
|
12
|
-
.home-start-screen {
|
|
13
|
-
--home-start-panel-padding: 1rem;
|
|
14
|
-
margin-inline: auto;
|
|
15
|
-
max-width: 48rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.home-start-screen__panel {
|
|
19
|
-
padding: var(--home-start-panel-padding);
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const title = "Not Found";
|
|
3
|
+
const message = "The page you requested does not exist.";
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
7
|
+
<v-container class="fill-height d-flex align-center justify-center">
|
|
8
|
+
<section class="on-surface-variant text-center">
|
|
9
|
+
<v-icon icon="$searchOff" size="48" />
|
|
10
|
+
<h1 class="text-headline-small on-surface mt-4 mb-2">{{ title }}</h1>
|
|
11
|
+
<p class="text-body-large mb-0">{{ message }}</p>
|
|
12
|
+
</section>
|
|
13
|
+
</v-container>
|
|
14
|
+
</template>
|
package/skills/jskit/references/patterns/shell/application-shell/example/src/pages/home/index.vue
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { useQuery } from "@tanstack/vue-query";
|
|
4
|
+
import { usePaths } from "@jskit-ai/shell-web/client/navigation/usePaths";
|
|
4
5
|
|
|
6
|
+
const paths = usePaths();
|
|
5
7
|
const healthQuery = useQuery({
|
|
6
8
|
queryKey: ["shell-web", "health"],
|
|
7
9
|
queryFn: async () => {
|
|
@@ -28,63 +30,25 @@ const healthPending = computed(
|
|
|
28
30
|
</script>
|
|
29
31
|
|
|
30
32
|
<template>
|
|
31
|
-
<section class="
|
|
32
|
-
<
|
|
33
|
-
<v-
|
|
33
|
+
<section class="d-flex flex-column ga-4">
|
|
34
|
+
<v-card>
|
|
35
|
+
<v-list>
|
|
36
|
+
<v-list-item subtitle="Service health">
|
|
37
|
+
<template #title>
|
|
38
|
+
<v-skeleton-loader
|
|
39
|
+
v-if="healthPending"
|
|
40
|
+
aria-label="Loading service health"
|
|
41
|
+
type="text"
|
|
42
|
+
max-width="80"
|
|
43
|
+
/>
|
|
44
|
+
<span v-else>{{ health }}</span>
|
|
45
|
+
</template>
|
|
46
|
+
</v-list-item>
|
|
47
|
+
<v-list-item title="/home" subtitle="Route" />
|
|
48
|
+
</v-list>
|
|
49
|
+
</v-card>
|
|
50
|
+
<div class="d-flex justify-end">
|
|
51
|
+
<v-btn color="secondary-container" prepend-icon="$settings" :to="paths.page('/settings')">Settings</v-btn>
|
|
34
52
|
</div>
|
|
35
|
-
|
|
36
|
-
<v-sheet rounded="lg" border class="home-surface-screen__panel">
|
|
37
|
-
<div class="home-surface-screen__status">
|
|
38
|
-
<span class="text-caption text-medium-emphasis">Service health</span>
|
|
39
|
-
<v-skeleton-loader
|
|
40
|
-
v-if="healthPending"
|
|
41
|
-
aria-label="Loading service health"
|
|
42
|
-
class="home-surface-screen__health-skeleton"
|
|
43
|
-
type="text"
|
|
44
|
-
/>
|
|
45
|
-
<strong v-else>{{ health }}</strong>
|
|
46
|
-
</div>
|
|
47
|
-
<v-divider vertical class="d-none d-sm-block" />
|
|
48
|
-
<div class="home-surface-screen__status">
|
|
49
|
-
<span class="text-caption text-medium-emphasis">Route</span>
|
|
50
|
-
<strong>/home</strong>
|
|
51
|
-
</div>
|
|
52
|
-
</v-sheet>
|
|
53
53
|
</section>
|
|
54
54
|
</template>
|
|
55
|
-
|
|
56
|
-
<style scoped>
|
|
57
|
-
.home-surface-screen {
|
|
58
|
-
--home-surface-panel-padding: 1rem;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.home-surface-screen__actions {
|
|
62
|
-
display: flex;
|
|
63
|
-
justify-content: flex-end;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.home-surface-screen__panel {
|
|
67
|
-
align-items: stretch;
|
|
68
|
-
display: flex;
|
|
69
|
-
flex-wrap: wrap;
|
|
70
|
-
gap: 1rem;
|
|
71
|
-
padding: var(--home-surface-panel-padding);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.home-surface-screen__status {
|
|
75
|
-
display: grid;
|
|
76
|
-
gap: 0.15rem;
|
|
77
|
-
min-width: 9rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.home-surface-screen__health-skeleton {
|
|
81
|
-
max-width: 5rem;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@media (max-width: 640px) {
|
|
85
|
-
.home-surface-screen__actions :deep(.v-btn) {
|
|
86
|
-
min-height: 48px;
|
|
87
|
-
width: 100%;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
</style>
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { useShellLayoutState } from "@jskit-ai/shell-web/client/composables/useShellLayoutState";
|
|
4
4
|
|
|
5
|
+
definePage({
|
|
6
|
+
meta: {
|
|
7
|
+
jskit: {
|
|
8
|
+
title: "General",
|
|
9
|
+
parent: "/settings"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
5
14
|
const { drawerDefaultOpen, setDrawerDefaultOpen } = useShellLayoutState();
|
|
6
15
|
|
|
7
16
|
const drawerDefaultOpenModel = computed({
|
|
@@ -15,23 +24,19 @@ const drawerDefaultOpenModel = computed({
|
|
|
15
24
|
</script>
|
|
16
25
|
|
|
17
26
|
<template>
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
<v-card>
|
|
28
|
+
<v-list lines="three">
|
|
29
|
+
<v-list-item
|
|
30
|
+
title="Start with expanded navigation on wider screens"
|
|
31
|
+
subtitle="On wider screens, collapsed navigation remains available as a rail. Phone layouts close the drawer and keep primary navigation in the bottom bar."
|
|
32
|
+
>
|
|
33
|
+
<template #append>
|
|
34
|
+
<v-switch
|
|
35
|
+
v-model="drawerDefaultOpenModel"
|
|
36
|
+
aria-label="Start with expanded navigation on wider screens"
|
|
37
|
+
/>
|
|
38
|
+
</template>
|
|
39
|
+
</v-list-item>
|
|
40
|
+
</v-list>
|
|
41
|
+
</v-card>
|
|
31
42
|
</template>
|
|
32
|
-
|
|
33
|
-
<style scoped>
|
|
34
|
-
.settings-general-screen :deep(.v-switch) {
|
|
35
|
-
min-height: 48px;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
package/skills/jskit/references/patterns/shell/application-shell/example/src/pages/home/settings.vue
CHANGED
|
@@ -1,90 +1,33 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { RouterView, useRoute } from "vue-router";
|
|
4
|
+
import ShellListDetail from "@jskit-ai/shell-web/client/components/ShellListDetail";
|
|
2
5
|
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-sheet rounded="lg" border class="settings-shell__panel">
|
|
9
|
-
<div class="settings-shell__body">
|
|
10
|
-
<nav class="settings-shell__nav" aria-label="Home settings sections">
|
|
11
|
-
<v-list nav density="compact" rounded="lg">
|
|
12
|
-
<ShellOutlet target="home-settings:primary-menu" />
|
|
13
|
-
</v-list>
|
|
14
|
-
</nav>
|
|
15
|
-
|
|
16
|
-
<main class="settings-shell__content">
|
|
17
|
-
<RouterView />
|
|
18
|
-
</main>
|
|
19
|
-
</div>
|
|
20
|
-
</v-sheet>
|
|
21
|
-
</section>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<style scoped>
|
|
25
|
-
.settings-shell {
|
|
26
|
-
--settings-shell-panel-padding: 1rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.settings-shell__panel {
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.settings-shell__body {
|
|
34
|
-
display: grid;
|
|
35
|
-
gap: 1rem;
|
|
36
|
-
grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
|
|
37
|
-
padding: var(--settings-shell-panel-padding);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.settings-shell__content {
|
|
41
|
-
border-left: 1px solid rgba(var(--v-theme-on-surface), 0.18);
|
|
42
|
-
min-width: 0;
|
|
43
|
-
padding-left: 1rem;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.settings-shell__nav :deep(.v-list) {
|
|
47
|
-
padding: 0.35rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.settings-shell__nav :deep(.v-list-item) {
|
|
51
|
-
min-height: 48px;
|
|
52
|
-
padding-inline: 0.6rem 0.7rem;
|
|
53
|
-
}
|
|
54
6
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
min-width: 0.5rem;
|
|
61
|
-
width: 0.5rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.settings-shell__nav :deep(.v-list-item-title) {
|
|
65
|
-
line-height: 1.2;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@media (max-width: 960px) {
|
|
69
|
-
.settings-shell__body {
|
|
70
|
-
grid-template-columns: 1fr;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.settings-shell__nav :deep(.v-list) {
|
|
74
|
-
display: flex;
|
|
75
|
-
gap: 0.25rem;
|
|
76
|
-
overflow-x: auto;
|
|
77
|
-
scrollbar-width: thin;
|
|
7
|
+
definePage({
|
|
8
|
+
meta: {
|
|
9
|
+
jskit: {
|
|
10
|
+
title: "Settings"
|
|
11
|
+
}
|
|
78
12
|
}
|
|
13
|
+
});
|
|
79
14
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
15
|
+
const route = useRoute();
|
|
16
|
+
// The section list shows beside the open section on wide windows, and on its own at /home/settings.
|
|
17
|
+
const detailOpen = computed(() => !/\/settings\/?$/u.test(route.path));
|
|
18
|
+
</script>
|
|
84
19
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
20
|
+
<template>
|
|
21
|
+
<ShellListDetail :detail-open="detailOpen">
|
|
22
|
+
<template #list>
|
|
23
|
+
<nav aria-label="Home settings sections">
|
|
24
|
+
<v-list nav>
|
|
25
|
+
<ShellOutlet target="home-settings:primary-menu" />
|
|
26
|
+
</v-list>
|
|
27
|
+
</nav>
|
|
28
|
+
</template>
|
|
29
|
+
<template #detail>
|
|
30
|
+
<RouterView />
|
|
31
|
+
</template>
|
|
32
|
+
</ShellListDetail>
|
|
33
|
+
</template>
|
package/skills/jskit/references/patterns/shell/application-shell/example/src/views/NotFound.vue
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ShellLayout from "@/components/ShellLayout.vue";
|
|
3
|
+
|
|
4
|
+
const message = "The page you requested does not exist.";
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<!-- The shell's top app bar carries the title, and its navigation leads back into the app. -->
|
|
9
|
+
<ShellLayout title="Not Found" subtitle="">
|
|
10
|
+
<section class="d-flex flex-column align-center text-center on-surface-variant py-16">
|
|
11
|
+
<v-icon icon="$searchOff" size="48" />
|
|
12
|
+
<p class="text-body-large mt-4 mb-0">{{ message }}</p>
|
|
13
|
+
</section>
|
|
14
|
+
</ShellLayout>
|
|
15
|
+
</template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="sync-status" role="status" aria-label="Catalogue synchronized">
|
|
3
|
-
<v-icon icon="
|
|
4
|
-
<span class="text-body-
|
|
3
|
+
<v-icon icon="$cloudDone" size="small" aria-hidden="true" />
|
|
4
|
+
<span class="text-body-medium">Synced</span>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
package/skills/jskit/references/patterns/ui/page-and-placement/example/src/pages/home/reports.vue
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import ShellOutlet from "@jskit-ai/shell-web/client/components/ShellOutlet";
|
|
3
3
|
import { RouterView } from "vue-router";
|
|
4
|
+
|
|
5
|
+
// A main menu destination whose tabs are its own sub-views: the app bar shows its title and no Up arrow.
|
|
6
|
+
definePage({ meta: { jskit: { title: "Reports" } } });
|
|
4
7
|
</script>
|
|
5
8
|
|
|
6
9
|
<template>
|
|
7
10
|
<section class="reports-section d-flex flex-column ga-4">
|
|
8
11
|
<nav aria-label="Report sections">
|
|
9
|
-
<v-tabs
|
|
12
|
+
<v-tabs>
|
|
10
13
|
<ShellOutlet target="reports:section-nav" />
|
|
11
14
|
</v-tabs>
|
|
12
15
|
</nav>
|
|
13
16
|
|
|
14
|
-
<
|
|
17
|
+
<div class="reports-section__content">
|
|
15
18
|
<RouterView />
|
|
16
|
-
</
|
|
19
|
+
</div>
|
|
17
20
|
</section>
|
|
18
21
|
</template>
|
|
19
22
|
|
|
@@ -10,7 +10,7 @@ const notifications = props.runtime.notifications;
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
13
|
-
<
|
|
13
|
+
<div class="account-settings-section">
|
|
14
14
|
<div class="account-settings-section__body">
|
|
15
15
|
<v-form @submit.prevent="notifications.submit" novalidate>
|
|
16
16
|
<v-switch
|
|
@@ -47,7 +47,7 @@ const notifications = props.runtime.notifications;
|
|
|
47
47
|
</v-btn>
|
|
48
48
|
</v-form>
|
|
49
49
|
</div>
|
|
50
|
-
</
|
|
50
|
+
</div>
|
|
51
51
|
</template>
|
|
52
52
|
|
|
53
53
|
<style scoped>
|
|
@@ -58,10 +58,4 @@ const notifications = props.runtime.notifications;
|
|
|
58
58
|
.account-settings-section__body {
|
|
59
59
|
padding: 1rem;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
@media (max-width: 640px) {
|
|
63
|
-
.account-settings-section__body :deep(.v-btn) {
|
|
64
|
-
min-height: 48px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
61
|
</style>
|
|
@@ -10,7 +10,7 @@ const preferences = props.runtime.preferences;
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
13
|
-
<
|
|
13
|
+
<div class="account-settings-section">
|
|
14
14
|
<div class="account-settings-section__body">
|
|
15
15
|
<v-form @submit.prevent="preferences.submit" novalidate>
|
|
16
16
|
<v-row>
|
|
@@ -117,7 +117,7 @@ const preferences = props.runtime.preferences;
|
|
|
117
117
|
</v-btn>
|
|
118
118
|
</v-form>
|
|
119
119
|
</div>
|
|
120
|
-
</
|
|
120
|
+
</div>
|
|
121
121
|
</template>
|
|
122
122
|
|
|
123
123
|
<style scoped>
|
|
@@ -128,10 +128,4 @@ const preferences = props.runtime.preferences;
|
|
|
128
128
|
.account-settings-section__body {
|
|
129
129
|
padding: 1rem;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
@media (max-width: 640px) {
|
|
133
|
-
.account-settings-section__body :deep(.v-btn) {
|
|
134
|
-
min-height: 48px;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
131
|
</style>
|
|
@@ -10,16 +10,16 @@ const profile = props.runtime.profile;
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
13
|
-
<
|
|
13
|
+
<div class="account-settings-section">
|
|
14
14
|
<div class="account-settings-section__body">
|
|
15
15
|
<v-form @submit.prevent="profile.submit" novalidate>
|
|
16
16
|
<v-row class="mb-2">
|
|
17
17
|
<v-col cols="12" md="4" class="d-flex flex-column align-center justify-center">
|
|
18
18
|
<v-avatar :size="profile.avatar.size" color="surface-variant" rounded="circle" class="mb-3">
|
|
19
19
|
<v-img v-if="profile.avatar.effectiveUrl" :src="profile.avatar.effectiveUrl" cover />
|
|
20
|
-
<span v-else class="text-
|
|
20
|
+
<span v-else class="text-title-large">{{ profile.initials.value }}</span>
|
|
21
21
|
</v-avatar>
|
|
22
|
-
<div class="text-
|
|
22
|
+
<div class="text-body-small on-surface-variant">Preview size: {{ profile.avatar.size }} px</div>
|
|
23
23
|
</v-col>
|
|
24
24
|
|
|
25
25
|
<v-col cols="12" md="8">
|
|
@@ -44,7 +44,7 @@ const profile = props.runtime.profile;
|
|
|
44
44
|
</v-btn>
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
|
-
<div v-if="profile.selectedAvatarFileName.value" class="text-
|
|
47
|
+
<div v-if="profile.selectedAvatarFileName.value" class="text-body-small on-surface-variant mb-2">
|
|
48
48
|
Selected file: {{ profile.selectedAvatarFileName.value }}
|
|
49
49
|
</div>
|
|
50
50
|
</v-col>
|
|
@@ -86,7 +86,7 @@ const profile = props.runtime.profile;
|
|
|
86
86
|
</v-btn>
|
|
87
87
|
</v-form>
|
|
88
88
|
</div>
|
|
89
|
-
</
|
|
89
|
+
</div>
|
|
90
90
|
</template>
|
|
91
91
|
|
|
92
92
|
<style scoped>
|
|
@@ -97,10 +97,4 @@ const profile = props.runtime.profile;
|
|
|
97
97
|
.account-settings-section__body {
|
|
98
98
|
padding: 1rem;
|
|
99
99
|
}
|
|
100
|
-
|
|
101
|
-
@media (max-width: 640px) {
|
|
102
|
-
.account-settings-section__body :deep(.v-btn) {
|
|
103
|
-
min-height: 48px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
100
|
</style>
|
|
@@ -10,7 +10,7 @@ const signInMethods = props.runtime.signInMethods;
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
13
|
-
<
|
|
13
|
+
<div class="account-settings-section">
|
|
14
14
|
<v-list lines="two" class="py-0">
|
|
15
15
|
<v-list-item
|
|
16
16
|
v-for="method in signInMethods.methods.value"
|
|
@@ -43,11 +43,11 @@ const signInMethods = props.runtime.signInMethods;
|
|
|
43
43
|
</v-list>
|
|
44
44
|
<p
|
|
45
45
|
v-if="signInMethods.methods.value.some((method) => method.linked && !method.canUnlink)"
|
|
46
|
-
class="account-settings-section__hint text-body-
|
|
46
|
+
class="account-settings-section__hint text-body-medium on-surface-variant mb-0"
|
|
47
47
|
>
|
|
48
48
|
Your only sign-in method can't be unlinked. Set a password or link another provider first.
|
|
49
49
|
</p>
|
|
50
|
-
</
|
|
50
|
+
</div>
|
|
51
51
|
</template>
|
|
52
52
|
|
|
53
53
|
<style scoped>
|
|
@@ -58,10 +58,4 @@ const signInMethods = props.runtime.signInMethods;
|
|
|
58
58
|
.account-settings-section__hint {
|
|
59
59
|
padding: 0 1rem 1rem;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
@media (max-width: 640px) {
|
|
63
|
-
.account-settings-section :deep(.v-btn) {
|
|
64
|
-
min-height: 48px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
61
|
</style>
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"./shared": "./src/shared/index.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jskit-ai/crud-core": "0.2.
|
|
14
|
-
"@jskit-ai/resource-crud-core": "0.1.
|
|
13
|
+
"@jskit-ai/crud-core": "0.2.11",
|
|
14
|
+
"@jskit-ai/resource-crud-core": "0.1.201"
|
|
15
15
|
},
|
|
16
16
|
"jskit": {
|
|
17
17
|
"kind": "runtime",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"./shared": "./src/shared/index.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jskit-ai/crud-core": "0.2.
|
|
14
|
-
"@jskit-ai/resource-crud-core": "0.1.
|
|
15
|
-
"@jskit-ai/workspaces-core": "0.2.
|
|
13
|
+
"@jskit-ai/crud-core": "0.2.11",
|
|
14
|
+
"@jskit-ai/resource-crud-core": "0.1.201",
|
|
15
|
+
"@jskit-ai/workspaces-core": "0.2.12"
|
|
16
16
|
},
|
|
17
17
|
"jskit": {
|
|
18
18
|
"kind": "runtime",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { useRoute } from "vue-router";
|
|
4
|
-
import { mdiEmailAlertOutline } from "@mdi/js";
|
|
5
4
|
import { appendQueryString } from "@jskit-ai/kernel/shared/support";
|
|
6
5
|
import {
|
|
7
6
|
useWebPlacementContext,
|
|
@@ -96,7 +95,7 @@ const resolvedNavigationTarget = computed(() =>
|
|
|
96
95
|
:href="resolvedNavigationTarget.sameOrigin ? undefined : resolvedNavigationTarget.href"
|
|
97
96
|
variant="tonal"
|
|
98
97
|
color="warning"
|
|
99
|
-
|
|
98
|
+
prepend-icon="$markEmailUnread"
|
|
100
99
|
size="small"
|
|
101
100
|
class="text-none"
|
|
102
101
|
>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { mdiAlertCircleOutline } from "@mdi/js";
|
|
3
2
|
import { computed } from "vue";
|
|
4
3
|
|
|
5
4
|
const props = defineProps({
|
|
@@ -18,13 +17,13 @@ const normalizedMessage = computed(() => String(props.message || "").trim() || "
|
|
|
18
17
|
</script>
|
|
19
18
|
|
|
20
19
|
<template>
|
|
21
|
-
<
|
|
20
|
+
<div class="workspace-unavailable-panel">
|
|
22
21
|
<div class="workspace-unavailable-panel__status">
|
|
23
|
-
<v-icon
|
|
24
|
-
<p class="text-body-
|
|
22
|
+
<v-icon icon="$error" color="error" />
|
|
23
|
+
<p class="text-body-medium on-surface-variant mb-0">{{ normalizedSurfaceLabel }} surface unavailable.</p>
|
|
25
24
|
</div>
|
|
26
|
-
<p class="text-body-
|
|
27
|
-
</
|
|
25
|
+
<p class="text-body-medium on-surface-variant mb-0">{{ normalizedMessage }}</p>
|
|
26
|
+
</div>
|
|
28
27
|
</template>
|
|
29
28
|
|
|
30
29
|
<style scoped>
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section class="
|
|
3
|
-
<v-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</v-sheet>
|
|
2
|
+
<section class="on-surface-variant text-center py-12">
|
|
3
|
+
<v-icon icon="$settings" size="48" />
|
|
4
|
+
<p class="text-body-large mt-4 mb-0">
|
|
5
|
+
This app has no workspace-level settings configured.
|
|
6
|
+
</p>
|
|
8
7
|
</section>
|
|
9
8
|
</template>
|
|
10
|
-
|
|
11
|
-
<style scoped>
|
|
12
|
-
.workspace-settings-landing__panel {
|
|
13
|
-
padding: 1rem;
|
|
14
|
-
}
|
|
15
|
-
</style>
|