feat: Code to image

Đang mở
#161 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript, vite
Lĩnh vực
devtools, frontend

Hướng nghiên cứu

Start with “Adding a tool” in docs/CODEMAP.md, then inspect src/tools/, src/tools/catalog.ts, and src/tools/registry.tsx to follow the existing tool pattern. Build the code editor, language and theme choices, image export, and clipboard flow using browser APIs; add Vitest coverage for the tool logic. Done means the catalog and registry entries work, nothing leaves the browser, and the tool handles offline use, light and dark mode, and phone width without layout shift.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement new tool wave-4

Why

Sharing a nice image of a code snippet (carbon.now.sh, ray.so) is popular, but those sites are online-only and some of the nicer ones are paid.

Replaces: carbon.now.sh, ray.so.

Scope

  • Paste code, pick a language and a theme, window chrome on or off, padding and background.
  • Light syntax highlighting without a big dependency: a small tokenizer for the top languages is enough, or get approval for a highlighter.
  • Export PNG or SVG, copy to clipboard.

Dependency

None. Web APIs only (canvas or SVG foreignObject, Clipboard API).

Done when

  • Logic lives in src/tools/<slug>/<slug>.ts with a Vitest test; the component only renders it.
  • One entry in src/tools/catalog.ts (category, audience, keywords, replaces) and one in src/tools/registry.tsx. See "Adding a tool" in docs/CODEMAP.md.
  • Nothing leaves the browser. It works offline once the page has loaded.
  • Works in light and dark mode and at phone width, with no layout shift when its state changes.
Ngôn ngữ chính
TypeScript
Star
2
Fork
1
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ajithakdev/toolglass

Tất cả issue của ajithakdev/toolglass

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.