Commit Graph

27 Commits

Author SHA1 Message Date
ZhenShuo Leo 5009fffcf4 fix(repo-card): manually revert to the version in 2.87.0
The md5 method has severe performance degradation
It is approximately 2x slower without cache and 5x slower with cache

Reverted due to lack of a better option
2025-07-18 00:46:14 +08:00
ZhenShuo Leo ecf6d1d53f chore(repo-card): add try statement at GetRemote 2025-07-17 23:09:00 +08:00
ZhenShuo Leo 237c90afa9 chore(github.html): move div into with syntax 2025-07-13 20:08:32 +08:00
ZhenShuo Leo d8bdf7e316 chore: add warn message for GetRemote usage in shortcodes 2025-07-13 19:56:39 +08:00
Nuno C. 6d94d1d62c Merge pull request #2269 from servedsmart/use-data-repo-colors-and-move-out-of-line
♻️ Refactor: Use universal json for repo shortcodes and move styles out of line
2025-07-10 11:37:41 +01:00
Nuno C. 037c741ded Merge pull request #2262 from ZhenShuo2021/refactor/repo-card
♻️ Refactor(repo-card): reduce coupling and indention
2025-07-10 11:37:27 +01:00
Served Smart 65a50ff643 Only generate css classes for used repo colors
This in most cases will reduce the size of main.bundle.css dramatically. Before I had around ~+32kB, now it is ~+228B
2025-07-09 19:19:10 +02:00
Served Smart cc2e90233a ♻️ Refactor: Use universal json and move styles out of line 2025-07-09 19:18:54 +02:00
Served Smart 17faf8b738 ♻️ Refactor: Autogen classes and use consistent naming
- This should greatly improve consistency
- This mainly targets one of my PRs https://github.com/nunocoracao/blowfish/pull/2211
2025-07-09 18:59:32 +02:00
ZhenShuo Leo d39a64afe1 refactor(repo-card): use iife and async loading 2025-06-20 22:15:27 +08:00
Nuno Coração f2e224a042 pretty run 2025-06-17 23:17:26 +01:00
Nuno Coração 472a89c7a5 Merge pull request #2211 from servedsmart/move-most-inline-styles-out-of-line
♻️ refactor: Move most inline styles out of line
2025-06-17 22:56:25 +01:00
Served Smart 9f85c0566e ♻️ refactor: Move most inline styles out of line
- Move out of line by using already defined css classes
- Move paddings out of line
- Move margins out of line
- Move z-indexes out of line
- Move center-relative-left out of line
2025-06-12 14:00:21 +02:00
Served Smart 4ff3d07d30 🎨 structure: Use more explicit naming in fetchRepo() 2025-06-12 13:58:59 +02:00
Served Smart 37ab1055e7 ♻️ refactor: Move similar javascript inline code out of line
- Move variables oid, oid_likes out of line
- Move background-blur out of line
- Move fetch-repo code out of line
2025-06-12 13:58:59 +02:00
Nuno Coração 94424416bc polish 2025-05-27 00:58:36 +01:00
Aleksey @soar Smyrnov 2bbcd3ab8c feat(shortcodes): Display a thumbnail for GitHub repos 2025-05-25 16:08:20 -07:00
ZhenShuo Leo 7072628632 🐛 fix: hugo minify breaks github card (#1434)
Add a div wrapper to avoid incorrect minification by hugo.

Tested with sample https://codeberg.org/cthru/blowfish_test/src/branch/master/content/tests/1716983769844-github-card-test/index.md#
2025-05-02 14:46:32 +08:00
W.T. Chang 121909e809 fix warning caused by getJSON 2024-07-18 23:33:44 +08:00
Zoe Roux 9dc7940718 Use markdown emojify instead of dump emojify 2024-05-31 12:37:29 +02:00
MaikelChan 9cfc07565c New way to generate UIDs. 2024-01-13 01:24:45 +01:00
Ryan Gibson 854f773c65 Remove extraneous backdrop-blurs across partials 2023-12-18 13:35:45 -05:00
Nuno Coração c78d68dc0b made github and gitlab shortcodes dynamic 2023-11-02 23:30:55 +00:00
Nuno Coração 096fa3e919 fixed 🎨 List hover styling too bright 2023-04-22 12:54:31 +01:00
Nuno Coração bc1d46dc19 🐛 fixed github null language 2023-02-03 21:53:17 +00:00
Nuno Coração 98b48ac6bb add github shortcode 2023-01-14 11:39:17 +00:00
Nuno Coração 4c5d367b12 add github shortcode 2023-01-14 11:13:28 +00:00