-
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
0 parents
commit 9abee56
Showing
48 changed files
with
12,123 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not ie <= 8 |
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,16 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
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,17 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
}, | ||
'extends': [ | ||
'plugin:vue/recommended', // strongly-recommended | ||
'@vue/standard' | ||
], | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
} | ||
} |
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,27 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
/tests/e2e/videos/ | ||
/tests/e2e/screenshots/ | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw* | ||
|
||
#Electron-builder output | ||
/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
autoprefixer: {} | ||
} | ||
} |
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,26 @@ | ||
# Images Uploader | ||
|
||
## Project setup | ||
``` | ||
yarn install | ||
``` | ||
|
||
### To start a development server: | ||
|
||
If you use [Yarn](https://yarnpkg.com/en/) (strongly recommended): | ||
|
||
`yarn serve:electron` | ||
|
||
or if you use NPM: | ||
|
||
`npm run serve:electron` | ||
|
||
### To build your app: | ||
|
||
With Yarn: | ||
|
||
`yarn build:electron` | ||
|
||
or with NPM: | ||
|
||
`npm run build: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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
presets: [ | ||
// [ | ||
// '@babel/preset-env', { | ||
// useBuiltIns: 'entry' // из-за vuetify | ||
// } | ||
// ], | ||
['@vue/app', { | ||
useBuiltIns: 'entry' // из-за vuetify | ||
}] // https://www.npmjs.com/package/@vue/babel-preset-app#usebuiltins | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"pluginsFile": "tests/e2e/plugins/index.js" | ||
} |
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 @@ | ||
GH_TOKEN=49b84e97b8953b7e73b6ec5fe102f6b96ca3a9c6 |
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,23 @@ | ||
module.exports = { | ||
moduleFileExtensions: [ | ||
'js', | ||
'jsx', | ||
'json', | ||
'vue' | ||
], | ||
transform: { | ||
'^.+\\.vue$': 'vue-jest', | ||
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', | ||
'^.+\\.jsx?$': 'babel-jest' | ||
}, | ||
moduleNameMapper: { | ||
'^@/(.*)$': '<rootDir>/src/$1' | ||
}, | ||
snapshotSerializers: [ | ||
'jest-serializer-vue' | ||
], | ||
testMatch: [ | ||
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)' | ||
], | ||
testURL: 'http://localhost/' | ||
} |
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,53 @@ | ||
{ | ||
"name": "vue-electron-images-uploader", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint", | ||
"test:unit": "vue-cli-service test:unit", | ||
"test:e2e": "vue-cli-service test:e2e", | ||
"build:electron": "vue-cli-service build:electron", | ||
"serve:electron": "vue-cli-service serve:electron", | ||
"postinstall": "electron-builder install-app-deps" | ||
}, | ||
"dependencies": { | ||
"@babel/polyfill": "^7.0.0", | ||
"auto-launch": "^5.0.5", | ||
"axios": "^0.18.0", | ||
"cropperjs": "^1.4.1", | ||
"electron-positioner": "^4.1.0", | ||
"mousetrap": "^1.6.2", | ||
"vue": "^2.5.17", | ||
"vue-plugin-axios": "^1.0.12", | ||
"vue-router": "^3.0.1", | ||
"vuetify": "^1.2.2", | ||
"vuex": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^3.0.0", | ||
"@vue/cli-plugin-e2e-cypress": "^3.0.0", | ||
"@vue/cli-plugin-eslint": "^3.0.0", | ||
"@vue/cli-plugin-unit-jest": "^3.0.0", | ||
"@vue/cli-service": "^3.0.0", | ||
"@vue/eslint-config-standard": "^3.0.1", | ||
"@vue/test-utils": "^1.0.0-beta.20", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^23.0.1", | ||
"electron": "^2.0.2", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^3.0.2", | ||
"vue-cli-plugin-electron-builder": "^1.0.0-rc.2", | ||
"vue-template-compiler": "^2.5.17" | ||
}, | ||
"main": "dist_electron/bundled/background.js", | ||
"build": { | ||
"appId": "com.vue.electron.builder", | ||
"productName": "Vue + Electron: images uploader", | ||
"provider": "github", | ||
"win": { | ||
"publish": ["github", "bintray"] | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<% if (BASE_URL === './') { %><base href="app://./" /><% } %> | ||
<% if (VUE_APP_NODE_MODULES_PATH !== "false") { %><script>require('module').globalPaths.push('<%= VUE_APP_NODE_MODULES_PATH %>')</script><% } %> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
<title>Vue + Electron Images Uploader</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but vue-electron-builder doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 @@ | ||
<template> | ||
<div id="app"> | ||
<!--<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons' rel="stylesheet">--> | ||
<link | ||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" | ||
rel="stylesheet" | ||
> | ||
|
||
<router-view/> | ||
</div> | ||
</template> | ||
|
||
<style lang="stylus"> | ||
#app | ||
/*font-family 'Avenir', Helvetica, Arial, sans-serif*/ | ||
-webkit-font-smoothing antialiased | ||
-moz-osx-font-smoothing grayscale | ||
text-align center | ||
color #2c3e50 | ||
::-webkit-scrollbar { | ||
width: 10px; | ||
} | ||
::-webkit-scrollbar-track { | ||
box-shadow: inset 0 0 10px 10px #f1f1f1; | ||
border: solid 2px transparent; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
box-shadow: inset 0 0 10px 10px #939393; | ||
border: solid 2px transparent; | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
mounted () { | ||
this.$electron.ipcRenderer.on('tray-expand', (event, message) => { | ||
this.$router.push('/file') | ||
}) | ||
} | ||
} | ||
</script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.