-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ Basic view tree logging feature * ✨ Visualize dec/stt/eff * ✨ Visualize arguments to components * ✨ Match the report timings * ♻️ Refactor Report_box.log * ✨ Visualize retry * 🚸 Truncate long strings * 📌 printbox without overflowing frames * 🔥 No more hpad necessary as printbox got patched * 🍱 Add samples from react.dev * ♻️ Move logging effect & handler inside Report_box
- Loading branch information
Showing
12 changed files
with
163 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
samples/* | ||
samples/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ | |
logs | ||
menhir | ||
ppx_jane | ||
printbox | ||
printbox-text | ||
stdio | ||
(alcotest :with-test)) | ||
(tags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pin-depends: [ | ||
[ "flow_parser.0.239.1" "git+https://github.com/facebook/flow#5d1b246a1ac8a8fc4e431b835ab8fb7f6f5ebd30" ] | ||
[ "printbox.0.11" "git+https://github.com/c-cube/printbox#d49d9520e7d9e96121c13643cd3eaf8876389205" ] | ||
[ "printbox-text.0.11" "git+https://github.com/c-cube/printbox#d49d9520e7d9e96121c13643cd3eaf8876389205" ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
let Item isPacked = | ||
if isPacked then | ||
view [1] | ||
else | ||
view [0] | ||
;; | ||
let PackingList _ = | ||
view [Item true, Item true, Item false] | ||
;; | ||
view [PackingList ()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
let Counter _ = | ||
let (number, setNumber) = useState 0 in | ||
if number = 0 then ( | ||
setNumber (fun _ -> number + 5); | ||
setNumber (fun n -> n + 1); | ||
setNumber (fun _ -> 42) | ||
); | ||
view [number] | ||
;; | ||
view [Counter ()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
let FancyText x = | ||
if x = 0 then | ||
view [0] | ||
else | ||
view [1] | ||
;; | ||
let InspirationGenerator children = | ||
let (index, setIndex) = useState 0 in | ||
# need to have indexing | ||
children | ||
;; | ||
let Copyright year = | ||
view [year] | ||
;; | ||
let App _ = | ||
view [FancyText 42, InspirationGenerator (view [Copyright 2004])] | ||
;; | ||
view [App ()] |