Skip to content

Commit e3ac086

Browse files
author
DevBot
committed
fix(reader): restore fixtures + README
1 parent f94a1bd commit e3ac086

5 files changed

Lines changed: 44 additions & 27 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# openElement Desktop Reader
2+
3+
Alpha.5 dogfood app proving SPA mode, @openelement/ui custom elements, Preact islands, and third-party web component interop in a Deno Desktop native window.
4+
5+
## Setup
6+
7+
```sh
8+
deno upgrade canary # deno desktop requires canary
9+
```
10+
11+
## Dev
12+
13+
```sh
14+
deno task dev # Vite HMR at http://localhost:5173
15+
```
16+
17+
## Build Desktop
18+
19+
```sh
20+
deno task build # Vite build + deno desktop compile
21+
open deno-desktop-reader.app
22+
```
23+
24+
## Architecture
25+
26+
- `reader.tsx` — Vite client entry, SPA bootstrap
27+
- `main.ts` — Deno.serve HTTP server + API + GitHub sync
28+
- `routes/` — 6 routes (bookshelf, reading, notes, search, settings, wc-interop)
29+
- `islands/` — Preact island (reader-counter)
30+
- `components/` — Shared components (BookCard)
31+
- `app/` — Persistence layer (storage, repo, search, export)
32+
- `vite.config.ts` — openElement({ mode: 'spa' })
33+
34+
## Validation
35+
36+
This app validates:
37+
- `@openelement/app/spa` — SPA mode bootstrap
38+
- `@openelement/ui` — Custom element components
39+
- `@openelement/core` — JSX runtime
40+
- Preact islands — `definePreactIsland`
41+
- Third-party CE — Lit, Shoelace, MWC
Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
[
2-
{
3-
"id": "metamorphosis",
4-
"title": "The Metamorphosis",
5-
"author": "Franz Kafka",
6-
"fileName": "metamorphosis.pdf",
7-
"pageCount": 44,
8-
"summary": "A traveling salesman wakes to find himself transformed into a monstrous insect. Kafka's landmark novella of alienation and family.",
9-
"coverColor": "#2d5a27"
10-
},
11-
{
12-
"id": "heart-of-darkness",
13-
"title": "Heart of Darkness",
14-
"author": "Joseph Conrad",
15-
"fileName": "heart-of-darkness.pdf",
16-
"pageCount": 72,
17-
"summary": "A journey up the Congo River becomes a descent into moral darkness. Conrad's classic critique of colonialism.",
18-
"coverColor": "#8b0000"
19-
},
20-
{
21-
"id": "frankenstein",
22-
"title": "Frankenstein",
23-
"author": "Mary Shelley",
24-
"fileName": "frankenstein.pdf",
25-
"pageCount": 100,
26-
"summary": "Victor Frankenstein creates life — and horror — in Shelley's foundational science fiction novel.",
27-
"coverColor": "#4a3728"
28-
}
2+
{"id":"metamorphosis","title":"The Metamorphosis","author":"Franz Kafka","fileName":"metamorphosis.pdf","pageCount":44,"summary":"A traveling salesman wakes to find himself transformed into a monstrous insect.","coverColor":"#2d5a27"},
3+
{"id":"heart-of-darkness","title":"Heart of Darkness","author":"Joseph Conrad","fileName":"heart-of-darkness.pdf","pageCount":72,"summary":"A journey up the Congo River becomes a descent into moral darkness.","coverColor":"#8b0000"},
4+
{"id":"frankenstein","title":"Frankenstein","author":"Mary Shelley","fileName":"frankenstein.pdf","pageCount":100,"summary":"Victor Frankenstein creates life — and horror.","coverColor":"#4a3728"}
295
]
317 Bytes
Binary file not shown.
317 Bytes
Binary file not shown.
317 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)