GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(catalog): the Server column replaces Docker and marks what the s… · u8array/ZPLab@5dc55f5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • docs
    • zpl-coverage.md
  • packages/core/src/catalog
    • catalog.test.ts
    • commands.json
    • index.ts
    • schema.ts
  • scripts
    • catalog.d.mts
    • catalog.mjs
    • gen-coverage.mjs
  • src
    • components/Output
      • ZplCatalog.test.tsx
      • ZplCatalogDetail.tsx
    • locales
      • ar.ts
      • bg.ts
      • ca.ts
      • cs.ts
      • da.ts
      • de.ts
      • el.ts
      • en.ts
      • es.ts
      • et.ts
      • fa.ts
      • fi.ts
      • fr.ts
      • he.ts
      • hr.ts
      • hu.ts
      • it.ts
      • ja.ts
      • ko.ts
      • lt.ts
      • lv.ts
      • nl.ts
      • no.ts
      • pl.ts
      • pt.ts
      • ro.ts
      • sk.ts
      • sl.ts
      • sr.ts
      • sv.ts
      • tr.ts
      • zh-hans.ts
      • zh-hant.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ On desktop, **File → Settings… → App → MCP** starts a local MCP server,
190190
## Coverage
191191

192192
<!-- coverage:start (generated from the command catalog by scripts/gen-coverage.mjs; run `pnpm coverage:gen`) -->
193-
132 of the 225 ZPL II commands are modelled in the browser; desktop covers 15 more with a connected printer. 2 more are planned for both builds. 55 need a connected printer and are planned for desktop. See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).
193+
132 of the 225 ZPL II commands are modelled in the browser. 15 more work with a connected printer on desktop and server. 2 more are planned for every build. 55 need a connected printer and are planned for desktop and server. See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).
194194

195195
| Area | Modelled |
196196
|---|---|
Collapse file

‎docs/zpl-coverage.md‎

Copy file name to clipboardExpand all lines: docs/zpl-coverage.md
+35-35Lines changed: 35 additions & 35 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Every command of the ZPL II Programming Guide and what it takes to use it in ZPL
44

55
| Column | Meaning |
66
|---|---|
7-
| **Web** | The browser build reads the command on import and writes it back on export: as itself, folded into object properties (`^FW`, `^LR`, `^BY`, `^MU`, `^LH`, `^LT`, `^CI`), or into the Setup Script (printer setup commands). Structural commands (`^XA`, `^FS`, prefix changers) carry no user state. Host commands count only where an answer can come back. The browser build has no channel for one |
8-
| **Desktop** | The same in the desktop app, which also talks to a connected printer; commands that need one (host queries, calibration, downloads to printer storage, RFID hardware) can only ever get a mark here. `~HB` answers only on a mobile printer, so it stays planned until one is measured |
9-
| **Docker** | The same in the self-hosted image, which serves the web build today. A container can open a printer connection, so what the desktop reaches that way is planned here |
7+
| **Web** | The browser build reads the command on import and writes it back on export: as itself, folded into object properties (`^FW`, `^LR`, `^BY`, `^MU`, `^LH`, `^LT`, `^CI`), or into the Setup Script (printer setup commands). Structural commands (`^XA`, `^FS`, prefix changers) carry no user state. Host commands count only where an answer can come back. The browser build has no channel for one. The static self-hosted image serves this build |
8+
| **Desktop** | The same in the desktop app, which also talks to a connected printer; commands that need one (host queries, calibration, downloads to printer storage, RFID hardware) get a mark only here and under Server. `~HB` answers only on a mobile printer, so it stays planned until one is measured |
9+
| **Server** | The same in the designer served by the self-hosted server. The server talks to the printers it lists and passes their answers back to the designer |
1010

1111
| Mark | Meaning |
1212
|:-:|---|
@@ -26,7 +26,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
2626
<!-- coverage:start (generated from packages/core/src/catalog/commands.json by scripts/gen-coverage.mjs; run `pnpm coverage:gen`) -->
2727
## Layout & flow
2828

29-
| Command | Name | Web | Desktop | Docker |
29+
| Command | Name | Web | Desktop | Server |
3030
|---|---|:-:|:-:|:-:|
3131
| `^XA` | start label | `[x]` | `[x]` | `[x]` |
3232
| `^XZ` | end label | `[x]` | `[x]` | `[x]` |
@@ -46,7 +46,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
4646

4747
## Fields
4848

49-
| Command | Name | Web | Desktop | Docker |
49+
| Command | Name | Web | Desktop | Server |
5050
|---|---|:-:|:-:|:-:|
5151
| `^FO` | field origin | `[x]` | `[x]` | `[x]` |
5252
| `^FT` | field top | `[x]` | `[x]` | `[x]` |
@@ -68,7 +68,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
6868

6969
## Text & fonts
7070

71-
| Command | Name | Web | Desktop | Docker |
71+
| Command | Name | Web | Desktop | Server |
7272
|---|---|:-:|:-:|:-:|
7373
| `^A0` | scalable font 0 | `[x]` | `[x]` | `[x]` |
7474
| `^A` | fonts A to Z and 0 to 9 | `[x]` | `[x]` | `[x]` |
@@ -88,7 +88,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
8888

8989
## Barcodes
9090

91-
| Command | Name | Web | Desktop | Docker |
91+
| Command | Name | Web | Desktop | Server |
9292
|---|---|:-:|:-:|:-:|
9393
| `^BC` | Code 128 | `[x]` | `[x]` | `[x]` |
9494
| `^B3` | Code 39 | `[x]` | `[x]` | `[x]` |
@@ -122,7 +122,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
122122

123123
## Graphics
124124

125-
| Command | Name | Web | Desktop | Docker |
125+
| Command | Name | Web | Desktop | Server |
126126
|---|---|:-:|:-:|:-:|
127127
| `^GB` | graphic box | `[x]` | `[x]` | `[x]` |
128128
| `^GD` | diagonal line | `[x]` | `[x]` | `[x]` |
@@ -132,31 +132,31 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
132132
| `^GS` | graphic symbol | `[x]` | `[x]` | `[x]` |
133133
| `^IL` | image load | `[x]` | `[x]` | `[x]` |
134134
| `^IM` | image move | `[x]` | `[x]` | `[x]` |
135-
| `^ID` | delete stored graphics, fonts and formats | `[ ]` | `[x]` | `[~]` |
136-
| `^IS` | image save | `[ ]` | `[x]` | `[~]` |
135+
| `^ID` | delete stored graphics, fonts and formats | `[ ]` | `[x]` | `[x]` |
136+
| `^IS` | image save | `[ ]` | `[x]` | `[x]` |
137137
| `~DG` | download graphic | `[x]` | `[x]` | `[x]` |
138138
| `~DN` | abort download | `[ ]` | `[~]` | `[~]` |
139139
| `~DY` | download font / graphic | `[x]` | `[x]` | `[x]` |
140140
| `~EG` | erase download graphics | `[ ]` | `[~]` | `[~]` |
141141

142142
## Serialisation
143143

144-
| Command | Name | Web | Desktop | Docker |
144+
| Command | Name | Web | Desktop | Server |
145145
|---|---|:-:|:-:|:-:|
146146
| `^SN` | serial counter with its own start value | `[x]` | `[x]` | `[x]` |
147147
| `^SF` | serial mask over ^FD data | `[x]` | `[x]` | `[x]` |
148148

149149
## Templates & variables
150150

151-
| Command | Name | Web | Desktop | Docker |
151+
| Command | Name | Web | Desktop | Server |
152152
|---|---|:-:|:-:|:-:|
153153
| `^DF` | store template | `[x]` | `[x]` | `[x]` |
154154
| `^XF` | recall template | `[x]` | `[x]` | `[x]` |
155155
| `^XG` | recall graphic | `[x]` | `[x]` | `[x]` |
156156

157157
## Media & feed
158158

159-
| Command | Name | Web | Desktop | Docker |
159+
| Command | Name | Web | Desktop | Server |
160160
|---|---|:-:|:-:|:-:|
161161
| `^MN` | media tracking | `[x]` | `[x]` | `[x]` |
162162
| `^ML` | maximum label length | `[x]` | `[x]` | `[x]` |
@@ -170,7 +170,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
170170

171171
## Print quality
172172

173-
| Command | Name | Web | Desktop | Docker |
173+
| Command | Name | Web | Desktop | Server |
174174
|---|---|:-:|:-:|:-:|
175175
| `^MD` | media darkness | `[x]` | `[x]` | `[x]` |
176176
| `~SD` | set darkness | `[x]` | `[x]` | `[x]` |
@@ -193,7 +193,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
193193

194194
## Clock & time
195195

196-
| Command | Name | Web | Desktop | Docker |
196+
| Command | Name | Web | Desktop | Server |
197197
|---|---|:-:|:-:|:-:|
198198
| `^ST` | set date and time | `[x]` | `[x]` | `[x]` |
199199
| `^KD` | date and time format | `[x]` | `[x]` | `[x]` |
@@ -202,22 +202,22 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
202202

203203
## Encoding & language
204204

205-
| Command | Name | Web | Desktop | Docker |
205+
| Command | Name | Web | Desktop | Server |
206206
|---|---|:-:|:-:|:-:|
207207
| `^KL` | define language | `[x]` | `[x]` | `[x]` |
208208
| `^SE` | encoding table | `[x]` | `[x]` | `[x]` |
209209
| `^SZ` | set ZPL mode | `[x]` | `[x]` | `[x]` |
210210

211211
## Identity & access
212212

213-
| Command | Name | Web | Desktop | Docker |
213+
| Command | Name | Web | Desktop | Server |
214214
|---|---|:-:|:-:|:-:|
215215
| `^KN` | printer name and description | `[x]` | `[x]` | `[x]` |
216216
| `^KP` | set password | `[x]` | `[x]` | `[x]` |
217217

218218
## Configuration & persistence
219219

220-
| Command | Name | Web | Desktop | Docker |
220+
| Command | Name | Web | Desktop | Server |
221221
|---|---|:-:|:-:|:-:|
222222
| `^JU` | configuration update | `[x]` | `[x]` | `[x]` |
223223
| `^CC` / `~CC` | change caret | `[x]` | `[x]` | `[x]` |
@@ -229,7 +229,7 @@ never share. The row total is pinned in `packages/core/src/catalog/catalog.test.
229229

230230
Printer-side control, calibration and device actions; most need a connection or feedback from the device.
231231

232-
| Command | Name | Web | Desktop | Docker |
232+
| Command | Name | Web | Desktop | Server |
233233
|---|---|:-:|:-:|:-:|
234234
| `~JA` | cancel all | `[ ]` | `[~]` | `[~]` |
235235
| `^JB` | initialize flash memory | `[ ]` | `[~]` | `[~]` |
@@ -271,23 +271,23 @@ Printer-side control, calibration and device actions; most need a connection or
271271

272272
## Host communication
273273

274-
| Command | Name | Web | Desktop | Docker |
274+
| Command | Name | Web | Desktop | Server |
275275
|---|---|:-:|:-:|:-:|
276276
| `~HB` | battery status, mobile printers only | `[ ]` | `[~]` | `[~]` |
277-
| `~HD` | printhead diagnostic | `[ ]` | `[x]` | `[~]` |
278-
| `^HF` | host format | `[ ]` | `[x]` | `[~]` |
279-
| `^HG` | host graphic | `[ ]` | `[x]` | `[~]` |
280-
| `^HH` | configuration label return | `[ ]` | `[x]` | `[~]` |
281-
| `~HI` | host identification | `[ ]` | `[x]` | `[~]` |
282-
| `~HM` | host RAM status | `[ ]` | `[x]` | `[~]` |
283-
| `~HQ` | host query | `[ ]` | `[x]` | `[~]` |
284-
| `~HS` | host status return | `[ ]` | `[x]` | `[~]` |
285-
| `^HT` | host linked fonts list | `[ ]` | `[x]` | `[~]` |
286-
| `~HU` | ZebraNet alert configuration | `[ ]` | `[x]` | `[~]` |
277+
| `~HD` | printhead diagnostic | `[ ]` | `[x]` | `[x]` |
278+
| `^HF` | host format | `[ ]` | `[x]` | `[x]` |
279+
| `^HG` | host graphic | `[ ]` | `[x]` | `[x]` |
280+
| `^HH` | configuration label return | `[ ]` | `[x]` | `[x]` |
281+
| `~HI` | host identification | `[ ]` | `[x]` | `[x]` |
282+
| `~HM` | host RAM status | `[ ]` | `[x]` | `[x]` |
283+
| `~HQ` | host query | `[ ]` | `[x]` | `[x]` |
284+
| `~HS` | host status return | `[ ]` | `[x]` | `[x]` |
285+
| `^HT` | host linked fonts list | `[ ]` | `[x]` | `[x]` |
286+
| `~HU` | ZebraNet alert configuration | `[ ]` | `[x]` | `[x]` |
287287
| `^HV` | host verification | `[ ]` | `[~]` | `[~]` |
288-
| `^HW` | host directory | `[ ]` | `[x]` | `[~]` |
289-
| `^HY` | upload graphics | `[ ]` | `[x]` | `[~]` |
290-
| `^HZ` | display description information | `[ ]` | `[x]` | `[~]` |
288+
| `^HW` | host directory | `[ ]` | `[x]` | `[x]` |
289+
| `^HY` | upload graphics | `[ ]` | `[x]` | `[x]` |
290+
| `^HZ` | display description information | `[ ]` | `[x]` | `[x]` |
291291

292292
## RFID
293293

@@ -296,7 +296,7 @@ spec-only. Stage A: ^RS/^RB/^RW settings. Stage B: ^RF write element plus its
296296
password-coupled ^RL. Read-back stays native. ^RM/^RR folded into ^RS,
297297
^RN/~RV dropped from the current guide; all four passthrough only.
298298

299-
| Command | Name | Web | Desktop | Docker |
299+
| Command | Name | Web | Desktop | Server |
300300
|---|---|:-:|:-:|:-:|
301301
| `^RF` | read / write RFID | `[~]` | `[~]` | `[~]` |
302302
| `^RI` | get tag ID | `[ ]` | `[~]` | `[~]` |
@@ -316,7 +316,7 @@ password-coupled ^RL. Read-back stays native. ^RM/^RR folded into ^RS,
316316

317317
## Network
318318

319-
| Command | Name | Web | Desktop | Docker |
319+
| Command | Name | Web | Desktop | Server |
320320
|---|---|:-:|:-:|:-:|
321321
| `^NB` | check for wired print server at boot | `[ ]` | `[~]` | `[~]` |
322322
| `^NC` | select wired / wireless primary device | `[ ]` | `[~]` | `[~]` |
Collapse file

‎packages/core/src/catalog/catalog.test.ts‎

Copy file name to clipboardExpand all lines: packages/core/src/catalog/catalog.test.ts
+9-5Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ describe("zpl command catalog", () => {
99
expect(result.success ? [] : result.error.issues).toEqual([]);
1010
});
1111

12-
it("stores a docker level only where it diverges from the web", () => {
12+
it("stores a server level only where it diverges from the web", () => {
1313
for (const c of (raw as unknown as { commands: StoredCommandEntry[] }).commands) {
14-
if (c.support.docker !== undefined) expect(c.support.docker, c.cmd).not.toBe(c.support.web);
14+
if (c.support.server !== undefined) expect(c.support.server, c.cmd).not.toBe(c.support.web);
1515
}
1616
});
1717

@@ -84,21 +84,25 @@ describe("zpl command catalog", () => {
8484
const rank = { no: 0, planned: 1, yes: 2 } as const;
8585
for (const c of ZPL_COMMANDS) {
8686
expect(rank[c.support.desktop], c.cmd).toBeGreaterThanOrEqual(rank[c.support.web]);
87-
expect(rank[c.support.docker], c.cmd).toBeGreaterThanOrEqual(rank[c.support.web]);
87+
expect(rank[c.support.server], c.cmd).toBeGreaterThanOrEqual(rank[c.support.web]);
8888
// The coverage legend promises the reason in the name: a qualifier after a comma.
8989
if (Object.values(c.support).every((level) => level === "no")) expect(c.title, c.cmd).toMatch(/,/);
9090
}
9191
});
9292

93+
it("marks the host status query for the desktop and the server, not the web", () => {
94+
expect(catalogEntry("~HS")?.support).toEqual({ web: "no", desktop: "yes", server: "yes" });
95+
});
96+
9397
it("resolves prefixed, bare and alias lookups", () => {
9498
expect(catalogEntry("^LL")?.title).toBe("label length");
9599
expect(catalogEntry("ll")?.cmd).toBe("LL");
96100
expect(catalogEntry("^BO")?.cmd).toBe("B0");
97101
expect(catalogEntry("~HL")).toBe(catalogEntry("^HL"));
98102
expect(commandId(catalogEntry("~HL")!)).toBe("^HL");
99103
// Prefix twins with diverging support are separate entries.
100-
expect(catalogEntry("^PH")?.support).toEqual({ web: "yes", desktop: "yes", docker: "yes" });
101-
expect(catalogEntry("~PH")?.support).toEqual({ web: "no", desktop: "planned", docker: "planned" });
104+
expect(catalogEntry("^PH")?.support).toEqual({ web: "yes", desktop: "yes", server: "yes" });
105+
expect(catalogEntry("~PH")?.support).toEqual({ web: "no", desktop: "planned", server: "planned" });
102106
expect(catalogEntry("^QQ")).toBeUndefined();
103107
});
104108

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.