devrsi0n / chirpy

๐Ÿ’ฌ A privacy-friendly and customizable Disqus (comment system) alternate. ๆณจ้‡้š็งไฟๆŠคๅ’ŒๅฎšๅˆถๅŒ–็š„่ฏ„่ฎบ็ณป็ปŸใ€‚
https://chirpy.dev
GNU Affero General Public License v3.0
556 stars 32 forks source link

refactor: move code to packages #502

Closed devrsi0n closed 1 year ago

devrsi0n commented 1 year ago

Description

Split code to separated packages for maintainability

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Updated
chirpy โœ… Ready (Inspect) Visit Preview Oct 26, 2022 at 2:01PM (UTC)
changeset-bot[bot] commented 1 year ago

โš ๏ธ No Changeset found

Latest commit: 1e724644f42b10c921a2270f53578511d14ff028

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

relativeci[bot] commented 1 year ago

Job #1030: Bundle Size โ€” 2.06MiB (+4%).

d7c78fa(current) vs 0ff931b main#1020(baseline)

Metrics (9 changes)
โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒCurrent
Job #1030
โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒBaseline
Job #1020
Initial JS 1.09MiB(+7.93%) 1.01MiB
Initial CSS 89.13KiB(-2.93%) 91.82KiB
Cache Invalidation 38.32% 19.78%
Chunks 49(+2.08%) 48
Assets 58(+1.75%) 57
Modules 1222(+5.89%) 1154
Duplicate Modules 299(+63.39%) 183
Duplicate Code 7.13%(+106.07%) 3.46%
Packages 85(-1.16%) 86
Duplicate Packages 1 1

Total size by type (3 changes)
| โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒ | โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒโ€ƒCurrent
[Job #1030](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q?utm_source=github&utm_medium=pr-report "View job report") | โ€ƒโ€ƒโ€ƒโ€ƒโ€ƒBaseline
[Job #1020](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1020-iKzanae1I3kKZMrYCYfz?utm_source=github&utm_medium=pr-report "View baseline job report") | |:--|--:|--:| | [CSS](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Atrue%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all CSS assets") | `92.2KiB` (`-3.24%`) | `95.28KiB` | | [Fonts](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Atrue%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all Fonts assets") | `0B` | `0B` | | [HTML](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Atrue%2C%22ft.OTHER%22%3Afalse%7D%7D "View all HTML assets") | `0B` | `0B` | | [IMG](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Atrue%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all IMG assets") | `976B` | `976B` | | [JS](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Atrue%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all JS assets") | `1.96MiB` (`+4.33%`) | `1.88MiB` | | [Media](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Atrue%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Afalse%7D%7D "View all Media assets") | `0B` | `0B` | | [Other](https://app.relative-ci.com/projects/rYoEVFddayylGRgFiBEd/jobs/1030-IaIh5ApEwJUDSU1KHg0q/assets?ba=%7B%22filters%22%3A%7B%22ft.CSS%22%3Afalse%2C%22ft.JS%22%3Afalse%2C%22ft.IMG%22%3Afalse%2C%22ft.MEDIA%22%3Afalse%2C%22ft.FONT%22%3Afalse%2C%22ft.HTML%22%3Afalse%2C%22ft.OTHER%22%3Atrue%7D%7D "View all Other assets") | `10.59KiB` (`+9.54%`) | `9.67KiB` |

View job #1030 reportโ€ƒView main branch activity

github-actions[bot] commented 1 year ago

Coverage report for ./apps/main

St.:grey_question:
Category Percentage Covered / Total
๐Ÿ”ด Statements
4.42% (-35.07% ๐Ÿ”ป)
40/904
๐Ÿ”ด Branches
3.56% (-21.86% ๐Ÿ”ป)
9/253
๐Ÿ”ด Functions
2.16% (-30.69% ๐Ÿ”ป)
5/232
๐Ÿ”ด Lines
4.49% (-34.85% ๐Ÿ”ป)
38/846
Show files with reduced coverage ๐Ÿ”ป
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------- | :-------------------------------------------------------------- | :-------------------------------------------------------------- | :---------------------------------------------------------- | :-------------------------------------------------------------- | | ๐ŸŸก | server/mdx/files.ts |
69.05% (-28.57% ๐Ÿ”ป)
|
64.29% (-21.43% ๐Ÿ”ป)
|
50% (-50% ๐Ÿ”ป)
|
68.29% (-29.27% ๐Ÿ”ป)
| | ๐Ÿ”ด | pages/404.tsx |
0% (-100% ๐Ÿ”ป)
| 100% |
0% (-100% ๐Ÿ”ป)
|
0% (-100% ๐Ÿ”ป)
| | ๐Ÿ”ด | pages/_app.tsx |
0% (-71.43% ๐Ÿ”ป)
|
100% (+100% ๐Ÿ”ผ)
|
0% (-14.29% ๐Ÿ”ป)
|
0% (-82.35% ๐Ÿ”ป)
| | ๐Ÿ”ด | pages/index.tsx |
0% (-84.21% ๐Ÿ”ป)
| 0% |
0% (-60% ๐Ÿ”ป)
|
0% (-88.24% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / privacy-policy.tsx
|
0% (-100% ๐Ÿ”ป)
|
100% (+50% ๐Ÿ”ผ)
|
0% (-100% ๐Ÿ”ป)
|
0% (-100% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / terms-of-service.tsx
|
0% (-100% ๐Ÿ”ป)
|
100% (+50% ๐Ÿ”ผ)
|
0% (-100% ๐Ÿ”ป)
|
0% (-100% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / sign-in.tsx
|
0% (-88.89% ๐Ÿ”ป)
|
100% (+100% ๐Ÿ”ผ)
|
0% (-100% ๐Ÿ”ป)
|
0% (-88.89% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / welcome.tsx
|
0% (-88.46% ๐Ÿ”ป)
|
100% (+60% ๐Ÿ”ผ)
|
0% (-83.33% ๐Ÿ”ป)
|
0% (-92% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / [...slug].tsx
|
0% (-93.33% ๐Ÿ”ป)
|
0% (-69.23% ๐Ÿ”ป)
|
0% (-100% ๐Ÿ”ป)
|
0% (-93.1% ๐Ÿ”ป)
| | ๐Ÿ”ด |
`...` / index.tsx
|
0% (-83.78% ๐Ÿ”ป)
|
100% (+73.33% ๐Ÿ”ผ)
|
0% (-50% ๐Ÿ”ป)
|
0% (-86.11% ๐Ÿ”ป)
| | ๐Ÿ”ด | server/mdx/mdx.ts |
0% (-62.5% ๐Ÿ”ป)
|
0% (-33.33% ๐Ÿ”ป)
|
0% (-25% ๐Ÿ”ป)
|
0% (-62.5% ๐Ÿ”ป)
|

Test suite run success

2 tests passing in 2 suites.

Report generated by ๐Ÿงชjest coverage report action from 1e724644f42b10c921a2270f53578511d14ff028

cypress[bot] commented 1 year ago



Test summary

5 0 2 0Flakiness 0


Run details

Project chirpy
Status Passed
Commit 1e724644f4
Started Oct 26, 2022 2:02 PM
Ended Oct 26, 2022 2:04 PM
Duration 01:53 ๐Ÿ’ก
OS Linux Ubuntu - 20.04
Browser Electron 100

View run in Cypress Dashboard โžก๏ธ


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

github-actions[bot] commented 1 year ago

Coverage report for ./packages/ui

St.:grey_question:
Category Percentage Covered / Total
๐Ÿ”ด Statements 52.07% 2397/4603
๐Ÿ”ด Branches 26.64% 462/1734
๐Ÿ”ด Functions 35.51% 441/1242
๐Ÿ”ด Lines 52.1% 2284/4384

Test suite run success

50 tests passing in 32 suites.

Report generated by ๐Ÿงชjest coverage report action from 1e724644f42b10c921a2270f53578511d14ff028