pcb-retrace/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stuart 8bf5fd3a9a CMMS fork: embedding hooks (window.PCBRETRACE_CONFIG)
New docs/cmms-bridge.js — inert unless window.PCBRETRACE_CONFIG is present
(only public/vendor/pcb-retrace/edit.php in the CMMS sets it). When set:
- injects "Save" / "Save & close" into the top bar; hides the standalone
  import/export/share buttons.
- on boot, if config.loadUrl is set, pulls the project .pcbretrace.zip
  from the CMMS and restores it silently (reuses processUrlImport).
- Save builds the whole-device ZIP in memory and POSTs it multipart to
  the CMMS attachment endpoint (action/csrf/job_id/id/original_name/file,
  same contract as circuit-edit.php); first save of a new board switches
  to in-place updates.

studio.js:
- exportDeviceZIP() split into buildDeviceZIP(pass, forCmms) -> {blob,
  filename} + a thin exportDeviceZIP() wrapper. forCmms adjusts the
  embedded README + manifest.source.
- importFile/processZIP/processUrlImport take an opts arg; opts.silent
  skips the restore/import confirms and re-throws instead of alert().
- init() awaits window.CMMS.init() at the end when present.

studio.html: loads cmms-bridge.js (defer, after studio.js).

Standalone pcb.etaras.com / local use is unchanged — every new path is
gated on the config object or opts.silent, both absent by default.
Dark mode: config.dark is recorded as data-theme="dark" but studio.html
is light-only today; CMMS-theme-follow is a later task.
2026-09-03 14:16:42 +10:00
..
assets don't ignore kicad library zip in git 2026-04-24 17:33:54 +03:00
schema CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
vendor CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
canvas-ui.js chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00
cmms-bridge.js CMMS fork: embedding hooks (window.PCBRETRACE_CONFIG) 2026-09-03 14:16:42 +10:00
CNAME Create CNAME 2025-12-21 00:40:17 +02:00
coil.html CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
common.css chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00
cv-core.js Fix OpenCV Mat leak when stitching/connecting PCB images 2026-06-26 14:33:12 +03:00
db-core.js chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00
favicon.ico favicon added 2026-01-30 23:48:18 +02:00
guide.html CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
index.html CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
inductor.html CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
inspect-traces.js CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
inspector.js Fixed the sticky node name validator issue, where a validator used once was incorrectly reused for all input text dialogs. Added a new feature: the Inspector view now shows calculated routes for nets, including inactive ones. 2026-07-01 17:38:52 +03:00
kicad.svg Schema ReTrace added (create schematic diagrams from netlists). 2026-04-24 17:28:59 +03:00
nets.js Fix KiCAD netlist export if more than one projects are managed 2026-06-26 15:39:02 +03:00
resistor.html CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
schema.html CMMS fork: re-vendor all runtime deps locally, strip analytics 2026-09-03 14:02:16 +10:00
spyglass.js chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00
stitch-editor.js chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00
studio.html CMMS fork: embedding hooks (window.PCBRETRACE_CONFIG) 2026-09-03 14:16:42 +10:00
studio.js CMMS fork: embedding hooks (window.PCBRETRACE_CONFIG) 2026-09-03 14:16:42 +10:00
tool-bridge.js chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00
tool-style.css chore: automatically enrich source files with copyright headers 2026-05-23 09:09:46 +00:00