Skip to content

Commit

Permalink
Merge pull request #35 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W authored Sep 4, 2022
2 parents 14a12c0 + 9ee5214 commit 51db808
Show file tree
Hide file tree
Showing 6 changed files with 1,167 additions and 1,138 deletions.
108 changes: 0 additions & 108 deletions deploy/chrome.ts

This file was deleted.

18 changes: 2 additions & 16 deletions deploy/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Package from "./package";
import ChromeWebStore from "./chrome";
import * as program from "commander";

class Deployer {
Expand All @@ -13,7 +12,6 @@ class Deployer {
.version("0.0.1")
.option("-p, --package", "打包文件")
.option("-z, --zip", "打包文件")
.option("-c, --chrome", "发布至 Chrome Web Store")
.action(options => {
this.options = options;
this.init();
Expand All @@ -25,28 +23,16 @@ class Deployer {
private init() {
// 打包
if (this.options.package) {
new Package(process.env.CRX_PRIVATE_KEY).start().then(file => {
this.publish(file);
});
new Package(process.env.CRX_PRIVATE_KEY).start().then(file => {});
} else if (this.options.zip) {
new Package().zip();
} else {
this.publish();
}
} else {}
}

/**
* 发布至应用市场
* @param file
*/
private publish(file?: string) {
if (this.options.chrome) {
const chromeWebStore = new ChromeWebStore(file);
chromeWebStore.upload().then(() => {
chromeWebStore.publish();
});
}
}
}

new Deployer();
67 changes: 33 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,74 +30,73 @@
"deploy": "yarn build && yarn deploy:chrome"
},
"dependencies": {
"archiver": "^3.1.1",
"archiver": "^5.3.1",
"basiccontext": "^3.5.1",
"blueimp-md5": "^2.10.0",
"blueimp-md5": "^2.19.0",
"commander": "^4.0.1",
"crypto-js": "^3.1.9-1",
"dayjs": "^1.8.11",
"dayjs": "^1.11.5",
"dom-to-image": "^2.6.0",
"dotenv": "^8.2.0",
"extend": "^3.0.2",
"file-saver": "^2.0.0",
"highcharts": "^7.2.2",
"highcharts-vue": "^1.2.0",
"i18next": "^17.0.3",
"jszip": "^3.4.0",
"file-saver": "^2.0.5",
"highcharts": "^10.2.1",
"highcharts-vue": "^1.4.0",
"i18next": "^21.9.1",
"jszip": "^3.10.1",
"marked": "^0.7.0",
"parse-torrent": "^7.0.1",
"ua-parser-js": "^0.7.20",
"url-parse": "^1.4.4",
"vue": "^2.5.17",
"ua-parser-js": "^1.0.2",
"url-parse": "^1.5.10",
"vue": "~2.6.14",
"vue-class-component": "^6.3.2",
"vue-i18n": "^8.11.2",
"vue-property-decorator": "^7.0.0",
"vue-router": "^3.0.1",
"vue-router": "~3.5.4",
"vuetify": "^1.3.0",
"vuex": "^3.0.1",
"webdav": "^2.10.0"
"webdav": "^3.6.2"
},
"devDependencies": {
"@types/archiver": "^3.0.0",
"@types/blueimp-md5": "^2.7.0",
"@types/archiver": "^5.3.1",
"@types/blueimp-md5": "^2.18.0",
"@types/chrome": "^0.0.75",
"@types/crypto-js": "^3.1.43",
"@types/dom-to-image": "^2.6.2",
"@types/extend": "^3.0.0",
"@types/file-saver": "^2.0.0",
"@types/jquery": "^3.3.22",
"@types/dom-to-image": "^2.6.4",
"@types/extend": "^3.0.1",
"@types/file-saver": "^2.0.5",
"@types/jquery": "^3.5.14",
"@types/marked": "^0.7.2",
"@types/parse-torrent": "^5.8.3",
"@types/ua-parser-js": "^0.7.33",
"@types/url-parse": "^1.4.2",
"@types/parse-torrent": "^5.8.4",
"@types/ua-parser-js": "^0.7.36",
"@types/url-parse": "^1.4.8",
"@vue/cli-plugin-babel": "^3.0.5",
"@vue/cli-plugin-eslint": "^3.0.5",
"@vue/cli-plugin-typescript": "^3.2.0",
"@vue/cli-service": "^3.0.5",
"@vue/eslint-config-typescript": "^3.2.0",
"babel-eslint": "^10.0.1",
"chrome-webstore-upload": "^0.2.2",
"copy-webpack-plugin": "^4.6.0",
"crx": "^5.0.1",
"crx3": "^1.1.1",
"eslint": "^5.8.0",
"eslint-plugin-vue": "^5.0.0-0",
"crx3": "^1.1.3",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^7.0.0",
"git-commit-id": "^2.0.1",
"sass": "^1.23.7",
"sass-loader": "^7.1.0",
"sass": "^1.54.8",
"sass-loader": "~7.3.1",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"terser-webpack-plugin": "^2.2.1",
"ts-loader": "^5.3.1",
"ts-node": "^8.5.2",
"typescript": "^3.0.0",
"uglifyjs-webpack-plugin": "^2.0.1",
"uglifyjs-webpack-plugin": "~2.1.3",
"vue-cli-plugin-vuetify": "^0.4.6",
"vue-template-compiler": "^2.5.17",
"vuetify-loader": "^1.0.5",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2",
"webpack-merge": "^4.1.4"
"vue-template-compiler": "~2.6.14",
"vuetify-loader": "~1.7.3",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-merge": "^4.2.2"
},
"eslintConfig": {
"root": true,
Expand Down
2 changes: 1 addition & 1 deletion src/background/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export default class Controller {
type: EDataResultType.success,
msg:
this.service.i18n.t("service.controller.torrentAdded", {
name: downloadOptions.title
title: downloadOptions.title
}) +
(downloadOptions.savePath
? this.service.i18n.t("service.controller.torrentSavePath", {
Expand Down
2 changes: 1 addition & 1 deletion src/options/views/search/SearchTorrent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@
>{{ tag.name }}</span>
</span>

<span v-if="props.item.subTitle">{{ props.item.subTitle }}</span>
<span v-if="props.item.subTitle" :title="props.item.subTitle">{{ props.item.subTitle }}</span>
</div>

<v-layout v-if="$vuetify.breakpoint.xs">
Expand Down
Loading

0 comments on commit 51db808

Please sign in to comment.