@synopackageland/cli 0.54.2 → 0.54.3
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 +4 -0
- package/package.json +2 -2
- package/skills/reference/ui-vue.md +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.54.3 (2026-11-15)
|
|
4
|
+
|
|
5
|
+
- `init` uses templates 0.44.0: Vue Apps start with a default data layer in `frontend/src/data/` (an in-memory `@tanstack/query-core` cache per window, keyed by user; cached answers show at once and are read again behind them) and a dev-only mock at `/?mock=1` with `latency=` and `trace=1` (`window.__calls`), so the frontend runs without a NAS. The `ui-vue` skill reference points at both.
|
|
6
|
+
|
|
3
7
|
## 0.54.2 (2026-11-15)
|
|
4
8
|
|
|
5
9
|
- `ui.short_paths` gives a stable page a short address on DSM's own origin, such as `https://<nas>:5001/connect` for `stable_pages.m`: `short_paths: {/connect: m}`. The build writes `etc/short-paths-nginx.conf` with exact `location = /connect` and `/connect/` blocks that answer `302` with a relative `Location` to `/webman/3rdparty/<package>/m/index.html`, keeping the query; nothing is proxied and no cookie or package code is involved. DSM's `web-config` worker registers the file as a `dsm` location while the package runs (also with `portal`: the target is not served on 80/443), and INFO reloads nginx at start and stop. A path is one lowercase segment, at most 4, and not a DSM or SDK name such as `/mobile`, `/webman` or `/synopkgland` (`STANDALONE_UI_SHORT_PATHS_INVALID`); it needs `os_min_ver` 7.2-64570 or later (`STANDALONE_UI_SHORT_PATHS_MIN_DSM`). Install and upgrade hooks first run a read-only check over the custom ingress inventory (DSM document-root entries, Portal aliases, other packages' nginx files and DSM's active locations) and refuse a path that is taken or cannot be checked. `inspect` replays the redirects, resource entry, INFO reload and check (`SHORT_PATHS_INVALID`); `approval-diff` lists short-path resource changes without asking for reapproval.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/cli",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.3",
|
|
4
4
|
"description": "Syno Package Land Developer Kit CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@napi-rs/keyring": "^2.1.1",
|
|
45
|
-
"@synopackageland/templates": "~0.
|
|
45
|
+
"@synopackageland/templates": "~0.44.0",
|
|
46
46
|
"ajv": "^8.17.1",
|
|
47
47
|
"commander": "^13.1.0",
|
|
48
48
|
"esbuild": "^0.28.2",
|
|
@@ -112,6 +112,13 @@ Follow DSM's button policy, in the installed
|
|
|
112
112
|
section that needs a manual re-read gets its own action in that section.
|
|
113
113
|
`AppShell`'s `#actions` (and `PageHeader` `#actions`) hold only real page
|
|
114
114
|
actions, such as Add; with nothing in `#actions` the shell draws no bar.
|
|
115
|
+
- Read through the template's data layer in `frontend/src/data/`: `useQuery`
|
|
116
|
+
with keys from `data.key(...)` (they include the signed-in user), and
|
|
117
|
+
`data.revalidate()` on reopen and when a page is shown again; it re-reads in
|
|
118
|
+
the background and joins a read in flight. Keep the cache in memory only.
|
|
119
|
+
Optional reads (side panels, hints, counts) wait for the first screen
|
|
120
|
+
(`useFirstContent()`); defer and merge reads instead of lowering request
|
|
121
|
+
concurrency. Use `@tanstack/query-core`, not `@tanstack/vue-query`.
|
|
115
122
|
- In development the UI warns in the console about a capsule outside a footer,
|
|
116
123
|
two main actions in a footer, or a main action that is not last. Clear these
|
|
117
124
|
warnings before handing over the app.
|
|
@@ -175,6 +182,13 @@ window. Check long text, scrolling, focus, modal open/close and cleanup with two
|
|
|
175
182
|
independent mounts. A local mock host can check layout; it cannot prove NAS
|
|
176
183
|
permissions or real DSM integration. Obtain authorization before testing on NAS.
|
|
177
184
|
|
|
185
|
+
For the local mock host, run `pnpm run dev` in `frontend` and open
|
|
186
|
+
`/?mock=1&trace=1&latency=200`: every call waits like a NAS round trip and is
|
|
187
|
+
recorded in `window.__calls` (`method`, `params`, `at`, `ms`, `ok`, `code`), an
|
|
188
|
+
RPC timeline to count and order reads without a NAS. Add a mock answer in
|
|
189
|
+
`frontend/src/dev/mock/` for each method the App adds. Only the dev server
|
|
190
|
+
loads the mock; the build leaves it out.
|
|
191
|
+
|
|
178
192
|
For JSON portions, also follow ui-json's strict validate/render loop at the target
|
|
179
193
|
widths. The JSON preview renders a spec, not arbitrary `.vue` files or backend
|
|
180
194
|
handlers; it does not replace the Vue build, tests or actual-app screenshots.
|