tambah aduan sampah

This commit is contained in:
bipproduction
2025-10-20 14:01:08 +08:00
parent 4cec5e40ab
commit 75d8f6a1c3
12 changed files with 168 additions and 70 deletions

View File

@@ -329,8 +329,12 @@ function ListApiKey() {
{new Date(apiKey.expiredAt).toLocaleDateString()}
</Badge>
</Table.Td>
<Table.Td>{new Date(apiKey.createdAt).toLocaleDateString()}</Table.Td>
<Table.Td>{new Date(apiKey.updatedAt).toLocaleDateString()}</Table.Td>
<Table.Td>
{new Date(apiKey.createdAt).toLocaleDateString()}
</Table.Td>
<Table.Td>
{new Date(apiKey.updatedAt).toLocaleDateString()}
</Table.Td>
<Table.Td>
<Group gap="xs" justify="center">
<Tooltip label="Copy API Key">

View File

@@ -69,7 +69,8 @@ function CredentialCreate() {
showNotification({
color: "teal",
title: "Credential Saved",
message: data?.message || "Your credential has been successfully added.",
message:
data?.message || "Your credential has been successfully added.",
});
reloadState();
} catch {
@@ -164,7 +165,7 @@ function CredentialCreate() {
function CredentialList() {
const { data, mutate, isLoading } = useSwr("/", () =>
apiFetch.api.credential.list.get()
apiFetch.api.credential.list.get(),
);
useShallowEffect(() => {
@@ -263,9 +264,7 @@ function CredentialList() {
(e.currentTarget.style.boxShadow =
"0 0 10px rgba(0,255,200,0.2)")
}
onMouseLeave={(e) =>
(e.currentTarget.style.boxShadow = "none")
}
onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")}
>
<Flex align="center" justify="space-between">
<Stack gap={2}>

View File

@@ -28,7 +28,10 @@ import {
} from "@tabler/icons-react";
import type { User } from "generated/prisma";
import { Outlet, useLocation, useNavigate } from "react-router-dom";
import { default as clientRoute, default as clientRoutes } from "@/clientRoutes";
import {
default as clientRoute,
default as clientRoutes,
} from "@/clientRoutes";
import apiFetch from "@/lib/apiFetch";
function Logout() {
@@ -254,7 +257,9 @@ function NavigationDashboard() {
</Flex>
}
description={item.description}
onClick={() => navigate(clientRoutes[item.path as keyof typeof clientRoute])}
onClick={() =>
navigate(clientRoutes[item.path as keyof typeof clientRoute])
}
style={{
backgroundColor: isActive(item.path as keyof typeof clientRoute)
? "rgba(0,255,200,0.1)"