mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
feat(ui): add global search button to the phone header
This commit is contained in:
1 parent
3c23fc3b7d
commit
3b6dabcd7c
18 files changed
+80
-4
No files matched your search
@@ -1,9 +1,8 @@
|
||||
import { Menu, Plus, X } from 'lucide-react';
|
||||
import { Menu, Plus, Search, X } from 'lucide-react';
|
||||
import { t } from '../i18n/t';
|
||||
import { useTheme } from '../contexts/useTheme.js';
|
||||
import ServerKitLogo from './ServerKitLogo';
|
||||
import NotificationBell from './NotificationBell';
|
||||
import QuickCreate from './QuickCreate';
|
||||
import { Button as SharedButton } from '@/components/ui/button';
|
||||
import { useRegisteredPrimaryAction } from '../contexts/pagePrimaryAction.js';
|
||||
|
||||
@@ -45,7 +44,16 @@ const MobileTopBar = ({ navOpen, onToggle }) => {
|
||||
<span className="mobile-topbar__name">{brandName}</span>
|
||||
</div>
|
||||
<div className="mobile-topbar__actions">
|
||||
{primary ? (
|
||||
<SharedButton variant="unstyled"
|
||||
type="button"
|
||||
className="quick-create"
|
||||
title={t('app.mobileSearch.title', 'Search everything (Ctrl K)')}
|
||||
aria-label={t('app.mobileSearch.label', 'Search')}
|
||||
onClick={() => window.dispatchEvent(new CustomEvent('serverkit:open-palette'))}
|
||||
>
|
||||
<Search size={16} aria-hidden="true" />
|
||||
</SharedButton>
|
||||
{primary && (
|
||||
<SharedButton variant="unstyled"
|
||||
type="button"
|
||||
className="quick-create"
|
||||
@@ -56,7 +64,7 @@ const MobileTopBar = ({ navOpen, onToggle }) => {
|
||||
>
|
||||
<Plus size={16} />
|
||||
</SharedButton>
|
||||
) : <QuickCreate />}
|
||||
)}
|
||||
<NotificationBell />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "المستخدمين",
|
||||
"workspaceBrandColor": "لون العلامة التجارية لمساحة العمل",
|
||||
"workspaceCreated": "تم إنشاء مساحة العمل"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "بحث",
|
||||
"title": "البحث في كل شيء (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "ব্যবহারকারীদের",
|
||||
"workspaceBrandColor": "কর্মক্ষেত্র ব্র্যান্ডের রঙ",
|
||||
"workspaceCreated": "ওয়ার্কস্পেস তৈরি করা হয়েছে"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "অনুসন্ধান",
|
||||
"title": "সবকিছু অনুসন্ধান করুন (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Benutzer",
|
||||
"workspaceBrandColor": "Markenfarbe des Arbeitsbereichs",
|
||||
"workspaceCreated": "Arbeitsbereich erstellt"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Suchen",
|
||||
"title": "Alles durchsuchen (Strg K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -3837,6 +3837,10 @@
|
||||
"yourDatabaseIsAt": "Your database is at",
|
||||
"yourSchemaAlreadyMatchesThisRepairs": "Your schema already matches {{value}}; this repairs the version pointer{{value2}}."
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Search",
|
||||
"title": "Search everything (Ctrl K)"
|
||||
},
|
||||
"modals": {
|
||||
"anyHost": "% (any host)",
|
||||
"attachServiceHint": "Optional. An attached database is listed on the service and is cleaned up with it.",
|
||||
|
||||
@@ -7911,6 +7911,10 @@
|
||||
"users": "Usuarios",
|
||||
"workspaceBrandColor": "Color de marca del espacio de trabajo",
|
||||
"workspaceCreated": "Espacio de trabajo creado"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Buscar",
|
||||
"title": "Buscar en todo (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Utilisateurs",
|
||||
"workspaceBrandColor": "Couleur de la marque de l'espace de travail",
|
||||
"workspaceCreated": "Espace de travail créé"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Rechercher",
|
||||
"title": "Tout rechercher (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Pengguna",
|
||||
"workspaceBrandColor": "Warna merek ruang kerja",
|
||||
"workspaceCreated": "Ruang kerja dibuat"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Cari",
|
||||
"title": "Cari semuanya (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Utenti",
|
||||
"workspaceBrandColor": "Colore del marchio dell'area di lavoro",
|
||||
"workspaceCreated": "Area di lavoro creata"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Cerca",
|
||||
"title": "Cerca ovunque (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "사용자",
|
||||
"workspaceBrandColor": "워크스페이스 브랜드 색상",
|
||||
"workspaceCreated": "작업공간이 생성되었습니다."
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "검색",
|
||||
"title": "전체 검색 (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Użytkownicy",
|
||||
"workspaceBrandColor": "Kolor marki Workspace",
|
||||
"workspaceCreated": "Utworzono obszar roboczy"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Szukaj",
|
||||
"title": "Szukaj wszędzie (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Usuários",
|
||||
"workspaceBrandColor": "Cor da marca do espaço de trabalho",
|
||||
"workspaceCreated": "Espaço de trabalho criado"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Pesquisar",
|
||||
"title": "Pesquisar tudo (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Пользователи",
|
||||
"workspaceBrandColor": "Фирменный цвет рабочего пространства",
|
||||
"workspaceCreated": "Рабочая область создана"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Поиск",
|
||||
"title": "Поиск везде (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "ผู้ใช้",
|
||||
"workspaceBrandColor": "สีของแบรนด์พื้นที่ทำงาน",
|
||||
"workspaceCreated": "สร้างพื้นที่ทำงานแล้ว"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "ค้นหา",
|
||||
"title": "ค้นหาทุกอย่าง (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Kullanıcılar",
|
||||
"workspaceBrandColor": "Çalışma alanı marka rengi",
|
||||
"workspaceCreated": "Çalışma alanı oluşturuldu"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Ara",
|
||||
"title": "Her yerde ara (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "Người dùng",
|
||||
"workspaceBrandColor": "Màu sắc thương hiệu không gian làm việc",
|
||||
"workspaceCreated": "Đã tạo không gian làm việc"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "Tìm kiếm",
|
||||
"title": "Tìm mọi thứ (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "用户",
|
||||
"workspaceBrandColor": "工作空间品牌颜色",
|
||||
"workspaceCreated": "工作区已创建"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "搜索",
|
||||
"title": "搜索全部 (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -7910,6 +7910,10 @@
|
||||
"users": "使用者",
|
||||
"workspaceBrandColor": "工作區品牌色彩",
|
||||
"workspaceCreated": "工作區已建立"
|
||||
},
|
||||
"mobileSearch": {
|
||||
"label": "搜尋",
|
||||
"title": "搜尋全部 (Ctrl K)"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
|
||||
Reference in new issue
Block a user