编写更新日志
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
## [200.4.0] - 2025-12-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- 增加tvbox订阅功能,自带去广告
|
||||||
|
- 增加弹幕本地缓存
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- 外部播放器使用代理m3u8时现在可以增加鉴权了
|
||||||
|
|
||||||
## [200.3.0] - 2025-12-05
|
## [200.3.0] - 2025-12-05
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
100.0.0
|
200.4.0
|
||||||
@@ -12,15 +12,26 @@ export const UpdateNotification: React.FC = () => {
|
|||||||
const { updateStatus, isChecking } = useVersionCheck();
|
const { updateStatus, isChecking } = useVersionCheck();
|
||||||
const [isOwner, setIsOwner] = useState(false);
|
const [isOwner, setIsOwner] = useState(false);
|
||||||
const [isVersionPanelOpen, setIsVersionPanelOpen] = useState(false);
|
const [isVersionPanelOpen, setIsVersionPanelOpen] = useState(false);
|
||||||
|
const [isMobile, setIsMobile] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// 检查认证信息
|
// 检查认证信息
|
||||||
const authInfo = getAuthInfoFromBrowserCookie();
|
const authInfo = getAuthInfoFromBrowserCookie();
|
||||||
setIsOwner(authInfo?.role === 'owner');
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,18 @@ export interface ChangelogEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const changelog: ChangelogEntry[] = [
|
export const changelog: ChangelogEntry[] = [
|
||||||
|
{
|
||||||
|
version: '200.4.0',
|
||||||
|
date: '2025-12-06',
|
||||||
|
added: [
|
||||||
|
'增加弹幕本地缓存',
|
||||||
|
'增加tvbox订阅功能,自带去广告'
|
||||||
|
],
|
||||||
|
changed: [
|
||||||
|
'外部播放器使用代理m3u8时现在可以增加鉴权了'
|
||||||
|
],
|
||||||
|
fixed: [],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
version: '200.3.0',
|
version: '200.3.0',
|
||||||
date: '2025-12-05',
|
date: '2025-12-05',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
|
|
||||||
const CURRENT_VERSION = '200.3.0';
|
const CURRENT_VERSION = '200.4.0';
|
||||||
|
|
||||||
// 导出当前版本号供其他地方使用
|
// 导出当前版本号供其他地方使用
|
||||||
export { CURRENT_VERSION };
|
export { CURRENT_VERSION };
|
||||||
|
|||||||
Reference in New Issue
Block a user