home-hosted 0.7.9 → 0.7.11
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/AGENTS.md +4 -1
- package/package.json +1 -1
- package/uis/stock/dist/ui.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -186,11 +186,14 @@ a minor without one.
|
|
|
186
186
|
new UI meets an older payload for a while — a required field there rejects the whole frame and
|
|
187
187
|
blanks the app. Request bodies and config keep their strict, defaulted shape.
|
|
188
188
|
- Conventional commits; ESLint via `@antfu/eslint-config`; sparse comments.
|
|
189
|
-
- UI tests live in `uis
|
|
189
|
+
- UI tests live in `uis/<name>/test/`: pure modules on node, and a component that is worth
|
|
190
190
|
guarding mounts under `// @vitest-environment happy-dom` (see `number-field.test.ts`). Reach for
|
|
191
191
|
that rather than trusting a component to be thin: `NumberField`'s setter assumed the string a text
|
|
192
192
|
input reports, but Vue casts `<input type="number">` to a *number* first, so `raw.trim()` threw and
|
|
193
193
|
every value typed into a numeric field was silently discarded — no pure-module test could see it.
|
|
194
|
+
The suite resolves `@/…` from the UI that asks, so each UI's own tests can import its own
|
|
195
|
+
components; a single pinned target made every UI but that one untestable, and resolved a
|
|
196
|
+
`noc-console` test's `@/lib/proxy` to *stock's* differing copy without a murmur.
|
|
194
197
|
- A destructive action that is one click away confirms in a **popover** (`KillPortButton.vue`),
|
|
195
198
|
never by arming the same button for a second press: an impatient double click on an arming
|
|
196
199
|
button fires it. Keep the safe choice first in the popover's tab order.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "home-hosted",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.11",
|
|
5
5
|
"packageManager": "pnpm@12.5.1",
|
|
6
6
|
"description": "Self-hosted control panel that keeps your home-server processes alive: supervision, restarts, port conflicts, logs — and a UI you can replace.",
|
|
7
7
|
"author": "NamesMT <dangquoctrung123@gmail.com>",
|