Commit d119ff8
committed
feat(ssr): Implement server-side rendering for initial table
Implements a hybrid rendering model for the resistance table to improve performance and SEO.
- The main plugin now processes all data at build time and injects it via Docusaurus's global data mechanism.
- The <ResistanceTable> component is now pre-rendered with this initial data (SSR), embedding the table directly into the static HTML.
- Client-side interactivity (changing data sources) is preserved, fetching new data dynamically (CSR).
- Added build-time warnings in the remark plugin to notify authors of invalid configurations or empty tables.
- Fixed a client-side hydration issue that prevented the adaptive layout from working correctly on the initial load.
- Updated the README with a new section explaining the rendering architecture.1 parent f16e27d commit d119ff8
7 files changed
+1715
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2173 | 2173 | | |
2174 | 2174 | | |
2175 | 2175 | | |
| 2176 | + | |
2176 | 2177 | | |
2177 | 2178 | | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
2178 | 2182 | | |
2179 | 2183 | | |
2180 | 2184 | | |
| |||
2223 | 2227 | | |
2224 | 2228 | | |
2225 | 2229 | | |
2226 | | - | |
2227 | 2230 | | |
2228 | 2231 | | |
2229 | | - | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
2230 | 2237 | | |
2231 | 2238 | | |
2232 | 2239 | | |
| |||
0 commit comments