Files
ragflow_python/web/src/interfaces/database/user-setting.ts
Fachuan Bai ddb8be9219 Web: Display the icon of the currently used storage. (#2504)
https://github.com/infiniflow/ragflow/issues/2503


### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Before:

<img width="611" alt="image"
src="https://github.com/user-attachments/assets/02a3a1ee-7bfb-4fe0-9b15-11ced69cc8a3">

After:

<img width="796" alt="image"
src="https://github.com/user-attachments/assets/371136af-8d16-47aa-909b-26609d3ad60e">

<img width="557" alt="image"
src="https://github.com/user-attachments/assets/9268362f-2b6a-4ea1-9fe7-659f7292e5e1">
2024-09-20 09:49:16 +08:00

63 lines
1.1 KiB
TypeScript

export interface IUserInfo {
access_token: string;
avatar?: any;
color_schema: string;
create_date: string;
create_time: number;
email: string;
id: string;
is_active: string;
is_anonymous: string;
is_authenticated: string;
is_superuser: boolean;
language: string;
last_login_time: string;
login_channel: string;
nickname: string;
password: string;
status: string;
update_date: string;
update_time: number;
}
export type TaskExecutorElapsed = Record<string, number[]>;
export interface ISystemStatus {
es: Es;
storage: Storage;
database: Database;
redis: Redis;
task_executor: {
error?: string;
status: string;
elapsed?: TaskExecutorElapsed;
};
}
interface Redis {
status: string;
elapsed: number;
error: string;
pending: number;
}
export interface Storage {
status: string;
elapsed: number;
error: string;
}
export interface Database {
status: string;
elapsed: number;
error: string;
}
interface Es {
status: string;
elapsed: number;
error: string;
number_of_nodes: number;
active_shards: number;
}