Fix Safari playback recovery and episode progress memory
This commit is contained in:
@@ -344,6 +344,7 @@ interface SiteConfig {
|
||||
DanmakuSourceType?: 'builtin' | 'custom';
|
||||
DanmakuApiBase: string;
|
||||
DanmakuApiToken: string;
|
||||
DanmakuAutoLoadDefault?: boolean;
|
||||
TMDBApiKey?: string;
|
||||
TMDBProxy?: string;
|
||||
TMDBReverseProxy?: string;
|
||||
@@ -7799,6 +7800,7 @@ const SiteConfigComponent = ({
|
||||
DanmakuSourceType: 'builtin',
|
||||
DanmakuApiBase: 'https://mtvpls-danmu.netlify.app/87654321',
|
||||
DanmakuApiToken: '87654321',
|
||||
DanmakuAutoLoadDefault: true,
|
||||
TMDBApiKey: '',
|
||||
TMDBProxy: '',
|
||||
TMDBReverseProxy: '',
|
||||
@@ -7896,6 +7898,7 @@ const SiteConfigComponent = ({
|
||||
DanmakuApiBase:
|
||||
config.SiteConfig.DanmakuApiBase || 'http://localhost:9321',
|
||||
DanmakuApiToken: config.SiteConfig.DanmakuApiToken || '87654321',
|
||||
DanmakuAutoLoadDefault: config.SiteConfig.DanmakuAutoLoadDefault !== false,
|
||||
TMDBApiKey: config.SiteConfig.TMDBApiKey || '',
|
||||
TMDBProxy: config.SiteConfig.TMDBProxy || '',
|
||||
TMDBReverseProxy: config.SiteConfig.TMDBReverseProxy || '',
|
||||
@@ -8538,6 +8541,34 @@ const SiteConfigComponent = ({
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
<div className='flex items-center justify-between'>
|
||||
<div>
|
||||
<h4 className='text-sm font-medium text-gray-700 dark:text-gray-300'>
|
||||
默认自动加载弹幕
|
||||
</h4>
|
||||
<p className='text-xs text-gray-500 dark:text-gray-400 mt-1'>
|
||||
新用户或未设置本地偏好时,播放页是否默认自动匹配并加载弹幕。用户仍可在个人设置中自行覆盖。
|
||||
</p>
|
||||
</div>
|
||||
<label className='flex items-center cursor-pointer'>
|
||||
<div className='relative'>
|
||||
<input
|
||||
type='checkbox'
|
||||
className='sr-only peer'
|
||||
checked={siteSettings.DanmakuAutoLoadDefault !== false}
|
||||
onChange={() =>
|
||||
setSiteSettings((prev) => ({
|
||||
...prev,
|
||||
DanmakuAutoLoadDefault: prev.DanmakuAutoLoadDefault === false,
|
||||
}))
|
||||
}
|
||||
/>
|
||||
<div className='w-11 h-6 bg-gray-300 rounded-full peer-checked:bg-green-500 transition-colors dark:bg-gray-600'></div>
|
||||
<div className='absolute top-0.5 left-0.5 w-5 h-5 bg-white rounded-full transition-transform peer-checked:translate-x-5'></div>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user