Skip to content

Commit

Permalink
Merge branch 'preview-fixes' into preview-features
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Oct 22, 2024
2 parents 30f84b0 + 64279b6 commit 5a48fe3
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 11 deletions.
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
<!-- spell-checker: disable -->
# 更新日志

## v2.9.4-preview
`2024-10-22`

包含 [v2.9.4](https://github.com/the1812/Bilibili-Evolved/releases/tag/v2.9.4) 的所有更新内容.

✨新增
- 新增组件 `隐藏头像框`.
> 隐藏页面中用户的头像框 (包括角标), 目前支持动态和视频页面.
- 新增组件 `隐藏直播马赛克`. (#4634)
> 移除直播画面中的马赛克区域.
- 优化了搜索框的搜索建议精准度. (#4833)
- 新增组件 `删除动态`. (PR #4915 by [gouzil](https://github.com/gouzil))
> 删除动态, 可选转发抽奖, 和全部删除.
- `保存视频元数据` 增加 FFMETADATA 字段选项. (PR #4943 by [WakelessSloth56](https://github.com/WakelessSloth56))
- 新增组件 `评论内容替换`. (#4072)
> 替换评论中的内容.
> 可以添加多个替换配置, 每项配置可将一个关键词替换为其他文本. 若替换的目标是一个链接, 则视作替换为表情.
>
- `直播信息扩充` 更换新的 API 接口. (PR #4964 by [Oxygenくん](https://github.com/oxygenkun))

## v2.9.4
`2024-10-22`

✨新增
- `屏蔽黑名单up主` 去除了登录校验. (#4917, PR #4926 by [snowraincloud](https://github.com/snowraincloud))
- `图片批量导出` 适配新型的图片动态. (#4830)
- 更新评论区的 `夜间模式`. (#4931)

🐛修复
- 修复 StreamSaver 和 ffmpeg WASM 的 SRI 校验问题. (#4913, #4864)
- 修复下载合集时 BV 号命名重复. (#4818)
- 修复 `删除广告` 去除首页广告时没有遵循 `占位文本` 选项. (#4836)
- 修复 `自定义顶栏` 历史面板中的多余 title 提示. (#4962)
- 修复下载弹幕时播放器设置没有正确读取. (#4824)

🗑️废弃
- `自定义顶栏` 删除 `相簿` 入口.

☕开发者相关
- 修复 DevClient 无法重载 Shadow DOM 样式.

## v2.9.3-preview
`2024-09-15`

Expand Down
5 changes: 5 additions & 0 deletions doc/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ https://afdian.com/a/the1812?tab=sponsor

| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | --------------------- | --------- | ------- |
| 2024.10.11 11:19:52 | 匿名 | 8738 | ¥100.00 |
| 2024.09.28 22:43:29 | 匿名 | 7519 | ¥20.00 |
| 2024.09.28 17:45:29 | *| 7998 | ¥20.00 |
| 2024.09.23 14:19:17 | 匿名 | 1799 | ¥2.33 |
| 2024.09.10 00:19:41 | 匿名 | 1484 | ¥20.00 |
| 2024.09.06 16:05:23 | 匿名 | 0752 | ¥5.00 |
| 2024.09.03 23:08:43 | *| 3956 | ¥20.00 |
| 2024.08.25 16:55:07 | 匿名 | 6595 | ¥10.00 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<div class="type-filters">
<div v-for="t of types" :key="t.name" class="type-filter">
<RadioButton
:title="(t.checked ? '不显示' : '显示') + t.displayName"
:class="{ checked: t.checked }"
:checked="t.checked"
:disabled="loading"
Expand Down
24 changes: 17 additions & 7 deletions registry/lib/components/video/player/show-upload-time/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Vue from 'vue'
import { defineComponentMetadata } from '@/components/define'
import { urlChange } from '@/core/observer'
import { playerReady, getVue2Data } from '@/core/utils'
Expand Down Expand Up @@ -118,6 +119,8 @@ export const component = defineComponentMetadata({
formatString = options.formatString?.toString()
}
relist.forEach(async video => {
// 使用临时变量保存视频名称,以避免计算属性导致的问题
let videoName: string = video.name
// 确认存放推荐视频列表的List中的元素是否被更新
if (forceUpdate || !video.item.owner.mark) {
video.item.owner.mark = true
Expand All @@ -134,16 +137,21 @@ export const component = defineComponentMetadata({
if (!video.oldname) {
video.oldname = video.name
}
video.name = getFormatStr(createTime, formatString, video.oldname)
videoName = getFormatStr(createTime, formatString, video.oldname)
video.name = videoName
}
// 保存生成后的name
video.item.owner.name = video.name
video.item.owner.name = videoName
}
})
}

const getRecoList = () => {
const reco_list = dq('#reco_list')
let reco_list = dq('#reco_list')
// 2024.10.17 兼容最近的b站前端改动
if (reco_list == null) {
reco_list = dq('.recommend-list-v1')
}
let recoList: RecommendList = getVue2Data(reco_list)
if (recoList.isOpen === undefined) {
recoList = recoList.$children[0]
Expand All @@ -156,12 +164,14 @@ export const component = defineComponentMetadata({
return recoList
}

const videoClasses = ['video-page-operator-card-small', 'video-page-card-small']

addComponentListener(
`${metadata.name}.formatString`,
(value: string) => {
const recoList: RecommendList = getRecoList()
const relist: VideoPageCard[] = recoList.$children.filter(
video => video.$el.className.indexOf('special') === -1,
const relist: VideoPageCard[] = recoList.$children.filter(video =>
videoClasses.includes(video.$el.className),
)
showUploadTime(relist, true, value)
},
Expand All @@ -180,8 +190,8 @@ export const component = defineComponentMetadata({
'recListItems',
() => {
console.debug('recoListItems changed, now url is', document.URL)
const relist = recoList.$children.filter(
video => video.$el.className.indexOf('special') === -1,
const relist = recoList.$children.filter(video =>
videoClasses.includes(video.$el.className),
)
showUploadTime(relist)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
display: flex !important;
height: auto !important;
}
// 新版css
// 2023.04.30 版本css
.video-page-card-small .card-box .info .upname {
height: auto !important;
a .name {
-webkit-line-clamp: unset !important;
white-space: pre !important;
}
}
}
// 2024.10.17 版本css
.video-page-operator-card-small .card-box .info .upname {
height: auto !important;
a .name {
-webkit-line-clamp: unset !important;
white-space: pre !important;
}
}
2 changes: 1 addition & 1 deletion src/client/common.meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.9.3",
"version": "2.9.4",
"author": "Grant Howard, Coulomb-G",
"copyright": "[year], Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)",
"license": "MIT",
Expand Down

0 comments on commit 5a48fe3

Please sign in to comment.