Commit graph

49 commits

Author SHA1 Message Date
Dunqing
f1b433b126
feat(playground): visualize symbol (#1886)
close: https://github.com/oxc-project/oxc/issues/1048
2024-01-04 15:36:31 +08:00
Dunqing
45a7985524
feat(playground): visualize scope (#1882)
Partial support https://github.com/oxc-project/oxc/issues/1048
2024-01-03 16:10:42 +08:00
Wenzhe Wang
aa9bdeb8ee
feat(playground): add link jump to website (#1637) 2023-12-06 21:37:12 +08:00
IWANABETHATGUY
0a9c548332
feat(playground): bidirectional inspect ast node (#1619)
1. Before we implement inspect the source code via the related AST node.

2. This pull request implemented the reverse process, you can inspect
the related ast node by clicking the source code, also it would scroll
the corresponding ast node into the viewport after you click source
code.
2023-12-04 00:18:54 +08:00
Wenzhe Wang
3fe9cccb9e
feat(playground): format Prettier IR (#1567) 2023-11-28 13:51:47 +08:00
Shannon Rothe
abd5924ce9
feat(playground): add prettier IR output (#1350)
<img width="1549" alt="image"
src="https://github.com/oxc-project/oxc/assets/803013/08046826-9141-48ce-985d-6dd22642bfd6">

- Close: #1338
2023-11-16 20:42:02 +08:00
Shannon Rothe
735beb7fab
feat(playground): add prettier formatting + IR (#1349)
- [x] add Prettier format button which takes source text and updates
view with formatted source text
- [ ] add button to show Prettier IR
2023-11-16 09:33:37 +00:00
Boshen
eca98cf2ed
s/web-infra-dev/oxc-project 2023-11-10 14:30:18 +08:00
Iván Ovejero
b2eeb5e38c
fix(playground): Enable linting on first load (#1096) 2023-10-29 23:12:22 +08:00
Boshen
2e2b7587ac
feat(playground): add transform and minify (#993) 2023-10-14 19:49:58 +08:00
Wenzhe Wang
68b3cfac2b
fix(playground): choose json as language for ast view (#946) 2023-10-01 19:32:41 -05:00
Wenzhe Wang
86b483518b
Revert "deps(website): pump deps" (#945)
This reverts commit 6b38fd967d.
2023-09-30 21:02:24 +13:00
Wenzhe Wang
7de60f0668
feat(playground): add resize in playground (#943)
https://github.com/web-infra-dev/oxc/assets/33973865/b0be1785-4e01-48e4-a572-b5b03f4e0ee9
2023-09-30 10:38:11 +13:00
Boshen
6b38fd967d
deps(website): pump deps 2023-09-30 00:02:36 +13:00
Boshen
fbbc1fe6bd
chore(wasm,playground): remove hir 2023-09-29 22:39:31 +13:00
IWANABETHATGUY
ea90128b9f
chore(playground): 🐛 hide hir and minify since they are not available (#939)
1. hide hir and minify since they are not available
2. These two buttons would confuse user since they don't have any effect
for now.
2023-09-29 21:57:47 +13:00
dependabot[bot]
09ebe961d2
chore(deps): bump graphql from 16.7.1 to 16.8.1 in /website (#937) 2023-09-27 11:07:01 +13:00
Wenzhe Wang
8867f9ada2
fix(playground): compatible with older encoded codes (#926)
The playground crashed when I visited some old links in my browser
history:


https://web-infra-dev.github.io/oxc/playground/?code=ZQB4AHAAZQBjAHQAKAAxACkALgB0AG8AQgBlACgAMgApAA%3D%3D

<img width="1512" alt="image"
src="https://github.com/web-infra-dev/oxc/assets/33973865/55eb63d9-2df9-431a-8eae-7e1b7817fef6">


Maybe newcomers feel confused about this(e.g. missing a part of
character)
2023-09-17 20:07:12 +08:00
u9g
5eb6196203
feat(website): Hide error panel when query view is shown (#884)
The error panel isn't updated when the query panel is in use, so it's
kind of akward to have an empty div taking up ~a quarter of the screen
if it's empty
2023-09-10 12:24:10 +08:00
u9g
35baf80e6b
fix(website): fix run_query call arguments (#880) 2023-09-10 10:53:49 +08:00
Boshen
0a99ad4953
fix(playground): fix lzma import 2023-09-07 16:23:59 +08:00
Maneren
58f4e234da
fix(website): incorrect import (#863)
This was a fun one. 1) It worked fine in dev but failed in release and
2) the fix is importing the original file instead of a minified one. I
love JS.
Fixes #699, this time hopefully for good
2023-09-07 10:29:04 +08:00
Maneren
db95503f09
feat(website): lzma compress the code in url (#861)
Fixes #699
2023-09-05 19:58:24 +08:00
Boshen
c3560856cb
fix(website): convert utf8 <> utf16 span for correct unicode hover display (#772)
closes #426
closes #749

This fixes the unicode 16 issue but I'm not sure if this is the correct
solution.
2023-08-21 23:57:39 +08:00
u9g
5e9927745e
feat(website): Improve autocomplete (#730) 2023-08-13 15:31:22 +08:00
u9g
7daab49ca5
feat(website): fix highlighting edgecase in codemirror theme (#725)
Problem described here:
https://discuss.codemirror.net/t/basicsetup-breaks-cursor-highlighting/6964/5
2023-08-12 16:41:58 +08:00
u9g
f48db3f85e
fix(website): return early on failed highlight range (#719) 2023-08-11 05:55:58 +00:00
u9g
99a4816ce7
feat(website): add query playground (#698) 2023-08-11 10:53:21 +08:00
u9g
9c3005ff64
A bunch of improvements to the playground (#696) 2023-08-08 10:16:57 +08:00
Boshen
e80274b61a
fix(website): fix base url 2023-07-24 21:01:16 +08:00
阿良仔
ccbdb7a19d
feat(website): store the last edited code (#496) 2023-06-29 10:26:12 +08:00
Boshen
9b91d8391d
fix(website): update pnpm lock file 2023-06-22 10:54:36 +08:00
u9g
7c4e1d401a
feat(playground): Add IR view to playground (#467) 2023-06-21 22:35:55 +08:00
Ben
67a86063e9
Update to latest Ezno checker and more (#463) 2023-06-21 08:09:41 +08:00
Boshen
3263f2b654
fix(playground): disable format tab 2023-06-10 01:07:58 +08:00
Boshen
953eb29c8b
feat(playground): disable the formatter tab for now 2023-06-10 00:43:35 +08:00
Boshen
263db0f6d5
feat(playground): add some styles 2023-06-10 00:05:43 +08:00
Boshen
79188d70d0
refactor(wasm): clean up options passing (#418) 2023-06-09 21:29:28 +08:00
Boshen
2da34d0318
fix(playground): a few bug fixes 2023-06-08 23:12:27 +08:00
Boshen
dd213aa97b
fix(playground): fix spelling 2023-06-07 23:18:29 +08:00
Boshen
5a6180c95c
feat(playground): persist code into url param 2023-06-07 20:25:21 +08:00
Boshen
f13078c4df
feat(playground): show code range when hovering over the ast 2023-06-07 19:16:00 +08:00
Boshen
224624bf89
refactor(playground): some cleanups (#409) 2023-06-06 19:20:40 +08:00
Boshen
2bebbb5a77
feat(website): add linter / minifier / formatter to the playground (#407) 2023-06-04 15:30:55 +08:00
Boshen
e88fd86b17
feat(website): integrate oxc wasm into the playground (#404) 2023-06-03 10:20:50 +08:00
Boshen
eba2346cfb feat(website): init playground 2023-06-02 21:01:47 +08:00
Boshen
2d11f05f14 Nuke the existing website folder, let's start from scratch
Let's use the least amount of dependencies possible, and eventually we
should be able to dog food ourselves.
2023-06-02 21:01:47 +08:00
Boshen
d49195f7f2
feat: napi (#302)
* chore: only ignore js files from the root

* feat: napi
2023-04-22 14:41:45 +08:00
Boshen
21d4954071
Website (#281)
feat(site): init website

Co-authored-by: Gwen <guan_wy@foxmail.com>
2023-04-19 16:37:44 +08:00