-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ 增加对群成员头衔的显示支持 ✨ 优化好友列表动画 ✨ 优化日志系统便于更好的调试 ✨ 搜索消息功能,现在你可以在已加载的消息中搜索内容 🐛 修正遗留的消息记录有效性判断代码不适用于所有 bot 的问题 <- #129 🐛 修正了获取历史消息的一个小问题,由 3179848 损坏 <- #129 🐛 修正了历史消息加载返回为空的时候导致的 UI 卡死问题,由 619d6e4 损坏 🐛 修正戳一戳判定错误的问题 🐛 修正 Lagrange 分组名称的显示问题 <- #126 🐛 禁言通知未判断来源 <- #124 🎨 支持了映射表合并,便于更灵活的调整映射 🎨 对消息文本处理中的 at 进行显示优化 🎨 修正消息通知流程中的一处代码错误 🎨 修正代码构建器中的一处无用代码,优化一处代码实现 🎨 将多语言功能翻新为更常用的 POT/PO 格式 🎨 现在正式构建中将不会再出现 source map 💄 At 消息现在会隔开一段距离不混在一起 💄 遇到了一个 UI 错位的问题,尝试修复了一下但是不知道好没好(之后没遇到过) 💄 优化 At 信息悬浮窗样式 💄 优化好友列表分组显示样式 💄 优化更新日志弹窗 ♿ 补充遗漏的翻译文本 ♿ 好友列表现在也将按照拼音排序 ♿ 调整 sw 和 electron 下 QQ 头像资源的缓存策略,防止显示过期头像 ♿ 修正统计信息设置处的链接打开的方式 ♿ 群成员列表现在改为按照拼音首字母排序 🔨 在开发者模式下现在会显示页面 fps 💚 修正由于 webpack 5 导致的 web 构建依赖缺失问题,由 61c6627 损坏 ➕ 新增依赖:gettext-parser、util
- Loading branch information
Showing
61 changed files
with
7,353 additions
and
2,269 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
src/assets/* | ||
src/assets/* | ||
public/sw.js |
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 |
---|---|---|
|
@@ -8,4 +8,6 @@ | |
--color-bg-green: #3f544a; | ||
--color-bg-red: #523a3c; | ||
--color-bg-yellow: #504b3d; | ||
|
||
--color-issue-close: #a47ff1; | ||
} |
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 |
---|---|---|
|
@@ -8,4 +8,6 @@ | |
--color-bg-green: #d5e6de; | ||
--color-bg-red: #f3d8da; | ||
--color-bg-yellow: #fdf3d1; | ||
|
||
--color-issue-close: #8059d9; | ||
} |
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,58 @@ | ||
/** | ||
* 本文件由 Copilot 生成,sw 配置实在是太难写了 😭 | ||
*/ | ||
|
||
const CACHE_NAME = 'qlogo-cache-v1'; | ||
// const CACHE_DURATION = 1000; | ||
const CACHE_DURATION = 3 * 24 * 60 * 60 * 1000; | ||
|
||
self.addEventListener('install', (event) => { | ||
// 跳过等待,立即激活 | ||
self.skipWaiting(); | ||
}); | ||
|
||
self.addEventListener('activate', (event) => { | ||
// 清理旧缓存 | ||
event.waitUntil( | ||
caches.keys().then((cacheNames) => { | ||
return Promise.all( | ||
cacheNames.map((cacheName) => { | ||
if (cacheName !== CACHE_NAME) { | ||
return caches.delete(cacheName); | ||
} | ||
}) | ||
); | ||
}) | ||
); | ||
}); | ||
|
||
self.addEventListener('fetch', (event) => { | ||
const url = new URL(event.request.url); | ||
|
||
// sw.js 本身的请求不缓存 | ||
if (url.pathname === '/sw.js') { | ||
return; | ||
} | ||
|
||
if (url.hostname === 'q1.qlogo.cn') { | ||
// 对于 QQ 头像的请求,缓存三天 | ||
event.respondWith( | ||
caches.open(CACHE_NAME).then((cache) => { | ||
return cache.match(event.request).then((response) => { | ||
if (response) { | ||
return response; | ||
} | ||
|
||
return fetch(event.request).then((response) => { | ||
const responseClone = response.clone(); | ||
cache.put(event.request, responseClone); | ||
return response; | ||
}); | ||
}); | ||
}) | ||
); | ||
} else { | ||
// 对于其他请求,采用默认的网络优先策略 | ||
event.respondWith(fetch(event.request)); | ||
} | ||
}); |
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
Oops, something went wrong.