Update static/templates/cache.html
Browse files248 unmodified lines249250251252253254255256257258248 unmodified linesif (!data.cache) throw new Error('无法获取缓存信息');const cache = data.cache;const cacheCards = [{ icon: '🔑', title: 'CID 缓存', color: '#6366f1', data: cache.cid || {} },{ icon: '🎫', title: '认证缓存', color: '#8b5cf6', data: cache.auth || {} },{ icon: '📺', title: '频道缓存', color: '#ec4899', data: { cached: cache.channels !== undefined ? (typeof cache.channels === 'boolean' ? cache.channels : cache.channels > 0) : false } },{ icon: '🎬', title: '流缓存', color: '#f59e0b', data: { cached: cache.streams > 0, count: cache.streams } },{ icon: '📅', title: 'EPG 缓存', color: '#10b981', data: { cached: cache.epg > 0, count: cache.epg } }];stats.innerHTML = cacheCards.map((card) => {248 unmodified lines249250251252253254255256257258248 unmodified linesif (!data.cache) throw new Error('无法获取缓存信息');const cache = data.cache;const cacheCards = [{ icon: '🔑', title: 'CID 缓存', color: '#6366f1', cache.cid || {} },{ icon: '🎫', title: '认证缓存', color: '#8b5cf6', data: cache.auth || {} },{ icon: '📺', title: '频道缓存', color: '#ec4899', data: { cached: cache.channels !== undefined ? (typeof cache.channels === 'boolean' ? cache.channels : cache.channels > 0) : false } },{ icon: '🎬', title: '流缓存', color: '#f59e0b', { cached: cache.streams > 0, count: cache.streams } },{ icon: '📅', title: 'EPG 缓存', color: '#10b981', data: { cached: cache.epg > 0, count: cache.epg } }];stats.innerHTML = cacheCards.map((card) => {
static/templates/cache.html+2-2