From 7b46eed243a1a29207fcd1a96c11b080df42e1a9 Mon Sep 17 00:00:00 2001 From: hellcat Date: Sat, 7 Nov 2026 17:48:50 +0800 Subject: [PATCH] fix(fuc): restore original Cool theme logo --- docs/maintenance/FUC_THEME.md | 2 ++ theme/Fuc/assets/app.mjs | 2 +- theme/Fuc/assets/native.mjs | 4 ++-- theme/Fuc/assets/native/forget.html | 8 ++++---- theme/Fuc/assets/native/header.html | 2 +- theme/Fuc/assets/native/home.html | 10 +++++----- .../native/images/brand/apple-touch-icon.png | Bin 6451 -> 13052 bytes .../assets/native/images/brand/favicon-32.png | Bin 942 -> 879 bytes .../native/images/brand/fuc-logo-inverse.svg | 6 +++++- .../assets/native/images/brand/fuc-logo.svg | 17 +++-------------- .../assets/native/images/brand/fuc-mark.svg | 14 ++------------ theme/Fuc/assets/native/login.html | 8 ++++---- theme/Fuc/assets/native/register.html | 8 ++++---- theme/Fuc/assets/native/reset.html | 8 ++++---- theme/Fuc/config.json | 2 +- theme/Fuc/dashboard.blade.php | 2 +- 16 files changed, 39 insertions(+), 54 deletions(-) diff --git a/docs/maintenance/FUC_THEME.md b/docs/maintenance/FUC_THEME.md index ecb4263c..dd2a88da 100644 --- a/docs/maintenance/FUC_THEME.md +++ b/docs/maintenance/FUC_THEME.md @@ -1,5 +1,7 @@ # Fuc:新版 FUC 用户主题适配 +2026-11-07 原生标志发布候选 Fuc 0.12.20:用户选择 Cool 主题原生折叠标志,登录/注册/找回密码、侧栏、首页和浏览器图标统一使用旧 FUC `cool1.png` 原始图案。原 PNG 字节嵌入 SVG,首页保留正式「福云」字标。资源引用更新缓存版本。发布范围仅品牌素材及其缓存引用;不包含本地折福试稿或其他未发布 UI/客服修改。回退基线为 `2c92a857e8da54c16c4861b25ea420f560ccc032`;发布验收以任务回执为准。 + ## Fuc 0.12.19 compatibility release — 2026-11-07 Based on production d552b8a592314d3e28ed261f213a49e272346f57, preserving the node ordering change. Mobile sidebar uses native vertical scrolling, desktop keeps PerfectScrollbar and the original hover indentation. Mobile dashboard tutorial buttons, subscription controls and chart stay inside their cards. Touch/narrow form controls have at least 16px fonts, touch login does not autofocus, and menu logic follows CSS matchMedia breakpoints. diff --git a/theme/Fuc/assets/app.mjs b/theme/Fuc/assets/app.mjs index fd252eea..87410914 100644 --- a/theme/Fuc/assets/app.mjs +++ b/theme/Fuc/assets/app.mjs @@ -7,7 +7,7 @@ import {copyText} from './clipboard.mjs?v=0.12.6'; import {createCaptcha} from './captcha.mjs?v=0.12.6'; import {showPayment,mountCard} from './payments.mjs?v=0.12.14'; import {beginPageProgress,finishPageProgress} from './progress.mjs?v=0.12.6'; -import {nativeReady,prepareNativeMode,nativeMode,fillPurchaseModal,nativeHeader,nativeFooter,nativeDashboard,nativeHome,nativeAuth,nativeSecondary,paintNativeChart,paintNativeHome} from './native.mjs?v=0.12.19'; +import {nativeReady,prepareNativeMode,nativeMode,fillPurchaseModal,nativeHeader,nativeFooter,nativeDashboard,nativeHome,nativeAuth,nativeSecondary,paintNativeChart,paintNativeHome} from './native.mjs?v=0.12.20'; import {escape as e, money, bytes, date, list, groupedList, periods, orderStates, soldOut, safeUrl, createApi, fetchNotices, routeFromHash,canPurchase} from './core.mjs?v=0.12.13'; const settings = window.fucSettings || {}; const root = document.querySelector('#app'); diff --git a/theme/Fuc/assets/native.mjs b/theme/Fuc/assets/native.mjs index 800d56ba..beeb57f7 100644 --- a/theme/Fuc/assets/native.mjs +++ b/theme/Fuc/assets/native.mjs @@ -6,7 +6,7 @@ const base = new URL('./native/',import.meta.url).href; const bridgeStyle = 'bridge.css?v=0.12.19'; let templates = {},sourceStyles={}; const styleReady=fetch(base+'styles.json?v=0.12.13').then(r=>r.json()).then(v=>sourceStyles=v); -export const nativeReady = Promise.all(['footer','header','index','home','login','register','forget','reset','plans','wallet','invite','profile','tickets','ticket','servers','notices','knowledge','article','faq','orders','purchase','checkout','walletlog','afflog'].map(async name=>{const version={footer:'0.12.17',header:'0.12.13',index:'0.12.13',plans:'0.12.13',checkout:'0.12.13',purchase:'0.12.13'}[name]||'ui-unify-1';const r=await fetch(`${base}${name}.html?v=${version}`);if(!r.ok)throw Error('原版模板加载失败');templates[name]=await r.text();})).then(()=>styleReady); +export const nativeReady = Promise.all(['footer','header','index','home','login','register','forget','reset','plans','wallet','invite','profile','tickets','ticket','servers','notices','knowledge','article','faq','orders','purchase','checkout','walletlog','afflog'].map(async name=>{const version={footer:'0.12.17',header:'0.12.20',home:'0.12.20',login:'0.12.20',register:'0.12.20',forget:'0.12.20',reset:'0.12.20',index:'0.12.13',plans:'0.12.13',checkout:'0.12.13',purchase:'0.12.13'}[name]||'ui-unify-1';const r=await fetch(`${base}${name}.html?v=${version}`);if(!r.ok)throw Error('原版模板加载失败');templates[name]=await r.text();})).then(()=>styleReady); let nativeSwiper=null,swiperLibrary=null; export async function paintNativeHome(){if(!document.querySelector('.native-public .swiper-container'))return;if(!window.Swiper){if(!swiperLibrary)swiperLibrary=new Promise((resolve,reject)=>{const s=document.createElement('script');s.src=base+'assets/cool/swiper.min.js';s.onload=resolve;s.onerror=reject;document.head.append(s);});await swiperLibrary;}const el=document.querySelector('.native-public .swiper-container');if(!el)return;if(nativeSwiper){try{nativeSwiper.destroy(true,true);}catch{}}el.querySelectorAll('.swiper-slide').forEach(n=>{n.style.removeProperty('display');n.style.removeProperty('width');});el.querySelector('.swiper-wrapper')?.removeAttribute('style');nativeSwiper=new window.Swiper(el,{direction:'horizontal',loop:true,autoplay:{delay:5000,disableOnInteraction:true},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev'}});} let currentMode='',currentStyleMode='',styleSequence=0,chartData=null,chartInstance=null,chartLibrary=null; @@ -44,7 +44,7 @@ function syncNativeMenu(root){ } export function nativeMode(mode, page='') { applyPalette(); - let icon=document.getElementById('native-icon');if(!icon){icon=document.createElement('link');icon.id='native-icon';icon.rel='icon';icon.type='image/svg+xml';icon.href=base+'images/brand/fuc-mark.svg';document.head.append(icon);} + let icon=document.getElementById('native-icon');if(!icon){icon=document.createElement('link');icon.id='native-icon';icon.rel='icon';icon.type='image/svg+xml';icon.href=base+'images/brand/fuc-mark.svg?v=0.12.20';document.head.append(icon);} const key=mode==='home'?'home':mode==='auth'?(page||'login'):(page||document.body.dataset.nativePage||'dashboard'); if(mode!=='home'&&nativeSwiper){try{nativeSwiper.destroy(true,true);}catch{}nativeSwiper=null;} if((mode!=='user'||key!=='dashboard')&&chartInstance){try{chartInstance.destroy();}catch{}chartInstance=null;} diff --git a/theme/Fuc/assets/native/forget.html b/theme/Fuc/assets/native/forget.html index d6843cbe..931cad51 100644 --- a/theme/Fuc/assets/native/forget.html +++ b/theme/Fuc/assets/native/forget.html @@ -5,9 +5,9 @@ 找回密码 — 福云 - - - + + + @@ -38,7 +38,7 @@

重置密码 🔒

diff --git a/theme/Fuc/assets/native/header.html b/theme/Fuc/assets/native/header.html index 2fa44279..7ac09fc7 100644 --- a/theme/Fuc/assets/native/header.html +++ b/theme/Fuc/assets/native/header.html @@ -124,7 +124,7 @@