Commit Graph
47 Commits
Author SHA1 Message Date
DIYgod 2dce2e32dd feat: docs sorting and auto popular 2025-05-31 17:10:01 +08:00
Tony f19a725157 refactor: fix all no array reduce (#18973)
* refactor: no-array-reduce cleanup

* refactor: keep

* refactor: nhk

* refactor: rattibha

* fix: cctv

* fix: jiemian

* refactor: juejin

* refactor: kpopping

* refactor: yoasobi-music

* refactor: mycard520

* refactor: newrank

* refactor: sse

* refactor: zhihu

* feat!: remove trending

https://github.com/huqi-pr/trending-in-one is archived and no longer being updated.
https://github.com/huqi-pr/trending-in-one/commit/2ef4cd236fcccb908be7907d5ac9aab6f1f4a188

* refactor: sspai

* refactor: sysu

* refactor: nikkei

* refactor: utils

* refactor: mydrivers

* refactor: scmp

* refactor: gov/moa

* refactor: bloomberg

* refactor: manhuagui

* refactor: twitter
2025-04-30 04:16:32 +08:00
Tony 03969f3867 refactor: fix lint issue (#18963)
* fix: unicorn/no-empty-file

* fix: unicorn/prefer-node-protocol

* fix: unicorn/prefer-number-properties

* fix: unicorn/consistent-destructuring

* fix: unicorn/no-array-callback-reference

* fix: unicorn/new-for-builtins

* fix: set checkNaN to false in unicorn/prefer-number-properties

* fix: unicorn/prefer-string-slice

* fix: update eslint ignore
2025-04-29 03:00:16 +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
Ethan Shen 8508789087 feat(route): add 机核网预告 (#18810) 2025-04-09 09:23:09 -07:00
Ethan Shen c909ce520b feat(gcores): add 机核网机组推荐 (#18582) 2025-03-13 00:19:28 +08:00
Ethan Shen 20ee222c3f fix(gcores): 机核网分类 (#18297)
* fix(gcores): 机核网分类

* fix typo
2025-02-22 00:37:24 +08:00
Ethan ShenandTony cfd8de9fc3 fix(gcores): 机核网专题 (#18367)
* fix(gcores): 机核网专题

* fix typo

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

---------
2025-02-22 00:11:20 +08:00
Ethan Shen 7504dffa70 feat(gcores): add 机核网视频 (#18373) 2025-02-18 01:32:41 +08:00
Ethan Shen eb3d0d42e3 fix(gcores): 机核网标签 (#18304) 2025-02-12 00:25:33 +08:00
Ethan Shen 727b834fc4 fix(gcores): broken links of articles and news (#18276)
* fix(gcores): broken links of articles and news

* fix typo

---------
2025-02-11 00:24:47 +08:00
Ethan Shen d2d3472b77 fix(gcores): correct templates for images and videos (#18286) 2025-02-06 00:09:02 +08:00
Ethan Shen 3a2ca7e216 fix(gcores): correct rendering of entities and optimize parsing logic (#18257) 2025-02-02 23:15:08 +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
Ethan Shen d4c3bc9427 feat(route): add 机核网文章 (#18238)
* feat(route): add 机核网文章

* fix: missing reference

* fix typo
2025-01-30 00:32:38 +08:00
Ethan Shen 03e27107fd feat(route): add 机核网资讯 (#18220)
* feat(route): add 机核网资讯

* refactor: Use alternative loop instead of reduce for readability
2025-01-27 15:50:20 +08:00
pseudoyu 3471d7b111 chore(route): add more new media routes 2024-11-26 14:59:09 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
Vinfall 15476262c8 feat(route): add author in gcores (#15032)
* feat(route): add author in /gcores/catetory

* refactor: add author in /gcores/category
The order of `included` in response should be not considered as fixed.
2024-04-10 16:52:11 +08:00
DIYgod 79fcce2729 feat: add ConfigNotFoundError and InvalidParameterError 2024-04-07 17:36:18 +08:00
Tony 0893debb07 style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
Tony d585a87daf fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00
DIYgod d83c85a349 feat: remove radar.ts maintainer.ts router.ts 2024-03-09 18:31:48 +08:00
DIYgod 33e2f17055 fix: wrong categories 2024-03-09 15:08:34 +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 a10bafb263 fix: __dirname 2024-03-04 00:46:26 +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
StevenRCE0 6a4b939509 feat(route): 机核网添加分类标签和标签路由 (#9239)
* Gcores tagging

* Gcore tags

* Comfort v2

* Update router

* Update router.js

* refactor: use cache.tryGet
2022-03-06 20:06:37 +08:00
Sukka d82847f541 style/chore(eslint): enforce new rules (#8040)
* style: prefer object shorthand syntax
* refactor: prefer Array#map over Array#forEach
* style: prefer arrow callback
* chore(eslint): update rules
* style: auto fix by eslint
2021-08-17 22:23:23 +08:00
Botao Wang 8284ff95c1 fix: 修复机核文章中多图没有显示的问题 (#6315) 2020-12-06 18:02:40 +00:00
simoin b7b527df2b fix: gcores image is broken (#5633)
fix: image undefined
2020-09-20 20:58:33 +01:00
DIYgod 0e7b14e718 chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 2020-04-02 21:21:46 +08:00
DIYgod a34b9ae542 feat: remove addNoReferrer 2019-08-28 14:33:05 +08:00
MoguCloud 269a0b4b56 fix: 机核rss规则修改 (#2639)
* 机核rss规则修改

* 删除未使用变量

* 代码格式化
2019-07-18 01:16:03 +08:00
Henry Wang d09affa703 feat: add addNoReferrer in common-utils (#2571)
* fix: no-referrer tag

* chore: merge qdaily routes

* feat: add addNoReferrer in common-utils

This adds no-referrer attribute to images.
Parameters:

- add no-referrer attribute to images
- $: cheerio selector
- source: source selector, string
- target: target attribute name, typically for lazyload imgs, string
- srcPrefix: prefix for src, string
- removeAttr: attributes to remove, array: ['attrA','attrB']

* test: add test case

* doc: update
2019-07-08 11:45:02 +08:00
DIYgod a56c0b5a39 refactor: rename axios to got 2019-06-03 18:03:05 +08:00
DIYgod e2badbfa98 chore: module alias for all routes 2019-05-15 15:27:15 +08:00
DIYgod a0333fbd7e feat: use contentExpire 2019-05-09 01:23:29 +08:00
Wu Haotian 399f05a5b2 修正机核网图片显示 (#1927) 2019-04-13 17:04:14 +08:00
DIYgod 38a90e29b0 optimize directory structure 2018-12-26 18:35:10 +08:00