Commit Graph
34 Commits
Author SHA1 Message Date
pseudoyu 898dcc1d18 chore: add missing maintainers 2026-03-28 19:25:45 +08:00
pseudoyu 614a466a6d fix(route/theinitium): migrate to ghost cms api 2026-03-27 20:39:04 +08:00
8d8a435a48 fix(route/theinitium): rewrite for Ghost CMS after site migration (#21071)
* refactor(theinitium): rewrite routes for Ghost CMS, add cookie support

- Rewrite all routes to use Ghost Content API (old API deprecated)
- Add INITIUM_MEMBER_COOKIE env var for paid article full-text
- Add features block with requireConfig to all route files
- Add url field and radar rules per RSSHub standards
- Strip -zh-hans suffix from author/category display names
- Update namespace with English name and zh translations
- Mark follow route as deprecated (Ghost doesn't support it)
- Fix hostname binding to 0.0.0.0 for LAN access

* fix(theinitium): use routeExpire with refresh=false to prevent stale cache

Cache was never expiring because refresh=true (default) extends TTL on every hit.
Now uses 5-min routeExpire and won't extend on access.

* refactor(theinitium): address review feedback

- Remove unused INITIUM_USERNAME/PASSWORD/BEARER_TOKEN env keys
- Remove hardcoded User-Agent (use RSSHub's internal UA)
- Remove fragile html.length > 500 check
- Remove refresh: false from cache.tryGet
- Hoist stripLangSuffix to module scope (dedupe with cleanName)

* fix(theinitium): detect paywall CTA instead of length check

If cookie is invalid/expired, scrape returns paywall HTML.
Check for .gh-post-upgrade-cta to detect this and fall back
to cleaner Ghost API preview.

* revert(index): restore '::' hostname per #16513

* feat(theinitium): clean Ghost Koenig card HTML for RSS output

* fix(theinitium): use redirected Ghost API URL, remove unused config types

* fix(theinitium): remove unrelated neureality config changes

---------

Co-authored-by: Ryan Yao <ryanyao@Macmini.lan>
Co-authored-by: Ryan Yao <ryanyao@Ryans-Mac-mini.lan>
Co-authored-by: Ryan Yao <ryanyao@Ryans-Mac-mini.local>
2026-03-09 04:13:25 +08:00
DIYgod cf4e772de8 refactor: replace art template with jsx (#20777)
* refactor: replace art template with jsx

* fix: tsx files

* fix: renderToString import

* fix: hono html raw import

* feat: remove art
2025-12-29 12:27:32 +08:00
github-actions[bot] edfac9f24c style: auto format 2025-11-27 05:54:33 +00:00
github-actions[bot] 838eb3c7ff style: auto format 2025-11-27 05:49:33 +00:00
github-actions[bot] a28890a135 style: auto format 2025-11-27 02:55:46 +00:00
Andvari ed51422824 fix(route/initium): replace got with ofetch and handle dead link (#20494)
* fix(route/initium): replace got with ofetch and handle dead link

* fix(route/theinitium): update fetchWebPage to handle new article structure
2025-11-18 01:29:51 +08:00
DIYgod 2dce2e32dd feat: docs sorting and auto popular 2025-05-31 17:10:01 +08:00
quiniapiezoelectricity eb9cabb75d fix(route/theinitium): fix footer (#19086) 2025-05-12 21:36:55 +08:00
Tony 8faec7fbfd refactor: fix Element type import 2025-05-07 04:18:23 +08:00
DIYgod 83e701b592 feat: compile ts through tsdown (#18908)
* feat: build ts via tsdown

* feat: exec tsdown

* fix

* fix

* fix

* feat: use tsdown shims

* chore: run rolldown lifecycle script

* fix: use shims

---------
2025-04-22 22:29:11 +08:00
quiniapiezoelectricity c09c06804f fix(route/theinitium): fix css selector (#18695) 2025-03-25 18:27:14 +08:00
quiniapiezoelectricity c4f1afde8a fix(route/theinitium): fix app route user agent image issue (#18299)
* fix(route/theinitium): fix app route user agent image issue

* Update app.ts

* Update app.ts
2025-02-10 05:08:44 +08:00
quiniapiezoelectricity 8befd48d0b fix(route/theinitium): fix app route user-agent issues (#18279) 2025-02-05 23:15:01 +08:00
Tony 4fa33716c1 docs: remove indent (#18247)
* docs: remove indent

* docs: remove more indent

* docs: remove h5 indent

* docs: remove h4 indent

* docs: remove details indent
2025-01-31 22:17:58 +08:00
Tony 04a3e88448 docs: fix admonitions syntax (#18018) 2025-01-01 15:52:40 +08:00
pseudoyu 3471d7b111 chore(route): add more new media routes 2024-11-26 14:59:09 +08:00
quiniapiezoelectricity 6451863ee9 fix(route/theinitium): Fix wp-block html (#17460) 2024-11-06 03:26:36 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
quiniapiezoelectricity 9c61e7de9a fix(route/theinitium): Fix item link for /app route (#17358) 2024-10-29 23:31:37 +08:00
quiniapiezoelectricity a4e0dfe662 feat(route): add /app route for 端传媒 (#16775)
* add /theinitium/app route

* Update app.ts

* change to spread operator

* fix duplicate categories

* api change

* fix

* Update app.ts

* Apply suggestions from code review

* description update

* Update app.ts
2024-09-18 23:29:52 +08:00
minty_frankie f4b05dbe34 fix(route): update The Inithium authentication method (#15797)
* fix: delete deprecated INITIUM_IAP_RECEIPT authentication method

* fix(route): fix username and password authentication method

* chore: update route maintainers

* fix: delete all fields for iap_receipt

* fix: delete finally all IAP_RECEIPT field

* fix: correct login request headers
2024-06-05 23:40:44 +08:00
Peng GuanwenandTony cf4f2d21a8 fix(route/theinitium): Fix metadata & token expiration (#15444)
* fix(route/theinitium): Fix metadata & token expiration

* Update full.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: split theinitium

---------
2024-05-03 05:23:38 +08:00
DIYgod d83c85a349 feat: remove radar.ts maintainer.ts router.ts 2024-03-09 18:31:48 +08:00
DIYgod 76e7e8296b fix: add routes 2024-03-09 03:24:53 +08:00
DIYgod 45f9ea21fb feat: add routes 2024-03-09 03:06:53 +08:00
DIYgod f8b141ee6e feat: add namespace.ts 2024-03-09 01:53:22 +08:00
Yufan You 130b11224e chore: remove @ts-nocheck (#14669) 2024-03-05 21:06:03 +08:00
DIYgod d93a301d97 feat: build-radar.ts 2024-03-04 01:52:04 +08:00
DIYgod 2c7d7f9205 feat: build-maintainer.ts 2024-03-04 01:38:38 +08:00
DIYgod 8065ededf5 feat: rename routes .js to .ts 2024-03-04 00:35:37 +08:00
DIYgod df57bb5d50 feat: esm standard for routes 2024-03-02 03:25:26 +08:00
DIYgod 6f57c02538 feat: rename routes dir - 2/2 2024-03-01 01:24:49 +08:00