mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-08-11 15:59:31 +08:00
各种 bug 修复
This commit is contained in:
parent
dc5f559f98
commit
fcbb15455b
@ -1,4 +1,4 @@
|
||||
# 程序员手册 V0.0.4
|
||||
# 程序员手册 V1.0.0
|
||||
|
||||
## 简介
|
||||
|
||||
@ -16,6 +16,13 @@
|
||||
|
||||
## 更新
|
||||
|
||||
### v1.0.0
|
||||
|
||||
- 上架 uTools 插件商店,算是正式版了,去除了内置的插件更新提示
|
||||
- 修复两个滚动事件引起的BUG
|
||||
- (~~似乎~~)修复了mac下退出后再次进入无法触发鼠标单击事件的BUG
|
||||
- 修复`payload.json`文件会被某些杀毒软件误报的情况,现在已做加密处理
|
||||
|
||||
### v0.0.4
|
||||
|
||||
抱歉由于这段时间私事太多,插件疏于更新。感谢@Xinu在插件无法使用的时候帮忙发布了修复版本。
|
||||
|
BIN
assets/.DS_Store
vendored
Normal file
BIN
assets/.DS_Store
vendored
Normal file
Binary file not shown.
@ -124,7 +124,7 @@ toggleView = () => {
|
||||
|
||||
// 继续加载内容
|
||||
loadList = addnum => {
|
||||
if ($('#manual').is(':hidden') && $("#mainlist").is(":visible")) {
|
||||
if ($('#manual').is(':hidden') && $("#mainlist").is(":visible") && window.infoRows) {
|
||||
var listnum = $(".info").length;
|
||||
if ($(window).scrollTop() >= (listnum * 50 - 550)) {
|
||||
$("#mainlist").append(window.infoRows.slice(listnum, listnum + addnum).join(''));
|
||||
@ -136,7 +136,7 @@ loadList = addnum => {
|
||||
// 进入插件
|
||||
utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
scrollInit();
|
||||
checkUpdate();
|
||||
// checkUpdate();
|
||||
if (code == 'options') {
|
||||
window.defaultPage = 0;
|
||||
showOptions();
|
||||
@ -191,7 +191,11 @@ utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
try {
|
||||
if (window.dirs.idxFile) {
|
||||
var index = await readFile(window.dirs.idxFile);
|
||||
index = JSON.parse(index);
|
||||
if (window.dirs.idxFile.includes('payload.json')) {
|
||||
index = JSON.parse(rc4(index, 'uTools'))
|
||||
} else {
|
||||
index = JSON.parse(index);
|
||||
}
|
||||
} else {
|
||||
var index = utools.db.get(code).data;
|
||||
}
|
||||
|
16
assets/jquery.nicescroll.min.js
vendored
16
assets/jquery.nicescroll.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
docs/.DS_Store
vendored
Normal file
BIN
docs/.DS_Store
vendored
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
"main": "index.html",
|
||||
"homepage": "https://github.com/fofolee/uTools-Manuals",
|
||||
"publishPage": "https://yuanliao.info/d/356",
|
||||
"version": "0.0.4",
|
||||
"version": "1.0.0",
|
||||
"author": "云之轩",
|
||||
"logo": "logo.png",
|
||||
"platform": [ "win32", "darwin", "linux" ],
|
||||
|
@ -1,5 +1,6 @@
|
||||
const { clipboard } = require('electron');
|
||||
const { exec } = require('child_process');
|
||||
const crypto = require('crypto')
|
||||
const robot = utools.robot
|
||||
|
||||
//-------checkUpdate------
|
||||
@ -71,3 +72,10 @@ paste = () => {
|
||||
var ctlKey = isWin ? 'control' : 'command';
|
||||
robot.keyTap('v', ctlKey);
|
||||
}
|
||||
|
||||
rc4 = (text, key) => {
|
||||
var decipher = crypto.createDecipher('rc4', key);
|
||||
var result = decipher.update(text, 'base64', 'utf8');
|
||||
result += decipher.final('utf8');
|
||||
return result
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user