Merge pull request 'amalia/20-mei-26' (#24) from amalia/20-mei-26 into main
Reviewed-on: #24
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bun-react-template",
|
||||
"version": "0.1.9",
|
||||
"version": "0.1.12",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
Card,
|
||||
Center,
|
||||
Container,
|
||||
Divider,
|
||||
Group,
|
||||
Loader,
|
||||
Menu,
|
||||
@@ -77,7 +78,7 @@ import { notifications } from '@mantine/notifications'
|
||||
import { type Role, useLogout, useSession } from '@/frontend/hooks/useAuth'
|
||||
import { usePresence } from '@/frontend/hooks/usePresence'
|
||||
|
||||
const validTabs = ['overview', 'operators', 'bugs', 'app-logs', 'activity-logs', 'database', 'project', 'api-keys', 'settings'] as const
|
||||
const validTabs = ['overview', 'operators', 'bugs', 'app-logs', 'activity-logs', 'database', 'project', 'settings', 'api-keys'] as const
|
||||
|
||||
export const Route = createFileRoute('/dev')({
|
||||
validateSearch: (search: Record<string, unknown>) => ({
|
||||
@@ -117,8 +118,9 @@ const navItems = [
|
||||
// { label: 'Activity Logs', icon: TbActivity, key: 'activity-logs' },
|
||||
{ label: 'Database', icon: TbDatabase, key: 'database' },
|
||||
{ label: 'Project', icon: TbSitemap, key: 'project' },
|
||||
{ label: 'API Keys', icon: TbKey, key: 'api-keys' },
|
||||
{ label: 'Settings', icon: TbSettings, key: 'settings' },
|
||||
{ label: 'App Config', icon: TbSettings, key: 'settings' },
|
||||
{ divider: true, key: '__divider-external__' },
|
||||
{ label: 'Desa Mandiri Keys', icon: TbKey, key: 'api-keys' },
|
||||
]
|
||||
|
||||
function DevPage() {
|
||||
@@ -201,7 +203,8 @@ function DevPage() {
|
||||
<AppShell.Section grow>
|
||||
<Stack gap={4}>
|
||||
{navItems.map((item) => {
|
||||
const Icon = item.icon
|
||||
if (item.divider) return <Divider key={item.key} my={4} />
|
||||
const Icon = item.icon!
|
||||
if (collapsed) {
|
||||
return (
|
||||
<Tooltip key={item.key} label={item.label} position="right">
|
||||
@@ -1590,7 +1593,7 @@ function SettingsPanel() {
|
||||
<Stack>
|
||||
<Group justify="space-between">
|
||||
<div>
|
||||
<Title order={3}>Application Settings</Title>
|
||||
<Title order={3}>App Config</Title>
|
||||
<Text size="sm" c="dimmed">Manage the URL API and API Key for each application.</Text>
|
||||
</div>
|
||||
<Button leftSection={<TbApps size={16} />} onClick={openAdd}>Add App</Button>
|
||||
@@ -1798,8 +1801,8 @@ function ApiKeysPanel() {
|
||||
<Stack>
|
||||
<Group justify="space-between">
|
||||
<div>
|
||||
<Title order={3}>API Keys</Title>
|
||||
<Text size="sm" c="dimmed">Kelola API key untuk akses endpoint /api/ai/*</Text>
|
||||
<Title order={3}>Desa Mandiri Keys</Title>
|
||||
<Text size="sm" c="dimmed">Manage access tokens for the Desa Mandiri system</Text>
|
||||
</div>
|
||||
<Button leftSection={<TbKey size={14} />} onClick={openCreate}>
|
||||
Buat Key Baru
|
||||
|
||||
Reference in New Issue
Block a user