sxzz / ast-explorer

AST Explorer: For most popular front-end languages and parsers.
https://ast.sxzz.moe
GNU Affero General Public License v3.0
117 stars 12 forks source link

feat: code template #64

Closed yuyinws closed 3 months ago

yuyinws commented 3 months ago

Description

This PR introduce code template feature. When toggle different language, code editor will automatic fill the corresponding code template.

Current, When toggle language, the code editor will keep previous content and may break the code parser.

I think it will improve the site user experience.

Preview

Kapture 2024-05-25 at 14 44 56

Linked Issues

Additional context

stackblitz[bot] commented 3 months ago

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

vercel[bot] commented 3 months ago

@yuyinws is attempting to deploy a commit to the sxzz's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 3 months ago

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

Name Status Preview Comments Updated (UTC)
ast-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2024 8:56am