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

v6.1.0 #417

Merged
merged 109 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
6199a05
fix #391
Gaojianli Aug 27, 2024
1e599de
重构ci
Gaojianli Aug 27, 2024
05406af
fix no commit sha
Gaojianli Aug 27, 2024
651bf19
debug env
Gaojianli Aug 27, 2024
3169232
add git
Gaojianli Aug 27, 2024
6268ae5
debug
Gaojianli Aug 27, 2024
19a92e3
移除debug信息
Gaojianli Aug 27, 2024
4752aaa
traffic 和trend调整为单列
Gaojianli Aug 27, 2024
59a6b0d
add support for shadow ban
Gaojianli Aug 27, 2024
ee191cc
复制到 qbEE
Ghost-chu Aug 27, 2024
8e73336
为qbEE单独注册
Ghost-chu Aug 27, 2024
9150e49
抽象 BanHandler
Ghost-chu Aug 27, 2024
8a14498
忽略被 ShadowBanned 的 Peers
Ghost-chu Aug 27, 2024
ecfb46c
启用 ShadowBan 时,打开 ShadowBan 的开关
Ghost-chu Aug 27, 2024
6ae7c66
更改一些类型定义
XiaoXice Aug 27, 2024
f681dd5
Merge pull request #397 from PBH-BTN/fix/empty-download-name
Gaojianli Aug 27, 2024
1bc8684
允许下载器忽略私有种子
Ghost-chu Aug 27, 2024
8d7f036
修复使用安装程序安装的 PBH 日志路径不正确,导致无权限写日志的问题
Ghost-chu Aug 27, 2024
0b8b10f
多按了一个分号
Ghost-chu Aug 27, 2024
a14d452
[webui] add ignore private torrents
Gaojianli Aug 28, 2024
7d06abd
move deprecated downloader to the right
Gaojianli Aug 28, 2024
5b5400a
Merge pull request #405 from PBH-BTN/fix-logger
Ghost-chu Aug 28, 2024
0e8f2f0
Update dependency io.takari.maven.plugins:takari-lifecycle-plugin to …
renovate[bot] Aug 28, 2024
ef97895
Merge branch 'master' of github.com:PBH-BTN/PeerBanHelper
Gaojianli Aug 29, 2024
7f263b1
Merge branch 'fix/single-column' of github.com:PBH-BTN/PeerBanHelper …
Gaojianli Aug 29, 2024
515f32e
使用下载器统计数据 #407
Ghost-chu Aug 29, 2024
be993b7
扁平化配置
Gaojianli Aug 29, 2024
201a714
fix format
Gaojianli Aug 29, 2024
3662bc1
Merge branch 'fix/single-column' into ignore-private-torrent
Gaojianli Aug 29, 2024
168688b
format
Gaojianli Aug 29, 2024
b80cd58
完成 API 接口
Ghost-chu Aug 29, 2024
7bd93a2
配个 actions
Ghost-chu Aug 29, 2024
e47416a
都给我 ci
Ghost-chu Aug 29, 2024
3d46a79
都给我 ci
Ghost-chu Aug 29, 2024
10e7adf
[webui] suit new api
Gaojianli Aug 29, 2024
dfae706
format
Gaojianli Aug 29, 2024
63f6f3b
修复 where
Ghost-chu Aug 29, 2024
924d83e
format
Ghost-chu Aug 29, 2024
d6f518f
使用联合主键
Ghost-chu Aug 29, 2024
9d33d3c
修正数据库错误
Ghost-chu Aug 29, 2024
61ebd20
换成 Long
Ghost-chu Aug 29, 2024
21f460d
都给我CI
Ghost-chu Aug 30, 2024
01407e0
fix traffic
Gaojianli Aug 30, 2024
c1e5e98
fix lint
Gaojianli Aug 30, 2024
f274f53
数轴对齐
Ghost-chu Aug 30, 2024
8775b1f
添加 Deluge 私有种子字段支持
Ghost-chu Aug 30, 2024
99abe8a
Merge pull request #404 from PBH-BTN/ignore-private-torrent
Ghost-chu Aug 30, 2024
f6f58ab
Merge pull request #385 from PBH-BTN/renovate/io.takari.maven.plugins…
Ghost-chu Aug 30, 2024
ee34342
Update bug_report.yml
Ghost-chu Aug 30, 2024
ae2b074
Update bug_report.yml
Ghost-chu Aug 30, 2024
adabb2e
Merge pull request #412 from PBH-BTN/Ghost-chu-patch-1
Ghost-chu Aug 30, 2024
8c10251
Update README.md
Ghost-chu Aug 30, 2024
b4e3b3c
Update README.md
Ghost-chu Aug 30, 2024
64c48f1
切换回差异计算 + 修复 tooltip 问题
Ghost-chu Aug 31, 2024
9b614a0
Merge branch 'master' into use-downloader-data
Ghost-chu Aug 31, 2024
53c1913
让 lint 开心
Ghost-chu Aug 31, 2024
e314b01
Revert "让 lint 开心"
Ghost-chu Aug 31, 2024
d6c5639
删除注释
Ghost-chu Aug 31, 2024
2c3c1f7
Lint 开心一下
Ghost-chu Aug 31, 2024
c12c269
Lint 开心一下
Ghost-chu Aug 31, 2024
1cbc6e7
修复私有种子检查 NPE 的问题
Ghost-chu Aug 31, 2024
6e816cf
ci(build): 优化构建时的缓存策略
chisaato Aug 31, 2024
0cf0d7a
ci: 使用 COPY 替换 ADD 避免意外行为
chisaato Aug 31, 2024
ae4f54b
修复新种子数据创建时错误使用 update count 当作 id 的问题
Ghost-chu Aug 31, 2024
b013283
Merge pull request #408 from PBH-BTN/use-downloader-data
Ghost-chu Aug 31, 2024
1a5559d
修复一个 NPE
Ghost-chu Aug 31, 2024
c3225eb
Merge remote-tracking branch 'origin/master'
Ghost-chu Aug 31, 2024
e2c875a
添加 shadowBan API 的前端支持
Ghost-chu Aug 31, 2024
fa2eb49
实现前后端 qBittorrentEE 新 ShadowBan API
Ghost-chu Aug 31, 2024
218fb0e
添加对 ShadowBan API 的检查
Ghost-chu Aug 31, 2024
9cdb054
修补配置保存问题
Ghost-chu Aug 31, 2024
9d560d6
Revert "修补配置保存问题"
Ghost-chu Aug 31, 2024
7c364ca
修补配置保存问题
Ghost-chu Aug 31, 2024
5a6beb2
Merge branch 'master' into feat/shadow-ban
Ghost-chu Aug 31, 2024
40b0ea3
修复构建错误,合并master修改
Ghost-chu Aug 31, 2024
2a8bbf2
开心,都给我开心
Ghost-chu Aug 31, 2024
37a36dd
让 coderrabbitai 开心
Ghost-chu Aug 31, 2024
cd59b0a
延迟封禁
Ghost-chu Aug 31, 2024
9206335
修复构建错误
Ghost-chu Aug 31, 2024
57c0f4d
调整默认值
Ghost-chu Aug 31, 2024
cc5db20
半夜写代码容易写出奇怪的东西
Ghost-chu Sep 1, 2024
49cae5e
换成基本类型 + 封禁时重设考察期字段数据
Ghost-chu Sep 1, 2024
5a37a61
更改
Ghost-chu Sep 1, 2024
1d74d18
Merge pull request #414 from PBH-BTN/pbh-ban-delay
Ghost-chu Sep 1, 2024
9f0ed44
Merge pull request #413 from chisaato/feat/ci-cache
Ghost-chu Sep 1, 2024
5bc073b
Merge pull request #400 from PBH-BTN/feat/shadow-ban
Ghost-chu Sep 1, 2024
fdf8f9d
挪一下测试接口到 BanHandler 里
Ghost-chu Sep 1, 2024
58a1894
重建 PCB 表
Ghost-chu Sep 1, 2024
69db096
添加合并没了的 ignorePrivate 选项到 qBEE 中
Ghost-chu Sep 1, 2024
bd40ae7
添加 overflow 处理
Ghost-chu Sep 1, 2024
596a623
deluge 的 ignorePrivate 也合没了
Ghost-chu Sep 1, 2024
e33ad05
lint 不能fix
Gaojianli Sep 1, 2024
fda9561
Merge branch 'master' of github.com:PBH-BTN/PeerBanHelper
Gaojianli Sep 1, 2024
0a434a8
使用安全的方式显示 “了解更多” 超链
Ghost-chu Sep 1, 2024
b9da30a
Merge remote-tracking branch 'origin/master'
Ghost-chu Sep 1, 2024
f4f68cf
fix eslint
Gaojianli Sep 1, 2024
53dd76e
Merge branch 'master' of github.com:PBH-BTN/PeerBanHelper
Gaojianli Sep 1, 2024
1299e34
添加 Deluge 下载器统计数据支持
Ghost-chu Sep 1, 2024
a6d981b
修复 deluge json 反序列化问题
Ghost-chu Sep 1, 2024
e6da127
Merge pull request #416 from PBH-BTN/deluge-stats
Ghost-chu Sep 1, 2024
ea29c6b
为 QBEE 实现 getStatistics
paulzzh Sep 3, 2024
01a395a
Merge pull request #421 from PBH-BTN/fixQBEEStatistics
paulzzh Sep 3, 2024
1f828a7
回避插件问题
Gaojianli Sep 6, 2024
1edc208
fix build
Gaojianli Sep 6, 2024
3ea80b5
仅在错误为缺失组件或者错误凭据时退避
Ghost-chu Sep 6, 2024
92535da
Merge remote-tracking branch 'origin/master'
Ghost-chu Sep 6, 2024
6d9d062
撤销对 Log4j2 在本版本中做出的更改
Ghost-chu Sep 6, 2024
fa4cc9e
Update profile.yml
MirrorCY Sep 6, 2024
c169a4b
Merge pull request #431 from MirrorCY/patch-1
Ghost-chu Sep 7, 2024
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
62 changes: 35 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ body:
value: |-
## 请注意 - Caution
This form only used for bug report, for any other cases, please [click here](https://github.com/PBH-BTN/PeerBanHelper/issues/new)
此表单**仅用于反馈错误**,如果是其它类型的反馈,请[点击这里](https://github.com/PBH-BTN/PeerBanHelper/issues/new)。
If you think the error is related PBH WebUI, please [report to here](https://github.com/PBH-BTN/pbh-fe)
如果你认为此错误是一个 PBH WebUI,请[在此反馈](https://github.com/PBH-BTN/pbh-fe)。
此表单**仅用于反馈错误**,如果是其它类型的反馈,请[点击这里](https://github.com/PBH-BTN/PeerBanHelper/issues/new)。
请尽可能完整且详细地填写所有表单项,以便我们以最高效率并准确的排查故障和诊断问题
- type: 'textarea'
attributes:
Expand All @@ -34,29 +32,40 @@ body:
placeholder: '操作系统平台名称……'
validations:
required: true
- type: 'textarea'
- type: checkboxes
id: deploy-methods
attributes:
label: '部署方式 - Deploy method'
label: '部署方式 - Deploy methods'
description: |-
Enter the deploy method that you're using:
输入您部署 PeerBanHelper 方式,官方支持的有如下几种方式:
* Windows 安装程序(通过 .exe 安装) (Windows .EXE Installer)
* Windows 绿色懒人包(解压即用的 .zip 文件) (Windows .ZIP Portable)
* Docker 镜像 (Docker Container)
placeholder: '部署方式……'
Check and tick checkboxes that deploy methods that you're using
请检查并勾选你正在使用的 PeerBanHelper 部署方式
options:
- label: "Windows .exe 安装程序 (Windows .exe Installer)"
required: false
- label: "Windows .zip 绿色部署包 (Windows .zip Portable)"
required: false
- label: "Docker"
required: false
- label: "JAR 包直接启动 (Start via .JAR directly)"
required: false
validations:
required: true
- type: 'textarea'
- type: checkboxes
id: downloaders
attributes:
label: '关联的下载器类型 - Downloader Type'
label: '添加的下载器 - Added Downloaders'
description: |-
Enter the downloader type that you trying to connecting/connected to PBH (E.g):
输入您的 PBH 关联的下载器类型,例如:
* qBittorrent
* Transmission
* Deluge
* ... 等
placeholder: '我添加的下载器有……'
Check and tick checkboxes if you added those downloader(s) into your PeerBanHelper installation
请勾选被你添加到 PeerBanHelper 中的下载器类型
options:
- label: "qBittorrent"
required: false
- label: "BiglyBT/Azureus/Vuze"
required: false
- label: "Deluge"
required: false
- label: "Transmission"
required: false
validations:
required: true
- type: 'textarea'
Expand Down Expand Up @@ -101,16 +110,15 @@ body:
label: 检查清单 - Check list
description: |-
Check and tick checkboxes that listed below
检查并勾选所有需要勾选的框框
options:
- label: "我确定正在运行 Github Releases 中的最新的正式版本 PeerBanHelper (I'm running the latest version of PBH that can be found in Github Relases)"
required: false
- label: "我确定我所添加的下载器已满足 README 中的前置要求(如版本号和插件)(The downloaders that I've added already satisfied the requirements (E.g install plugins/adapters))"
- label: "PeerBanHelper 已更新到最新版本 (I'm running the latest version of PBH that can be found in Github Relases)"
required: false
- label: "我确定我所提到的问题,均未在 README 和 WIKI 中有所解答 (This not a question/or the question that not listed in README's FAQ or WIKI)"
- label: "所添加的下载器已满足 README 中的前置要求(如版本号和插件)(The downloaders that I've added already satisfied the requirements (E.g install plugins/adapters))"
required: false
- label: "我确定我没有检查这个检查清单,只是闭眼选中了所有的复选框 (I have not read these checkboxes and therefore I just ticked them all)"
- label: "我已检查过 [PBH 文档](https://pbh-btn.github.io/pbh-docs/)(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or [PBH WIKI](https://pbh-btn.github.io/pbh-docs/))"
required: false
- label: "我确定这不是一个与安全有关的安全漏洞,它可以被安全的公开报告 (This not a security related issue, can be safe report in public)"
- label: "我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)"
required: false
- label: "我确定我已知悉,如果我没有正确地填写问题报告表单,则 Issue 可能会被关闭 (I know this issue may closed without any warnings if I didn't fill the form correctly)"
- label: "这不是一个安全漏洞,它可以被安全的公开报告。若需要报告安全漏洞,请[在此报告](https://github.com/PBH-BTN/PeerBanHelper/security/advisories/new) (This not a security related issue, can be safe report in public. If you want report a security exploit, please report it [here](https://github.com/PBH-BTN/PeerBanHelper/security/advisories/new))"
required: false
4 changes: 3 additions & 1 deletion .github/workflows/jvm-ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Java CI

on:
pull_request:
branches: [ "master", "release", "v6", "api-std" ]
branches: [ "master", "release" ]
workflow_dispatch:
jobs:
WebUI:
Expand Down Expand Up @@ -66,3 +66,5 @@ jobs:
linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
3 changes: 2 additions & 1 deletion .github/workflows/jvm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ name: Java CI

on:
push:
branches: [ "master", "release", "v6", "api-std" ]
workflow_dispatch:
jobs:
WebUI:
Expand Down Expand Up @@ -82,3 +81,5 @@ jobs:
linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
6 changes: 6 additions & 0 deletions .github/workflows/jvm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
GIT_HASH=${{ github.sha }}
# ---------------- ALIYUN ACR --------------------
- name: Log in to Aliyun ACR
uses: docker/login-action@v3
Expand Down Expand Up @@ -133,3 +137,5 @@ jobs:
linux/arm64/v8
tags: ${{ steps.meta-acr.outputs.tags }}
labels: ${{ steps.meta-acr.outputs.labels }}-jvm-universal
cache-from: type=gha
cache-to: type=gha,mode=max
9 changes: 4 additions & 5 deletions .github/workflows/webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@ on:
push:
branches: ["master"]
paths:
- 'webui/**'
- "webui/**"
pull_request:
branches: ["master"]
paths:
- 'webui/**'

- "webui/**"

defaults:
run:
working-directory: 'webui'
working-directory: "webui"

jobs:
Build:
uses: ./.github/workflows/build_fe.yml
Lint:
needs: Build
needs: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
31 changes: 21 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
FROM --platform=$BUILDPLATFORM docker.io/maven:3.9.9-eclipse-temurin-21-alpine AS build
# 构建前端
FROM --platform=$BUILDPLATFORM docker.io/node:alpine AS frontend-build
COPY ./webui /build/webui
WORKDIR /build/webui
RUN corepack enable pnpm && \
pnpm i && \
pnpm run build

# 下载依赖
FROM maven:3-eclipse-temurin-21-alpine as backend-build

Check warning on line 10 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build_Docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 10 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build_Docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
COPY pom.xml /build/pom.xml
WORKDIR /build
# fetch all dependencies
RUN mvn dependency:go-offline -B -T 1.5C -Daether.dependencyCollector.impl=bf -Dmaven.artifact.threads=32

# 构建后端
COPY . /build
WORKDIR /build
RUN apk add --update npm curl && \
curl -L https://unpkg.com/@pnpm/self-installer | node && \
cd webui && \
pnpm i && \
npm run build && \
cd .. && \
mv webui/dist src/main/resources/static && \
mvn -B clean package --file pom.xml -T 1.5C
# 把前端打包好的文件拉来
COPY --from=frontend-build /build/webui/dist src/main/resources/static
RUN apk add --update curl git && \
mvn -B clean package --file pom.xml -T 1.5C -Daether.dependencyCollector.impl=bf -Dmaven.artifact.threads=32

# 最终阶段,只要成品
FROM docker.io/azul/zulu-openjdk-alpine:21.0.4-21.36-jre
LABEL maintainer="https://github.com/PBH-BTN/PeerBanHelper"
USER 0
ENV TZ=UTC
WORKDIR /app
VOLUME /tmp
COPY --from=build build/target/PeerBanHelper.jar /app/PeerBanHelper.jar
COPY --from=backend-build build/target/PeerBanHelper.jar /app/PeerBanHelper.jar
ENV PATH="${JAVA_HOME}/bin:${PATH}"
ENTRYPOINT ["java","-Xmx386M","-XX:+UseG1GC", "-XX:+UseStringDeduplication","-XX:+ShrinkHeapInSteps","-jar","PeerBanHelper.jar"]
Loading
Loading