Skip to content

Feat: add code editor with highlight #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 4, 2025
Merged

Feat: add code editor with highlight #75

merged 2 commits into from
May 4, 2025

Conversation

SharzyL
Copy link
Owner

@SharzyL SharzyL commented May 4, 2025

  • feat[frontend]: implemenet an editor
  • feat: improve support for highlight and filename

Copy link

github-actions bot commented May 4, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 76.8%
⬇️ -1.06%
808 / 1052
🔵 Statements 76.05%
⬇️ -0.95%
826 / 1086
🔵 Functions 74.34%
⬇️ -0.96%
142 / 191
🔵 Branches 70.65%
⬇️ -0.21%
532 / 753
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
frontend/components/CodeEditor.tsx 57.4% 60% 68.75% 57.4% 46-50, 64-67, 103-111, 113, 120-122, 136-137, 155, 166
frontend/components/ErrorModal.tsx 35.71%
⬇️ -2.75%
0%
🟰 ±0%
33.33%
🟰 ±0%
35.71%
⬇️ -2.75%
17-31, 37
frontend/pages/DecryptPaste.tsx 71.92%
⬇️ -3.55%
72%
⬇️ -1.91%
44.44%
⬇️ -11.11%
71.92%
⬇️ -3.55%
19, 48, 57-58, 63-64, 70-71, 74-75, 80, 104-105, 113, 125, 155
frontend/pages/PasteBin.tsx 69.69%
⬆️ +3.54%
74.07%
⬆️ +7.41%
77.77%
🟰 ±0%
71.87%
⬆️ +3.62%
70, 71, 77-78, 86, 98-105, 117-133, 142, 149, 153-156
frontend/test/testUtils.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
frontend/utils/HighlightLoader.ts 100% 100% 100% 100%
frontend/utils/uploader.ts 34.21%
🟰 ±0%
31.25%
🟰 ±0%
50%
🟰 ±0%
34.28%
🟰 ±0%
9-12, 27-37, 41, 44-46, 71-80
shared/parsers.ts 74.02%
⬇️ -1.32%
53.44%
⬇️ -0.26%
80%
🟰 ±0%
75%
⬇️ -1.56%
7, 13-14, 27, 41, 46, 49, 50, 52, 111-129
shared/uploadPaste.ts 78.94%
⬆️ +1.31%
65.38%
🟰 ±0%
66.66%
🟰 ±0%
82.6%
⬆️ +1.18%
11-12, 53, 57, 58, 59, 61, 74, 106, 110, 118, 135, 155, 158, 161, 168
worker/handlers/handleRead.ts 98.05%
⬆️ +0.05%
89.71%
⬆️ +0.19%
100%
🟰 ±0%
98.05%
⬆️ +0.05%
68, 85
worker/handlers/handleWrite.ts 85.98%
⬆️ +0.14%
82.82%
🟰 ±0%
100%
🟰 ±0%
85.98%
⬆️ +0.14%
60-66, 98, 107, 113, 150, 178, 185, 193, 228, 233
worker/storage/storage.ts 84.52%
🟰 ±0%
74.6%
⬇️ -0.78%
100%
🟰 ±0%
84.33%
🟰 ±0%
82-83, 104-105, 112, 135, 137, 140, 247-250, 257, 294
Generated in workflow #56 for commit ba79bb9 by the Vitest Coverage Report Action

@SharzyL SharzyL merged commit 61b4d2d into goshujin May 4, 2025
3 checks passed
@SharzyL SharzyL deleted the editor branch May 4, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant