Wei Zhu
f5dbf697ee
fix(template): X (twitter) icon ( #15750 )
2024-05-29 02:55:38 +08:00
DIYgod
78f3cb3f75
feat: twitter.com -> x.com
2024-05-18 23:57:25 +08:00
DIYgod
7e87a4823e
feat: add layout and use sn pro font
2024-04-26 08:59:44 +08:00
Henry Wang
5c3711cbcc
feat: support .rss3 output type ( #15258 )
...
Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
2024-04-18 02:10:33 +08:00
Bin Wang
54cc62baa4
fix(core): add icon and logo back to atom feed ( #15132 )
...
icon and logo field are missing from atom feed after it's migrated to
tsx template. This PR adds them back.
2024-04-06 06:30:36 +00:00
Bin Wang
90e2e0263d
fix(core): fix interaction fields in atom feeds ( #15121 )
...
In #9355 , interaction fields are introduced to atom feeds to give RSS
readers more information. But it has been removed after the code is
refactored to use tsx templates. This PR adds them back.
2024-04-05 22:56:26 +08:00
github-actions[bot]
ad93d75ce7
style: auto format
2024-04-04 12:30:18 +00:00
wudifeixue
c086c62acd
fix(core): fix documentation link path and error message links ( #15023 )
...
* fix: all broken sponsor links
* fix: all broken deployment links
* fix: other broken links
2024-03-30 08:12:12 +00:00
Tony
847fdaba1d
chore: fix route test github actions ( #14923 )
...
* chore: fix route test actions
* chore: bump unified
2024-03-23 08:19:05 +08:00
DIYgod
40350abcbb
feat: use jsx ( #14863 )
...
* feat: render rss using jsx
* fix: error page response header
* feat: render atom using jsx
* feat: export art
* feat: use jsxRenderer
* chore: upgrade hono
2024-03-21 00:28:11 +08:00
DIYgod
94cf0742af
feat: new error page
2024-03-06 02:33:28 +08:00
Tony
6f8a898363
fix(index): wrong error routes count
2024-03-05 15:09:38 +08:00
Tony
d17ebe81d0
feat(index): add back hot stats ( #14664 )
2024-03-05 13:55:39 +08:00
DIYgod
1811dc7043
docs: add twitter
2024-03-04 04:25:52 +08:00
DIYgod
3bfdf9427c
feat: new home page
2024-03-03 17:36:08 +08:00
DIYgod
ba1bdf9bdc
feat: use hono context json and text
2024-03-01 20:50:17 +08:00
DIYgod
829b5f0e52
feat: assets routes
2024-02-22 01:38:16 +08:00
DIYgod
174752fef5
refactor: format
2024-01-29 23:28:17 +08:00
DIYgod
4591116733
fix: middleware errors
2024-01-21 18:35:11 +08:00
DIYgod
e7e3f689bd
fix: error handler and debug info
2024-01-21 15:41:42 +08:00
DIYgod
8e0154552c
feat: welcome page
2024-01-21 15:18:42 +08:00
DIYgod
847724cad1
feat: work with hono and typescript
2024-01-21 11:55:18 +08:00
Tony
6d901cb7dc
style(eslint): add eslint-unicorn ( #14257 )
...
* style: add eslint-unicorn
* style: fix unicorn/no-useless-spread
* style: fix unicorn/no-useless-promise-resolve-reject
* style: fix unicorn/no-for-loop
* fix: codeql bad HTML filtering regexp
* fix: codeql incomplete replace
* fix: unicorn/no-abusive-eslint-disable
* style: fix unicorn/no-new-array
* style: fix unicorn/no-typeof-undefined
* style: fix unicorn/no-zero-fractions
* style: fix unicorn/no-empty-file
* style: fix unicorn/prefer-date-now
* revert: auto fix unicorn/prefer-switch on lib/v2/kuaidi100/utils.js
* style: fix unicorn/prefer-array-find
* style: fix unicorn/prefer-array-flat
* style: fix unicorn/prefer-array-flat-map
* style: fix unicorn/prefer-at
* style: fix unicorn/prefer-string-starts-ends-with
* style: fix unicorn/prefer-includes
* fix: codeql URL substring sanitization
* style: fix unicorn/prefer-optional-catch-binding
* style: fix unicorn/catch-error-name
* style: fix unicorn/escape-case
* style: fix unicorn/prefer-native-coercion-functions
* style: fix unicorn/prefer-regexp-test
* style: fix unicorn/require-array-join-separator
* style: fix unicorn/prefer-math-trunc
* style: fix unicorn/prefer-negative-index
* style: fix unicorn/prefer-dom-node-dataset
* style: fix unicorn/prefer-dom-node-text-content
* style: fix unicorn/prefer-query-selector
* style: fix unicorn/no-array-for-each
* style: fix unicorn/no-negated-condition
* style: fix unicorn/prefer-add-event-listener
* style: fix unicorn/import-style
* style: fix prefer-regex-literals
* style: disable unicorn/no-useless-switch-case
* style: disable unicorn/text-encoding-identifier-case
* style: fix unicorn/prefer-set-has
* style: fix unicorn/prefer-spread
* revert: auto fix on lib/routes/universities/ynnu/edu/base64.js
* style: fix unicorn/no-useless-undefined
* style: fix unicorn/no-array-push-push
* style: fix unicorn/no-useless-undefined again
* style: fix unicorn/no-lonely-if
* style: fix unicorn/prefer-reflect-apply
* style: fix unicorn/switch-case-braces
* style: fix unicorn/prefer-switch
* style: fix unicorn/prefer-array-some
* fix: deepscan UNUSED_VAR_ASSIGN
* style: fix unicorn/prefer-ternary
* fix: follow-up of unicorn/prefer-ternary
* revert: auto fix of unicorn/prefer-string-slice for substring()
* style: disable unicorn/prefer-string-slice
fix: auto fix slice over deprecated substr
* style: fix unicorn/throw-new-error
* style: fix unicorn/filename-case
* test: fix dateParser renaming
* style: fix unicorn/better-regex
* style: fix unicorn/prefer-string-replace-all
* fix(deps): add sanitize-html
* style: fix no-prototype-builtins
* style: fix unicorn/consistent-destructuring
* style: fix unicorn/consistent-function-scoping
* style: fix unicorn/prefer-regexp-test
* style: fix unicorn/prefer-logical-operator-over-ternary
* style: fix unicorn/no-array-callback-reference
* style: add prefer-object-has-own
* style: warn unicorn/no-empty-file
* style: fix unicorn/prefer-number-properties
* style: fix no-useless-undefined again
* style: fix unicorn/numeric-separators-style
* style: disable unicorn/no-array-callback-reference
false postive with cheerio
2024-01-18 20:43:40 +08:00
DIYgod
4cde3afc68
feat: set default itunes_explicit to false, close #14093
2023-12-27 14:24:15 +08:00
Henry Wang
bea92ae289
fix: incorrect field name in UMS ( #14073 )
2023-12-18 22:18:22 +08:00
Tony
cc27156311
fix: logo loading lazy
2023-12-05 01:41:08 +08:00
Henry Wang
3a5488acdc
feat: Support RSS3 UMS output format ( #13900 )
...
* feat: support RSS3 UMS output
also optimized middleware/template
* fix: rss3_ums function name
* feat: handle current timestamp in UMS
* feat: add authors
* chore: update UMS type
* chore(deps-dev): bump @types/react from 18.2.37 to 18.2.38 in /website (#2249 )
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 18.2.37 to 18.2.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/markdown-it in /website (#2250 )
Bumps [@types/markdown-it](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/markdown-it ) from 13.0.6 to 13.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/markdown-it )
---
updated-dependencies:
- dependency-name: "@types/markdown-it"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/react-dom in /website (#2252 )
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 18.2.15 to 18.2.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump @types/react-dom in /website (#2255 )
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 18.2.16 to 18.2.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update lib/middleware/template.js
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* Update lib/middleware/template.js
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* Update lib/utils/render.js
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* Update lib/views/rss3-ums.js
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* Update lib/views/rss3-ums.js
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* Update lib/utils/render.js
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* doc: update UMS related docs
* Update parameter.md
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
* Update parameter.md
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 01:32:24 +08:00
Tony
71269cd696
fix(app): grey logo in error not showing
...
this breaks subdirectory serving
2023-09-09 22:29:20 +08:00
Tony
3276104c41
fix(app): cache logo & subdirectory serving ( #13244 )
2023-09-09 21:51:44 +08:00
DIYgod
7b65ba69bb
feat: add docusaurus website ( #13039 )
2023-08-15 03:12:12 +01:00
DIYgod
671dfa700f
docs: update readme
2023-08-13 01:27:11 +01:00
Tony
08d894548a
feat(core): serve logo locally ( #12629 )
...
* feat(core): serve logo locally
* test: add test for logo
2023-06-07 21:30:54 +08:00
Tony
e348914bf5
refactor: move json feed rendering to separated module ( #11938 )
2023-02-22 20:47:04 +09:00
Bin Wang
6b7381e1e3
feat(core): add custom fields to atom feed ( #9355 )
...
* Add custom fields to atom feed
Atom allows to extend the xml with custom namespaces. This commit is
a first commit that tries to add some custom RSSHub fields to atom feed.
In this commit, I added three very common fields: upvotes, downvotes
and comments. Lots of websites has these common fields, like Youtube,
Twitter, Reddit, HackerNews and so on. Within these fields, RSS readers
can have more information to sort the contents, and can display these
information to user in a better format.
The document has been updated to reflect these new fields. I also changed
Bilibili video route as an example to show how to add number of comments
to the generated feed.
* docs: interactions
2022-04-18 02:54:32 +08:00
stanly0726
996b66fdf2
fix(core): issue #8162 ( #9533 )
...
* fixing issue #8162
* fixing issue #8162
* change max width value of class .debu-item
* remove duplicated css
* max width
* Update welcome.art
2022-04-14 01:16:26 +08:00
Rongrong
5b35471e39
fix(core): offending RFC4287 ( #9441 )
...
* fix(core): offending RFC4287
should not leave `<updated>` blank when `<published>` is not blank
these two fields MUST conform to the "date-time" production in RFC3339
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
* test(common-utils): complete tests
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
* test(template): restrict expected value of `pubDate`
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-02 17:44:45 +08:00
Tony
baeafb97a5
feat: git hash on error ( #9373 )
2022-03-24 01:10:47 +08:00
TonyRL
b93f6fe856
fix: error page bug report url
2022-03-15 15:30:25 +00:00
Rongrong
3364b7eb1d
fix(route): migrate invalid `enclosure_length` usages to `itunes_duration` ( #9291 )
...
Close #9287
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-10 20:54:29 +08:00
NeverBehave
0792f7ba25
feat(core): first attempt to init script standard ( #8224 )
...
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07:00
Queensferry
8ebbd0d708
fix: [core] atom feed template ( #6628 ) ( #6726 )
...
conforming to RFC 4278 4.1.3.3. Processing Model
2021-01-25 20:21:32 -05:00
Henry
c292502e14
feat: 优化错误输出
...
fix #5982
通过`NODE_ENV`控制错误输出
2020-10-23 17:35:24 +01:00
tuzi3040
52cf1cab71
fix: atom.art id ( #5401 )
2020-08-18 21:13:29 +01:00
Zhi Yang
64496ca55d
fix: Support itunes_category and itunes_explicit ( #4610 )
2020-05-11 18:28:49 +08:00
fengkx
4384214326
feat: robots not index config ( #4503 )
2020-04-23 19:18:47 +08:00
Zhi Yang
68b4e172f5
feat: Support itunes_category and itunes_explicit ( #4483 )
2020-04-19 19:00:37 +08:00
Sean Wong
814542a49a
fix: remove redundant `>` ( #4039 )
2020-02-25 00:02:11 +08:00
DIYgod
0d005b0cfb
feat: handle default guid
2019-12-16 14:12:08 +08:00
DIYgod
16263b020c
test: fix debug test case
2019-09-04 21:56:16 +08:00
DIYgod
8c82d79d54
fix: style of welcome page
2019-09-04 18:35:34 +08:00