@dokebi/template-inertia 0.4.8 → 0.4.9
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/AI.md +1 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/AI.md
CHANGED
|
@@ -16,6 +16,7 @@ npm run build # dist/ (browser) + dist/ssr
|
|
|
16
16
|
- Plugins add shared props through `dokebi-web:view-data` (D-0076 §5, for example `auth` of an auth plugin): they come first, then `publicShared` and `shared` of the entry, then the scope's `publicShared` (@dokebi/app adds `app`, `sealed`) and `shared`, then the page props. Partial reloads filter them like other props. A plugin key `errors` or `flash`, or one key from two plugins, refuses the setup (`VIEW_DATA_CONFLICT`). View data a plugin calls `public` (@dokebi/i18n's `locale` and `i18n`) is the same for every visitor; the rest (`auth`, `csrf`) is the visitor's own.
|
|
17
17
|
- app.ts of an Inertia app: `inertia: { title, vite: { manifest: 'dist/.vite/manifest.json', entry: 'src/apps/<app>/views/app.js', base: '/build/' }, ssr?: { bundle: 'dist/ssr/<app>/ssr.js' } }`.
|
|
18
18
|
- The project's `vite.config.ts` (written once by `app add --inertia`) has `plugins: [vue(), dokebiInertia()]` (§4.1). Keep `dokebiInertia()` in a config of your own.
|
|
19
|
+
- Where the Vue code lives: an app's pages in `src/apps/<app>/views/<template>/Pages/` with its own components next to them, a module's in `<module>/views/<template>/Pages/` (@dokebi/module), and what several apps or modules share — a design system's components, shared layouts, composables, styles, a browser socket client — in `src/shared/browser/` (`components/`, `layouts/`, `composables/`, `styles/`, `lib/`; one folder per look first when the project has two, `browser/staff/components/`; D-0226). Pages import it with a relative path, so the build bundles it and the dev server serves it (§5.2) without an `allow`. It is browser code: server code never imports it. `tsconfig.vue.json` checks the `.ts` of browser code (this folder and the views of apps and modules) and `tsconfig.json` leaves it out. Nothing else sits right under `src/shared/` (`dokebi check` warns `shared-folder`).
|
|
19
20
|
|
|
20
21
|
## 2. Options `options.dokebi-template-inertia` (per app, `scope` overrides them)
|
|
21
22
|
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dokebi/template-inertia",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Inertia v3 server adapter for Dokebi: page JSON, Vite manifest assets and optional server-side rendering.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dokebi",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"devDependencies": {
|
|
146
146
|
"@dokebi/i18n": "0.2.5",
|
|
147
147
|
"@dokebi/session": "0.4.8",
|
|
148
|
-
"@dokebi/web": "0.4.
|
|
148
|
+
"@dokebi/web": "0.4.12",
|
|
149
149
|
"@dokebi/websocket": "0.4.4",
|
|
150
150
|
"@dokebi/websocket-hub": "0.4.3",
|
|
151
151
|
"@inertiajs/vue3": "3.9.1",
|