forked from Molunerfinn/PicGo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72e6e2a
commit 4e67a75
Showing
91 changed files
with
8,385 additions
and
6,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
sourceType: 'module' | ||
globals: { | ||
__static: 'readonly' | ||
}, | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
extends: 'standard', | ||
globals: { | ||
__static: true | ||
}, | ||
plugins: [ | ||
'html' | ||
parser: "vue-eslint-parser", | ||
'extends': [ | ||
'plugin:vue/essential', | ||
'@vue/standard', | ||
'@vue/typescript' | ||
], | ||
'rules': { | ||
// allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
// allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 | ||
'plugins': ['@typescript-eslint'], | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | ||
}, | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ thumbs.db | |
!.gitkeep | ||
yarn-error.log | ||
docs/dist/ | ||
# local env files | ||
.env.local | ||
.env.*.local | ||
dist_electron/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
{ | ||
"eslint.enable": true, | ||
"eslint.autoFixOnSave": true | ||
"eslint.alwaysShowStatus": true, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"vue", | ||
"typescriptreact" | ||
], | ||
"[stylus]": { | ||
"editor.formatOnSave": true | ||
}, | ||
"stylusSupremacy.insertSemicolons": false, | ||
"stylusSupremacy.insertBraces": false, | ||
"stylusSupremacy.insertNewLineBetweenSelectors": true, | ||
"stylusSupremacy.insertParenthesisAroundIfCondition": false, | ||
"stylusSupremacy.alwaysUseNoneOverZero": true, | ||
"stylusSupremacy.alwaysUseZeroWithoutUnit": true, | ||
"stylusSupremacy.sortProperties": "grouped", | ||
"stylusSupremacy.quoteChar": "\"", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
The 996ICU License (996ICU) | ||
Version 0.1, March 2019 | ||
The MIT License (MIT) | ||
|
||
PACKAGE is distributed under LICENSE with the following restriction: | ||
Copyright (c) 2017-present, Molunerfinn | ||
|
||
The above license is only granted to entities that act in concordance | ||
with local labor laws. In addition, the following requirements must be | ||
observed: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
* The licencee must not, explicitly or implicitly, request or schedule | ||
their employees to work more than 45 hours in any single week. | ||
* The licencee must not, explicitly or implicitly, request or schedule | ||
their employees to be at work consecutively for 10 hours. | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,20 @@ | ||
{ | ||
"name": "picgo", | ||
"version": "2.1.2", | ||
"author": "Molunerfinn <[email protected]>", | ||
"description": "Easy to upload your pic & copy to write", | ||
"license": "MIT", | ||
"main": "./dist/electron/main.js", | ||
"private": true, | ||
"scripts": { | ||
"render": "webpack-dev-server --hot --colors --config .electron-vue/webpack.renderer.config.js --port 9080 --content-base app/dist", | ||
"build": "node .electron-vue/build.js && electron-builder", | ||
"release": "node .electron-vue/build.js && electron-builder", | ||
"build:dir": "node .electron-vue/build.js && electron-builder --dir", | ||
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js", | ||
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js", | ||
"dev": "node .electron-vue/dev-runner.js", | ||
"e2e": "npm run pack && mocha test/e2e", | ||
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src test", | ||
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src test", | ||
"pack": "npm run pack:main && npm run pack:renderer", | ||
"pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js", | ||
"pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js", | ||
"test": "npm run unit && npm run e2e", | ||
"unit": "karma start test/unit/karma.conf.js", | ||
"postinstall": "npm run lint:fix", | ||
"build:docs": "cross-env NODE_ENV=production webpack -p --config .electron-vue/webpack.docs.config.js", | ||
"docs": "webpack-dev-server --content-base docs/dist --config .electron-vue/webpack.docs.config.js --hot --inline", | ||
"patch": "npm version patch && git push origin master && git push origin --tags", | ||
"minor": "npm version minor && git push origin master && git push origin --tags", | ||
"major": "npm version major && git push origin master && git push origin --tags", | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint", | ||
"electron:build": "vue-cli-service electron:build", | ||
"electron:serve": "vue-cli-service electron:serve", | ||
"postinstall": "electron-builder install-app-deps", | ||
"postuninstall": "electron-builder install-app-deps", | ||
"cz": "git-cz", | ||
"bump": "bump-version" | ||
"bump": "bump-version", | ||
"release": "electron:build" | ||
}, | ||
"main": "background.js", | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
|
@@ -44,144 +29,53 @@ | |
} | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"./node_modules/@picgo/bump-version/commitlint-picgo" | ||
] | ||
}, | ||
"build": { | ||
"productName": "PicGo", | ||
"appId": "com.molunerfinn.picgo", | ||
"directories": { | ||
"output": "build" | ||
}, | ||
"files": [ | ||
"dist/electron/**/*" | ||
], | ||
"dmg": { | ||
"contents": [ | ||
{ | ||
"x": 410, | ||
"y": 150, | ||
"type": "link", | ||
"path": "/Applications" | ||
}, | ||
{ | ||
"x": 130, | ||
"y": 150, | ||
"type": "file" | ||
} | ||
] | ||
}, | ||
"mac": { | ||
"icon": "build/icons/icon.icns", | ||
"extendInfo": { | ||
"LSUIElement": 1 | ||
} | ||
}, | ||
"win": { | ||
"icon": "build/icons/icon.ico", | ||
"target": "nsis" | ||
}, | ||
"nsis": { | ||
"oneClick": false, | ||
"allowToChangeInstallationDirectory": true | ||
}, | ||
"linux": { | ||
"icon": "build/icons/" | ||
} | ||
"extends": ["./node_modules/@picgo/bump-version/commitlint-picgo"] | ||
}, | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"dateformat": "^3.0.3", | ||
"element-ui": "^2.4.11", | ||
"core-js": "^3.3.2", | ||
"element-ui": "^2.13.0", | ||
"fix-path": "^2.1.0", | ||
"fs-extra": "^4.0.2", | ||
"image-size": "^0.6.1", | ||
"keycode": "^2.1.9", | ||
"fs-extra": "^8.1.0", | ||
"keycode": "^2.2.0", | ||
"lodash-id": "^0.14.0", | ||
"lowdb": "^1.0.0", | ||
"md5": "^2.2.1", | ||
"melody.css": "^1.0.2", | ||
"picgo": "^1.3.7", | ||
"qiniu": "^7.1.1", | ||
"vue": "^2.3.3", | ||
"vue-electron": "^1.0.6", | ||
"vue-gallery": "^1.2.4", | ||
"vue": "^2.6.10", | ||
"vue-gallery": "^2.0.1", | ||
"vue-lazyload": "^1.2.6", | ||
"vue-router": "^2.5.3", | ||
"vuex": "^2.3.1", | ||
"ws": "3.3.1" | ||
"vue-router": "^3.1.3" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.5.2", | ||
"@picgo/bump-version": "^1.0.2", | ||
"babel-core": "^6.25.0", | ||
"babel-eslint": "^7.2.3", | ||
"babel-loader": "^7.1.1", | ||
"babel-plugin-istanbul": "^4.1.1", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-register": "^6.24.1", | ||
"babili-webpack-plugin": "^0.1.2", | ||
"cfonts": "^1.1.3", | ||
"chai": "^4.0.0", | ||
"chalk": "^2.1.0", | ||
"commitizen": "^3.0.7", | ||
"conventional-changelog": "^3.0.6", | ||
"copy-webpack-plugin": "^4.0.1", | ||
"cross-env": "^5.0.5", | ||
"css-loader": "^0.28.4", | ||
"cz-customizable": "^5.10.0", | ||
"del": "^3.0.0", | ||
"devtron": "^1.4.0", | ||
"electron": "^5.0.1", | ||
"electron-builder": "^20.38.4", | ||
"electron-debug": "^1.4.0", | ||
"electron-devtools-installer": "^2.2.0", | ||
"eslint": "^4.4.1", | ||
"eslint-config-standard": "^10.2.1", | ||
"eslint-friendly-formatter": "^3.0.0", | ||
"eslint-loader": "^2.1.1", | ||
"eslint-plugin-html": "^3.1.1", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-node": "^5.1.1", | ||
"eslint-plugin-promise": "^3.5.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"file-loader": "^3.0.1", | ||
"html-webpack-plugin": "^3.2.0", | ||
"husky": "^1.3.1", | ||
"inject-loader": "^3.0.0", | ||
"inquirer": "^6.3.1", | ||
"karma": "^1.3.0", | ||
"karma-chai": "^0.1.0", | ||
"karma-coverage": "^1.1.1", | ||
"karma-electron": "^5.1.1", | ||
"karma-mocha": "^1.2.0", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-spec-reporter": "^0.0.31", | ||
"karma-webpack": "^2.0.1", | ||
"mini-css-extract-plugin": "0.4.0", | ||
"mocha": "^3.0.2", | ||
"multispinner": "^0.2.1", | ||
"node-loader": "^0.6.0", | ||
"pug": "^2.0.0-rc.4", | ||
"pug-loader": "^2.3.0", | ||
"pug-plain-loader": "^1.0.0", | ||
"require-dir": "^0.3.0", | ||
"spectron": "^3.7.1", | ||
"style-loader": "^0.23.1", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^3.0.1", | ||
"url-loader": "^1.1.2", | ||
"vue-html-loader": "^1.2.4", | ||
"vue-loader": "^15.4.2", | ||
"vue-style-loader": "^4.1.2", | ||
"vue-template-compiler": "^2.4.2", | ||
"webpack": "^4.15.1", | ||
"webpack-cli": "^3.0.8", | ||
"webpack-dev-server": "^3.1.4", | ||
"webpack-hot-middleware": "^2.22.2", | ||
"webpack-merge": "^4.1.3" | ||
"@commitlint/cli": "^8.2.0", | ||
"@picgo/bump-version": "^1.0.3", | ||
"@types/fs-extra": "^8.0.1", | ||
"@types/inquirer": "^6.5.0", | ||
"@types/lowdb": "^1.0.9", | ||
"@types/node": "10.17.6", | ||
"@types/request-promise-native": "^1.0.17", | ||
"@vue/cli-plugin-babel": "^4.0.0", | ||
"@vue/cli-plugin-eslint": "^4.0.0", | ||
"@vue/cli-plugin-router": "^4.0.0", | ||
"@vue/cli-plugin-typescript": "^4.0.0", | ||
"@vue/cli-service": "^4.0.0", | ||
"@vue/eslint-config-standard": "^4.0.0", | ||
"@vue/eslint-config-typescript": "^4.0.0", | ||
"commitizen": "^4.0.3", | ||
"conventional-changelog": "^3.1.18", | ||
"cz-customizable": "^6.2.0", | ||
"electron": "^6.0.0", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"husky": "^3.1.0", | ||
"stylus": "^0.54.7", | ||
"stylus-loader": "^3.0.2", | ||
"typescript": "~3.5.3", | ||
"vue-cli-plugin-electron-builder": "^1.4.2", | ||
"vue-property-decorator": "^8.3.0", | ||
"vue-template-compiler": "^2.6.10" | ||
}, | ||
"resolutions": { | ||
"**/@types/node": "10.17.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
autoprefixer: {} | ||
} | ||
} |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Binary file not shown.
Oops, something went wrong.