Skip to content

Commit 897c90a

Browse files
authored
Merge branch 'one-among-us:main' into MTF_0615
2 parents 7f94e72 + ac9a2b8 commit 897c90a

File tree

877 files changed

+3950
-660
lines changed

Some content is hidden

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

877 files changed

+3950
-660
lines changed

Diff for: .github/workflows/cloudflare-clean.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Cloudflare Cleanup
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0' # Runs every week on Sunday at 00:00 UTC
6+
workflow_dispatch: # Allows manual triggering of the workflow
7+
8+
jobs:
9+
clean:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: 'yarn'
18+
- run: yarn install
19+
20+
- name: Clean Cloudflare Deployments (one-among-us)
21+
run: yarn cloudflare_clean
22+
env:
23+
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
24+
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
25+
CF_PAGES_PROJECT_NAME: one-among-us
26+
27+
- name: Clean Cloudflare Deployments (our-data)
28+
run: yarn cloudflare_clean
29+
env:
30+
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
31+
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
32+
CF_PAGES_PROJECT_NAME: our-data

Diff for: .github/workflows/preview.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: PR Preview
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
branches: [main, develop]
7+
workflow_dispatch:
8+
inputs:
9+
pr_number:
10+
description: 'Pull Request number to deploy preview for'
11+
required: true
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: write
19+
deployments: write
20+
pull-requests: write
21+
22+
steps:
23+
# First, check out the workflow file (from the base) so secrets are available.
24+
- name: Checkout base branch
25+
uses: actions/checkout@v4
26+
27+
# Determine PR info based on the event type.
28+
- name: Set PR info
29+
id: pr-info
30+
run: |
31+
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
32+
echo "PR_NUMBER=${{ github.event.inputs.pr_number }}" >> $GITHUB_ENV
33+
else
34+
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
35+
fi
36+
37+
# Now check out the PR’s head branch (whether from a PR event or supplied manually)
38+
- name: Checkout PR branch
39+
uses: actions/checkout@v4
40+
with:
41+
ref: "refs/pull/${{ env.PR_NUMBER }}/merge"
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 20
47+
cache: 'yarn'
48+
49+
- name: Build
50+
run: |
51+
yarn install --production --frozen-lockfile
52+
yarn build-preview
53+
rm -rf dist/web.tgz
54+
55+
- name: Deploy to Cloudflare Pages
56+
uses: cloudflare/wrangler-action@v3
57+
with:
58+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
59+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
60+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
61+
command: pages deploy dist --project-name=data-preview --branch=pr-${{ env.PR_NUMBER }}
62+
63+
- name: Pull request comment
64+
uses: actions/github-script@v6
65+
with:
66+
script: |
67+
const prNumber = "${{ env.PR_NUMBER }}";
68+
const now = new Date().toISOString().substring(0, 19).replace('T', ' ');
69+
const reviewBody = `🐱 感谢贡献!\n\n部署了预览,在这里哦: https://pr-${prNumber}.data-preview.pages.dev\n\n🕒 最后更新: ${now} (UTC)`;
70+
71+
// List existing reviews on the PR.
72+
const { data: reviews } = await github.rest.pulls.listReviews({
73+
owner: context.repo.owner,
74+
repo: context.repo.repo,
75+
pull_number: prNumber,
76+
});
77+
const existingReview = reviews.find(review => review.body && review.body.includes('部署了预览'));
78+
if (existingReview) {
79+
// Update the existing review.
80+
await github.rest.pulls.updateReview({
81+
owner: context.repo.owner,
82+
repo: context.repo.repo,
83+
pull_number: prNumber,
84+
review_id: existingReview.id,
85+
body: reviewBody,
86+
});
87+
} else {
88+
// Create a new review comment.
89+
await github.rest.pulls.createReview({
90+
owner: context.repo.owner,
91+
repo: context.repo.repo,
92+
pull_number: prNumber,
93+
body: reviewBody,
94+
event: "COMMENT",
95+
});
96+
}

Diff for: CONTRIBUTING.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ For Windows, Yarn could be find at [Classic YarnPkg](https://classic.yarnpkg.com
8282
* `actualHide`: `string[]`, if you don't want a entry show on the home and won't be redirected by random buttons, add it into this item.
8383
If you set a entry in this list, you have no need to set it into `notShowOnHome` again.
8484
* `trigger`: `string[]`, if you think this article is likely to irritate readers and should be restricted, please set this option.
85+
* `skipAge`: `string[]`, if you want to skip age calculation, or not display age, put id in this option.
8586

8687
### Example
8788

@@ -109,7 +110,7 @@ For Windows, Yarn could be find at [Classic YarnPkg](https://classic.yarnpkg.com
109110
## 4. MDX external features
110111

111112
1. Both `{/*something*/}` and `<!--something-->` can be rendered as comment, will not displayed on the website;
112-
2. KaTeX formula could be used in the page. eg. $C_p=\dfrac{p-p_\infty}{\frac12\rho U_\infty^2}$
113+
2. KaTeX formula could be used in the page. eg. `$C_p=\dfrac{p-p_\infty}{\frac12\rho U_\infty^2}$` as $C_p=\dfrac{p-p_\infty}{\frac12\rho U_\infty^2}$
113114
3. Footnote could be used.
114115
4. GitHub `[!Note]` mark could be used.
115116

@@ -131,11 +132,22 @@ For Windows, Yarn could be find at [Classic YarnPkg](https://classic.yarnpkg.com
131132
* `slot` html slot
132133
* example:
133134
```mdx
134-
<BlueBlock>
135+
<BlurBlock>
135136
this is an example blurred paragraph.
136-
</BlueBlock>
137+
</BlurBlock>
137138
```
138139
* `CapDownQuote`
139140
* usage: `<CapDownQuote messages={string[][]} />`
140141
* messages: `string[][]`, the message of quote block.
141142
* example: `<blockquote><CapDownQuote messages={[["你走了呀……姊姊……”", "“这个天线的馈线那些怎么看来着?”"], ["“不上学了嘛……”", "“不是说好了下一次……”"], ["“山猫猫!抱住~”", "“她听力不太好哦……”"], ["“为什么……”", "“把我们丢在这……”"], ["“这是为了她……”", "“下一次一起打mai……”"], ["“教我开车嘛~”", "“帮我照顾好山猫猫~“"], ["“姊姊好厉害,好羡慕……”", "“又被家里人说了,公司的工作也很多……”"]]} /></blockquote>`
143+
* `TextRing`
144+
* usage: `<TextRing text="" />`
145+
* text: `string`, the text you want display
146+
* `DottedNumber`
147+
* usage: `<DottedNumber n="" />` OR `<DottedNumber n={number}`
148+
* n: `string|number`, the number you want to display.
149+
150+
## 6. Punctuations
151+
152+
* In zh_hans/zh_hant pages, we prefer to use these punctuations: `,。?!:;——()[]{}「」『』《》`
153+
* In en_ca pages, we prefer to use these punctuations: `,.?!:;-()[]{}“”‘’<>`

Diff for: data/eggs.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"toast": {
77
"title": "找到了喵~",
88
"text": "诶? 找什么喵? ",
9-
"img": "https://data.one-among.us/img/cat-face-emoji-2048x1828.png",
9+
"img": "https://data.one-among.us/img/cat-face-emoji-2048x1828.webp",
1010
"width": 64,
1111
"height": 57
1212
}
@@ -18,8 +18,8 @@
1818
"toast": {
1919
"title": "参宿四 ~Betelgeuse~",
2020
"text": "R.I.P. - Be resilient -",
21-
"img": "https://data.one-among.us/img/betelgeuse.png",
22-
"background": "url(https://data.one-among.us/img/stardust.jpg)",
21+
"img": "https://data.one-among.us/img/betelgeuse.webp",
22+
"background": "url(https://data.one-among.us/img/stardust.webp)",
2323
"width": 64,
2424
"height": 64,
2525
"color": "#f0f8ff"
@@ -32,8 +32,8 @@
3232
"toast": {
3333
"title": "嘉陵雾稠",
3434
"text": "雾终将散去, 而我们终将看到彩虹",
35-
"img": "https://data.one-among.us/img/bridge.png",
36-
"background": "url(https://data.one-among.us/img/fog.jpg)",
35+
"img": "https://data.one-among.us/img/bridge.webp",
36+
"background": "url(https://data.one-among.us/img/fog.webp)",
3737
"width": 64,
3838
"height": 47
3939
}
@@ -45,7 +45,7 @@
4545
"toast": {
4646
"title": "海色",
4747
"text": "拔锚起航, 跨越闪耀泪光的海岸",
48-
"img": "https://data.one-among.us/img/ship.png",
48+
"img": "https://data.one-among.us/img/ship.webp",
4949
"background": "#0b2058ff",
5050
"width": 64,
5151
"height": 64,
@@ -60,7 +60,7 @@
6060
"toast": {
6161
"title": "往昔苦难",
6262
"text": "因为妳而存在, 因为妳而不在, 要在啊......",
63-
"img": "https://data.one-among.us/img/lifeline.png",
63+
"img": "https://data.one-among.us/img/lifeline.webp",
6464
"background": "#EEEEEE88",
6565
"width": 64,
6666
"height": 64
@@ -74,7 +74,7 @@
7474
"toast": {
7575
"title": "永乐桥上的风景",
7676
"text": "连绵不断的河流,像生命本身一样无法回头……",
77-
"img": "https://data.one-among.us/img/Tientsin-Eye.png",
77+
"img": "https://data.one-among.us/img/Tientsin-Eye.webp",
7878
"width": 64,
7979
"height": 64
8080
}
@@ -87,8 +87,8 @@
8787
"toast": {
8888
"title": "葬花",
8989
"text": "花谢花飞花满天, 红消香断有谁怜? ",
90-
"img": "https://data.one-among.us/img/tumb.png",
91-
"background": "url(https://data.one-among.us/img/flower.png)",
90+
"img": "https://data.one-among.us/img/tumb.webp",
91+
"background": "url(https://data.one-among.us/img/flowers.webp)",
9292
"width": 64,
9393
"height": 64
9494
}
@@ -117,7 +117,7 @@
117117
"toast": {
118118
"title": "希望有个 All Perfect 的结局",
119119
"text": " ~ All that I'm left with is your reminiscences ~ ",
120-
"img": "https://data.one-among.us/img/musical-score.png",
120+
"img": "https://data.one-among.us/img/musical-score.webp",
121121
"width": 64,
122122
"height": 64
123123
}
@@ -129,7 +129,7 @@
129129
"toast": {
130130
"title": "跨过空间与距离",
131131
"text": "­—· · ···­— · ·­—· / ·­—·· ­—­—­— ···­— · ­—·· / ­—·­—­— ­—­—­— ··­— / ··· ­—­—­— / ­—­— ··­— ­—·­—· ····",
132-
"img": "https://data.one-among.us/img/radar.png",
132+
"img": "https://data.one-among.us/img/radar.webp",
133133
"background": "black",
134134
"width": 64,
135135
"height": 64,

Diff for: data/hdata.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"trigger": ["Aniloviraw"],
77
"switch": [
88
["Anilovr", "Aniloviraw"]
9-
]
9+
],
10+
"skipAges": ["cheonwoomaeng"],
11+
"probilities": {
12+
"XingZ60": 1
13+
}
1014
}

Diff for: netlify.toml

-4
This file was deleted.

Diff for: package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"build-preview": "yarn build && scripts/preview.sh",
1414
"serve": "http-server --cors='*' dist",
1515
"preview": "yarn build-preview && yarn serve",
16-
"translate": "node --loader ts-node/esm/transpile-only scripts/translate.ts"
16+
"translate": "node --loader ts-node/esm/transpile-only scripts/translate.ts",
17+
"cloudflare_clean": "node scripts/cloudflare_clean.js"
1718
},
1819
"dependencies": {
1920
"@andreekeberg/imagedata": "^1.0.2",
@@ -39,6 +40,8 @@
3940
"devDependencies": {
4041
"@octokit/core": "^4.1.0",
4142
"@types/js-yaml": "^4.0.5",
42-
"http-server": "^14.1.1"
43+
"http-server": "^14.1.1",
44+
"exponential-backoff": "^3.1.0",
45+
"node-fetch": "^2.6.7"
4346
}
4447
}

Diff for: people/Acheron/comments/2024-12-13-C21092.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":21092,"content":"晚安 ——桑桑","submitter":"桑桑","date":"Dec 13, 2024"}

Diff for: people/Acheron/comments/2025-02-04-C21216.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":21216,"content":"晚安","submitter":"Hali","date":"Feb 4, 2025"}

Diff for: people/Acheron/comments/2025-02-06-C21222.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":21222,"content":"晚安","submitter":"暮雨","date":"Feb 6, 2025"}

Diff for: people/Acheron/comments/2025-02-27-C21277.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":21277,"content":"晚安啦","submitter":"邂逅","date":"Feb 27, 2025"}

Diff for: people/Acheron/info.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
id: Acheron
2-
profileUrl: ${path}/photos/profile.png
2+
profileUrl: ${path}/photos/profile.jpg
33
info:
44
died: '2022-09-22'
55
websites:

Diff for: people/Acheron/photos/profile.jpg

23.9 KB
Loading

Diff for: people/Acheron/photos/profile.png

-685 KB
Binary file not shown.

Diff for: people/AkiraComplex/photos/profile.jpg

-14.2 KB
Loading

Diff for: people/AmbeR_the_anpa/info.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
id: AmbeR_the_anpa
2+
profileUrl: ${path}/photos/profile.jpg
3+
info:
4+
born: '2004-09-01'
5+
died: '2024-09-17'
6+
websites:
7+
twitter: https://x.com/Lich7355608
8+
bilibili: https://space.bilibili.com/673480727

Diff for: people/AmbeR_the_anpa/page.en.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Anpa
3+
info:
4+
alias: AmbeR_the_Anpa, amber
5+
location: Tokyo, Japan
6+
---
7+
8+
## Description
9+
10+
AmbeR\_the\_anpa, born on September 1, 2004, from Yichun, Jiangxi Province. Anpa likes to drink at the bar and can also mix some wine himself. He has made a wish to become the strongest bartender. Anpa likes sports and has tried table tennis, skiing and other sports. She is also a badminton player in the city team. She plays badminton very well and it is like a shell when she fights. In my spare time, Anpa has also visited many cities across the country.
11+
12+
Anpa was not a transgirl at first, and after two months of dating with a transgirl, Anpa decided to become a transgirl. Anpa began receiving hormone therapy in 2019. In 2022, she went to Huilongguan Hospital in Beijing to continue treatment. However, when Anpa was in high school, her high school teacher bullied her, which made Anpa suffer from depression and still felt uncomfortable in her daily life. The two of them chose to work in the country after graduating from high school. Then he went to Weifang to work and adopted a little orange cat. After a while, the domestic environment changed a little. I felt that the domestic environment was not good and Anpa discussed with his lover. I decided to discuss with my family and ask them to support them in studying in Japan.
13+
14+
On October 3, 2023, Anpa went to Tokyo, Japan to study while working. During this period, she came to Waseda Street Psychia Clinic to seek a second medical advice, and local doctors supported Anpa’s desire to receive SRS based on the diagnostic and treatment guidelines of Japan’s GID, who was also satisfied with the medical environment in Japan.
15+
16+
Anpa was gentle and considerate throughout his life, rescued stray animals, and participated in voluntary blood donation. He has always been patient and generous with help and support for the vulnerable groups.
17+
18+
On July 14, 2024, Anpa attempted suicide and was rescued in the hospital ICU. At 6:12, Japan time on September 17, 2024, Anpa passed away in front of his lover due to life pressure and cyber violence. He was confirmed to die at 11:23 on the same day. After Anpa passed away, her family rushed to Japan and cremated Anpa with Anpa's lover at the funeral home in Nymph Sakuratai, Tokyo. Since the elderly in Anpa's family are still alive, they took a cold approach to what Anpa encountered during his lifetime, and everything ended.

Diff for: people/AmbeR_the_anpa/page.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: 安帕
3+
info:
4+
alias: AmbeR_the_安帕, 琥珀
5+
location: 日本东京
6+
---
7+
8+
## 生平
9+
10+
AmbeR\_the\_安帕,2004年9月1日出生,江西宜春人。安帕喜欢去酒吧喝酒,自己也会调一些酒,曾许愿要成为最强的调酒师。安帕喜欢运动,乒乓球、滑雪等运动都尝试过。她还是市队的羽毛球运动员,打羽毛球很厉害,打起来就和炮弹一样。空闲之余,安帕也去过全国不少城市旅游。
11+
12+
安帕刚开始并不是一名跨性别女性,在与一名跨性别女性谈了两个月恋爱后,安帕决定成为一名跨性别女性。安帕从2019年开始接受激素治疗。2022年前往北京回龙观医院继续治疗,然而,安帕上高中时,高中班主任霸凌她,这让安帕患上了抑郁症,在日常生活中仍然感到不适。后面两人高中毕业后选择了在国内工作。然后去潍坊打工还收养了一只小橘猫。就这样过了一段时间,国内的环境发生了一些变化,感觉国内环境不好的安帕与爱人商量后。决定和家人商量,让他们支持她俩一起前往日本留学。
13+
14+
2023年10月3日安帕如愿和爱人前往日本东京留学,一边工作一边上学。在此期间,她来到早稻田街精神科诊所寻求医疗第二意见,当地的医生根据日本 GID 的诊断和治疗指南,支持安帕接受 SRS 的愿望,安帕对日本的医疗环境也感到满意。
15+
16+
安帕的一生温柔体贴,救助过流浪动物,也参加过无偿献血,一直对弱势群体充满耐心且不吝帮助与支持。
17+
18+
2024年7月14日安帕自杀未遂,在医院 ICU 被救回。2024年日本时间9月17日6:12,安帕因生活压力和遭遇网络暴力当着爱人的面弃世,同日11:23确认死亡。在安帕离世后,她的家人赶赴日本,与安帕的爱人在东京练马樱台的殡仪馆里火化了安帕。由于安帕家里的老人仍然健在,因此他们对安帕生前遭遇的事采取了冷处理的态度,一切就这么结束了。
19+
20+
条目贡献:UP 主纪念馆(《UP主纪念馆名录》611 号)

Diff for: people/AmbeR_the_anpa/page.zh_hant.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: 安帕
3+
info:
4+
alias: AmbeR_the_安帕, 琥珀
5+
location: 日本東京
6+
---
7+
8+
## 生平
9+
10+
AmbeR\_the\_安帕,2004年9月1日出生,江西宜春人。安帕喜歡去酒吧喝酒,自己也會調一些酒,曾許願要成爲最強的調酒師。安帕喜歡運動,乒乓球、滑雪等運動都嘗試過。她還是市隊的羽毛球運動員,打羽毛球很厲害,打起來就和炮彈一樣。空閒之餘,安帕也去過全國不少城市旅遊。
11+
12+
安帕剛開始並不是一名跨性別女性,在與一名跨性別女性談了兩個月戀愛後,安帕決定成爲一名跨性別女性。安帕從2019年開始接受激素治療。2022年前往北京回龍觀醫院繼續治療,然而,安帕上高中時,高中班主任霸凌她,這讓安帕患上了抑鬱症,在日常生活中仍然感到不適。後面兩人高中畢業後選擇了在國內工作。然後去濰坊打工還收養了一隻小橘貓。就這樣過了一段時間,國內的環境發生了一些變化,感覺國內環境不好的安帕與愛人商量後。決定和家人商量,讓他們支持她倆一起前往日本留學。
13+
14+
15+
2023年10月3日安帕如願和愛人前往日本東京留學,一邊工作一邊上學。在此期間,她來到早稻田街精神科診所尋求醫療第二意見,當地的醫生根據日本 GID 的診斷和治療指南,支持安帕接受 SRS 的願望,安帕對日本的醫療環境也感到滿意。
16+
17+
安帕的一生溫柔體貼,救助過流浪動物,也參加過無償獻血,一直對弱勢羣體充滿耐心且不吝幫助與支持。
18+
19+
2024年7月14日安帕自殺未遂,在醫院 ICU 被救回。2024年日本時間9月17日6:12,安帕因生活壓力和遭遇網絡暴力當着愛人的面棄世,同日11:23確認死亡。在安帕離世後,她的家人趕赴日本,與安帕的愛人在東京練馬櫻臺的殯儀館裏火化了安帕。由於安帕家裏的老人仍然健在,因此他們對安帕生前遭遇的事採取了冷處理的態度,一切就這麼結束了。
20+
21+
條目貢獻:UP 主紀念館(《UP主紀念館名錄》611 號)
22+

Diff for: people/AmbeR_the_anpa/photos/profile.jpg

189 KB
Loading

0 commit comments

Comments
 (0)