Commit Graph

416 Commits

Author SHA1 Message Date
ZhenShuo Leo
965c241f8c feat: add support for compactSummary option in article shortcode 2025-07-13 18:44:45 +08:00
ZhenShuo Leo
b4a7741b39 feat: add support for showSummary in article shortcode 2025-07-13 18:44:45 +08:00
Nuno C.
503fe8fc5c Merge pull request #2285 from ZhenShuo2021/fix/firefox-bg-blur
🐛 Fix: right margin not blurred in firefox
2025-07-10 11:41:58 +01:00
Nuno C.
648ba17c83 Merge pull request #2258 from ZhenShuo2021/fix/mobile-toc-width
🐛 Fix: TOC is too narrow on mobile devices
2025-07-10 11:40:37 +01:00
Nuno C.
3253e366b3 Merge pull request #2260 from servedsmart/use-pure-version-medium-zoom
🔒 Use pure version of medium-zoom to avoid inline style and simplify CSP usage
2025-07-10 11:40:05 +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
ZhenShuo Leo
5ebd4ef0dd fix: toc width on mobile 2025-07-10 09:23:18 +08: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
Served Smart
48a2d64023 🔒 Use pure version of medium-zoom to avoid inline style
This avoids an extra sha sum for a hashed CSP because it merges the CSS into main.bundle.css and avoids any inline styles being applied by medium-zoom.

This addresses concerns mentioned in the closed PR https://github.com/nunocoracao/blowfish/pull/2196, now the same changes are integrated into package.json.

This fixes https://github.com/nunocoracao/blowfish/issues/2195.
2025-07-09 18:52:38 +02:00
Nuno C.
8d940881a4 Merge pull request #2278 from servedsmart/refactor-background-blur
♻️ Refactor: Use IIFE for background-blur and simplify code
2025-07-09 15:45:55 +01:00
Nuno C.
0f83712a3d Merge pull request #2253 from servedsmart/move-some-inline-event-handlers-out-of-line
♻️ Refactor: Move 2 inline event handlers out of line
2025-07-09 15:42:33 +01:00
Nuno C.
ece7b66be3 Merge pull request #2265 from nunocoracao/codex/review-code-and-suggest-improvements
🤖 Fix JS issues and modernize node scripts
2025-07-09 15:37:37 +01:00
dependabot[bot]
8e39564fa7 💄 Rebuild CSS 2025-07-09 14:21:58 +00:00
Served Smart
a34947a630 ♻️ Refactor: Move 2 inline event handlers out of line
If MDN explicitly warns user not to use them, we probably shouldn't.

MDN also states: "Note that inline event handlers are blocked as well[...]You should replace them with addEventListener calls[...]" regarding CSP.
2025-06-27 19:23:55 +02:00
Served Smart
1e9458802a ♻️ Refactor: Use IIFE for background-blur and simplify code
This improves readability and removes an unnecessary function declaration by using IIFE.

This is inspired by https://github.com/nunocoracao/blowfish/pull/2262 . If both are merged, this would enhance consistency
2025-06-27 19:19:28 +02:00
ZhenShuo Leo
262fda5deb fix: right margin not blurred in firefox 2025-06-25 22:33:14 +08:00
dependabot[bot]
d6265341d1 📦 Update packaged Mermaid 2025-06-25 05:30:08 +00:00
Nuno Coração
412401ce32 Merge pull request #2236 from nunocoracao/dependabot/npm_and_yarn/dev/chart.js-4.5.0
📌 bump chart.js from 4.4.9 to 4.5.0
2025-06-23 12:28:40 +01:00
Nuno Coração
8c42d127ff fix: improve scripts and js 2025-06-20 23:24:40 +01:00
ZhenShuo Leo
d39a64afe1 refactor(repo-card): use iife and async loading 2025-06-20 22:15:27 +08:00
ZhenShuo Leo
91fe08d205 refactor(repo-card): reduce coupling and indention 2025-06-20 22:14:46 +08:00
dependabot[bot]
6976c9b9da 💄 Rebuild CSS 2025-06-18 05:36:58 +00:00
dependabot[bot]
09b6051f96 📦 Update packaged ChartJS 2025-06-18 05:36:56 +00:00
dependabot[bot]
c5bd31b3db 💄 Rebuild CSS 2025-06-18 05:36:31 +00:00
Nuno Coração
f2e224a042 pretty run 2025-06-17 23:17:26 +01:00
Nuno Coração
485b641756 Merge pull request #2226 from servedsmart/check-null-mobilemenu
🐛 Fix: null error when no [[menu]] block is defined
2025-06-17 23:07:37 +01:00
Nuno Coração
9aa6ec7e57 Merge pull request #2220 from Taffer/add-worktree-icon
Add icon for worktree.ca
2025-06-17 23:05:29 +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
Nuno Coração
250b39c40e Merge pull request #2213 from rlan/feat/line-sharing-link
❇️ Add LINE to sharing links
2025-06-17 22:48:00 +01:00
Served Smart
cee01113cd 🐛 Fix: null error when no [[menu]] block is defined
- This fixes https://github.com/nunocoracao/blowfish/issues/2117
- Additionally this also removes unnecessary parameters in used functions
2025-06-16 19:59:48 +02:00
Chris Herborth
64d8a6267b Add icon for worktree.ca, a Gitea instance in Canada 2025-06-12 12:37:55 -04:00
Served Smart
de49717700 💄 Rebuild CSS for refactoring changes 2025-06-12 14:32:06 +02: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
9cb0db3e08 🎨 structure: Use more explicit naming in setBackgroundBlur() 2025-06-12 13:58:59 +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
Rick Lan
0b1f43373f Add LINE to sharing links 2025-06-08 20:10:14 +09:00
dependabot[bot]
018b6ece23 💄 Rebuild CSS 2025-06-04 05:51:50 +00:00
dependabot[bot]
d58d8d5534 💄 Rebuild CSS 2025-05-27 00:01:20 +00:00
Nuno Coração
94424416bc polish 2025-05-27 00:58:36 +01:00
Nuno Coração
8f17fb2b37 Merge pull request #2157 from ZhenShuo2021/fix/show-more-link
🐛 fix: restore cursor pointer on all buttons
2025-05-27 00:32:19 +01:00
Nuno Coração
35f31317e9 Merge pull request #2144 from ZhenShuo2021/fix/katex
🐛 fix: katex block overflow (#2138)
2025-05-27 00:31:51 +01:00
Nuno Coração
248180fbc5 Merge pull request #2124 from ZhenShuo2021/fix/footnote
🐛 Fix: prevent header from blocking footnotes links
2025-05-27 00:21:46 +01:00
Nuno Coração
b7478e4bad Merge pull request #2129 from ZhenShuo2021/fix/zen-mode
🐛 fix: footer not included in zen-mode toggle
2025-05-27 00:21:11 +01:00
Nuno Coração
2abffc3e26 Merge pull request #2110 from ZhenShuo2021/fix/toc
 Improved Table of Contents Display
2025-05-27 00:04:31 +01:00
Nuno Coração
4ebf766331 Merge pull request #2114 from ZhenShuo2021/docs/codeblock-lang
📝 Docs: update codeblock language
2025-05-27 00:01:42 +01:00
Nuno Coração
da1a923993 Merge pull request #2112 from ZhenShuo2021/fix/search-shortcut
🐛 Fix: disable the search keyboard shortcut in a form (#2041)
2025-05-27 00:00:27 +01:00
Nuno Coração
b68d82dc79 Merge pull request #2113 from ZhenShuo2021/fix/copy-button
🐛 Fix: truncate long text in copy-button
2025-05-26 23:58:56 +01:00
Nuno Coração
4a2e4aa4ed add icons to docs 2025-05-26 23:41:33 +01:00
Nuno Coração
530806dbf2 Merge pull request #2098 from marians/pixelfed-icon
Add Pixelfed icon
2025-05-26 23:38:18 +01:00