refactor: Simplify README and remove outdated images; enhance Navbar with Home link
19
README.md
@@ -25,28 +25,11 @@
|
|||||||
### Desktop - Dark Mode
|
### Desktop - Dark Mode
|
||||||

|

|
||||||
|
|
||||||
### Desktop - Voice Design List
|
### Mobile
|
||||||

|
|
||||||
|
|
||||||
### Desktop - Save Voice Design Dialog
|
|
||||||

|
|
||||||
|
|
||||||
### Desktop - Voice Cloning
|
|
||||||

|
|
||||||
|
|
||||||
### Mobile - Light & Dark Mode
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="50%"><img src="./images/mobile-lightmode-custom.png" alt="Mobile Light Mode" /></td>
|
<td width="50%"><img src="./images/mobile-lightmode-custom.png" alt="Mobile Light Mode" /></td>
|
||||||
<td width="50%"><img src="./images/mobile-darkmode-custom.png" alt="Mobile Dark Mode" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
### Mobile - Settings & History
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td width="50%"><img src="./images/mobile-settings.png" alt="Mobile Settings" /></td>
|
<td width="50%"><img src="./images/mobile-settings.png" alt="Mobile Settings" /></td>
|
||||||
<td width="50%"><img src="./images/mobile-history.png" alt="Mobile History" /></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
19
README.zh.md
@@ -25,28 +25,11 @@
|
|||||||
### 桌面端 - 暗黑模式
|
### 桌面端 - 暗黑模式
|
||||||

|

|
||||||
|
|
||||||
### 桌面端 - 语音设计列表
|
### 移动端
|
||||||

|
|
||||||
|
|
||||||
### 桌面端 - 保存语音设计对话框
|
|
||||||

|
|
||||||
|
|
||||||
### 桌面端 - 语音克隆
|
|
||||||

|
|
||||||
|
|
||||||
### 移动端 - 亮色与暗黑模式
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="50%"><img src="./images/mobile-lightmode-custom.png" alt="移动端亮色模式" /></td>
|
<td width="50%"><img src="./images/mobile-lightmode-custom.png" alt="移动端亮色模式" /></td>
|
||||||
<td width="50%"><img src="./images/mobile-darkmode-custom.png" alt="移动端暗黑模式" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
### 移动端 - 设置与历史记录
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td width="50%"><img src="./images/mobile-settings.png" alt="移动端设置" /></td>
|
<td width="50%"><img src="./images/mobile-settings.png" alt="移动端设置" /></td>
|
||||||
<td width="50%"><img src="./images/mobile-history.png" alt="移动端历史记录" /></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 317 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 356 KiB |
|
Before Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 151 KiB |
@@ -1,5 +1,5 @@
|
|||||||
import { Menu, LogOut, Users, Settings, Globe } from 'lucide-react'
|
import { Menu, LogOut, Users, Settings, Globe, Home } from 'lucide-react'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link, useLocation } from 'react-router-dom'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import {
|
import {
|
||||||
@@ -20,6 +20,7 @@ export function Navbar({ onToggleSidebar }: NavbarProps) {
|
|||||||
const { logout, user } = useAuth()
|
const { logout, user } = useAuth()
|
||||||
const { changeLanguage } = useUserPreferences()
|
const { changeLanguage } = useUserPreferences()
|
||||||
const { t, i18n } = useTranslation(['nav', 'constants'])
|
const { t, i18n } = useTranslation(['nav', 'constants'])
|
||||||
|
const location = useLocation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className="h-16 flex items-center justify-end px-4 gap-2">
|
<nav className="h-16 flex items-center justify-end px-4 gap-2">
|
||||||
@@ -34,6 +35,14 @@ export function Navbar({ onToggleSidebar }: NavbarProps) {
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{location.pathname !== '/' && (
|
||||||
|
<Link to="/" className="mr-auto">
|
||||||
|
<Button variant="ghost" size="icon">
|
||||||
|
<Home className="h-5 w-5" />
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
|
||||||
{user?.is_superuser && (
|
{user?.is_superuser && (
|
||||||
<Link to="/users">
|
<Link to="/users">
|
||||||
<Button variant="ghost" size="icon">
|
<Button variant="ghost" size="icon">
|
||||||
|
|||||||