编写更新日志

This commit is contained in:
mtvpls
2025-12-06 20:17:21 +08:00
parent e028ba60d7
commit 4f126e89f0
5 changed files with 36 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
## [200.4.0] - 2025-12-06
### Added
- 增加tvbox订阅功能自带去广告
- 增加弹幕本地缓存
### Changed
- 外部播放器使用代理m3u8时现在可以增加鉴权了
## [200.3.0] - 2025-12-05
### Added

View File

@@ -1 +1 @@
100.0.0
200.4.0

View File

@@ -12,15 +12,26 @@ export const UpdateNotification: React.FC = () => {
const { updateStatus, isChecking } = useVersionCheck();
const [isOwner, setIsOwner] = useState(false);
const [isVersionPanelOpen, setIsVersionPanelOpen] = useState(false);
const [isMobile, setIsMobile] = useState(false);
useEffect(() => {
// 检查认证信息
const authInfo = getAuthInfoFromBrowserCookie();
setIsOwner(authInfo?.role === 'owner');
// 检查是否是移动设备
const checkMobile = () => {
setIsMobile(window.innerWidth < 768);
};
checkMobile();
window.addEventListener('resize', checkMobile);
return () => window.removeEventListener('resize', checkMobile);
}, []);
// 检查中、不是站长或没有更新时不渲染任何内容
if (isChecking || !isOwner || updateStatus !== UpdateStatus.HAS_UPDATE) {
// 检查中、不是站长、是移动设备或没有更新时不渲染任何内容
if (isChecking || !isOwner || isMobile || updateStatus !== UpdateStatus.HAS_UPDATE) {
return null;
}

View File

@@ -10,6 +10,18 @@ export interface ChangelogEntry {
}
export const changelog: ChangelogEntry[] = [
{
version: '200.4.0',
date: '2025-12-06',
added: [
'增加弹幕本地缓存',
'增加tvbox订阅功能自带去广告'
],
changed: [
'外部播放器使用代理m3u8时现在可以增加鉴权了'
],
fixed: [],
},
{
version: '200.3.0',
date: '2025-12-05',

View File

@@ -1,6 +1,6 @@
/* eslint-disable no-console */
const CURRENT_VERSION = '200.3.0';
const CURRENT_VERSION = '200.4.0';
// 导出当前版本号供其他地方使用
export { CURRENT_VERSION };