Skip to content

Commit 5743925

Browse files
committed
Initial commit
Created from https://vercel.com/new
0 parents  commit 5743925

File tree

5,202 files changed

+301092
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,202 files changed

+301092
-0
lines changed

.codecov.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

.devcontainer/devcontainer.json

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/devcontainers/images/blob/v0.3.24/src/javascript-node/.devcontainer/devcontainer.json
3+
{
4+
"name": "Node.js",
5+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22-bookworm",
6+
7+
// Configure tool-specific properties.
8+
"customizations": {
9+
// Configure properties specific to VS Code.
10+
"vscode": {
11+
// Add the IDs of extensions you want installed when the container is created.
12+
"extensions": [
13+
"cweijan.vscode-database-client2",
14+
"dbaeumer.vscode-eslint",
15+
"eamodio.gitlens",
16+
"EditorConfig.EditorConfig",
17+
"esbenp.prettier-vscode",
18+
"deepscan.vscode-deepscan",
19+
"rangav.vscode-thunder-client",
20+
"SonarSource.sonarlint-vscode",
21+
"unifiedjs.vscode-mdx",
22+
"ZihanLi.at-helper"
23+
]
24+
}
25+
},
26+
27+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
28+
"forwardPorts": [1200, 3000],
29+
30+
"portsAttributes": {
31+
"1200": {
32+
"label": "app port",
33+
"onAutoForward": "notify"
34+
},
35+
"3000": {
36+
"label": "docs port",
37+
"onAutoForward": "notify"
38+
}
39+
},
40+
41+
"onCreateCommand": "sudo apt-get update && export DEBIAN_FRONTEND=noninteractive && sudo apt-get -y install --no-install-recommends ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libgbm1 libglib2.0-0 libnspr4 libnss3 libpango-1.0-0 libx11-6 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxrandr2 wget xdg-utils redis-server default-jre-headless && sudo apt-get autoremove -y && sudo apt-get clean -y && sudo rm -rf /var/lib/apt/lists/*",
42+
43+
"updateContentCommand": "export JAVA_HOME=/usr/lib/jvm/default-java && pnpm config set store-dir ~/.local/share/pnpm/store && pnpm i && pnpm rb",
44+
45+
// Use 'postCreateCommand' to run commands after the container is created.
46+
"postCreateCommand": "pnpm i && pnpm rb",
47+
48+
// Disable auto start dev env since codespaces sometimes fails to attach to the terminal
49+
// "postAttachCommand": {
50+
// "app": "pnpm i",
51+
// // "docs": "pnpm -C website start"
52+
// },
53+
54+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
55+
"remoteUser": "node",
56+
"features": {
57+
"ghcr.io/devcontainers/features/docker-in-docker": {
58+
"version": "latest"
59+
},
60+
"ghcr.io/devcontainers/features/github-cli": {
61+
"version": "latest"
62+
}
63+
}
64+
}

.dockerignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# folders
2+
.devcontainer
3+
.github
4+
.husky
5+
.idea
6+
.vscode
7+
Dockerfile*
8+
LICENSE
9+
Procfile
10+
app-minimal
11+
coverage
12+
node_modules
13+
test
14+
15+
# files
16+
.codecov.yml
17+
.dockerignore
18+
.editorconfig
19+
.env
20+
.eslint*
21+
.gitignore
22+
.gitpod.yml
23+
.markdownlint.jsonc
24+
.prettier*
25+
.(yarn|npm|nvm)rc
26+
*.md
27+
app.json
28+
eslint.config.mjs
29+
docker-compose*
30+
fly.toml
31+
jsconfig.json
32+
npm-debug.log
33+
process.json
34+
package-lock.json
35+
vitest.config.ts
36+
vercel.json
37+
38+
# git but keep the git commit hash
39+
.git/logs
40+
.git/index
41+
.git/info
42+
.git/hooks
43+
44+
# rsshub auxiliary files
45+
lib/routes/**/radar.js

.editorconfig

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# Use 4 spaces for the Python files
13+
[*.py]
14+
indent_size = 4
15+
max_line_length = 80
16+
17+
# The JSON files contain newlines inconsistently
18+
[*.json]
19+
insert_final_newline = ignore
20+
21+
# Minified JavaScript files shouldn't be changed
22+
[**.min.js]
23+
indent_style = ignore
24+
insert_final_newline = ignore
25+
26+
# Makefiles always use tabs for indentation
27+
[Makefile]
28+
indent_style = tab
29+
30+
# Batch files use tabs for indentation
31+
[*.bat]
32+
indent_style = tab
33+
34+
[*.md]
35+
trim_trailing_whitespace = false
36+
37+
# Matches the exact files either package.json or .travis.yml
38+
[{package.json,.travis.yml}]
39+
indent_size = 2
40+
41+
[{**.yml,**.yaml}]
42+
indent_size = 2
43+
44+
[*.vue]
45+
indent_size = 2

.github/FUNDING.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
github: DIYgod
3+
patreon: DIYgod
4+
open_collective: RSSHub
5+
custom: ['https://afdian.net/a/diygod', 'https://docs.rsshub.app/sponsor']
+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: 🐛 Bug Report
2+
description: Submit discovered bugs
3+
labels: ['RSS bug']
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Please ensure you have read [documentation](https://docs.rsshub.app/), and provide all the information required by this template, otherwise the issue will be closed immediately.
10+
Due to the anti-crawling policy implemented by certain websites, some RSS routes provided by the demo will return status code 403. This is not an issue caused by RSSHub and please do not report it.
11+
12+
- type: textarea
13+
id: routes
14+
attributes:
15+
label: Routes
16+
description: The involved route, without any parameters, copied directly from the docs "route" field, one link per line. Use `NOROUTE` if it is not route related.
17+
placeholder: /someroute/:type?
18+
render: routes
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: fullroutes
24+
attributes:
25+
label: Full routes
26+
description: The involved route, with all required and optional parameters, and could be duplicate if necessary (different parameters)
27+
placeholder: /routes/1234?some_extension=mode
28+
render: fullroutes
29+
validations:
30+
required: true
31+
32+
- type: input
33+
id: docs-link
34+
attributes:
35+
label: Related documentation
36+
description: Link to related documentation
37+
placeholder: https://docs.rsshub.app/...
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: what-expected
43+
attributes:
44+
label: What is expected?
45+
validations:
46+
required: true
47+
48+
- type: textarea
49+
id: actual-happened
50+
attributes:
51+
label: What is actually happening?
52+
validations:
53+
required: true
54+
55+
- type: dropdown
56+
id: deployment
57+
attributes:
58+
label: Deployment information
59+
multiple: false
60+
options:
61+
- RSSHub demo (https://rsshub.app)
62+
- Self-hosted
63+
validations:
64+
required: true
65+
66+
- type: input
67+
id: deploy-info
68+
attributes:
69+
label: Deployment information (for self-hosted)
70+
description: Please provide your OS, node version and docker version(if applicable)
71+
placeholder: 'OS: Linux, Node: v10.15.3, Docker: v19.03.13'
72+
73+
- type: textarea
74+
id: logs
75+
attributes:
76+
label: Additional info
77+
description: logs, errors, etc.
78+
render: shell
79+
validations:
80+
required: true
81+
82+
- type: checkboxes
83+
id: terms
84+
attributes:
85+
label: This is not a duplicated issue
86+
options:
87+
- label: I have searched [existing issues](https://github.com/DIYgod/RSSHub/issues) to ensure this bug has not already been reported
88+
required: true
+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: 🐛 Bug 报告
2+
description: 早起的小可爱有虫抓
3+
labels: ['RSS bug']
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
请确保已阅读 [文档](https://docs.rsshub.app) 内相关部分,并按照模版提供信息,否则 issue 将被立即关闭。
10+
由于部分源网站反爬缘故,演示地址一些 RSS 会返回 status code 403,该问题不是 RSSHub 所致,请勿提交 issue。
11+
12+
- type: textarea
13+
id: routes
14+
attributes:
15+
label: 路由地址
16+
description: 不包含参数,复制文档路由参数,一行一个,不要重复。如果和路由没有关系,请写`NOROUTE`
17+
placeholder: /someroute/:type?
18+
render: routes
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: fullroutes
24+
attributes:
25+
label: 完整路由地址
26+
description: 包含所有必选与可选参数,一行一个,可以有重复路由不同参数(如果需要)
27+
placeholder: /routes/1234?some_extension=mode
28+
render: fullroutes
29+
validations:
30+
required: true
31+
32+
- type: input
33+
id: docs-link
34+
attributes:
35+
label: 相关文档
36+
description: 相关文档地址
37+
placeholder: https://docs.rsshub.app/...
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: what-expected
43+
attributes:
44+
label: 预期是什么?
45+
validations:
46+
required: true
47+
48+
- type: textarea
49+
id: actual-happened
50+
attributes:
51+
label: 实际发生了什么?
52+
validations:
53+
required: true
54+
55+
- type: dropdown
56+
id: deployment
57+
attributes:
58+
label: 部署
59+
multiple: false
60+
options:
61+
- RSSHub 演示 (https://rsshub.app)
62+
- 自建
63+
validations:
64+
required: true
65+
66+
- type: input
67+
id: deploy-info
68+
attributes:
69+
label: 部署相关信息
70+
description: |
71+
请提供您的操作系统、node 版本和(如果适用) docker 版本。
72+
请确保您部署的是 [主线 master 分支](https://github.com/DIYgod/RSSHub/tree/master) 最新版 RSSHub。
73+
placeholder: 'OS: Linux, Node: v10.15.3, Docker: v19.03.13'
74+
75+
- type: textarea
76+
id: logs
77+
attributes:
78+
label: 额外信息
79+
description: 日志、报错等
80+
render: shell
81+
validations:
82+
required: true
83+
84+
- type: checkboxes
85+
id: terms
86+
attributes:
87+
label: 这不是重复的 issue
88+
options:
89+
- label: 我已经搜索了 [现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。
90+
required: true

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 🍭 Feature Request
2+
description: Submit a new feature request
3+
labels: ['RSS enhancement']
4+
5+
body:
6+
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Please ensure the feature requested is not listed in [documentation](https://docs.rsshub.app/) or [issue](https://github.com/DIYgod/RSSHub/issues), and is not a [new RSS proposal](https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=RSS+proposal&template=rss_request_en.yml), and provide all the information required by this template.
11+
Otherwise the issue will be closed immediately.
12+
13+
- type: textarea
14+
id: feature
15+
attributes:
16+
label: What feature is it?
17+
placeholder: Please describe the feature you want to see.
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: problem
23+
attributes:
24+
label: What problem does this feature solve?
25+
placeholder: Please describe the problem this feature solves.
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: description
31+
attributes:
32+
label: Additional description
33+
placeholder: Any additional description.
34+
35+
- type: checkboxes
36+
id: terms
37+
attributes:
38+
label: This is not a duplicated feature request or new RSS proposal
39+
options:
40+
- label: I have searched [existing issues](https://github.com/DIYgod/RSSHub/issues) to ensure this feature has not already been requested and this is not a [new RSS proposal](https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=RSS+proposal&template=rss_request_en.yml).
41+
required: true

0 commit comments

Comments
 (0)