Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed Apr 26, 2021
1 parent a055440 commit a2ad20c
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 115 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# VS Code QQ Extension Change Log

## Version 1.2.1: 2021/4/27

* [default-theme] 头像和图片使用 `https` url
* 修复一些体验方面的问题

## Version 1.2.0: 2021/4/18

* [default-theme] 支持查看合并转发,以及各种xml/json卡片消息
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ npm i typescript -g
npm i vsce -g
vsce package
```

2 changes: 1 addition & 1 deletion assets/default-theme/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function sendMsg() {
} else if (ginfo.shutup_time_whole) {
msg += " (全员禁言)";
}
} else if (msg === "bot not online") {
} else if (data.retcode === 104) {
msg = "断线了,发送失败";
}
document.querySelector("#lite-chatbox").insertAdjacentHTML("beforeend", `<div class="tips">
Expand Down
1 change: 1 addition & 0 deletions assets/default-theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ button#send {
}
.group-members {
padding: 5px 0;
margin-bottom: 150px;
}
.group-member {
cursor: pointer;
Expand Down
8 changes: 4 additions & 4 deletions assets/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@

vsc.scrollHome = () => window.scroll(0, 0);
vsc.scrollEnd = () => window.scroll(0, window.document.body.scrollHeight);
vsc.getUserAvaterUrlSmall = (uin) => "http://q1.qlogo.cn/g?b=qq&s=100&nk=" + uin;
vsc.getUserAvaterUrlLarge = (uin) => "http://q1.qlogo.cn/g?b=qq&s=640&nk=" + uin;
vsc.getGroupAvaterUrlSmall = (uin) => `http://p.qlogo.cn/gh/${uin}/${uin}/100`;
vsc.getGroupAvaterUrlLarge = (uin) => `http://p.qlogo.cn/gh/${uin}/${uin}/640`;
vsc.getUserAvaterUrlSmall = (uin) => "https://q1.qlogo.cn/g?b=qq&s=100&nk=" + uin;
vsc.getUserAvaterUrlLarge = (uin) => "https://q1.qlogo.cn/g?b=qq&s=640&nk=" + uin;
vsc.getGroupAvaterUrlSmall = (uin) => `https://p.qlogo.cn/gh/${uin}/${uin}/100`;
vsc.getGroupAvaterUrlLarge = (uin) => `https://p.qlogo.cn/gh/${uin}/${uin}/640`;

vsc.timestamp = (unixstamp) => {
const date = new Date(unixstamp ? unixstamp * 1000 : Date.now());
Expand Down
118 changes: 13 additions & 105 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-qq",
"displayName": "QQ",
"description": "lite qq for chat in working",
"version": "1.2.0",
"version": "1.2.1",
"engines": {
"vscode": "^1.53.0"
},
Expand Down Expand Up @@ -173,8 +173,8 @@
},
"dependencies": {
"get-port": "^5.1.1",
"oicq": "^1.15.2",
"ws": "^7.4.4"
"oicq": "^1.16.1",
"ws": "^7.4.5"
},
"publisher": "takayama",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const params = [
];

export const NO_CHROME_ERROR = Symbol("no chrome");
export const TIMEOUT_ERROR = Symbol("failed too many time");
export const TIMEOUT_ERROR = Symbol("failed too many times");
export const UNFINISHED_ERROR = Symbol("chrome closed but no ticket");

export class Cdp extends EventEmitter {
Expand Down

0 comments on commit a2ad20c

Please sign in to comment.