Skip to content

Commit

Permalink
Merge pull request #47 from pt-plugins/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W committed Dec 12, 2022
2 parents b632ae0 + cccaabd commit c9159aa
Show file tree
Hide file tree
Showing 46 changed files with 1,787 additions and 261 deletions.
5 changes: 0 additions & 5 deletions deploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ class Deployer {
new Package().zip();
} else {}
}

/**
* 发布至应用市场
* @param file
*/
}

new Deployer();
25 changes: 0 additions & 25 deletions deploy/package.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as fs from "fs";
import * as archiver from "archiver";
import * as crx3 from "crx3";
import * as PATH from "path";
import * as ChromeExtension from "crx";

Expand Down Expand Up @@ -135,28 +134,4 @@ export default class Package {
});
});
}

/**
* 打包 crx3
* 该方法打包时,会将 prodversionmin 限定为最低 '64.0.3242' ,会导致其他浏览器因版本问题无法更新
*/
public crx3(): Promise<any> {
return new Promise<any>((resolve?: any, reject?: any) => {
console.log("正在打包 crx");
crx3([PATH.join(this.rootPath, "dist/manifest.json")], {
keyPath: PATH.join(this.rootPath, "releases/key.pem"),
crxPath: this.crxFile,
zipPath: this.zipFile,
xmlPath: PATH.join(this.rootPath, "update/index.xml"),
crxURL: this.crxURL
})
.then(() => {
console.log("打包完成 %s", this.crxFile);
resolve(this.crxFile);
})
.catch(error => {
reject(error);
});
});
}
}
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pt-plugin-plus",
"version": "1.5.2",
"version": "1.6.0",
"author": {
"name": "ronggang",
"url": "https://github.com/ronggang"
Expand All @@ -25,9 +25,7 @@
"build:content": "webpack --config webpack/prod-content.js --progress",
"zip": "ts-node --skip-project ./deploy/index.ts -z",
"package": "ts-node --skip-project ./deploy/index.ts -p",
"release": "yarn build && yarn package",
"deploy:chrome": "ts-node --skip-project ./deploy/index.ts -pc",
"deploy": "yarn build && yarn deploy:chrome"
"release": "yarn build && yarn package"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^4.4.0",
Expand Down Expand Up @@ -80,7 +78,6 @@
"babel-eslint": "^10.0.1",
"copy-webpack-plugin": "^4.6.0",
"crx": "^5.0.1",
"crx3": "^1.1.3",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^9.0.0",
"git-commit-id": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"message": "PT Plugin Plus"
},
"manifest_shortName": {
"message": "PT Plugin Plus"
"message": "PTPP"
},
"manifest_appDescription": {
"message": "PT 助手,一个可以提升 PT 站点使用效率的工具。"
Expand Down
Binary file modified public/libs/materialIcons/font.woff2
Binary file not shown.
3 changes: 1 addition & 2 deletions public/libs/materialIcons/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
}
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_manifest_appName__",
"short_name": "__MSG_manifest_shortName__",
"version": "1.5.2",
"version": "1.6.0",
"description": "__MSG_manifest_appDescription__",
"manifest_version": 2,
"default_locale": "zh_CN",
Expand Down
36 changes: 18 additions & 18 deletions resource/sites/audiences.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,68 +14,68 @@
"schema": "NexusPHP",
"host": "audiences.me",
"levelRequirements": [{
"level": "1",
"level": "1",
"name": "Power User",
"interval": "5",
"downloaded": "120GB",
"ratio": "2.0",
"seedingPoints": "0",
"seedingPoints": "160000",
"privilege": "查看NFO文档;查看用户列表;请求续种;查看其它用户的种子历史;删除自己上传的字幕"
},{
"level": "2",
"level": "2",
"name": "Elite User",
"interval": "15",
"downloaded": "240GB",
"ratio": "2.5",
"seedingPoints": "0",
"seedingPoints": "250000",
"privilege": ""
},{
"level": "3",
"level": "3",
"name": "Crazy User",
"interval": "24",
"downloaded": "400GB",
"ratio": "3.0",
"seedingPoints": "0",
"seedingPoints": "360000",
"privilege": "查看排行榜"
},{
"level": "4",
"level": "4",
"name": "Insane User",
"interval": "40",
"downloaded": "600GB",
"ratio": "3.5",
"seedingPoints": "0",
"seedingPoints": "500000",
"privilege": ""
},{
"level": "5",
"level": "5",
"name": "Veteran User",
"interval": "60",
"downloaded": "900GB",
"ratio": "4.0",
"seedingPoints": "0",
"seedingPoints": "660000",
"privilege": "查看其它用户的评论、帖子历史"
},{
"level": "6",
"level": "6",
"name": "Extreme User",
"interval": "80",
"downloaded": "2048BB",
"downloaded": "2048GB",
"ratio": "4.5",
"seedingPoints": "0",
"seedingPoints": "880000",
"privilege": "永远保留账号;更新过期的外部信息"
},{
"level": "7",
"level": "7",
"name": "Ultimate User",
"interval": "100",
"downloaded": "4096GB",
"ratio": "5.0",
"seedingPoints": "0",
"ratio": "4.5",
"seedingPoints": "1080000",
"privilege": ""
},{
"level": "8",
"level": "8",
"name": "Nexus Master",
"interval": "112",
"downloaded": "8192GB",
"ratio": "5.0",
"seedingPoints": "0",
"seedingPoints": "1280000",
"privilege": ""
}],
"collaborator": "Audiences",
Expand Down
76 changes: 75 additions & 1 deletion resource/sites/carpt.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,80 @@
"tags": [],
"schema": "NexusPHP",
"host": "carpt.net",
"levelRequirements": [
{
"level": 1,
"name": "Power User",
"interval": "4",
"downloaded": "50GB",
"ratio": "2",
"seedingPoints": "40000",
"privilege": "得到一个邀请名额;可以直接发布种子;可以查看NFO文档;可以查看用户列表;可以请求续种;可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"\");可以删除自己上传的字幕。"
},
{
"level": 2,
"name": "Elite User",
"interval": "8",
"downloaded": "120GB",
"ratio": "3",
"seedingPoints": "80000",
"privilege": "Elite User及以上用户封存账号后不会被删除。"
},
{
"level": 3,
"name": "Crazy User",
"interval": "15",
"downloaded": "300GB",
"ratio": "4",
"seedingPoints": "150000",
"privilege": "得到两个邀请名额;可以在做种/下载/发布的时候选择匿名模式。"
},
{
"level": 4,
"name": "Insane User",
"interval": "25",
"downloaded": "500GB",
"ratio": "5",
"seedingPoints": "250000",
"privilege": "可以查看普通日志。"
},
{
"level": 5,
"name": "Veteran User",
"interval": "40",
"downloaded": "750GB",
"ratio": "6",
"seedingPoints": "400000",
"privilege": "得到三个邀请名额;可以查看其它用户的评论、帖子历史。"
},
{
"level": 6,
"name": "Extreme User",
"interval": "60",
"downloaded": "1TB",
"ratio": "7",
"seedingPoints": "600000",
"privilege": "可以更新过期的外部信息;可以查看Extreme User论坛;Extreme User及以上用户会永远保留账号。"
},
{
"level": 7,
"name": "Ultimate User",
"interval": "80",
"downloaded": "1.5TB",
"ratio": "8",
"seedingPoints": "800000",
"privilege": "得到五个邀请名额。"
},
{
"level": 8,
"name": "Nexus Master",
"interval": "100",
"downloaded": "3TB",
"ratio": "9",
"seedingPoints": "1000000",
"privilege": "得到十个邀请名额;可以发送邀请。"
}
],
"collaborator": "koal",
"selectors": {
"userSeedingTorrents": {
Expand All @@ -31,4 +105,4 @@
}
}
}
}
}
18 changes: 18 additions & 0 deletions resource/sites/cinemageddon.net/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
"pages": ["/browse.php"],
"scripts": ["/schemas/NexusPHP/common.js", "browse.js"]
}],
"levelRequirements": [
{
"level": "1",
"name": "Power User",
"uploaded": "25GB",
"downloaded": "20GB",
"ratio": "1.2",
"privilege": "Maximum of 8 concurrent downloads"
},
{
"level": "2",
"name": "CG Superfan",
"uploaded": "200GB",
"downloaded": "20GB",
"ratio": "1.5",
"privilege": "Maximum of 12 concurrent downloads"
}
],
"searchEntryConfig": {
"page": "/browse.php",
"resultType": "html",
Expand Down
28 changes: 27 additions & 1 deletion resource/sites/filelist.io/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@
"scripts": ["/schemas/NexusPHP/common.js", "browse.js"]
}],
"host": "filelist.io",
"levelRequirements": [
{
"level": 1,
"name": "Power User",
"interval": "4",
"downloaded": "25GB",
"ratio": "1.05",
"privilege": "It can download DOX files larger than 1MB. This class has the right to apply to uploader status."
},
{
"level": 2,
"name": "Addict",
"interval": "26",
"downloaded": "500GB",
"ratio": "4.00",
"privilege": "This class has the right to request a Custom Title. This class is entitled to requests."
},
{
"level": 3,
"name": "Elite",
"interval": "209",
"downloaded": "4TB",
"ratio": "5.00",
"privilege": "This class gives you the right to give reputation to other users."
}
],
"searchEntryConfig": {
"page": "/browse.php",
"queryString": "search=$key$&cat=0&searchin=1&sort=2",
Expand Down Expand Up @@ -90,4 +116,4 @@
}
}
}
}
}
Loading

0 comments on commit c9159aa

Please sign in to comment.