Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Feb 7, 2018
2 parents fa0d3e7 + 247a913 commit fd20843
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 14 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@
4. 打包完成之后即可拷贝出dist目录下的文件到想要的文件夹下,运行里面的dingtalk文件即可安装应用。

## 截图效果
1. 二维码登录页面![1.png](./screenshot/1.png)
2. 账号密码登录页面![2.png](./screenshot/2.png)
3. 登录后页面展示![3.png](./screenshot/3.png)
4. 邮箱打开效果![4.png](./screenshot/4.png)
5. 截图效果预览![5.png](./screenshot/5.png)
6. 网络错误页面![6.png](./screenshot/6.png)
7. 网络错误页面![7.png](./screenshot/7.png)
1. 二维码登录页面
![1.png](./screenshot/1.png)
2. 账号密码登录页面
![2.png](./screenshot/2.png)
3. 登录后页面展示
![3.png](./screenshot/3.png)
4. 邮箱打开效果
![4.png](./screenshot/4.png)
5. 截图效果预览
![5.png](./screenshot/5.png)
6. 网络错误页面
![6.png](./screenshot/6.png)
7. 网络错误页面
![7.png](./screenshot/7.png)

## 功能说明
1. 本版本是基于网页版钉钉和electron制作的
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/shortcut-capture-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ipcRenderer.on('shortcut-capture', () => {
width: display.width,
height: display.height,
quality: 'best'
}).toDataURL()
}).toPNG()
}
})
}
Expand Down
3 changes: 2 additions & 1 deletion app/plugins/shortcut-capture.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const {
app,
globalShortcut,
ipcMain,
BrowserWindow,
Expand Down Expand Up @@ -102,7 +103,7 @@ function createWindow (source, setting) {
$win.webContents.send('dom-ready', { source, setting })
$win.focus()
})
const filename = path.join(__dirname, '../views/shortcut-capture.html')
const filename = path.join(app.getAppPath(), './app/views/shortcut-capture.html')
$win.loadURL(filename)
$windows.push($win)
}
Expand Down
5 changes: 4 additions & 1 deletion app/views/css/shortcut-capture.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ img {
canvas {
position: absolute;
border: 2px dashed #333;
margin-top: -2px;
margin-left: -2px;
box-sizing: border-box;
}

.capture-toolbar {
Expand All @@ -52,7 +55,7 @@ canvas {
}

canvas, .capture-toolbar {
transform: translateZ(0);
transform: translate3d(0, 0, 0);
}

.capture-toolbar button {
Expand Down
3 changes: 2 additions & 1 deletion app/views/js/shortcut-capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class Injector {
this.onDrawImage()
})

this.$capture.src = this.source.thumbnail
const file = new Blob([this.source.thumbnail], { type: 'image/png' })
this.$capture.src = URL.createObjectURL(file)
this.$captureToolbar = document.querySelector('#capture-toolbar')
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dingtalk",
"version": "1.5.0",
"description": "钉钉linux桌面版",
"description": "钉钉linux桌面版,基于electron开发",
"main": "./app/index.js",
"scripts": {
"dev": "electron .",
Expand Down
Binary file modified screenshot/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')
const { build, Platform } = require('electron-builder')
const chalk = require('chalk')
const { author } = require('../package.json')
const { author, description } = require('../package.json')

build({
targets: Platform.LINUX.createTarget(),
Expand All @@ -11,7 +11,7 @@ build({
productName: '钉钉',
asar: true,
linux: {
description: '钉钉linux版本',
description,
icon: path.join(__dirname, '../icon'),
target: 'deb',
category: 'InstantMessaging'
Expand Down

0 comments on commit fd20843

Please sign in to comment.