@plutocms/pluto 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.3.1](https://github.com/plutocms/pluto/compare/v0.3.0...v0.3.1) (2026-09-09)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **navbar:** render registered admin navbar ([#121](https://github.com/plutocms/pluto/issues/121)) ([0fa66dd](https://github.com/plutocms/pluto/commit/0fa66dde70acc7e8f8fb2a5685d9971ae0eba303))
10
+
4
11
  ## [0.3.0](https://github.com/plutocms/pluto/compare/v0.2.1...v0.3.0) (2026-09-09)
5
12
 
6
13
 
package/FEATURES.md ADDED
@@ -0,0 +1,7 @@
1
+ # Features
2
+
3
+ This file lists every implemented feature of this project. Each entry links to a skill file
4
+ with full detail, so this file stays short.
5
+
6
+ See the workspace-level `CLAUDE.md` (one directory up) for the delegation, writing, and git
7
+ policies shared by every project here.
package/README.md CHANGED
@@ -63,12 +63,16 @@ Pluto CMS is built around **layers**, each responsible for a specific concern.
63
63
 
64
64
  The core layer provides the foundation for your CMS:
65
65
 
66
- - `<PlutoRoot>`: Wraps your entire app (used in `app.vue`). Includes `NuxtLayout`, `NuxtLoadingIndicator`, and base styles.
66
+ - `<PlutoRoot>`: Wraps your entire app (used in `app.vue`). Includes the registered admin navbar, `NuxtLayout`, `NuxtLoadingIndicator`, and base styles.
67
67
  - `<ColorModeButton>`: Light/dark mode toggle with zero configuration.
68
68
  - Built-in auth and admin layouts
69
69
  - `<PlutoNavbarAdmin>` and `<PlutoNavbarAdminActions>`
70
70
  Provide structure for injecting actions from other layers
71
71
 
72
+ Backend layers can provide the complete admin navbar with
73
+ `useNavbarAdmin().registerNavbar(component)`. Feature layers can append controls
74
+ with `useNavbarAdminActions().addAction(component)`.
75
+
72
76
  ### Backend layers
73
77
 
74
78
  Backend layers handle data, authentication, and APIs.
@@ -2,11 +2,10 @@
2
2
  @import '@nuxt/ui';
3
3
 
4
4
  @source '../..';
5
- @source '../../../../../app/**';
6
5
 
7
6
  @theme {
8
- --color-admin-content: var(--color-slate-800);
9
- --color-admin-sidebar: var(--color-slate-900);
7
+ --color-admin-content: var(--color-zinc-800);
8
+ --color-admin-sidebar: var(--color-zinc-900);
10
9
 
11
10
  --font-outfit: 'Outfit', sans-serif;
12
11
  }
@@ -1,14 +1,20 @@
1
- <script setup lang="ts"></script>
1
+ <script setup lang="ts">
2
+ const { navbar } = useNavbarAdmin()
3
+ </script>
2
4
 
3
5
  <template>
4
- <div class="grow">
5
- <UApp>
6
+ <div class="flex min-h-0 min-w-0 w-full grow flex-col">
7
+ <UApp class="flex min-h-0 min-w-0 w-full grow flex-col">
6
8
  <NuxtRouteAnnouncer />
7
9
  <NuxtLoadingIndicator />
8
10
 
9
- <NuxtLayout>
10
- <slot />
11
- </NuxtLayout>
11
+ <component :is="navbar" v-if="navbar" />
12
+
13
+ <div class="min-h-0 min-w-0 w-full grow">
14
+ <NuxtLayout>
15
+ <slot />
16
+ </NuxtLayout>
17
+ </div>
12
18
  </UApp>
13
19
  </div>
14
20
  </template>
@@ -36,10 +36,8 @@ watch(
36
36
 
37
37
  <template>
38
38
  <div
39
- class="dark:bg-admin-content light:bg-white font-outfit flex h-dvh min-h-0 grow flex-col overflow-hidden"
39
+ class="dark:bg-admin-content light:bg-white font-outfit flex h-full min-h-0 grow flex-col overflow-hidden"
40
40
  >
41
- <NavbarAdmin />
42
-
43
41
  <div class="relative flex min-h-0 flex-1 items-stretch">
44
42
  <Transition name="sidebar-fade">
45
43
  <button
package/nuxt.config.ts CHANGED
@@ -1,5 +1,3 @@
1
- import tailwindcss from '@tailwindcss/vite'
2
-
3
1
  const websiteName = process.env.WEBSITE_NAME || 'Untitled'
4
2
 
5
3
  // Point PLUTO_UTILS_PATH at a local checkout (e.g. `../utils`) to test
@@ -67,10 +65,6 @@ export default defineNuxtConfig({
67
65
 
68
66
  compatibilityDate: '2025-08-15',
69
67
 
70
- vite: {
71
- plugins: [tailwindcss()],
72
- },
73
-
74
68
  typescript: {
75
69
  includeWorkspace: true,
76
70
  typeCheck: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plutocms/pluto",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "The layerable CMS",
6
6
  "author": "Victor Ribeiro",
7
7
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "vue-demi"
43
43
  ],
44
44
  "dependencies": {
45
- "@plutocms/utils": "^0.2.0",
45
+ "@plutocms/utils": "^0.2.1",
46
46
  "@vueuse/nuxt": "^14.3.0"
47
47
  },
48
48
  "devDependencies": {