mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-11 10:54:08 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7d855f65a | ||
|
|
f0f16b3c80 | ||
|
|
3459b474db | ||
|
|
d28fcef0a7 | ||
|
|
d694c08635 | ||
|
|
a7c61a668e |
No files matched your search
+3
-3
@@ -1,20 +1,20 @@
|
|||||||
## Donate
|
## Donate
|
||||||
|
|
||||||
Thank you for your support! 🙏
|
🙏 Thank you for considering a donation to Gopeed project! Your support helps us continue to develop and maintain our software.
|
||||||
|
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>微信</th>
|
<th>微信</th>
|
||||||
<th>支付宝</th>
|
<th>支付宝</th>
|
||||||
<th>PayPal</th>
|
|
||||||
<th>Ko-fi</th>
|
<th>Ko-fi</th>
|
||||||
|
<th>PayPal</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="/.donate/qr/wechatpay.jpg" alt="wechatpay" width="300" /></td>
|
<td><img src="/.donate/qr/wechatpay.jpg" alt="wechatpay" width="300" /></td>
|
||||||
<td><img src="/.donate/qr/alipay.jpg" alt="alipay" width="300" /></td>
|
<td><img src="/.donate/qr/alipay.jpg" alt="alipay" width="300" /></td>
|
||||||
<td><a href="https://paypal.me/monkeyWie" target="_blank">Click Me</a></td>
|
|
||||||
<td><a href="https://ko-fi.com/gopeed" target="_blank">Click Me</a></td>
|
<td><a href="https://ko-fi.com/gopeed" target="_blank">Click Me</a></td>
|
||||||
|
<td><a href="https://paypal.me/monkeyWie" target="_blank">Click Me</a></td>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
name: 'translator'
|
# name: 'translator'
|
||||||
|
|
||||||
on:
|
# on:
|
||||||
issues:
|
# issues:
|
||||||
types: [opened, edited]
|
# types: [opened, edited]
|
||||||
issue_comment:
|
# issue_comment:
|
||||||
types: [created, edited]
|
# types: [created, edited]
|
||||||
discussion:
|
# discussion:
|
||||||
types: [created, edited]
|
# types: [created, edited]
|
||||||
discussion_comment:
|
# discussion_comment:
|
||||||
types: [created, edited]
|
# types: [created, edited]
|
||||||
pull_request_target:
|
# pull_request_target:
|
||||||
types: [opened, edited]
|
# types: [opened, edited]
|
||||||
pull_request_review_comment:
|
# pull_request_review_comment:
|
||||||
types: [created, edited]
|
# types: [created, edited]
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
translate:
|
# translate:
|
||||||
permissions:
|
# permissions:
|
||||||
issues: write
|
# issues: write
|
||||||
discussions: write
|
# discussions: write
|
||||||
pull-requests: write
|
# pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: lizheming/[email protected]
|
# - uses: lizheming/[email protected]
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
# with:
|
||||||
IS_MODIFY_TITLE: true
|
# IS_MODIFY_TITLE: true
|
||||||
APPEND_TRANSLATION: true
|
# APPEND_TRANSLATION: true
|
||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
[](https://ko-fi.com/R6R6IJGN6)
|
||||||
|
|
||||||
[English](/README.md) | [中文](/README_zh-CN.md) | [日本語](/README_ja-JP.md)
|
[English](/README.md) | [中文](/README_zh-CN.md) | [日本語](/README_ja-JP.md)
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
@@ -160,7 +162,7 @@ go build -tags nosqlite,web -ldflags="-s -w" -o bin/ github.com/GopeedLab/gopeed
|
|||||||
go run cmd/web/main.go
|
go run cmd/web/main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
## Thanks
|
## Credits
|
||||||
|
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
[](https://ko-fi.com/R6R6IJGN6)
|
||||||
|
|
||||||
[English](/README.md) | [中文](/README_zh-CN.md) | [日本語](/README_ja-JP.md)
|
[English](/README.md) | [中文](/README_zh-CN.md) | [日本語](/README_ja-JP.md)
|
||||||
|
|
||||||
## はじめに
|
## はじめに
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
[](https://ko-fi.com/R6R6IJGN6)
|
||||||
|
|
||||||
[English](/README.md) | [中文](/README_zh-CN.md) | [日本語](/README_ja-JP.md)
|
[English](/README.md) | [中文](/README_zh-CN.md) | [日本語](/README_ja-JP.md)
|
||||||
|
|
||||||
## 介绍
|
## 介绍
|
||||||
|
|||||||
@@ -428,6 +428,9 @@ func buildRequest(ctx context.Context, req *base.Request) (httpReq *http.Request
|
|||||||
body = bytes.NewBufferString(extra.Body)
|
body = bytes.NewBufferString(extra.Body)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if _, ok := headers[base.HttpHeaderUserAgent]; !ok {
|
||||||
|
headers[base.HttpHeaderUserAgent] = []string{base.AgentName}
|
||||||
|
}
|
||||||
|
|
||||||
if ctx != nil {
|
if ctx != nil {
|
||||||
httpReq, err = http.NewRequestWithContext(ctx, method, url.String(), body)
|
httpReq, err = http.NewRequestWithContext(ctx, method, url.String(), body)
|
||||||
|
|||||||
@@ -19,6 +19,11 @@ const (
|
|||||||
HttpHeaderContentLength = "Content-Length"
|
HttpHeaderContentLength = "Content-Length"
|
||||||
HttpHeaderContentRange = "Content-Range"
|
HttpHeaderContentRange = "Content-Range"
|
||||||
HttpHeaderContentDisposition = "Content-Disposition"
|
HttpHeaderContentDisposition = "Content-Disposition"
|
||||||
|
HttpHeaderUserAgent = "User-Agent"
|
||||||
|
|
||||||
HttpHeaderRangeFormat = "bytes=%d-%d"
|
HttpHeaderRangeFormat = "bytes=%d-%d"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
AgentName = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"
|
||||||
|
)
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{
|
||||||
|
"label": "中文(正體)",
|
||||||
|
"error": "錯誤",
|
||||||
|
"tip": "提示",
|
||||||
|
"confirm": "確定",
|
||||||
|
"cancel": "取消",
|
||||||
|
"selectAll": "全選",
|
||||||
|
"task": "任務",
|
||||||
|
"downloading": "下載中",
|
||||||
|
"downloaded": "已完成",
|
||||||
|
"setting": "設定",
|
||||||
|
"donate": "斗內",
|
||||||
|
"exit": "離開",
|
||||||
|
"create": "新建任務",
|
||||||
|
"advancedOptions": "進階選項",
|
||||||
|
"downloadLink": "下載鏈接",
|
||||||
|
"downloadLinkValid": "請輸入下載鏈接",
|
||||||
|
"downloadLinkHit": "請輸入下載鏈接,支援 HTTP/HTTPS/MAGNET@append",
|
||||||
|
"downloadLinkHitDesktop": ",也可以通過拖拽Torrent文件至此以新增任務",
|
||||||
|
"download": "下載",
|
||||||
|
"noFileSelected": "沒有選取的文件",
|
||||||
|
"noStoragePermission": "沒有存儲權限",
|
||||||
|
"selectFile": "選擇文件",
|
||||||
|
"rename": "重命名",
|
||||||
|
"basic": "基礎",
|
||||||
|
"advanced": "進階",
|
||||||
|
"general": "一般",
|
||||||
|
"downloadDir": "下載目録",
|
||||||
|
"downloadDirValid": "請選擇下載目録",
|
||||||
|
"connections": "同時連接數量",
|
||||||
|
"maxRunning": "最大同時下載數",
|
||||||
|
"items": "@count 項",
|
||||||
|
"subscribeTracker": "訂閲 Tracker",
|
||||||
|
"subscribeFail": "訂閲失敗",
|
||||||
|
"update": "更新",
|
||||||
|
"updateDaily": "每日自動更新",
|
||||||
|
"lastUpdate": "上次更新:@time",
|
||||||
|
"addTracker": "新增 Tracker",
|
||||||
|
"addTrackerHit": "請輸入 Tracker 服務器地址,每行一條",
|
||||||
|
"ui": "UI",
|
||||||
|
"theme": "佈景主題",
|
||||||
|
"themeSystem": "跟隨系統",
|
||||||
|
"themeLight": "亮色主題",
|
||||||
|
"themeDark": "暗色主題",
|
||||||
|
"locale": "語言",
|
||||||
|
"about": "關於",
|
||||||
|
"homepage": "首頁",
|
||||||
|
"version": "版本",
|
||||||
|
"protocol": "通訊協定",
|
||||||
|
"port": "端口",
|
||||||
|
"apiToken": "接口 Token",
|
||||||
|
"notSet": "尚未設定",
|
||||||
|
"set": "已設定",
|
||||||
|
"effectAfterRestart": "該選項將在重新啓動軟體後生效",
|
||||||
|
"startAll": "全部開始",
|
||||||
|
"pauseAll": "全部暫停",
|
||||||
|
"deleteTask": "刪除任務",
|
||||||
|
"deleteTaskTip": "保留已經下載的文件",
|
||||||
|
"delete": "刪除",
|
||||||
|
"newVersionTitle": "發現新版本 @version",
|
||||||
|
"newVersionUpdate": "立刻更新",
|
||||||
|
"newVersionLater": "稍後更新"
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:open_file/open_file.dart';
|
||||||
import 'package:share_plus/share_plus.dart';
|
import 'package:share_plus/share_plus.dart';
|
||||||
|
|
||||||
import '../../../../util/file_icon.dart';
|
import '../../../../util/file_icon.dart';
|
||||||
@@ -65,16 +66,35 @@ class TaskFilesView extends GetView<TaskFilesController> {
|
|||||||
: Text(Util.fmtByte(file.size)),
|
: Text(Util.fmtByte(file.size)),
|
||||||
trailing: file.isDirectory
|
trailing: file.isDirectory
|
||||||
? null
|
? null
|
||||||
: IconButton(
|
: SizedBox(
|
||||||
icon: const Icon(Icons.share),
|
width: 100,
|
||||||
onPressed: () {
|
child: Row(
|
||||||
final xfile = XFile(Util.safePathJoin([
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
meta.opts.path,
|
children: [
|
||||||
meta.res.rootDir,
|
IconButton(
|
||||||
file.fullPath
|
icon: const Icon(Icons.play_circle),
|
||||||
]));
|
onPressed: () {
|
||||||
Share.shareXFiles([xfile]);
|
OpenFile.open(
|
||||||
}),
|
Util.safePathJoin([
|
||||||
|
meta.opts.path,
|
||||||
|
meta.res.rootDir,
|
||||||
|
file.fullPath
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.share),
|
||||||
|
onPressed: () {
|
||||||
|
final xfile = XFile(Util.safePathJoin([
|
||||||
|
meta.opts.path,
|
||||||
|
meta.res.rootDir,
|
||||||
|
file.fullPath
|
||||||
|
]));
|
||||||
|
Share.shareXFiles([xfile]);
|
||||||
|
})
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (file.isDirectory) {
|
if (file.isDirectory) {
|
||||||
controller.toDir(file.fullPath);
|
controller.toDir(file.fullPath);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ class AppTranslation {
|
|||||||
'ja_JP': Locales.ja_JP,
|
'ja_JP': Locales.ja_JP,
|
||||||
'ru_RU': Locales.ru_RU,
|
'ru_RU': Locales.ru_RU,
|
||||||
'zh_CN': Locales.zh_CN,
|
'zh_CN': Locales.zh_CN,
|
||||||
|
'zh_TW': Locales.zh_TW,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -389,4 +390,67 @@ class Locales {
|
|||||||
'newVersionUpdate': '立即下载',
|
'newVersionUpdate': '立即下载',
|
||||||
'newVersionLater': '稍后再说',
|
'newVersionLater': '稍后再说',
|
||||||
};
|
};
|
||||||
|
static const zh_TW = {
|
||||||
|
'label': '中文(正體)',
|
||||||
|
'error': '錯誤',
|
||||||
|
'tip': '提示',
|
||||||
|
'confirm': '確定',
|
||||||
|
'cancel': '取消',
|
||||||
|
'selectAll': '全選',
|
||||||
|
'task': '任務',
|
||||||
|
'downloading': '下載中',
|
||||||
|
'downloaded': '已完成',
|
||||||
|
'setting': '設定',
|
||||||
|
'donate': '斗內',
|
||||||
|
'exit': '離開',
|
||||||
|
'create': '新建任務',
|
||||||
|
'advancedOptions': '進階選項',
|
||||||
|
'downloadLink': '下載鏈接',
|
||||||
|
'downloadLinkValid': '請輸入下載鏈接',
|
||||||
|
'downloadLinkHit': '請輸入下載鏈接,支援 HTTP/HTTPS/MAGNET@append',
|
||||||
|
'downloadLinkHitDesktop': ',也可以通過拖拽Torrent文件至此以新增任務',
|
||||||
|
'download': '下載',
|
||||||
|
'noFileSelected': '沒有選取的文件',
|
||||||
|
'noStoragePermission': '沒有存儲權限',
|
||||||
|
'selectFile': '選擇文件',
|
||||||
|
'rename': '重命名',
|
||||||
|
'basic': '基礎',
|
||||||
|
'advanced': '進階',
|
||||||
|
'general': '一般',
|
||||||
|
'downloadDir': '下載目録',
|
||||||
|
'downloadDirValid': '請選擇下載目録',
|
||||||
|
'connections': '同時連接數量',
|
||||||
|
'maxRunning': '最大同時下載數',
|
||||||
|
'items': '@count 項',
|
||||||
|
'subscribeTracker': '訂閲 Tracker',
|
||||||
|
'subscribeFail': '訂閲失敗',
|
||||||
|
'update': '更新',
|
||||||
|
'updateDaily': '每日自動更新',
|
||||||
|
'lastUpdate': '上次更新:@time',
|
||||||
|
'addTracker': '新增 Tracker',
|
||||||
|
'addTrackerHit': '請輸入 Tracker 服務器地址,每行一條',
|
||||||
|
'ui': 'UI',
|
||||||
|
'theme': '佈景主題',
|
||||||
|
'themeSystem': '跟隨系統',
|
||||||
|
'themeLight': '亮色主題',
|
||||||
|
'themeDark': '暗色主題',
|
||||||
|
'locale': '語言',
|
||||||
|
'about': '關於',
|
||||||
|
'homepage': '首頁',
|
||||||
|
'version': '版本',
|
||||||
|
'protocol': '通訊協定',
|
||||||
|
'port': '端口',
|
||||||
|
'apiToken': '接口 Token',
|
||||||
|
'notSet': '尚未設定',
|
||||||
|
'set': '已設定',
|
||||||
|
'effectAfterRestart': '該選項將在重新啓動軟體後生效',
|
||||||
|
'startAll': '全部開始',
|
||||||
|
'pauseAll': '全部暫停',
|
||||||
|
'deleteTask': '刪除任務',
|
||||||
|
'deleteTaskTip': '保留已經下載的文件',
|
||||||
|
'delete': '刪除',
|
||||||
|
'newVersionTitle': '發現新版本 @version',
|
||||||
|
'newVersionUpdate': '立刻更新',
|
||||||
|
'newVersionLater': '稍後更新',
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -565,6 +565,14 @@ packages:
|
|||||||
url: "https://pub.flutter-io.cn"
|
url: "https://pub.flutter-io.cn"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.4"
|
version: "1.0.4"
|
||||||
|
open_file:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: open_file
|
||||||
|
sha256: a5a32d44acb7c899987d0999e1e3cbb0a0f1adebbf41ac813ec6d2d8faa0af20
|
||||||
|
url: "https://pub.flutter-io.cn"
|
||||||
|
source: hosted
|
||||||
|
version: "3.3.2"
|
||||||
package_config:
|
package_config:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
|||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.3.11+1
|
version: 1.3.12+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.0 <4.0.0'
|
sdk: '>=3.0.0 <4.0.0'
|
||||||
@@ -59,6 +59,7 @@ dependencies:
|
|||||||
tray_manager: ^0.2.0
|
tray_manager: ^0.2.0
|
||||||
autoscale_tabbarview: ^1.0.2
|
autoscale_tabbarview: ^1.0.2
|
||||||
share_plus: ^7.1.0
|
share_plus: ^7.1.0
|
||||||
|
open_file: ^3.3.2
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
Reference in new issue
Block a user