Merge branch 'preview-fixes' into preview-features

This commit is contained in:
the1812 2022-06-28 08:36:41 +08:00
commit 3a5f6c764a
12 changed files with 77 additions and 105 deletions

View File

@ -1,12 +0,0 @@
{
"name": "@bevo/build-scripts",
"version": "1.0.0",
"main": "purge-cache.js",
"type": "module",
"author": "Grant Howard",
"license": "MIT",
"private": true,
"dependencies": {
"node-fetch": "^3.1.0"
}
}

View File

@ -1,16 +0,0 @@
import fetch from 'node-fetch'
import { compilationInfo } from '../../webpack/compilation-info.js'
const files = [
'dist/bilibili-evolved.preview.user.js',
'dist/bilibili-evolved.user.js',
]
files.forEach(file => {
const url = `https://purge.jsdelivr.net/gh/the1812/Bilibili-Evolved@${compilationInfo.branch}/${file}`
console.log('url:', url)
fetch(url)
.then(response => response.json()).then(json => console.log(json))
.catch(error => console.error(error))
})

View File

@ -1,36 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
data-uri-to-buffer@^4.0.0:
version "4.0.0"
resolved "https://registry.npmmirror.com/data-uri-to-buffer/download/data-uri-to-buffer-4.0.0.tgz?cache=0&sync_timestamp=1632737590653&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fdata-uri-to-buffer%2Fdownload%2Fdata-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b"
integrity sha1-tdtGrqUPYXZCisBbc745pXcBpks=
fetch-blob@^3.1.2:
version "3.1.3"
resolved "https://registry.npmmirror.com/fetch-blob/download/fetch-blob-3.1.3.tgz#a7dca4855e39d3e3c5a1da62d4ee335c37d26012"
integrity sha512-ax1Y5I9w+9+JiM+wdHkhBoxew+zG4AJ2SvAD1v1szpddUIiPERVGBxrMcB2ZqW0Y3PP8bOWYv2zqQq1Jp2kqUQ==
dependencies:
web-streams-polyfill "^3.0.3"
formdata-polyfill@^4.0.10:
version "4.0.10"
resolved "https://registry.npmmirror.com/formdata-polyfill/download/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423"
integrity sha1-JIB8McnUAuACqz2McgFEzriEhCM=
dependencies:
fetch-blob "^3.1.2"
node-fetch@^3.1.0:
version "3.1.0"
resolved "https://registry.npmmirror.com/node-fetch/download/node-fetch-3.1.0.tgz?cache=0&sync_timestamp=1636395522428&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-3.1.0.tgz#714f4922dc270239487654eaeeab86b8206cb52e"
integrity sha512-QU0WbIfMUjd5+MUzQOYhenAazakV7Irh1SGkWCsRzBwvm4fAhzEUaHMJ6QLP7gWT6WO9/oH2zhKMMGMuIrDyKw==
dependencies:
data-uri-to-buffer "^4.0.0"
fetch-blob "^3.1.2"
formdata-polyfill "^4.0.10"
web-streams-polyfill@^3.0.3:
version "3.2.0"
resolved "https://registry.npmmirror.com/web-streams-polyfill/download/web-streams-polyfill-3.2.0.tgz?cache=0&sync_timestamp=1636211222274&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fweb-streams-polyfill%2Fdownload%2Fweb-streams-polyfill-3.2.0.tgz#a6b74026b38e4885869fb5c589e90b95ccfc7965"
integrity sha1-prdAJrOOSIWGn7XFiekLlcz8eWU=

View File

@ -1,19 +0,0 @@
name: Purge Cache
on:
workflow_dispatch:
jobs:
purge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Send Purge Request
run: cd .github/scripts/ && yarn && node purge-cache.js

View File

@ -1,5 +1,49 @@
# 更新日志
## v2.3.0-preview
`2022-06-28`
包含 v2.2.2 的所有更新内容.
✨新增
- `清爽首页` 的热门视频支持显示弹幕数量.
- `极简首页` 初版已完成.
- 脚本的更新源配置默认值更换为 `GitHub`, 并添加了 `AltCdn`, 表示开发者自定义的其他 CDN 源. `jsDelivr` 之后将会删除.
- 在 `GitHub` 更新源下, MDI 图标库更换使用 GitHub Pages.
☕开发者相关
- 重新整理了所有 CDN 调用, 并支持自定义 CDN 配置, 文档见 [doc/cdn.md](https://github.com/the1812/Bilibili-Evolved/blob/preview-features/doc/cdn.md).
- 拆分并整理了 `/src/core/settings` 的代码结构.
- 所有 webpack 配置更换为 TypeScript, 并启用 ESLint 检查.
- 重构了元数据注入功能, 新增了 i18n 和 description 注入, 详细用法可见 `webpack/inject-metadata/i18n.ts``webpack/inject-metadata/description.ts` 中的注释说明.
- 删除了用不到的包 `html-webpack-plugin`.
- 适配了 VSCode File Nesting 功能.
## v2.2.2
`2022-06-28`
⚠ 此版本起, 对 Chromium 内核浏览器的版本要求提升至 88
✨新增
- `网址参数清理` 支持清理 `vd_source`, 之前装了临时插件的用户可以在更新后卸载相应的插件. (#3424)
🐛修复
- 修复 `bwp-video` (HEVC 编码) 下 PlayerAgent 的异常行为:
- 修复倍速扩展的问题. (#3398, PR #3400 by [JLoeve](https://github.com/LonelySteve), PR #3401 by [imshixin](https://github.com/imshixin))
- 修复开关灯的问题. (#3403, PR #3413 by [FoundTheWOUT](https://github.com/FoundTheWOUT))
- 修复 `简化评论区` 的样式失效, 以及评论区的操作菜单失效. (#3425, #3453)
- 修复动态详情页的动态相关功能失效.
- 修复 `videoChange` 部分情况下无法触发.
- 修复 `简化直播间` 的直播间皮肤部分情况下无法屏蔽.
- 修复搜索栏的建议在话题页面布局错乱. (#3383)
- 修复 `图片批量导出` 中的命名格式未能正确赋值. (#3326)
- 修复 `快速收起评论` 收起后再打开评论区失效的问题.
☕开发者相关
- 修复 Pull Request 中 ESLint 未报告部分代码问题.
- `loadFeatureCode` 支持从代码的返回值中得到结果.
- 删除 jsDelivr 相关的 GitHub Action.
## v2.2.1
`2022-06-03`
- 修复部分浏览器 / 脚本管理器中脚本无法运行. (对应报错 `Error: Couldn't find a style target`)

View File

@ -22,6 +22,9 @@ const parseWeChat = (csv: Record<string, string>[]) => {
sortKey: Number(new Date(item.)).toString(),
toString: () => {
let name = item.
if (name === '/') {
name = '匿名'
}
const noteMatch = item..match(/付款方留言:(.+)/)
if (noteMatch) {
name += ` ${noteMatch[1]}`

View File

@ -29,6 +29,14 @@ https://afdian.net/@the1812?tab=sponsor
| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | ---------------- | --------- | ------- |
| 2022.06.23 19:22:27 | ღ*༊ | 7906 | ¥9.00 |
| 2022.06.23 19:13:20 | ღ*༊ | 9854 | ¥10.00 |
| 2022.06.19 11:39:19 | 匿名 | 1928 | ¥0.29 |
| 2022.06.19 01:21:41 | 匿名 | 7773 | ¥10.00 |
| 2022.06.16 22:04:04 | T*L | 2649 | ¥10.00 |
| 2022.06.16 16:21:19 | 匿名 | 7614 | ¥12.00 |
| 2022.06.04 11:43:01 | 匿名 | 2879 | ¥5.00 |
| 2022.06.03 21:54:09 | *强 | 8464 | ¥5.00 |
| 2022.05.31 16:40:27 | *仔 | 3808 | ¥1.68 |
| 2022.05.29 19:11:01 | 匿名 | 4887 | ¥2.33 |
| 2022.05.23 23:45:36 | 匿名 | 0349 | ¥5.00 |

View File

@ -443,7 +443,7 @@
"type": "component",
"name": "urlParamsClean",
"displayName": "网址参数清理",
"description": "自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址).",
"description": "自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次.",
"fullRelativePath": "../../registry/dist/components/utils/url-params-clean.js",
"fullAbsolutePath": "registry/dist/components/utils/url-params-clean.js"
},
@ -475,7 +475,7 @@
"type": "component",
"name": "avUrl",
"displayName": "网址AV号转换",
"description": "当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址).",
"description": "当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次.",
"fullRelativePath": "../../registry/dist/components/video/av-url.js",
"fullAbsolutePath": "registry/dist/components/video/av-url.js"
},

View File

@ -558,7 +558,7 @@
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/utils/url-params-clean.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/utils/url-params-clean.js)
自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址).
自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次.
### [v1 设置迁移](../../registry/dist/components/utils/v1-migrate.js)
`v1Migrate`
@ -594,7 +594,7 @@
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/video/av-url.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/video/av-url.js)
当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址).
当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次.
### [BiliPlus 跳转支持](../../registry/dist/components/video/biliplus-redirect.js)
`biliplusRedirect`

View File

@ -225,7 +225,7 @@
"type": "component",
"name": "urlParamsClean",
"displayName": "网址参数清理",
"description": "自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址).",
"description": "自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址), 并可能导致后退要多退几次.",
"fullRelativePath": "../../registry/dist/components/utils/url-params-clean.js",
"fullAbsolutePath": "registry/dist/components/utils/url-params-clean.js"
},

32
registry/dist/doc.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{
"version": "2.2.1",
"version": "2.2.2",
"author": "Grant Howard, Coulomb-G",
"copyright": "[year], Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)",
"licence": "MIT",