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

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

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

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

|
||||
|
||||
### Mobile - Light & Dark Mode
|
||||
### Mobile
|
||||
<table>
|
||||
<tr>
|
||||
<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-history.png" alt="Mobile History" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
19
README.zh.md
@@ -25,28 +25,11 @@
|
||||
### 桌面端 - 暗黑模式
|
||||

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

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

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

|
||||
|
||||
### 移动端 - 亮色与暗黑模式
|
||||
### 移动端
|
||||
<table>
|
||||
<tr>
|
||||
<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-history.png" alt="移动端历史记录" /></td>
|
||||
</tr>
|
||||
</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 { Link } from 'react-router-dom'
|
||||
import { Menu, LogOut, Users, Settings, Globe, Home } from 'lucide-react'
|
||||
import { Link, useLocation } from 'react-router-dom'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import {
|
||||
@@ -20,6 +20,7 @@ export function Navbar({ onToggleSidebar }: NavbarProps) {
|
||||
const { logout, user } = useAuth()
|
||||
const { changeLanguage } = useUserPreferences()
|
||||
const { t, i18n } = useTranslation(['nav', 'constants'])
|
||||
const location = useLocation()
|
||||
|
||||
return (
|
||||
<nav className="h-16 flex items-center justify-end px-4 gap-2">
|
||||
@@ -34,6 +35,14 @@ export function Navbar({ onToggleSidebar }: NavbarProps) {
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{location.pathname !== '/' && (
|
||||
<Link to="/" className="mr-auto">
|
||||
<Button variant="ghost" size="icon">
|
||||
<Home className="h-5 w-5" />
|
||||
</Button>
|
||||
</Link>
|
||||
)}
|
||||
|
||||
{user?.is_superuser && (
|
||||
<Link to="/users">
|
||||
<Button variant="ghost" size="icon">
|
||||
|
||||