artalar / reatom

Reatom - the ultimate state manager
https://reatom.dev
MIT License
1.1k stars 110 forks source link

feat(docs): implement version select #924

Open BANOnotIT opened 1 month ago

BANOnotIT commented 1 month ago
screenshots Desktop version selector: ![image](https://github.com/user-attachments/assets/d08c69f5-cbc7-4636-827c-9137c22e21ae) Mobile version selector: ![image](https://github.com/user-attachments/assets/8df64751-48b1-47ab-9a8b-95f977be807c)
stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reatom ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 11:27pm
artalar commented 2 weeks ago
[02:26:45.256] Running build in Washington, D.C., USA (East) – iad1
[02:26:45.365] Cloning github.com/artalar/reatom (Branch: doc/add-version-select, Commit: 4531d89)
[02:26:45.372] Skipping build cache, deployment was triggered without cache.
[02:26:45.830] Warning: Failed to fetch one or more git submodules
[02:26:45.831] Cloning completed: 465.015ms
[02:26:46.221] Running "vercel build"
[02:26:46.626] Vercel CLI 37.14.0
[02:26:47.430] Running "install" command: `npm i`...
[02:27:00.051] 
[02:27:00.051] added 803 packages, and audited 804 packages in 12s
[02:27:00.051] 
[02:27:00.051] 287 packages are looking for funding
[02:27:00.051]   run `npm fund` for details
[02:27:00.086] 
[02:27:00.086] 11 vulnerabilities (1 low, 5 moderate, 5 high)
[02:27:00.087] 
[02:27:00.087] To address all issues, run:
[02:27:00.087]   npm audit fix
[02:27:00.087] 
[02:27:00.087] Run `npm audit` for details.
[02:27:00.360] 
[02:27:00.360] > @reatom/docs@0.0.1 build
[02:27:00.360] > astro build
[02:27:00.360] 
[02:27:02.783] 23:27:02 [build] output: "static"
[02:27:02.783] 23:27:02 [build] directory: /vercel/path1/dist/
[02:27:02.783] 23:27:02 [build] Collecting build info...
[02:27:02.784] 23:27:02 [build] ✓ Completed in 865ms.
[02:27:02.785] 23:27:02 [build] Building static entrypoints...
[02:27:14.094] 23:27:14 [vite] ✓ built in 11.28s
[02:27:14.095] 23:27:14 [build] ✓ Completed in 11.31s.
[02:27:14.096] 
[02:27:14.096]  building client (vite) 
[02:27:14.115] 23:27:14 [vite] transforming...
[02:27:34.008] 23:27:34 [vite] ✓ 2107 modules transformed.
[02:27:34.952] 23:27:34 [vite] rendering chunks...
[02:27:36.009] 23:27:36 [vite] computing gzip size...
[02:27:36.084] 23:27:36 [vite] dist/_astro/array.BKyUJesY.js                                          0.09 kB │ gzip:   0.10 kB
[02:27:36.084] 23:27:36 [vite] dist/_astro/clone.C71Gt0fk.js                                          0.09 kB │ gzip:   0.11 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/channel.FXYgsnnw.js                                        0.11 kB │ gzip:   0.12 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/init.Gi6I4Gst.js                                           0.15 kB │ gzip:   0.13 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/Tableau10.B-NsZVaP.js                                      0.19 kB │ gzip:   0.18 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/_commonjsHelpers.Cpj98o6Y.js                               0.24 kB │ gzip:   0.18 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/flowDiagram-v2-3b53844e.DHAdlmNO.js                        0.82 kB │ gzip:   0.47 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/line.CvjDTcNX.js                                           0.95 kB │ gzip:   0.47 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/preload-helper.ygWHROA3.js                                 1.01 kB │ gzip:   0.61 kB
[02:27:36.085] 23:27:36 [vite] dist/_astro/ordinal.BYWQX77i.js                                        1.19 kB │ gzip:   0.57 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/svgDrawCommon-5ccd53ef.D0N-TT9E.js                         1.34 kB │ gzip:   0.58 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/page.CZ0TFQCk.js                                           2.25 kB │ gzip:   0.99 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/path.CbwjOpE9.js                                           2.28 kB │ gzip:   0.99 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/arc.DLIvHNZ3.js                                            3.47 kB │ gzip:   1.49 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/stateDiagram-v2-9a9d610d.lzIn3Cd_.js                       4.94 kB │ gzip:   2.36 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/classDiagram-v2-f2df5561.lZmaDlJq.js                       4.98 kB │ gzip:   2.24 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/hoisted.rLta06wy.js                                        6.73 kB │ gzip:   2.62 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/infoDiagram-bcd20f53.Dd7UUNkz.js                           8.67 kB │ gzip:   3.28 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/classDiagram-30eddba6.BNPZzGNN.js                          9.32 kB │ gzip:   2.91 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/styles-3ed67cfa.tGGx6gy4.js                               10.06 kB │ gzip:   3.69 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/linear.BBLtpPon.js                                        10.17 kB │ gzip:   4.25 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/stateDiagram-0ff1cf1a.CUsGc5X7.js                         10.20 kB │ gzip:   3.55 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/index-fc10efb0.D1L-hAHs.js                                11.99 kB │ gzip:   4.13 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/pieDiagram-79897490.DzZMaqZC.js                           15.08 kB │ gzip:   5.67 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/graph.D9PiJ42y.js                                         17.77 kB │ gzip:   6.42 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/sankeyDiagram-97764748.B4wJWud7.js                        21.17 kB │ gzip:   7.74 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/flowDiagram-5540d9b9.jKQkBFX7.js                          21.72 kB │ gzip:   7.15 kB
[02:27:36.086] 23:27:36 [vite] dist/_astro/journeyDiagram-4fe6b3dc.Dhr-v-Ib.js                       21.77 kB │ gzip:   7.68 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/timeline-definition-fea2a41d.aCjI0W_y.js                  22.71 kB │ gzip:   7.94 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/requirementDiagram-05bf5f74.CjJ64qVw.js                   24.70 kB │ gzip:   8.50 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/styles-d20c7d72.BlgDEB58.js                               26.41 kB │ gzip:   8.44 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/layout.CZNV6pZC.js                                        29.05 kB │ gzip:  10.61 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/quadrantDiagram-62f64e94.a4psEjL3.js                      29.49 kB │ gzip:   8.37 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/erDiagram-47591fe2.Cg5cJtLU.js                            30.88 kB │ gzip:  10.03 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/edges-d32062c0.lKtPMDEj.js                                34.36 kB │ gzip:   8.91 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/blockDiagram-91b80b7a.C1VydmUc.js                         37.28 kB │ gzip:  11.92 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/xychartDiagram-ab372869.cHzIxZjM.js                       37.34 kB │ gzip:  10.45 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/styles-991ebdfc.woGrO0iz.js                               37.86 kB │ gzip:  12.58 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/gitGraphDiagram-96e6b4ee.CEGtexgz.js                      38.82 kB │ gzip:  11.61 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/flowDb-4b19a42f.B-5bMBEQ.js                               46.73 kB │ gzip:  15.26 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/ui-core.C-L7c31r.js                                       56.99 kB │ gzip:  18.91 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/ganttDiagram-9a3bba1f.CFAKGz7j.js                         60.09 kB │ gzip:  20.38 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/createText-6b48ae7d.BWxAit16.js                           60.20 kB │ gzip:  17.88 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/c4Diagram-b2a90758.CDP4kbqZ.js                            68.49 kB │ gzip:  19.20 kB
[02:27:36.087] 23:27:36 [vite] dist/_astro/sequenceDiagram-acc0e65c.CMifaMna.js                      84.21 kB │ gzip:  24.26 kB
[02:27:36.088] 23:27:36 [vite] dist/_astro/mermaid.Y8y1T_9n.js                                      256.18 kB │ gzip:  72.03 kB
[02:27:36.088] 23:27:36 [vite] dist/_astro/katex.rPiVaalG.js                                        260.89 kB │ gzip:  76.98 kB
[02:27:36.088] 23:27:36 [vite] dist/_astro/mindmap-definition-f354de21.ByfKn-S6.js                  472.29 kB │ gzip: 147.73 kB
[02:27:36.088] 23:27:36 [vite] dist/_astro/discovery.DK5snIAU.js                                    674.96 kB │ gzip: 208.08 kB
[02:27:36.089] 23:27:36 [vite] dist/_astro/Repl.astro_astro_type_script_index_0_lang.BHFzSddz.js    702.22 kB │ gzip: 214.87 kB
[02:27:36.089] 23:27:36 [vite] dist/_astro/flowchart-elk-definition-5fe447d6.Brc-X0ln.js          1,448.82 kB │ gzip: 444.37 kB
[02:27:36.089] 23:27:36 [WARN] [vite] 
[02:27:36.089] (!) Some chunks are larger than 500 kB after minification. Consider:
[02:27:36.090] - Using dynamic import() to code-split the application
[02:27:36.090] - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
[02:27:36.090] - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
[02:27:36.090] 23:27:36 [vite] ✓ built in 21.98s
[02:27:36.121] 
[02:27:36.121]  generating static routes 
[02:27:36.123] 23:27:36 λ astro-expressive-code/routes/styles.ts
[02:27:36.129] 23:27:36   └─ /_astro/ec.d6kn2.css (+6ms)
[02:27:36.131] 23:27:36 λ astro-expressive-code/routes/scripts.ts
[02:27:36.132] 23:27:36   └─ /_astro/ec.dy9ns.js (+1ms)
[02:27:36.168] 23:27:36 â–¶ @astrojs/starlight/404.astro
[02:27:36.197] 23:27:36   └─ /404.html (+28ms)
[02:27:36.198] 23:27:36 â–¶ @astrojs/starlight/index.astro
[02:27:36.252] 23:27:36   ├─ /blog/what-is-state-manager/index.html (+52ms)
[02:27:36.286] 23:27:36   ├─ /compat/core-v1/index.html (+34ms)
[02:27:36.360] 23:27:36   ├─ /compat/core-v2/index.html (+73ms)
[02:27:36.386] 23:27:36   ├─ /compat/react-v1/index.html (+26ms)
[02:27:36.438] 23:27:36   ├─ /compat/react-v2/index.html (+52ms)
[02:27:36.471] 23:27:36   ├─ /contributing/index.html (+32ms)
[02:27:36.520] 23:27:36   ├─ /examples/index.html (+49ms)
[02:27:36.550] 23:27:36   ├─ /getting-started/debugging/index.html (+30ms)
[02:27:36.605] 23:27:36   ├─ /getting-started/learning/index.html (+55ms)
[02:27:36.634] 23:27:36   ├─ /getting-started/setup/index.html (+29ms)
[02:27:36.680] 23:27:36   ├─ /getting-started/testing/index.html (+46ms)
[02:27:36.713] 23:27:36   ├─ /handbook/index.html (+33ms)
[02:27:36.766] 23:27:36   ├─ /index.html (+53ms)
[02:27:36.809] 23:27:36   ├─ /package/async/index.html (+42ms)
[02:27:36.865] 23:27:36   ├─ /package/core/index.html (+57ms)
[02:27:36.890] 23:27:36   ├─ /package/devtools/index.html (+25ms)
[02:27:36.943] 23:27:36   ├─ /package/effects/index.html (+52ms)
[02:27:36.969] 23:27:36   ├─ /package/eslint-plugin/index.html (+26ms)
[02:27:37.018] 23:27:36   ├─ /package/form/index.html (+49ms)
[02:27:37.044] 23:27:37   ├─ /package/framework/index.html (+26ms)
[02:27:37.094] 23:27:37   ├─ /package/hooks/index.html (+50ms)
[02:27:37.124] 23:27:37   ├─ /package/jsx/index.html (+30ms)
[02:27:37.180] 23:27:37   ├─ /package/lens/index.html (+55ms)
[02:27:37.203] 23:27:37   ├─ /package/logger/index.html (+24ms)
[02:27:37.227] 23:27:37   ├─ /package/npm-cookie-baker/index.html (+23ms)
[02:27:37.282] 23:27:37   ├─ /package/npm-history/index.html (+55ms)
[02:27:37.312] 23:27:37   ├─ /package/npm-react/index.html (+31ms)
[02:27:37.362] 23:27:37   ├─ /package/npm-solid-js/index.html (+50ms)
[02:27:37.386] 23:27:37   ├─ /package/npm-svelte/index.html (+24ms)
[02:27:37.439] 23:27:37   ├─ /package/npm-vue/index.html (+53ms)
[02:27:37.463] 23:27:37   ├─ /package/npm-zod/index.html (+24ms)
[02:27:37.515] 23:27:37   ├─ /package/persist-web-storage/index.html (+52ms)
[02:27:37.543] 23:27:37   ├─ /package/persist/index.html (+28ms)
[02:27:37.596] 23:27:37   ├─ /package/primitives/index.html (+53ms)
[02:27:37.622] 23:27:37   ├─ /package/testing/index.html (+26ms)
[02:27:37.669] 23:27:37   ├─ /package/timer/index.html (+47ms)
[02:27:37.695] 23:27:37   ├─ /package/undo/index.html (+26ms)
[02:27:37.747] 23:27:37   ├─ /package/url/index.html (+51ms)
[02:27:37.778] 23:27:37   ├─ /package/utils/index.html (+31ms)
[02:27:37.828] 23:27:37   ├─ /package/web/index.html (+50ms)
[02:27:37.854] 23:27:37   ├─ /recipes/atomization/index.html (+26ms)
[02:27:37.902] 23:27:37   ├─ /recipes/custom-operator/index.html (+48ms)
[02:27:37.926] 23:27:37   ├─ /recipes/typescript/index.html (+24ms)
[02:27:37.976] 23:27:37   └─ /repl/index.html (+49ms)
[02:27:37.976] 23:27:37 â–¶ /core
[02:27:37.978] 23:27:37   └─ /core/index.html (+2ms)
[02:27:37.978] 23:27:37 ✓ Completed in 1.86s.
[02:27:37.978] 
[02:27:38.509] 
[02:27:38.509] Running Pagefind v1.0.4 (Extended)
[02:27:38.509] Running from: "/vercel/path1/node_modules/@astrojs/starlight"
[02:27:38.510] Source:       "../../../dist"
[02:27:38.510] Output:       "../../../dist/pagefind"
[02:27:38.510] 
[02:27:38.510] [Walking source directory]
[02:27:38.511] Found 46 files matching **/*.{html}
[02:27:38.511] 
[02:27:38.511] [Parsing files]
[02:27:39.033] Found a data-pagefind-body element on the site.
[02:27:39.033] ↳ Ignoring pages without this tag.
[02:27:39.034] 
[02:27:39.034] [Reading languages]
[02:27:39.034] 1 page found without an <html> element. 
[02:27:39.034] Pages without an outer <html> element will not be processed by default. 
[02:27:39.034] If adding this element is not possible, use the root selector config to target a different root element.
[02:27:39.037] Discovered 1 language: en
[02:27:39.037] 
[02:27:39.037] [Building search indexes]
[02:27:39.063] Total: 
[02:27:39.063]   Indexed 1 language
[02:27:39.063]   Indexed 44 pages
[02:27:39.064]   Indexed 3942 words
[02:27:39.064]   Indexed 0 filters
[02:27:39.064]   Indexed 0 sorts
[02:27:39.104] 
[02:27:39.104] Finished in 0.595 seconds
[02:27:39.129] 23:27:39 [@astrojs/sitemap] `sitemap-index.xml` created at `dist`
[02:27:39.130] 23:27:39 [build] 45 page(s) built in 37.21s
[02:27:39.130] 23:27:39 [build] Complete!
[02:27:39.309] Installing dependencies...
[02:27:41.058] 
[02:27:41.058] changed 1 package in 2s
[02:27:41.058] 
[02:27:41.058] 287 packages are looking for funding
[02:27:41.058]   run `npm fund` for details
[02:27:41.363] Using TypeScript 5.4.3 (local user-provided)
[02:27:43.406] middleware.ts(1,10): error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
[02:27:43.407] middleware.ts(2,10): error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
[02:27:43.407] middleware.ts(3,10): error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
[02:27:43.407] middleware.ts(5,1): error TS1287: A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.
[02:27:43.407] 
[02:27:43.577] Build Completed in /vercel/output [56s]
[02:27:43.665] Deploying outputs...
[02:27:46.597] 
[02:27:46.850] Deployment completed
BANOnotIT commented 1 week ago

Its some problem in runtime. Can you just check that things work on your machine pls? xD