forked from cteamx/Thief
-
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
Showing
50 changed files
with
1,952 additions
and
2 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 C.TEAM | ||
|
||
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,206 @@ | ||
# Thief-Book | ||
一款真正的跨平台摸鱼神器 | ||
![b.png](./images/b.png) | ||
|
||
# 介绍 | ||
|
||
**Thief-Book** 是一款真正的`摸鱼神器`,可以更加隐秘性大胆的看小说。 | ||
|
||
- **隐蔽性** 自定义透明背景,随意调整大小,完美融入各种软件界面 | ||
- **快捷性** 三个快捷键,实现完美的摸鱼 | ||
- **跨平台** 支持 Mac+Win,Linux 暂未测试,请自行打包 | ||
|
||
# VScode | ||
|
||
Thief-Book 为用户提供 Vscode 版本,具体请看 https://github.com/cteams/Thief-Book-VSCode | ||
|
||
# 下载地址 | ||
|
||
https://github.com/cteams/Thief-Book/releases | ||
|
||
# 版本区分 | ||
|
||
- MAC 支持 桌面版 + 任务栏版 | ||
- WIN 只有 桌面版 | ||
|
||
# 使用效果 | ||
|
||
Mac 任务栏版本,任务栏过多会自动隐藏 | ||
|
||
![1.png](./images/1.png) | ||
|
||
此版本可以随意拖拽,自定义大小,自定义背景颜色和文字颜色 | ||
|
||
![2.png](./images/2.png) | ||
|
||
idea 使用效果 | ||
|
||
![2.png](./images/4.png) | ||
|
||
设置界面 | ||
|
||
GBK 会出现乱码,请勾选乱码选项 | ||
|
||
![3.png](./images/3.png) | ||
|
||
## 动态演示 | ||
|
||
图片过大,加载太慢请访问URL查看 | ||
|
||
**Mac** | ||
|
||
https://github.com/cteams/Thief-Book/blob/master/images/mac.gif | ||
|
||
**Win** | ||
|
||
https://github.com/cteams/Thief-Book/blob/master/images/win.gif | ||
|
||
**鼠标模式** | ||
|
||
切换鼠标模式,请先移动窗口到指定的位置(鼠标模式启动后不支持移动窗口),按下一页启动鼠标模式。 | ||
|
||
鼠标左键下一页,右键上一页,鼠标移开自动隐藏 | ||
|
||
https://github.com/cteams/Thief-Book/blob/master/images/mouse.gif | ||
|
||
# 快捷键 | ||
|
||
## 默认按键 | ||
|
||
### MAC | ||
|
||
<kbd>**Cmd+Option+M** </kbd> 老板键 | ||
|
||
<kbd>**Cmd+Option+,** </kbd>上一页 | ||
|
||
<kbd>**Cmd+Option+.**</kbd> 下一页 | ||
|
||
### WIN | ||
|
||
<kbd>**Ctrl+Alt+M** </kbd> 老板键 | ||
|
||
<kbd>**Ctrl+Alt+,** </kbd>上一页 | ||
|
||
<kbd>**Ctrl+Alt+.** </kbd>下一页 | ||
|
||
## 自定义按键列表 | ||
|
||
**自定义后需重启** | ||
|
||
> 快捷键可以包含多个功能键和一个键码的字符串,由符号+结合,用来定义你应用中的键盘快捷键 | ||
### 示例: | ||
|
||
- CmdOrCtrl+A | ||
- CmdOrCtrl+Shift+Z | ||
|
||
> 在 Linux 和 Windows 上, Command 键没有任何效果, 所以使用 CommandOrControl表述, macOS 是 Command ,在 Linux 和 Windows 上是Control。 | ||
> 使用 Alt 代替Option. Option 键只在 macOS 系统上存在, 而 Alt 键在任何系统上都有效. | ||
> Super键是指 Windows 和 Linux 系统上的 Windows 键,但在 macOS 里为 Cmd 键. | ||
### 可用的功能键 | ||
|
||
- Command (缩写为Cmd) | ||
- Control (缩写为Ctrl) | ||
- CommandOrControl (缩写为 CmdOrCtrl) | ||
- Alt | ||
- Option | ||
- AltGr | ||
- Shift | ||
- Super | ||
|
||
### 可用的普通按键 | ||
|
||
- 0 to 9 | ||
- A to Z | ||
- F1 to F24 | ||
- 类似~, !, @, #, $的标点符号 | ||
- Plus | ||
- Space | ||
- Tab | ||
- 大写锁定(Capslock) | ||
- 数字锁定(Numlock) | ||
- Backspace | ||
- Delete | ||
- Insert | ||
- Return (等同于 Enter) | ||
- Up, Down, Left and Right | ||
- Home 和 End | ||
- PageUp 和 PageDown | ||
- Escape (缩写为 Esc) | ||
- VolumeUp, VolumeDown 和 VolumeMute | ||
- MediaNextTrack、MediaPreviousTrack、MediaStop 和 MediaPlayPause | ||
- PrintScreen | ||
|
||
### 小键盘按键 | ||
|
||
- num1-num9 -数字1-数字9 | ||
- numdec - 小数点 | ||
- numadd - 加号 | ||
- numsub - 减号 | ||
- nummult - 乘号 | ||
- numdiv - 除号 | ||
|
||
# 异常汇总 | ||
|
||
## 乱码问题 | ||
|
||
如果乱码 设置->勾选乱码 | ||
|
||
or | ||
|
||
转成 utf-8 格式 | ||
|
||
**Mac:** 浏览器打开->复制->存入到新的txt文本里 | ||
|
||
**Win:** 打开->另存为->选择utf-8->保存 | ||
|
||
## A JavaScript error occurred in the main process | ||
|
||
有可能是小说路径不对,保证小说路径正确即可 | ||
|
||
or | ||
|
||
Json文件路径:C:\Users\Administrator\AppData\Roaming\thief-book | ||
|
||
快捷键设置错打开会报错,找到 thief_data.json 没有就搜索 thief_data.json 修改里面的快捷键信息即可 | ||
|
||
or | ||
|
||
把 thief_data.json 删掉, 删掉重启即可,当前页码会清空,请先记住页码在删除 | ||
|
||
# TODO | ||
|
||
- [x] 任务栏版本 | ||
- [x] 桌面版本 | ||
- [x] 设置小说路径 | ||
- [x] 设置当前页数 | ||
- [x] 设置每页字数 | ||
- [x] 老板键 | ||
- [x] 上一页 | ||
- [x] 下一页 | ||
- [x] 英文小说支持 | ||
- [x] 自定义换行符号 | ||
- [x] 自定义桌面版背景 | ||
- [x] 自定义桌面版字体颜色 | ||
- [x] 跨平台兼容 | ||
- [x] 桌面版随意拖动,随意调整大小 | ||
- [x] 桌面版窗口永远顶置 | ||
- [x] 自定义文字大小 | ||
- [x] 自动翻页 | ||
- [x] 自定义快捷键 | ||
- [x] 支持 GBK | ||
- [x] 鼠标模式 | ||
- [ ] 多本小说管理 | ||
- [ ] 在线小说下载 | ||
- [ ] 股票支持 | ||
|
||
## 关于 | ||
|
||
- 出品:C.TEAM | ||
- E-mail:[email protected] | ||
|
||
## 反馈群 | ||
|
||
加微信,备注拉人 | ||
|
||
![wechat](./images/wechat.jpg) | ||
|
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
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 @@ | ||
<!DOCTYPE html><html><head><meta charset=utf-8><title></title></head><body><div id=app></div><script>if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')</script><script type=text/javascript src=renderer.js></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
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.
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.
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.
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,110 @@ | ||
{ | ||
"name": "thief-book", | ||
"version": "2.0.0", | ||
"author": "lauix <[email protected]>", | ||
"description": "An electron-vue project", | ||
"license": "MIT", | ||
"main": "./dist/electron/main.js", | ||
"scripts": { | ||
"build": "node .electron-vue/build.js && electron-builder", | ||
"build:win64": "node .electron-vue/build.js && electron-builder --platform=win32 --arch=x64", | ||
"build:win32": "node .electron-vue/build.js && electron-builder --platform=win32 --arch=ia32", | ||
"build:mac": "node .electron-vue/build.js && electron-builder --platform=mac --arch=x64", | ||
"build:all": "node .electron-vue/build.js && electron-builder --platform=all", | ||
"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", | ||
"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", | ||
"postinstall": "" | ||
}, | ||
"build": { | ||
"productName": "thief-book", | ||
"appId": "c.team.thief-book", | ||
"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" | ||
}, | ||
"win": { | ||
"icon": "build/icons/icon.ico" | ||
}, | ||
"linux": { | ||
"icon": "build/icons" | ||
} | ||
}, | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"element-ui": "^2.9.1", | ||
"fs-extra": "^8.0.1", | ||
"hotkeys-js": "^3.6.12", | ||
"iconv-lite": "^0.5.0", | ||
"lodash-id": "^0.14.0", | ||
"lowdb": "^1.0.0", | ||
"vue": "^2.5.16", | ||
"vue-electron": "^1.0.6", | ||
"vue-router": "^3.0.1", | ||
"vuex": "^3.0.1", | ||
"vuex-electron": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"ajv": "^6.5.0", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"babili-webpack-plugin": "^0.1.2", | ||
"cfonts": "^2.1.2", | ||
"chalk": "^2.4.1", | ||
"copy-webpack-plugin": "^4.5.1", | ||
"cross-env": "^5.1.6", | ||
"css-loader": "^0.28.11", | ||
"del": "^3.0.0", | ||
"devtron": "^1.4.0", | ||
"electron": "^2.0.4", | ||
"electron-builder": "^20.19.2", | ||
"electron-debug": "^1.5.0", | ||
"electron-devtools-installer": "^2.2.4", | ||
"file-loader": "^1.1.11", | ||
"html-webpack-plugin": "^3.2.0", | ||
"mini-css-extract-plugin": "0.4.0", | ||
"multispinner": "^0.2.1", | ||
"node-loader": "^0.6.0", | ||
"node-sass": "^4.9.2", | ||
"sass-loader": "^7.0.3", | ||
"style-loader": "^0.21.0", | ||
"url-loader": "^1.0.1", | ||
"vue-html-loader": "^1.2.4", | ||
"vue-loader": "^15.2.4", | ||
"vue-style-loader": "^4.1.0", | ||
"vue-template-compiler": "^2.5.16", | ||
"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" | ||
} | ||
} |
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,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title></title> | ||
<% if (htmlWebpackPlugin.options.nodeModules) { %> | ||
<!-- Add `node_modules/` to global paths so `require` works properly in development --> | ||
<script> | ||
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>') | ||
</script> | ||
<% } %> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<!-- Set `__static` path to static files in production --> | ||
<% if (!process.browser) { %> | ||
<script> | ||
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\') | ||
</script> | ||
<% } %> | ||
|
||
<!-- webpack builds are automatically injected --> | ||
</body> | ||
</html> |
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 @@ | ||
/** | ||
* This file is used specifically and only for development. It installs | ||
* `electron-debug` & `vue-devtools`. There shouldn't be any need to | ||
* modify this file, but it can be used to extend your development | ||
* environment. | ||
*/ | ||
|
||
/* eslint-disable */ | ||
|
||
// Install `electron-debug` with `devtron` | ||
require('electron-debug')({ showDevTools: false }) | ||
|
||
// Install `vue-devtools` | ||
require('electron').app.on('ready', () => { | ||
let installExtension = require('electron-devtools-installer') | ||
installExtension.default(installExtension.VUEJS_DEVTOOLS) | ||
.then(() => {}) | ||
.catch(err => { | ||
console.log('Unable to install `vue-devtools`: \n', err) | ||
}) | ||
}) | ||
|
||
// Require `main` process to boot app | ||
require('./index') |
Oops, something went wrong.