Skip to content

Commit

Permalink
feat: 更新仓库地址
Browse files Browse the repository at this point in the history
  • Loading branch information
ronggang committed Dec 11, 2022
1 parent eb150b1 commit 320c272
Show file tree
Hide file tree
Showing 37 changed files with 591 additions and 335 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new-tracker-request-cn.md
Expand Up @@ -10,7 +10,7 @@ assignees: ''
<!--
1、在发起请求前,请先确认是否在已支持的架构内;
2、如果在已支持的架构内,本主题将会被视为无效并关闭;
3、如果您是开发者,请按 https://github.com/ronggang/PT-Plugin-Plus/wiki/developer 文档适配并提交PR;
3、如果您是开发者,请按 https://github.com/pt-plugins/PT-Plugin-Plus/wiki/developer 文档适配并提交PR;
4、如果您无法发送邀请,请不要提交,因为开发人员无法对其适配;
5、如有考核,请确认是否可免考,因为开发人员无法保证完成考核;
6、如有多个站点需求,请分别发起;
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new-tracker-request.md
Expand Up @@ -10,7 +10,7 @@ assignees: ''
<!--
1. Before initiating a request, please confirm whether it is within the supported schema;
2. If within the supported schema, this topic will be considered invalid and closed;
3. If you are a developer, please follow the https://github.com/ronggang/PT-Plugin-Plus/wiki/developer document to adapt and submit the PR;
3. If you are a developer, please follow the https://github.com/pt-plugins/PT-Plugin-Plus/wiki/developer document to adapt and submit the PR;
4. If you are unable to send the invitation, please do not submit it because the developer cannot adapt it;
5. If there is an assessment, please confirm whether the exam can be exempted, because the developer cannot guarantee the completion of the assessment;
6. A topic only initiates a tracker request;
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/suggestions-or-comments.md
Expand Up @@ -16,5 +16,5 @@ assignees: ''
1、如果是功能或新站点请求,将会被关闭,请按对应请求模板发起;
2、如果是使用问题,请参考帮助文档:
https://github.com/ronggang/PT-Plugin-Plus/wiki
https://github.com/pt-plugins/PT-Plugin-Plus/wiki
-->
22 changes: 11 additions & 11 deletions README.md
@@ -1,9 +1,9 @@
<p align="center">
<img src="https://github.com/ronggang/PT-Plugin-Plus/raw/master/public/assets/icon-128.png"><br/>
<a href="https://github.com/ronggang/PT-Plugin-Plus/releases/latest" title="GitHub Releases"><img src="https://img.shields.io/github/release/ronggang/PT-Plugin-Plus.svg?label=Latest%20Release"></a>
<a href="https://github.com/ronggang/PT-Plugin-Plus/releases" title="GitHub All Releases"><img alt="Releases" src="https://img.shields.io/github/downloads/ronggang/PT-Plugin-Plus/total.svg?label=Downloads"></a>
<img src="https://github.com/pt-plugins/PT-Plugin-Plus/raw/master/public/assets/icon-128.png"><br/>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases/latest" title="GitHub Releases"><img src="https://img.shields.io/github/release/pt-plugins/PT-Plugin-Plus.svg?label=Latest%20Release"></a>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases" title="GitHub All Releases"><img alt="Releases" src="https://img.shields.io/github/downloads/pt-plugins/PT-Plugin-Plus/total.svg?label=Downloads"></a>
<img src="https://img.shields.io/badge/Used-TypeScript%20Vue-blue.svg">
<a href="https://github.com/ronggang/PT-Plugin-Plus/LICENSE" title="GitHub license"><img src="https://img.shields.io/github/license/ronggang/PT-Plugin-Plus.svg?label=License" alt="GitHub license"/></a>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/LICENSE" title="GitHub license"><img src="https://img.shields.io/github/license/pt-plugins/PT-Plugin-Plus.svg?label=License" alt="GitHub license"/></a>
<a href="https://t.me/joinchat/NZ9NCxPKXyby8f35rn_QTw"><img src="https://img.shields.io/badge/Telegram-Chat-blue.svg?logo=telegram" alt="Telegram"/></a>
</p>

Expand All @@ -19,13 +19,13 @@ PT 助手 Plus,是一款浏览器插件(Web Extensions),一个可以提

> ~~注意:`1.0.0` 以下的配置不能直接用于该版本,请勿将 `1.0.0` 以下的版本配置进行导入操作。~~
最新版本以及功能请登录后从[Action](https://github.com/ronggang/PT-Plugin-Plus/actions)里获取。如不会安装请参看Wiki
最新版本以及功能请登录后从[Action](https://github.com/pt-plugins/PT-Plugin-Plus/actions)里获取。如不会安装请参看Wiki

**提Issue前请务必检查Dev版本、Pull Request以及之前的Issue**

## 已支持的浏览器
- <a href="https://chrome.google.com/webstore/detail/abkdiiddckphbigmakaojlnmakpllenb" title="已在 Chrome Web Store 市场上发布的版本">![Google Chrome](https://img.shields.io/chrome-web-store/v/abkdiiddckphbigmakaojlnmakpllenb.svg?label=Google%20Chrome)</a> (已下架,见[原因](https://github.com/ronggang/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
- <a href="https://addons.mozilla.org/zh-CN/firefox/addon/pt-plugin-plus/" title="已在 Mozilla Add-on 上发布的版本">![Mozilla Firefox](https://img.shields.io/amo/v/pt-plugin-plus.svg?label=Mozilla%20Firefox)</a> (已下架,见[原因](https://github.com/ronggang/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
- <a href="https://chrome.google.com/webstore/detail/abkdiiddckphbigmakaojlnmakpllenb" title="已在 Chrome Web Store 市场上发布的版本">![Google Chrome](https://img.shields.io/chrome-web-store/v/abkdiiddckphbigmakaojlnmakpllenb.svg?label=Google%20Chrome)</a> (已下架,见[原因](https://github.com/pt-plugins/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
- <a href="https://addons.mozilla.org/zh-CN/firefox/addon/pt-plugin-plus/" title="已在 Mozilla Add-on 上发布的版本">![Mozilla Firefox](https://img.shields.io/amo/v/pt-plugin-plus.svg?label=Mozilla%20Firefox)</a> (已下架,见[原因](https://github.com/pt-plugins/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
- <a href="https://microsoftedge.microsoft.com/addons/detail/ekhingnlcjebipkdcgkkheigmljefepn" title="已在 Microsoft Edge 上发布的版本">![Microsoft Edge](https://img.shields.io/badge/dynamic/json?label=Edge%20Addons&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2FAddons%2Fgetproductdetailsbycrxid%2Fekhingnlcjebipkdcgkkheigmljefepn)</a>
- 及其他基于 `Chromium` 内核的浏览器

Expand All @@ -47,15 +47,15 @@ PT 助手 Plus,是一款浏览器插件(Web Extensions),一个可以提
- 显示默认下载服务器当前可用空间,目前已支持:
- Transmission
- 多站聚合搜索相同关键字的种子;
- 查看 [已支持的站点列表](https://github.com/ronggang/PT-Plugin-Plus/wiki/supported-sites)
- 查看 [已支持的站点列表](https://github.com/pt-plugins/PT-Plugin-Plus/wiki/supported-sites)
- 根据当前站点显示专属功能,如:
- 封面模式浏览种子页面;
- 保存下载历史记录(默认关闭);
- `豆瓣` 电影页面、[Top250](https://movie.douban.com/top250)[选电影](https://movie.douban.com/explore) 一键搜索 PT 种子支持;
- `IMDb` 电影页面、[Top250](https://www.imdb.com/chart/top?ref_=nv_mv_250) 一键搜索 PT 种子支持;
- 更多功能请参考 [Wiki](https://github.com/ronggang/PT-Plugin-Plus/wiki)
- 更多功能请参考 [Wiki](https://github.com/pt-plugins/PT-Plugin-Plus/wiki)

## 安装及使用

- 如何安装和使用,请参考 [Wiki](https://github.com/ronggang/PT-Plugin-Plus/wiki) 的详细说明;
- 常见问题可 [点这里](https://github.com/ronggang/PT-Plugin-Plus/wiki/frequently-asked-questions) 找到答案;
- 如何安装和使用,请参考 [Wiki](https://github.com/pt-plugins/PT-Plugin-Plus/wiki) 的详细说明;
- 常见问题可 [点这里](https://github.com/pt-plugins/PT-Plugin-Plus/wiki/frequently-asked-questions) 找到答案;
4 changes: 2 additions & 2 deletions deploy/package.ts
Expand Up @@ -13,9 +13,9 @@ export default class Package {
private keyFile = "";
private privateKey = "";
private rootPath = PATH.join(__dirname, "../");
private crxURL = `https://github.com/ronggang/PT-Plugin-Plus/releases/download/${version}/${packageName}.crx`;
private crxURL = `https://github.com/pt-plugins/PT-Plugin-Plus/releases/download/${version}/${packageName}.crx`;
private updateURL =
"https://raw.githubusercontent.com/ronggang/PT-Plugin-Plus/master/update/index.xml";
"https://raw.githubusercontent.com/pt-plugins/PT-Plugin-Plus/master/update/index.xml";
private manifestFile = "";

constructor(privateKey: string = "") {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
},
"archiverName": "PT-Plugin-Plus",
"displayName": "PT 助手 Plus",
"homepage": "https://github.com/ronggang/PT-Plugin-Plus",
"homepage": "https://github.com/pt-plugins/PT-Plugin-Plus",
"scripts": {
"serve": "set NODE_OPTIONS=--openssl-legacy-provider & vue-cli-service serve --mode=test",
"build": "set NODE_OPTIONS=--openssl-legacy-provider & yarn build:index && yarn build:background && yarn build:content && yarn resource",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Expand Up @@ -5,7 +5,7 @@
"description": "__MSG_manifest_appDescription__",
"manifest_version": 2,
"default_locale": "zh_CN",
"homepage_url": "https://github.com/ronggang/PT-Plugin-Plus",
"homepage_url": "https://github.com/pt-plugins/PT-Plugin-Plus",
"browser_action": {
"default_icon": "assets/icon-19.png",
"default_title": "__MSG_manifest_appName__"
Expand Down
8 changes: 4 additions & 4 deletions resource/clients/README.md
Expand Up @@ -52,14 +52,14 @@

* 客户端对象需对外暴露以下公用方法
- `init` : 用于初始化客户端,接收一个参数:`options` 表示客户端定义的相关参数
- 属性参考 [common.ts](https://github.com/ronggang/PT-Plugin-Plus/blob/master/src/interface/common.ts)`DownloadClient`
- 属性参考 [common.ts](https://github.com/pt-plugins/PT-Plugin-Plus/blob/master/src/interface/common.ts)`DownloadClient`
- `call` : 用于方法调用,接收两个参数:`action`, `data`,返回一个 `Promise` 对象
- `action` : 字符串,需要执行的方法(动作)名称,方法说明:
- `addTorrentFromURL` : 从指定的链接增加种子文件
- `testClientConnectivity` : 测试当前客户端是否可连接
- 更多方法参考 [common.ts](https://github.com/ronggang/PT-Plugin-Plus/blob/master/src/interface/common.ts)`EAction`
- 更多方法参考 [common.ts](https://github.com/pt-plugins/PT-Plugin-Plus/blob/master/src/interface/common.ts)`EAction`
- `data` : 任意类型,接收的数据,根据 `action` 不同,数据格式也不同

- 在脚本中可用的系统对象
- `PTBackgroundService` : 助手后台服务程序,详情参考 [service.ts](https://github.com/ronggang/PT-Plugin-Plus/blob/master/src/background/service.ts)
- `PTSevriceFilters` : 系统定义的过滤器,详情参考 [filters.ts](https://github.com/ronggang/PT-Plugin-Plus/blob/master/src/service/filters.ts)
- `PTBackgroundService` : 助手后台服务程序,详情参考 [service.ts](https://github.com/pt-plugins/PT-Plugin-Plus/blob/master/src/background/service.ts)
- `PTSevriceFilters` : 系统定义的过滤器,详情参考 [filters.ts](https://github.com/pt-plugins/PT-Plugin-Plus/blob/master/src/service/filters.ts)
6 changes: 3 additions & 3 deletions resource/clients/synologyDownloadStation/init.js
@@ -1,6 +1,6 @@
/**
* @see https://global.download.synology.com/download/Document/DeveloperGuide/Synology_Download_Station_Web_API.pdf
* @backport https://github.com/ronggang/PT-Plugin-Plus/blob/48c2d42a1d05c129c0abbbecf653b1b7d88a8a8e/src/resource/btClients/src/clients/synologyDownloadStation.ts
* @backport https://github.com/pt-plugins/PT-Plugin-Plus/blob/48c2d42a1d05c129c0abbbecf653b1b7d88a8a8e/src/resource/btClients/src/clients/synologyDownloadStation.ts
*/
(function ($, window) {
class Client {
Expand Down Expand Up @@ -69,7 +69,7 @@
});
break;

// 测试是否可连接
// 测试是否可连接
case "testClientConnectivity":
this.getSessionId().then(result => {
resolve(result != "");
Expand Down Expand Up @@ -134,7 +134,7 @@
if (Array.isArray(v)) {
v = JSON.stringify(v);
}
formData.append(k,v);
formData.append(k, v);
}
});

Expand Down
2 changes: 1 addition & 1 deletion resource/clients/transmission/config.json
Expand Up @@ -8,5 +8,5 @@
],
"allowCustomPath": true,
"pathDescription": "当前目录列表配置是指定硬盘上的绝对路径,如 /volume1/music/",
"description": "默认情况下,系统会请求 http://ip:port/transmission/rpc 这个路径,如果无法连接,请确认 `settings.json` 文件的 `rpc-url` 值;详情可参考:https://github.com/ronggang/PT-Plugin-Plus/issues/32"
"description": "默认情况下,系统会请求 http://ip:port/transmission/rpc 这个路径,如果无法连接,请确认 `settings.json` 文件的 `rpc-url` 值;详情可参考:https://github.com/pt-plugins/PT-Plugin-Plus/issues/32"
}
10 changes: 5 additions & 5 deletions resource/schemas/NexusPHP/getSearchResult.js
Expand Up @@ -147,12 +147,12 @@
for (let index = beginRowIndex; index < rows.length; index++) {
const row = rows.eq(index);

// FIX https://github.com/ronggang/PT-Plugin-Plus/issues/347
// FIX https://github.com/pt-plugins/PT-Plugin-Plus/issues/347
row.attr('id') === 'zhiding' && row.removeAttr('id');

let cells = row.find(">td");

let title = this.getTitle(row,cells,fieldIndex);
let title = this.getTitle(row, cells, fieldIndex);

// 没有获取标题时,继续下一个
if (title.length == 0) {
Expand All @@ -167,7 +167,7 @@
}

// 获取下载链接
let url = this.getDownloadLink(row,link);
let url = this.getDownloadLink(row, link);
if (url && url.substr(0, 2) === "//") {
// 适配HUDBT、WHU这样以相对链接开头
url = `${site_url_help.protocol}://${url}`;
Expand Down Expand Up @@ -269,7 +269,7 @@
if (options.site.host === "pt.sjtu.edu.cn") {
if (time.match(/\d+[分时天月年]/g)) {
time = Date.now() - this._parseTime(time)
time = new Date(time).toLocaleString("zh-CN", {hour12: false}).replace(/\//g, '-')
time = new Date(time).toLocaleString("zh-CN", { hour12: false }).replace(/\//g, '-')
}
}
return time || "";
Expand Down Expand Up @@ -423,7 +423,7 @@
url = url_another.attr('action')
break;
}

}

default: {
Expand Down
4 changes: 2 additions & 2 deletions resource/schemas/README.md
Expand Up @@ -74,9 +74,9 @@
### 关于脚本及其他资源文件路径说明

- 如果在第一个位置指定了 `/` ,则路径会被指向到:
- `https://github.com/ronggang/PT-Plugin-Plus/tree/master/resource/`
- `https://github.com/pt-plugins/PT-Plugin-Plus/tree/master/resource/`
- 如果第一个位置不是 `/` ,则表示当前路径为该架构所在目录,如 `NexusPHP` 的指向目录为:
- `https://github.com/ronggang/PT-Plugin-Plus/tree/master/resource/schemas/NexusPHP/`
- `https://github.com/pt-plugins/PT-Plugin-Plus/tree/master/resource/schemas/NexusPHP/`

## 脚本中可用的全局对象

Expand Down
6 changes: 3 additions & 3 deletions resource/sites/README.md
Expand Up @@ -113,9 +113,9 @@
### 关于脚本及其他资源文件路径说明

- 如果在第一个位置指定了 `/` ,则路径会被指向到:
- `https://github.com/ronggang/PT-Plugin-Plus/tree/master/resource/`
- `https://github.com/pt-plugins/PT-Plugin-Plus/tree/master/resource/`
- 如果第一个位置不是 `/` ,则表示当前路径为该网站所在目录,如 `open.cd` 的指向目录为:
- `https://github.com/ronggang/PT-Plugin-Plus/tree/master/resource/sites/open.cd/`
- `https://github.com/pt-plugins/PT-Plugin-Plus/tree/master/resource/sites/open.cd/`

## 如何提交一个新的站点?

Expand All @@ -132,7 +132,7 @@
- 最后在 `github` 仓库中发起一个 `PR(pull request)` 即可;

2. 加入开发交流 QQ 群:773500545,把你的配置文件分享给我们吧;
3. 通过 [该主题](https://github.com/ronggang/PT-Plugin-Plus/issues/30) 留言,按格式提交已测试可用的站点信息;
3. 通过 [该主题](https://github.com/pt-plugins/PT-Plugin-Plus/issues/30) 留言,按格式提交已测试可用的站点信息;

## PR 参考资料

Expand Down
4 changes: 2 additions & 2 deletions src/background/contextMenus.ts
Expand Up @@ -129,7 +129,7 @@ export class ContextMenus {
contexts: ["browser_action"],
onclick: () => {
chrome.tabs.create({
url: "https://github.com/ronggang/PT-Plugin-Plus/issues/new"
url: "https://github.com/pt-plugins/PT-Plugin-Plus/issues/new"
});
}
});
Expand Down Expand Up @@ -470,7 +470,7 @@ export class ContextMenus {
});
chrome.tabs.sendMessage(tabid, {
action: EAction.showMessage,
data: result.status=="" ? this.service.i18n.t("service.contextMenus.sendTorrentToClientError") : result
data: result.status == "" ? this.service.i18n.t("service.contextMenus.sendTorrentToClientError") : result
});
})
.finally(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/background/controller.ts
Expand Up @@ -215,7 +215,7 @@ export default class Controller {
let siteDefaultPath = this.getSiteDefaultPath(site);
let siteClientConfig = this.siteDefaultClients[host];

// https://github.com/ronggang/PT-Plugin-Plus/issues/681
// https://github.com/pt-plugins/PT-Plugin-Plus/issues/681
// 在 downloadOptions 中已经有 savePath 的情况下,不覆盖 savePath
if (!downloadOptions.savePath && siteDefaultPath) {
downloadOptions.savePath = siteDefaultPath;
Expand Down
19 changes: 8 additions & 11 deletions src/changelog/Index.vue
Expand Up @@ -5,18 +5,15 @@
<div v-html="marked(content)" class="markdown-body"></div>
<div class="footer">
<div v-html="marked(footer)" class="mt-2"></div>
<div>&copy; 栽培者 {{ year }}, 版本 {{ version }}</div>
<div class="mt-1">
<img src="/assets/donate.png" />
</div>
<div>&copy; PT 助手 {{ year }}, 版本 {{ version }}</div>
</div>
</div>
</v-app>
</template>
<script lang="ts">
import Vue from "vue";
import marked from "marked";
import {PPF} from "@/service/public";
import { PPF } from "@/service/public";
// 重写 version,因为使用 getVersion 获取到的是 `v1.5.1` 或者 `v1.5.1.dc988f6`,需要重写为 `v1.5.1` 否则无法获取release信息
let MAIN_VERSION = PPF.getVersion();
Expand All @@ -29,19 +26,19 @@ export default Vue.extend({
data() {
return {
content:
"正在加载…… <br>(如长时间未能加载成功,请前往 https://github.com/ronggang/PT-Plugin-Plus/releases/ 查看发布说明。)",
"正在加载…… <br>(如长时间未能加载成功,请前往 https://github.com/pt-plugins/PT-Plugin-Plus/releases/ 查看发布说明。)",
footer:
"[项目主页](https://github.com/ronggang/PT-Plugin-Plus) - [使用说明](https://github.com/ronggang/PT-Plugin-Plus/wiki) - [常见问题](https://github.com/ronggang/PT-Plugin-Plus/wiki/frequently-asked-questions) - [意见反馈](https://github.com/ronggang/PT-Plugin-Plus/issues) - [打开助手](index.html)",
"[项目主页](https://github.com/pt-plugins/PT-Plugin-Plus) - [使用说明](https://github.com/pt-plugins/PT-Plugin-Plus/wiki) - [常见问题](https://github.com/pt-plugins/PT-Plugin-Plus/wiki/frequently-asked-questions) - [意见反馈](https://github.com/pt-plugins/PT-Plugin-Plus/issues) - [打开助手](index.html)",
version: MAIN_VERSION,
failContent:
"更新日志加载失败,请前往 https://github.com/ronggang/PT-Plugin-Plus/releases/ 查看发布说明",
"更新日志加载失败,请前往 https://github.com/pt-plugins/PT-Plugin-Plus/releases/ 查看发布说明",
year: new Date().getFullYear()
};
},
created() {
$.getJSON(
`https://api.github.com/repos/ronggang/PT-Plugin-Plus/releases/tags/${this.version}`
`https://api.github.com/repos/pt-plugins/PT-Plugin-Plus/releases/tags/${this.version}`
)
.done((result: any) => {
if (result && result.body) {
Expand All @@ -59,8 +56,8 @@ export default Vue.extend({
marked,
parse(content: string): string {
return content.replace(
/(#)(\d+)/g,
"[#$2](https://github.com/ronggang/PT-Plugin-Plus/issues/$2)"
/(#)(\d+)/g,
"[#$2](https://github.com/pt-plugins/PT-Plugin-Plus/issues/$2)"
);
}
}
Expand Down

0 comments on commit 320c272

Please sign in to comment.