Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from tgbot-collection:master #3

Open
wants to merge 198 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
fcddaa2
pagination, blue&yellow, date
AuraBear Mar 26, 2022
f81b123
add webp.se
AuraBear Apr 2, 2022
55b857e
return structure data for notification
AuraBear Apr 3, 2022
805a702
update FE, update dependencies
AuraBear Apr 3, 2022
81c3023
easter egg
AuraBear Apr 4, 2022
9c49128
ban yellow nazi, more strict!
AuraBear Apr 4, 2022
2a419d8
support zh-hant
AuraBear Apr 8, 2022
9a17fe7
finish new banning system
AuraBear Apr 10, 2022
3d91652
add cf blacklist
AuraBear Apr 10, 2022
64e4cd7
fix 404 DDoS
AuraBear Apr 10, 2022
663cd7c
bump dependencies
AuraBear Apr 15, 2022
cb3586d
fix dead screen
AuraBear May 18, 2022
0fad766
fix resource & comment for other fansub
AuraBear May 25, 2022
53860b1
bump
AuraBear May 27, 2022
0d08072
replace \n with space
BennyThink Jun 19, 2022
1984433
bump dependencies
BennyThink Jul 17, 2022
3474bd5
upadte BD2020 link, use order generation, supress error
BennyThink Jul 28, 2022
8800d8e
fix code scanning alerts
BennyThink Jul 28, 2022
bf5c380
Bump fakeredis from 1.8.2 to 1.9.0
dependabot[bot] Aug 1, 2022
b43cbcf
Add Trivy for PR
n0vad3v Aug 12, 2022
12e8624
Bump pytz from 2022.1 to 2022.2
dependabot[bot] Aug 12, 2022
441cae2
update FE, requirements.txt
BennyThink Aug 26, 2022
21cabcc
upgrade to python 3.10
BennyThink Aug 27, 2022
9f8b610
support mongodb 6.0
BennyThink Aug 27, 2022
77c020a
dump db fix #146
BennyThink Sep 2, 2022
f5c657b
不删除build cache
BennyThink Sep 2, 2022
4694032
dump file is not important
BennyThink Sep 3, 2022
3589e9b
add badge
BennyThink Sep 6, 2022
19807e2
ban user with cloudflare
BennyThink Sep 9, 2022
2523d0a
bump
BennyThink Sep 10, 2022
d34b06c
dump at server start
BennyThink Sep 17, 2022
bf39d12
update FE
BennyThink Sep 18, 2022
9c6a91f
update ignore
BennyThink Oct 6, 2022
bc529e2
update golang yyetsweb
BennyThink Oct 6, 2022
07c84bf
update README.md
BennyThink Oct 6, 2022
69e0c57
discard cross compile
BennyThink Oct 6, 2022
567063f
pure go, cross compile
BennyThink Oct 7, 2022
637dd93
auto download
BennyThink Oct 7, 2022
e66bfc0
new binary - new UI
BennyThink Oct 8, 2022
ce87071
codeql v2
BennyThink Oct 9, 2022
9bd7bce
disable group
BennyThink Oct 25, 2022
fe7717f
pin image
BennyThink Oct 26, 2022
46bcecf
bump
BennyThink Dec 3, 2022
f67d41b
nodejs 18
BennyThink Dec 3, 2022
293fcfc
update dependencies, enhance dump backup
BennyThink Dec 30, 2022
211dc7a
dump at server start
BennyThink Dec 31, 2022
9027b6d
cleanup before execution to avoid error
BennyThink Dec 31, 2022
1618485
sponsor
BennyThink Jan 6, 2023
b8c8fce
bump
BennyThink Jan 6, 2023
b9b649e
add adsense build script and bump fakeredis
BennyThink Jan 26, 2023
f80b40b
add search console verification
BennyThink Jan 28, 2023
189481c
搜索结果带上子评论信息
BennyThink Jan 28, 2023
303456a
确保时间始终为CST
BennyThink Jan 28, 2023
4648470
子评论内页数量设置为3
BennyThink Jan 30, 2023
dee3afe
暂时取消Adsense
BennyThink Jan 30, 2023
65c5d55
更新前端
BennyThink Jan 30, 2023
e6dae6f
添加更新日志
BennyThink Jan 30, 2023
ce6aa32
未注册账号不会自动注册
BennyThink Jan 31, 2023
c561749
PYTHON_DEV, 邮箱验证索引
BennyThink Jan 31, 2023
a5f6aba
邮件验证修复
BennyThink Jan 31, 2023
c4e8294
翻译验证信息
BennyThink Jan 31, 2023
6a84278
启用adsense
BennyThink Feb 4, 2023
4a6b964
email verification online
BennyThink Feb 4, 2023
d94f308
fix adsense in secret
BennyThink Feb 4, 2023
daddbf5
add icon for UA, bump.
BennyThink Feb 5, 2023
cec3120
use new UI for bot, new screenshots
BennyThink Feb 5, 2023
4caa170
新的邮件模版
BennyThink Feb 6, 2023
f9e41ad
评论搜索功能
BennyThink Feb 7, 2023
0735109
GitHub OAuth
BennyThink Feb 8, 2023
be32956
Google OAuth
BennyThink Feb 8, 2023
1afae52
隐藏资源的功能
BennyThink Feb 9, 2023
f3b72c2
支持twitter oauth
BennyThink Feb 9, 2023
3e6664d
add oauth source
BennyThink Feb 9, 2023
1cd55ac
add Microsoft OAuth
BennyThink Feb 9, 2023
0c1d37c
oauth 重构
BennyThink Feb 9, 2023
6eb5dc8
add facebook oauth
BennyThink Feb 10, 2023
dc26637
Facebook sucks
BennyThink Feb 10, 2023
4a75ebd
fix oauth login bug
BennyThink Feb 11, 2023
c7711ae
move folder, bump
BennyThink Feb 13, 2023
4b953b6
add ci and one test case
BennyThink Feb 13, 2023
ab54f18
更新搜索结果中间的广告
BennyThink Feb 16, 2023
a9f332d
已认证角标
BennyThink Feb 20, 2023
3668194
头像上传支持
BennyThink Feb 24, 2023
2907b63
无收藏资源头像上传bug fix
BennyThink Feb 27, 2023
b2dab53
avatar 不用base64
BennyThink Feb 27, 2023
6ab9fdd
bump golang dependencies
dependabot[bot] Feb 23, 2023
88bdbc9
修复搜索问题
BennyThink Feb 28, 2023
a6e2300
support head request to avatar
BennyThink Feb 28, 2023
ba5f455
头像切换到webp.se,修复docker badge, go alert
BennyThink Feb 28, 2023
dae566a
同步资源
BennyThink Mar 5, 2023
ba369ef
同步追新番,已有旧资源增加source
BennyThink Mar 5, 2023
df5d42a
optimize sync yyets
BennyThink Mar 6, 2023
6ebea85
add colorful logs, bump go.mod
BennyThink Mar 6, 2023
058e9bc
run in this docker-compose.yml
BennyThink Mar 7, 2023
e2d516d
fix order
BennyThink Mar 7, 2023
081de33
mysql dump
BennyThink Mar 7, 2023
f8fb9ef
change log format
BennyThink Mar 11, 2023
a929045
add meilisearch and import (#213)
BennyThink Mar 9, 2023
94572b5
mongodb replicaset
BennyThink Mar 10, 2023
3602519
meilisearch 导入同步数据
BennyThink Mar 10, 2023
0410b6f
mongodb replica listen on wg
BennyThink Mar 10, 2023
8fa6d30
refactor a bit
BennyThink Mar 11, 2023
6eeac01
meilisearch 集成
BennyThink Mar 11, 2023
22251ae
update docker-compose.yml
BennyThink Mar 11, 2023
1279a3b
fix channel_cn
BennyThink Mar 12, 2023
4ca7074
搜索框下拉支持
BennyThink Mar 12, 2023
4729420
忘记处理电影
BennyThink Mar 12, 2023
4310b7d
删除 full text index 时的处理
BennyThink Mar 14, 2023
0979b8a
refactor code
BennyThink Mar 19, 2023
c0ef592
remove pytz
BennyThink Mar 19, 2023
27285a8
no need to write fake class
BennyThink Mar 19, 2023
5b990ff
clear fw every 2 hrs
BennyThink Mar 19, 2023
97a6223
use list because list supports more IPs
BennyThink Mar 19, 2023
0203fd1
fix cf firewall rules with cursor, remove mmap
BennyThink Mar 20, 2023
05f7d5c
make sure cf.ban_ip doesn't interrupt entire process
BennyThink Mar 20, 2023
20cc0b8
support ipv6
BennyThink Mar 21, 2023
b0f0ee9
ban IP rate limit
BennyThink Mar 21, 2023
b4fc297
update cf rules
BennyThink Mar 24, 2023
fd9959f
特定页面隐藏Adsense代码
BennyThink Mar 26, 2023
c60088a
add tauri application, merge golang
BennyThink Apr 3, 2023
e740af4
fix golang app with dump, clear redis&fw
BennyThink Apr 5, 2023
38ac36a
use unless-stopped
BennyThink Apr 19, 2023
061f60c
fix package bug
BennyThink Apr 23, 2023
b8bd7f6
add back comment search #232
BennyThink Apr 24, 2023
88f3b35
use my own sentry
BennyThink Apr 25, 2023
1e0921d
fix some errors from glitchtip
BennyThink Apr 26, 2023
8043a07
avatar fix for phone number, continue GlitchTip fix
BennyThink Apr 26, 2023
c4d42a2
Bump github.com/gin-gonic/gin from 1.8.1 to 1.9.0 in /yyetsweb (#239)
dependabot[bot] May 7, 2023
7588d91
update dependencies
BennyThink May 7, 2023
10f2f6c
bump
BennyThink May 13, 2023
c4ec631
fix #248
BennyThink May 17, 2023
ec8bb00
fix image issue
BennyThink May 21, 2023
2aa81c0
增加落格
BennyThink May 30, 2023
538bcc7
update github.com/gin-gonic/gin v1.9.0 to 1.9.1 (#269)
chncaption Jul 9, 2023
50a555d
bump
BennyThink Jul 10, 2023
b0d3cfb
use get
BennyThink Jul 15, 2023
8c9b559
add crisp
BennyThink Jul 15, 2023
4620577
更换域名
BennyThink Jul 28, 2023
4f5376f
remove sentry
BennyThink Aug 15, 2023
99eb23e
bump
BennyThink Aug 26, 2023
c62c47f
update fe
BennyThink Aug 26, 2023
7f44683
连接池
BennyThink Aug 26, 2023
10ea445
use webp cloud
BennyThink Aug 26, 2023
1fcfdfc
reduce length of cf cache
BennyThink Aug 26, 2023
3353f36
redis 连接池
BennyThink Aug 26, 2023
4c3f10d
minior fix
BennyThink Aug 26, 2023
79f58e6
update
BennyThink Aug 28, 2023
af7e96a
self hosted runner test
BennyThink Aug 29, 2023
3dbd995
Bump golang.org/x/net from 0.10.0 to 0.17.0 in /yyetsweb (#304)
dependabot[bot] Oct 26, 2023
3a00fb1
update email, dependencies and python
BennyThink Oct 26, 2023
1e25b07
remove self-host runner
BennyThink Oct 26, 2023
7e2184a
update deps
BennyThink Nov 15, 2023
df7dbb2
remove sentry, update deps
BennyThink Nov 26, 2023
c48a65d
Bump fakeredis from 2.20.0 to 2.20.1 (#311)
dependabot[bot] Dec 19, 2023
7cc2448
Bump tornado from 6.3.3 to 6.4 (#309)
dependabot[bot] Dec 19, 2023
0f5747a
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /yyetsweb (#312)
dependabot[bot] Dec 27, 2023
d9da767
add sort
BennyThink Dec 27, 2023
1e51f8a
update doc
BennyThink Dec 29, 2023
387eb0e
bump dependencies and url
BennyThink Jan 7, 2024
e498905
Bump fakeredis from 2.20.1 to 2.21.1 (#326)
dependabot[bot] Feb 29, 2024
1c40ff2
bump
BennyThink Feb 29, 2024
01354da
use 3.12 and 20
BennyThink Jul 21, 2024
b600929
bump deps
BennyThink Dec 5, 2024
0e29bfc
Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 in /yyetsweb (#…
dependabot[bot] Dec 5, 2024
ad391e8
Bump golang.org/x/net from 0.17.0 to 0.23.0 in /yyetsweb (#335)
dependabot[bot] Dec 5, 2024
c58ac71
Bump requests from 2.32.2 to 2.32.3 (#351)
dependabot[bot] Dec 5, 2024
10099a0
Bump tornado from 6.4 to 6.4.2 (#350)
dependabot[bot] Dec 5, 2024
a0ac805
--- (#344)
dependabot[bot] Dec 5, 2024
b31fa1b
Bump jinja2 from 3.1.3 to 3.1.4 (#340)
dependabot[bot] Dec 5, 2024
b819af0
Bump tqdm from 4.66.1 to 4.66.4 (#339)
dependabot[bot] Dec 5, 2024
3b31447
Bump redis from 5.0.1 to 5.0.4 (#336)
dependabot[bot] Dec 5, 2024
503867b
Bump pillow from 10.2.0 to 10.3.0 (#334)
dependabot[bot] Dec 5, 2024
494a6b9
Bump pymongo from 4.7.2 to 4.10.1 (#352)
dependabot[bot] Dec 5, 2024
4897e7f
subtitle update
BennyThink Dec 5, 2024
24c9093
update
BennyThink Dec 5, 2024
127a87f
fix bug
BennyThink Dec 5, 2024
39ff58c
remove unused workflows
BennyThink Dec 5, 2024
b671bce
fix download bug
BennyThink Dec 5, 2024
1283fa1
add metrics (#174)
BennyThink Dec 6, 2024
2d5d55b
支持一下
BennyThink Dec 6, 2024
87ada12
use mongodb search
BennyThink Dec 6, 2024
4f24e90
Bump redis from 5.0.4 to 5.2.0 (#357)
dependabot[bot] Dec 6, 2024
3a0b7ff
Bump captcha from 0.5.0 to 0.6.0 (#353)
dependabot[bot] Dec 6, 2024
bdb9b13
Bump openpyxl from 3.1.2 to 3.1.5 (#356)
dependabot[bot] Dec 6, 2024
f7c0b5c
Bump pillow from 10.3.0 to 11.0.0 (#355)
dependabot[bot] Dec 6, 2024
c8ac272
Bump apscheduler from 3.10.4 to 3.11.0 (#354)
dependabot[bot] Dec 6, 2024
bf3d574
add pytz
BennyThink Dec 6, 2024
6d7422c
get rid of sub module
BennyThink Dec 7, 2024
4a24123
Bump pytelegrambotapi from 4.16.1 to 4.26.0 (#364)
dependabot[bot] Jan 6, 2025
4972865
Bump fakeredis from 2.21.1 to 2.26.2 (#363)
dependabot[bot] Jan 6, 2025
f998b93
Bump meilisearch from 0.30.0 to 0.33.0 (#362)
dependabot[bot] Jan 6, 2025
74f9d98
Bump redis from 5.2.0 to 5.2.1 (#360)
dependabot[bot] Jan 6, 2025
ed251ed
Bump tqdm from 4.66.4 to 4.67.1 (#359)
dependabot[bot] Jan 6, 2025
e3230c3
Bump jinja2 from 3.1.4 to 3.1.5 (#365)
dependabot[bot] Jan 6, 2025
9a2d5d7
Bump golang.org/x/crypto from 0.21.0 to 0.31.0 in /yyetsweb (#366)
dependabot[bot] Jan 6, 2025
42db132
update fe
BennyThink Jan 6, 2025
fd85d06
Bump pymongo from 4.10.1 to 4.11.2 (#377)
dependabot[bot] Mar 5, 2025
0f1dc8a
Bump jinja2 from 3.1.5 to 3.1.6 (#379)
dependabot[bot] Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ YYeTsFE/node_modules/*
assets/*
conf/*
tests/*
yyetsweb/yyets.sqlite
yyetsweb/yyets.sqlite
yyetsweb/subtitle_data
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: BennyThink
custom: https://buy.stripe.com/dR67vU4p13Ox73a6oq
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

38 changes: 15 additions & 23 deletions .github/workflows/builder.yaml → .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,70 +1,62 @@
name: build docker image
name: Build and push docker image
on:
push:
branches:
- 'master'
paths-ignore:
- '**.md'
- 'LICENSE'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run hooks
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
REACT_APP_SENTRY_DSN: ${{ secrets.REACT_APP_SENTRY_DSN }}
REACT_APP_DOMAIN: ${{ secrets.REACT_APP_DOMAIN }}
REACT_APP_GA: ${{ secrets.REACT_APP_GA }}
GENERATE_SOURCEMAP: ${{ secrets.GENERATE_SOURCEMAP }}
run: bash scripts/pre_build.sh

- name: Lower case for Docker Hub
id: dh_string
uses: ASzc/change-string-case-action@v1
uses: ASzc/change-string-case-action@v5
with:
string: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}

- name: Lower case for ghcr
id: ghcr_string
uses: ASzc/change-string-case-action@v1
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.event.repository.full_name }}

- name: Build and push
uses: docker/build-push-action@v2
- name: Build and push docker images
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64, linux/arm64
Expand All @@ -85,4 +77,4 @@ jobs:
TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
curl "https://api.telegram.org/bot$TOKEN/sendMessage?chat_id=260260121&text=Normal%20Build%20complete!"
echo "Build complete!"
echo "YYeTsBot Build complete!"
26 changes: 0 additions & 26 deletions .github/workflows/normal_upgrade.yaml

This file was deleted.

79 changes: 0 additions & 79 deletions .github/workflows/onekey.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/rapid_upgrade.yaml

This file was deleted.

18 changes: 15 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,27 @@ certs/*
data/*
logs/*
**/.DS_Store
/yyetsweb/yyets.sqlite
/yyetsweb/yyets_sqlite.db
/yyetsweb/yyetsweb
/yyetsweb/assets.go
/yyetsweb/templates/static/*
/yyetsweb/templates/sponsor/*
/yyetsweb/templates/svg/*
/yyetsweb/templates/index.css
/yyetsweb/templates/logo*
/yyetsweb/templates/*.json


/yyetsweb/templates/*
/yyetsweb/templates/data/*
/yyetsweb/builds/
/builds/checksum-sha256sum.txt
/yyetsweb/1.html
!/env/
!/mongo_data/
/env/yyets.env
!/docker-compose.override.yml
/docker-compose.override.yml
/yyetsweb/templates/dump/yyets_mongo.gz
/yyetsweb/templates/dump/yyets_mysql.zip
/yyetsweb/templates/dump/yyets_sqlite.zip
/yyetsweb/subtitle_data/attachment/201001/17/758231_1263706947i2nW.rar
/yyetsweb/subtitle_data/attachment/200912/4/212807_1259889699DJm8.rar
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

Loading