Commit Graph

234 Commits

Author SHA1 Message Date
Dongho
d2da1a55d2 Remove useless comma (#4711)
Found an additional comma typo when I implemented this example with typescript.
2022-06-16 19:33:36 +05:30
Dan Lebo
388905f9a0 Refresh sandbox iconography (#4746)
* Refresh sandbox iconography

* Remove extra margins
2022-06-14 23:26:54 +01:00
dan
c4817ff73c [Beta] Update the bundler (#4744)
Should fix stale console logs when resetting a sandbox.
2022-06-14 12:04:05 +01:00
Dan Abramov
1ef18feef3 Clear should not collapse 2022-06-14 12:02:01 +01:00
Dan Abramov
007fe55200 Expand console by default 2022-06-14 11:14:04 +01:00
Dan Abramov
ac0985f8ad typo 2022-06-14 05:04:18 +01:00
Dan Abramov
4b0e370851 [Beta] Shorten the last section on effects 2022-06-14 04:46:42 +01:00
Dan Abramov
b113f83071 Add missing part to the example 2022-06-14 02:26:35 +01:00
Dan Abramov
3c2611e805 typo 2022-06-14 02:23:58 +01:00
Dan Abramov
ad4b83234a [Beta] Capitalize effects 2022-06-14 02:16:39 +01:00
dan
e817499383 [Beta] Synchronizing with Effects (#4742)
* [WIP] Effects

* More

* More

* Typo

* More

* tweaks

* typo

* note

* Add playsinline

* Fix

* Typo

* Oops

* More content

* Compress a bit

* edits

* oops

* Tweaks

* tweak

* Inline the deep dive

* fix

* typos

* add deep dive

* oops

* Clarify

* Add third case

* oops

* edit

* [beta][effects] Reword effects-in-render counterexample (#4722)

* reframe

* oops

* ok

* edits

* fix

* remove special styling

* tweak

* oops

* tweak

* challenges

* tweaks

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2022-06-14 01:16:16 +01:00
Strek
6d965422a4 [Beta] Add console to sandboxes (#4672)
* added code for sandpack console

* add log

* added console for older bundle

* Revert "[beta] Sandpack - new bundler (#4458)"

This reverts commit 3ab1245314.

* adds proper console and removes new bundle

* modify styles

* remove unwanted code

* nit

* fix types (#4677)

* update console

* little nits

* remove unwanted code changes

* update bundler URL

* use `message.firstLoad` for clearing console

* use `refresh` event to clear logs as well (used when going away and coming back to sandpack)

* remove padding for code blocks inside console

* small UI revamps

* change p to div since the sandpack comes inside the p, add try catch and a try catch for the catch again

* tweaks

* Fixes

* Reset unrelated changes

* tweaks

* fix

* fixes

* oops

* Fix

* fix

Co-authored-by: Danilo Woznica <danilowoz@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-06-10 20:35:05 +01:00
Danilo Woznica
e4d807d0e4 [Beta] fix(navigation): ui tweak (#4709)
* fix(navigation): ui tweak

* revert border color
2022-06-10 19:27:10 +01:00
Jake Boone
6240fed568 docs: fix incomplete sentences in useref.md (#4731) 2022-06-10 16:17:33 +01:00
dan
678caa54ca Remove unused header 2022-06-09 18:25:52 +01:00
ycjcl868
022c8ff29d [Beta] Add some types (#4728)
* [Beta] Optimize some performance

* Unnecessary image optimization

* Unused optimizeFonts
2022-06-08 15:10:24 +01:00
dan
9a5bf3e1f1 Fix typo 2022-06-03 15:27:06 +01:00
Jasper De Moor
1302ad75e0 Update SandpackRoot.tsx (#4717) 2022-06-01 20:00:24 +01:00
dan
0306da6fb3 Revert "Update SandpackRoot.tsx (#4715)" (#4716)
This reverts commit 2d46af6d03.
2022-06-01 17:20:28 +01:00
Danilo Woznica
2d46af6d03 Update SandpackRoot.tsx (#4715) 2022-06-01 16:35:22 +01:00
anwarali7
6eff1187d9 Update start-a-new-react-project.md (#4712)
Fixed TypeScript hyperlink to the correct website.
2022-05-31 00:28:53 +05:30
Lee Robinson
d522a5f4a9 Add Turborepo to custom toolchains for monorepos. (#4705) 2022-05-28 17:08:22 +05:30
Thomas Broadley
81d4f68092 docs: fix typos (#4706) 2022-05-28 17:05:44 +05:30
7527e
37ffccc29e Fixed language error (#4701)
"them" word was missing
2022-05-27 15:08:13 +01:00
Danilo Woznica
2d374f8405 [beta] fix(eslint): messages severity (#4702)
* fix(eslint): messages severity

* .
2022-05-27 15:07:26 +01:00
Yousef M. El-Gohary
9721c9d11d Add loading indicator to sidebar links (#4693)
* add loading indicator to sidebar links

* fix clicking on same route whould show indicator

* maybe final?

* handle routeChangeError as well as cleaning up timeout

* clearing timeout before creating one instead of routeChangeError

* rm unused

* add license header

* Update usePendingRoute.ts

Co-authored-by: dan <dan.abramov@gmail.com>
2022-05-27 14:18:32 +01:00
dan
ee754727e2 [Beta] Fix editor re-renders on lint error (#4699) 2022-05-26 18:37:10 +01:00
Surjith S M
c209465d76 Change text "Click me" to somthing else (#4697)
The Text "Click me" in the button confuses first-time users because it forces them to actually click on the button in the live demo but it does nothing. By changing the text, we can control the user behavior as they don't expect anything on that click.
2022-05-26 16:05:33 +01:00
Sukka
e6dfdd34fe [Beta] Drop next/dynamic usage (#4695) 2022-05-26 15:03:19 +01:00
Felix Leupold
53de0f721f [Beta] Upgrade React Types & Fix resulting type issues (#4694)
* upgrade react types

* fix type errors after upgrade
2022-05-26 12:30:00 +01:00
dan
cec374fa01 [Beta] Remove styled-jsx (#4690) 2022-05-26 00:18:19 +01:00
dan
47eea56bcf [Beta] Enable Selective Hydration in more places (#4689)
* [Beta] Enable Selective Hydration in more places

* Fix typo
2022-05-25 23:20:06 +01:00
dan
4708fe6fd2 [Beta] Slightly reduce bundle size (#4688) 2022-05-25 22:34:08 +01:00
Dan Abramov
e49a96f28c Fix TS 2022-05-25 16:40:05 +01:00
dan
603c6c36af [Beta] Fix lint re-running every second (#4687) 2022-05-25 16:07:35 +01:00
Dan Abramov
f1f545c729 [Beta] Lazy-load analytics 2022-05-24 04:59:15 +01:00
Dan Abramov
663f975620 [Beta] Serve fonts from same domain 2022-05-24 03:51:41 +01:00
dan
4e629996e4 [Beta] Update Next and React (#4680)
* [Beta] Update Next and React

* Fix types
2022-05-23 22:10:25 +01:00
dan
2ece592999 [Beta] Load CodeMirror linter plugin lazily (#4678) 2022-05-23 18:57:51 +01:00
Dan Abramov
79d50e03c4 Fix lint 2022-05-23 17:34:02 +01:00
Danilo Woznica
64a2edea9d fix(eslint): exclude parsing errors (#4673) 2022-05-23 17:29:15 +01:00
Danilo Woznica
1cf3c1b1a0 chore(sandpack): remove unused code (#4674) 2022-05-23 17:19:17 +01:00
dan
20ad0e8ca9 [Beta] Lazy-load linter code (#4675)
* [Beta] Lazy-load linter code

* Split utils into separate files
2022-05-23 17:14:21 +01:00
Strek
3aac8c5984 use proper code block (#4671) 2022-05-22 11:06:07 +05:30
dan
199e9ca2b3 [Beta] Fix error precedence (#4666) 2022-05-18 23:02:15 +01:00
Danilo Woznica
3ab1245314 [beta] Sandpack - new bundler (#4458)
* add new bundle for testing

* add timer

* update url

* update bundler version

* Remove temporary code

* Fix lint

* why?

* testing bundler url

* uncaught exception handling

* catch global errors on new bundler

* Try latest bundler

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-05-18 22:34:28 +01:00
Danilo Woznica
fc88516abf [Beta] Adds eslint integration on Sandpack (#4665)
* added sandpack linter and installed latest sandpacl

* integrate eslint into Sandpack

* Format the linting errors, disable preview on lint error, have only two react hooks

* fixes build

* split eslint-integration

* fix tooltip text color, error rename to 'Lint Error', show single lint error

* NIT

* Just enable it

* Delete eslint.md

Co-authored-by: Strek <ssharishkumar@gmail.com>
Co-authored-by: dan <dan.abramov@gmail.com>
2022-05-18 18:51:43 +01:00
dan
5fae61d7b7 [Beta] Change index page wording 2022-05-09 13:24:05 +01:00
dan
26a870e1c6 [Beta] Replace SVGs with PNGs (#4646)
* [Beta] Replace SVGs with PNGs

* Fix up sizes
2022-05-08 21:01:58 +01:00
dan
fca358333d [Beta] Diagrams for Sharing State (#4644) 2022-05-07 23:56:08 +01:00