Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerliftNoob committed Jan 31, 2018
1 parent 25e762d commit 7faaed5
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# RapidYouDaoNote
给自己~~开发~~随便弄的一个轻量级Linux版有道云笔记客户端
## 下载
[下载最新版本]
## 基于[electron]开发
[electron]大法好,~~有了electron,腰不酸了腿不痛了~~
## 使用方法
下载之后解压,然后双击rapidyoudaonote就成了。
关闭的时候要先退出微信,才能关闭。(不会出现不小心关了还要重新扫码的~~事故~~了。)
## 安全
直接使用有道云笔记网页版进行封装,没有对数据传输做任何干预与处理,和使用网页版一样安全。
## 为啥要弄个这玩意?
懒得打开浏览器
## 源码如何使用
##### 部署:
./code文件夹下是代码,clone或者download之后进入该文件夹,下载[electron]
##### 运行:
```sh
npx electron .
```
##### 重新打包
请参考[electron]文档

## 截图
扫码登录界面:
<p align="center">
<img src="https://github.com/iBeiKeCyn/rapidwechat/blob/master/screenshot/pic.png?raw=true" alt="chat">
</p>





[下载最新版本]: https://github.com/iBeiKeCyn/RapidYouDaoNote/releases
[electron]: https://github.com/electron/electron
11 changes: 11 additions & 0 deletions code/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>RapidYouDaoNote</title>
<meta http-equiv="refresh" content="0;url=https://note.youdao.com/signIn/index.html?&callback=https%3A%2F%2Fnote.youdao.com%2Fweb%2F&from=web">
</head>
<body>
loading!
</body>
</html>
31 changes: 31 additions & 0 deletions code/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')

let win
function createWindow () {
win = new BrowserWindow({
width: 1000,
height: 800,
icon: path.join(__dirname,'resources/icon/icon.png')
})
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}))
win.on('closed', () => {
win = null
})
}
app.on('ready', createWindow)
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', () => {
if (win === null) {
createWindow()
}
})
6 changes: 6 additions & 0 deletions code/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name" : "RapidYouDaoNote",
"version" : "0.1.0",
"main" : "main.js"

}
Binary file added code/resources/icon/icon.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 added screenshot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7faaed5

Please sign in to comment.