feat: responsive header, search boxes (#10)

This commit is contained in:
UUBulb
2024-11-22 07:41:47 +08:00
committed by GitHub
parent 33b2ffb40c
commit 87e17a07df
28 changed files with 672 additions and 168 deletions

View File

@@ -1,6 +1,6 @@
import { ModelNotification, ModelNotificationGroupResponseItem } from "@/types";
import { NotificationIdentifierType, ModelNotificationGroupResponseItem } from "@/types";
export interface NotificationContextProps {
notifiers?: ModelNotification[];
notifiers?: NotificationIdentifierType[];
notifierGroup?: ModelNotificationGroupResponseItem[];
}

View File

@@ -1,8 +1,13 @@
import { ModelNotification, ModelNotificationGroupResponseItem } from "@/types";
import { ModelNotificationGroupResponseItem } from "@/types";
export interface NotificationIdentifierType {
id: number;
name: string;
}
export interface NotificationStore {
notifiers?: ModelNotification[];
notifiers?: NotificationIdentifierType[];
notifierGroup?: ModelNotificationGroupResponseItem[];
setNotifier: (notifiers?: ModelNotification[]) => void;
setNotifier: (notifiers?: NotificationIdentifierType[]) => void;
setNotifierGroup: (notifierGroup?: ModelNotificationGroupResponseItem[]) => void;
}

View File

@@ -1,6 +1,6 @@
import { ModelServerGroupResponseItem, ModelServer } from "@/types";
import { ModelServerGroupResponseItem, ServerIdentifierType } from "@/types";
export interface ServerContextProps {
servers?: ModelServer[];
servers?: ServerIdentifierType[];
serverGroups?: ModelServerGroupResponseItem[];
}

View File

@@ -1,8 +1,13 @@
import { ModelServer, ModelServerGroupResponseItem } from "@/types";
import { ModelServerGroupResponseItem } from "@/types";
export interface ServerIdentifierType {
id: number;
name: string;
}
export interface ServerStore {
server?: ModelServer[];
server?: ServerIdentifierType[];
serverGroup?: ModelServerGroupResponseItem[];
setServer: (server?: ModelServer[]) => void;
setServer: (server?: ServerIdentifierType[]) => void;
setServerGroup: (serverGroup?: ModelServerGroupResponseItem[]) => void;
}