Commit b406993
authored
Refactor (#3)
* rewrite
* Add standard web components HTML file and update routing
* Refactor standard web components to enhance shadow DOM handling and implement signal-based state management for Counter and Button elements
* Remove unused index.html file to streamline project structure
* Add Document component and update routing; replace Home with Document in main.tsx
* refactor: remove unused components and streamline imports
- Deleted unused Preact components: ButtonPreact, CounterPreact, Button, Counter, and their associated templates.
- Simplified main.ts by removing unnecessary imports and routes.
- Updated standard-web-components.html to include a form for the counter element.
- Removed importmap.js and wrangler.jsonc as they are no longer needed.
- Cleaned up CSS files related to buttons and counters.
- Adjusted types/elements.ts to reflect the removal of unused elements.
* feat: update button component to increment counter on click
- Modified Button component to use a local handleClick function that increments the counter value.
- Removed the onClick prop in favor of the new functionality.
chore: update deno.json to use unstable-bundle flag
- Changed the bundle command to include the --unstable-bundle flag for compatibility.
docs: add link to Preact Web Components in index.html
- Added a new navigation link for Preact Web Components in the main index.html file.
* feat: enhance element-counter and element-button with hydrate attribute for improved hydration support1 parent ca8be9c commit b406993
327 files changed
Lines changed: 1331 additions & 46556 deletions
File tree
- build
- components
- dom
- elements
- functions
- images
- favicon
- package
- esm
- components
- deps/jsr.io/@std
- cli/1.0.22
- encoding/1.0.10
- fmt/1.0.8
- fs/1.0.19
- html/1.0.4
- http/1.0.20
- internal/1.0.10
- media-types/1.1.0
- vendor
- net/1.0.6
- path/1.1.2
- _common
- posix
- windows
- streams/1.0.12
- dom
- elements
- templates
- src
- components
- deps/jsr.io/@std
- cli/1.0.22
- encoding/1.0.10
- fmt/1.0.8
- fs/1.0.19
- html/1.0.4
- http/1.0.20
- internal/1.0.10
- media-types/1.1.0
- vendor
- net/1.0.6
- path/1.1.2
- _common
- posix
- windows
- streams/1.0.12
- dom
- elements
- templates
- templates
- templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
This file was deleted.
This file was deleted.
0 commit comments