-
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
1 parent
94fce4d
commit 51d3f31
Showing
11 changed files
with
136 additions
and
167 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
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: Night-stars-1 [email protected] | ||
* @Date: 2023-08-12 20:16:45 | ||
* @LastEditors: Night-stars-1 [email protected] | ||
* @LastEditTime: 2024-02-02 20:33:34 | ||
* @LastEditTime: 2024-02-12 16:17:57 | ||
* @Description: | ||
* | ||
* Copyright (c) 2023 by Night-stars-1, All Rights Reserved. | ||
|
@@ -284,6 +284,29 @@ <h2>文字转语言(未完成)</h2> | |
<span class="q-switch__handle"></span> | ||
</div> | ||
</div> | ||
<hr class="horizontal-dividing-line"> | ||
<div class="vertical-list-item" @click="message_merging = !message_merging"> | ||
<div> | ||
<h2>消息合并</h2> | ||
<span class="secondary-text">消息合并(重启生效)</span> | ||
</div> | ||
<div class="switchBackgroundImage q-switch" :class="{ 'is-active': message_merging }"> | ||
<span class="q-switch__handle"></span> | ||
</div> | ||
</div> | ||
<Transition duration="500" name="nested"> | ||
<div v-if="false"> | ||
<div class="vertical-list-item" @click="message_avatar_float = !message_avatar_float"> | ||
<div> | ||
<h2>头像浮动</h2> | ||
<span class="secondary-text">头像浮动</span> | ||
</div> | ||
<div class="switchBackgroundImage q-switch" :class="{ 'is-active': message_avatar_float }"> | ||
<span class="q-switch__handle"></span> | ||
</div> | ||
</div> | ||
</div> | ||
</Transition> | ||
</div> | ||
|
||
<div class="wrap" id="sidebar"> | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: Night-stars-1 [email protected] | ||
* @Date: 2023-08-12 15:41:47 | ||
* @LastEditors: Night-stars-1 [email protected] | ||
* @LastEditTime: 2024-02-03 21:10:22 | ||
* @LastEditTime: 2024-02-07 15:53:53 | ||
* @Description: | ||
* | ||
* Copyright (c) 2023 by Night-stars-1, All Rights Reserved. | ||
|
@@ -14,6 +14,7 @@ const { onLoad, setSettings } = require("./main/onLoad.js"); | |
const { output, replaceArk, getEmojis } = require("./main/utils.js"); | ||
|
||
let emojiCallbackId = ""; | ||
let lastSenderUid = ""; | ||
|
||
function onBrowserWindowCreated(window) { | ||
const pluginDataPath = LiteLoader.plugins.qqpromote.path.data; | ||
|
@@ -30,6 +31,7 @@ function onBrowserWindowCreated(window) { | |
const msgList = args?.[1]?.msgList; | ||
// 替换小程序卡片 | ||
msgList.forEach((msgItem) => { | ||
if (!msgItem.qqpromote) msgItem.qqpromote = {} | ||
let msg_seq = msgItem.msgSeq; | ||
msgItem.elements.forEach((msgElement) => { | ||
// output(msgItem.msgType, msgItem.subMsgType, msgElement.grayTipElement) | ||
|
@@ -77,7 +79,10 @@ function onBrowserWindowCreated(window) { | |
}; | ||
} | ||
}); | ||
msgItem.qqpromote.chatType = lastSenderUid === msgItem.senderUid? 'child':'main' | ||
lastSenderUid = msgItem.senderUid | ||
}); | ||
//msgList.reverse(); | ||
} else if (args?.[1]?.[0]?.cmdName === "nodeIKernelUnitedConfigListener/onUnitedConfigUpdate" && data.setting.not_updata) { | ||
// 屏蔽更新 | ||
args[1][0].payload.configData.content = "" | ||
|
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,7 +1,7 @@ | ||
/* | ||
* @Date: 2024-02-03 16:15:39 | ||
* @LastEditors: Night-stars-1 [email protected] | ||
* @LastEditTime: 2024-02-03 20:46:48 | ||
* LastEditors: Night-stars-1 [email protected] | ||
* LastEditTime: 2024-02-12 16:06:07 | ||
*/ | ||
const axios = require('axios'); | ||
|
||
|
@@ -19,7 +19,6 @@ async function getLinkPreview(url) { | |
* @type {string[]} meta信息 | ||
*/ | ||
const metaMatches = headContent.match(/[<meta[\s\S]*?>|<title(.*)\/title>]/ig); | ||
console.timeLog('headContent') | ||
metaMatches.forEach(element => { | ||
element.includes('</title>') && (data.title = element.match(/[<title>]?(.*)<\/title>/)[1]) | ||
|| element.includes('property="og:title"') && (data.title = element.match(/content="([\s\S]*)"/)[1]) | ||
|
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
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
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,14 +1,15 @@ | ||
/* | ||
* @Date: 2024-01-09 00:35:45 | ||
* @LastEditors: Night-stars-1 [email protected] | ||
* @LastEditTime: 2024-02-03 20:12:24 | ||
* LastEditors: Night-stars-1 [email protected] | ||
* LastEditTime: 2024-02-12 17:33:49 | ||
*/ | ||
import { domUpMessages } from "./renderer/domUpMessages.js" | ||
import { changeHref, domUpNavItem } from "./renderer/changeHref.js" | ||
import { userLogin } from "./renderer/userLogin.js" | ||
import { setMessage } from "./renderer/setMessage.js" | ||
import { addrepeatmsg_menu } from "./renderer/addRepeatMsgMenu.js" | ||
import { setting_vue } from "./renderer/setVue.js" | ||
import { hookVue3 } from "./renderer/vue.js" | ||
|
||
const updateStyle = qqpromote.updateStyle; | ||
const updateWebPageStyle = qqpromote.updateWebPageStyle; | ||
|
@@ -17,6 +18,7 @@ let login_time = 3; | |
|
||
async function onLoad() { | ||
const setting_data = await qqpromote.getSettings() | ||
setting_data?.setting.message_merging ? document.body.classList.add('message_merging'):document.body.classList.remove('message_merging') | ||
const plugin_path = LiteLoader.plugins.qqpromote.path.plugin; | ||
const script = document.createElement("script"); | ||
script.id = "sweetalert2" | ||
|
@@ -122,6 +124,7 @@ async function onSettingWindowCreated(view){ | |
}) | ||
} | ||
|
||
hookVue3() | ||
onLoad() | ||
|
||
export { | ||
|
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
Oops, something went wrong.