-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jingchenxu/electron-builder
Electron builder
- Loading branch information
Showing
21 changed files
with
581 additions
and
9,141 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
node_modules | ||
/dist | ||
/outApp | ||
/outinstaller | ||
|
||
/tests/e2e/videos/ | ||
/tests/e2e/screenshots/ | ||
|
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
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,31 +1,73 @@ | ||
{ | ||
"name": "GoogleKeep", | ||
"author": "[email protected]", | ||
"description": "Rosa", | ||
"license": "ISC", | ||
"version": "0.1.0", | ||
"private": true, | ||
"main": "main.js", | ||
"build": { | ||
"asar": true, | ||
"appId": "com.deepwater.Rosa", | ||
"copyright": "[email protected]", | ||
"productName": "Rosa", | ||
"directories": { | ||
"output": "outInstaller" | ||
}, | ||
"dmg": { | ||
"background": "./src/assets/rosa.jpg", | ||
"window": { | ||
"x": 100, | ||
"y": 100, | ||
"width": 600, | ||
"height": 500 | ||
} | ||
}, | ||
"win": { | ||
"icon": "./public/win.ico", | ||
"publish": ["github"] | ||
}, | ||
"nsis": { | ||
"oneClick": false, | ||
"allowToChangeInstallationDirectory": true | ||
} | ||
}, | ||
"scripts": { | ||
"start": "cross-env NODE_ENV=devlopment electron .", | ||
"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", | ||
"package-win": "cross-env NODE_ENV=production electron-packager . GoogleKeep --platform=win32 --arch=x64 --out ./outApp --icon=./dist/favicon.ico --app-version=0.0.1 --electron-version=2.0.8 --overwrite" | ||
"package-win": "cross-env NODE_ENV=production electron-packager . GoogleKeep --platform=win32 --arch=x64 --out ./outApp --icon=./dist/favicon.ico --app-version=0.0.1 --electron-version=2.0.8 --overwrite", | ||
"build-win": "build --win --x64" | ||
}, | ||
"dependencies": { | ||
"electron": "^2.0.8", | ||
"mysql": "^2.16.0", | ||
"nedb": "^1.8.0", | ||
"register-service-worker": "^1.0.0", | ||
"vue": "^2.5.17", | ||
"vue-class-component": "^6.0.0", | ||
"vue-property-decorator": "^7.0.0", | ||
"vue-router": "^3.0.1", | ||
"vue-waterfall": "^1.0.6", | ||
"vuetify": "^1.0.19", | ||
"vuex": "^3.0.1" | ||
"vuex": "^3.0.1", | ||
"bignumber.js": "^4.1.0", | ||
"readable-stream": "^2.3.6", | ||
"safe-buffer": "^5.1.2", | ||
"sqlstring": "^2.3.1", | ||
"async": "^0.2.10", | ||
"binary-search-tree": "^0.2.5", | ||
"localforage": "^1.3.0", | ||
"mkdirp": "^0.5.1", | ||
"underscore": "^1.4.4", | ||
"core-util-is": "^1.0.2", | ||
"immediate": "^3.0.6", | ||
"inherits": "^2.0.3", | ||
"isarray": "^1.0.0", | ||
"lie": "^3.1.1", | ||
"process-nextick-args": "^2.0.0", | ||
"util-deprecate": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/polyfill": "^7.0.0-beta.49", | ||
|
@@ -44,6 +86,8 @@ | |
"babel-plugin-transform-imports": "^1.4.1", | ||
"chai": "^4.1.2", | ||
"cross-env": "^5.2.0", | ||
"electron": "^2.0.8", | ||
"electron-builder": "^20.28.4", | ||
"electron-packager": "^12.1.1", | ||
"less": "^3.0.4", | ||
"less-loader": "^4.1.0", | ||
|
Binary file not shown.
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,4 @@ | ||
{"height":400,"id":1537257592854,"noteContent":"14","noteTitle":"14","width":300,"_id":"Uq3bGApRtXiNKhSw","createdAt":{"$$date":1537257593027},"updatedAt":{"$$date":1537257593027}} | ||
{"height":400,"id":1537259088397,"noteContent":"15","noteTitle":"15","width":300,"_id":"dq6TWS3kIPVsilwO","createdAt":{"$$date":1537259088594},"updatedAt":{"$$date":1537259088594}} | ||
{"height":400,"id":1537257475223,"noteContent":"13","noteTitle":"13","width":300,"_id":"hcNIYxIQecbiji7a","createdAt":{"$$date":1537257475400},"updatedAt":{"$$date":1537257475400}} | ||
{"height":400,"id":1537257588239,"noteContent":"11","noteTitle":"11","width":300,"_id":"llq22mSNgAZMouVG","createdAt":{"$$date":1537257588393},"updatedAt":{"$$date":1537257588393}} |
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
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,24 @@ | ||
<template> | ||
<div class="color-selector"> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'color-selector', | ||
data () { | ||
return {} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.color-selector { | ||
width: 150px; | ||
height: 120px; | ||
background-color: grey; | ||
} | ||
</style> | ||
|
||
|
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,79 @@ | ||
<template> | ||
<div class="note-card-actions"> | ||
<v-layout row wrap> | ||
<v-flex xs2> | ||
<v-tooltip bottom> | ||
<v-btn slot="activator" small icon> | ||
<v-icon small color="grey">mdi-reminder</v-icon> | ||
</v-btn> | ||
<span>提醒我</span> | ||
</v-tooltip> | ||
</v-flex> | ||
<v-flex xs2> | ||
<v-tooltip bottom> | ||
<v-btn slot="activator" small icon> | ||
<v-icon small color="grey">mdi-account-plus</v-icon> | ||
</v-btn> | ||
<span>协作者</span> | ||
</v-tooltip> | ||
</v-flex> | ||
<v-flex xs2> | ||
<v-tooltip bottom> | ||
<v-btn slot="activator" small icon> | ||
<v-icon small color="grey">mdi-palette</v-icon> | ||
</v-btn> | ||
<span>更改颜色</span> | ||
</v-tooltip> | ||
</v-flex> | ||
<v-flex xs2> | ||
<v-tooltip bottom> | ||
<v-btn slot="activator" small icon> | ||
<v-icon small color="grey">image</v-icon> | ||
</v-btn> | ||
<span>添加图片</span> | ||
</v-tooltip> | ||
</v-flex> | ||
<v-flex xs2> | ||
<v-btn small icon> | ||
<v-icon small color="grey">mdi-package-down</v-icon> | ||
</v-btn> | ||
</v-flex> | ||
<v-flex xs2> | ||
<v-menu offset-y> | ||
<v-btn slot="activator" small icon> | ||
<v-icon color="grey">mdi-dots-vertical</v-icon> | ||
</v-btn> | ||
<v-list> | ||
<v-list-tile v-for="(item, index) in items" :key="index"> | ||
<v-list-tile-title>{{ item.title }}</v-list-tile-title> | ||
</v-list-tile> | ||
</v-list> | ||
</v-menu> | ||
</v-flex> | ||
</v-layout> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'note-card-actions', | ||
data () { | ||
return { | ||
items: [ | ||
{ title: '删除这条记事' }, | ||
{ title: '添加标签' }, | ||
{ title: '添加绘图' }, | ||
{ title: '复制' } | ||
], | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.note-card-actions { | ||
width: 240px; | ||
height: auto; | ||
} | ||
</style> | ||
|
Oops, something went wrong.