| 1 | // The web UI: what a valley host publishes to a web server, and what that |
| 2 | // server shows of it. Package export is the contract the publisher and the |
| 3 | // server share: the public export, its signed manifest, and the upload |
| 4 | // between them. The publisher reads who may read a project through |
| 5 | // readaccess. |
| 6 | module the-valley/webui |
| 7 | |
| 8 | go 1.24 |
| 9 | |
| 10 | require ( |
| 11 | the-valley/knot v0.0.0 |
| 12 | the-valley/note v0.0.0 |
| 13 | the-valley/readaccess v0.0.0 |
| 14 | ) |
| 15 | |
| 16 | require the-valley/exactjson v0.0.0 // indirect |
| 17 | |
| 18 | // The plan graph's names and IDs are read by the rules the graph is |
| 19 | // written by (../knot), the manifest is a signed note read the way every |
| 20 | // verifier reads one (../note), and the two consents to read access are |
| 21 | // read and evaluated by ../readaccess. readaccess reads cue's exports with |
| 22 | // exactjson (../exactjson), and only the main module's replace applies, |
| 23 | // so this one names it too. All four live in this repository and are |
| 24 | // never fetched. |
| 25 | replace ( |
| 26 | the-valley/exactjson => ../exactjson |
| 27 | the-valley/knot => ../knot |
| 28 | the-valley/note => ../note |
| 29 | the-valley/readaccess => ../readaccess |
| 30 | ) |