diff --git a/VERSIONS.json b/VERSIONS.json index 3a9e7ff..0ca6fc1 100644 --- a/VERSIONS.json +++ b/VERSIONS.json @@ -1,7 +1,7 @@ { "project": "ems-frontend-template", - "project_version": "1.2.0", - "core_version": "1.1.0", + "project_version": "1.3.0", + "core_version": "1.3.0", "last_updated": "2026-04-06", - "notes": "Base React/TypeScript UI template for customer frontends" + "notes": "Generic branding, removed all Tianpu-specific hardcoding" } diff --git a/index.html b/index.html index 14bcc3c..681054a 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - 天普智慧能源管理平台 + 智慧能源管理平台
diff --git a/package.json b/package.json index 4527373..4ae3628 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "1.2.0", + "version": "1.3.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src/contexts/ThemeContext.tsx b/src/contexts/ThemeContext.tsx index f20eb9e..ec841e8 100644 --- a/src/contexts/ThemeContext.tsx +++ b/src/contexts/ThemeContext.tsx @@ -12,12 +12,12 @@ const ThemeContext = createContext({ export function ThemeProvider({ children }: { children: ReactNode }) { const [darkMode, setDarkMode] = useState(() => { - const saved = localStorage.getItem('tianpu-dark-mode'); + const saved = localStorage.getItem('ems-dark-mode'); return saved === 'true'; }); useEffect(() => { - localStorage.setItem('tianpu-dark-mode', String(darkMode)); + localStorage.setItem('ems-dark-mode', String(darkMode)); document.documentElement.setAttribute('data-theme', darkMode ? 'dark' : 'light'); }, [darkMode]); diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 99508f2..989df10 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -8,7 +8,7 @@ i18n.use(initReactI18next).init({ zh: { translation: zh }, en: { translation: en }, }, - lng: localStorage.getItem('tianpu-lang') || 'zh', + lng: localStorage.getItem('ems-lang') || 'zh', fallbackLng: 'zh', interpolation: { escapeValue: false, diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index ef7d2ef..fb09e09 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -29,7 +29,7 @@ "viewAllAlarms": "View all alarms", "profile": "Profile", "logout": "Sign Out", - "brandName": "Tianpu EMS" + "brandName": "EMS Platform" }, "common": { "save": "Save", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index d6839d3..5341791 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -29,7 +29,7 @@ "viewAllAlarms": "查看全部告警", "profile": "个人信息", "logout": "退出登录", - "brandName": "天普EMS" + "brandName": "EMS Platform" }, "common": { "save": "保存", diff --git a/src/layouts/MainLayout.tsx b/src/layouts/MainLayout.tsx index ac1d705..23415ad 100644 --- a/src/layouts/MainLayout.tsx +++ b/src/layouts/MainLayout.tsx @@ -101,7 +101,7 @@ export default function MainLayout() { const handleLanguageChange = (lang: string) => { i18n.changeLanguage(lang); - localStorage.setItem('tianpu-lang', lang); + localStorage.setItem('ems-lang', lang); }; const userMenu = { diff --git a/src/pages/BigScreen/index.tsx b/src/pages/BigScreen/index.tsx index af92b77..dbbe99a 100644 --- a/src/pages/BigScreen/index.tsx +++ b/src/pages/BigScreen/index.tsx @@ -131,7 +131,7 @@ export default function BigScreen() { {/* Header */}
{formatDate(clock)} -

天普零碳园区智慧能源管理平台

+

智慧能源管理平台

{formatTime(clock)}
diff --git a/src/pages/BigScreen3D/components/HUDOverlay.tsx b/src/pages/BigScreen3D/components/HUDOverlay.tsx index 862a575..29d5578 100644 --- a/src/pages/BigScreen3D/components/HUDOverlay.tsx +++ b/src/pages/BigScreen3D/components/HUDOverlay.tsx @@ -47,7 +47,7 @@ export default function HUDOverlay({ overview, realtimeData }: HUDOverlayProps)
{formatDate(now)} - 天普零碳园区 3D智慧能源管理平台 + 3D智慧能源管理平台 {formatTime(now)}
diff --git a/src/pages/BigScreen3D/index.tsx b/src/pages/BigScreen3D/index.tsx index b9aa1fe..b586d7c 100644 --- a/src/pages/BigScreen3D/index.tsx +++ b/src/pages/BigScreen3D/index.tsx @@ -71,7 +71,7 @@ export default function BigScreen3D() { return (
-

天普零碳园区 3D智慧能源管理平台

+

3D智慧能源管理平台

正在加载设备数据...

diff --git a/src/pages/Login/index.tsx b/src/pages/Login/index.tsx index e204cf9..c5e2432 100644 --- a/src/pages/Login/index.tsx +++ b/src/pages/Login/index.tsx @@ -54,9 +54,9 @@ export default function LoginPage() {
- 天普智慧能源管理平台 + 智慧能源管理平台 - 零碳园区 · 智慧运维 + 智慧能源 · 高效运维