Commit c14238e
authored
experimental: override some tags with components (#5210)
Ref #3632
Remix client routing should still work even if we go full html. Here
added tag overrides to component generator so sdk could pass component
replacements for some tags like
- body -> Body
- a -> Link
- form -> RemixForm
See example here
https://github.com/webstudio-is/webstudio/pull/5210/files#diff-f2df0aea6543a33e57d770ff1791da886ab3dfd6dec37da4a41a611b9b13a19aR61 parent e35de86 commit c14238e
35 files changed
Lines changed: 262 additions & 214 deletions
File tree
- fixtures/webstudio-features
- .webstudio
- app/__generated__
- packages
- cli/src
- react-sdk/src
- sdk-components-react-remix
- src
- sdk-components-react-router
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
2165 | 2165 | | |
2166 | 2166 | | |
2167 | 2167 | | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
2168 | 2180 | | |
2169 | 2181 | | |
2170 | 2182 | | |
| |||
2482 | 2494 | | |
2483 | 2495 | | |
2484 | 2496 | | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2485 | 2504 | | |
2486 | 2505 | | |
2487 | 2506 | | |
| |||
2799 | 2818 | | |
2800 | 2819 | | |
2801 | 2820 | | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
2802 | 2828 | | |
2803 | 2829 | | |
2804 | 2830 | | |
| |||
2812 | 2838 | | |
2813 | 2839 | | |
2814 | 2840 | | |
2815 | | - | |
2816 | | - | |
2817 | | - | |
2818 | | - | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
2825 | 2841 | | |
2826 | 2842 | | |
2827 | 2843 | | |
| |||
4111 | 4127 | | |
4112 | 4128 | | |
4113 | 4129 | | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
4114 | 4140 | | |
4115 | 4141 | | |
4116 | 4142 | | |
| |||
4432 | 4458 | | |
4433 | 4459 | | |
4434 | 4460 | | |
4435 | | - | |
| 4461 | + | |
4436 | 4462 | | |
4437 | 4463 | | |
4438 | 4464 | | |
| |||
4508 | 4534 | | |
4509 | 4535 | | |
4510 | 4536 | | |
4511 | | - | |
4512 | | - | |
4513 | | - | |
4514 | | - | |
4515 | | - | |
4516 | | - | |
4517 | | - | |
4518 | | - | |
4519 | | - | |
4520 | | - | |
4521 | | - | |
4522 | | - | |
4523 | | - | |
4524 | | - | |
4525 | 4537 | | |
4526 | 4538 | | |
4527 | 4539 | | |
| |||
6728 | 6740 | | |
6729 | 6741 | | |
6730 | 6742 | | |
| 6743 | + | |
| 6744 | + | |
| 6745 | + | |
| 6746 | + | |
| 6747 | + | |
| 6748 | + | |
| 6749 | + | |
| 6750 | + | |
| 6751 | + | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
6731 | 6758 | | |
6732 | 6759 | | |
6733 | 6760 | | |
| |||
Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments