React Interface v1

This commit is contained in:
DomySh
2022-06-12 12:09:50 +02:00
parent af63ab176f
commit e62e655fdc
20 changed files with 547 additions and 110 deletions

View File

@@ -1,6 +1,7 @@
export const update_freq = 3000;
export const update_freq = 5000;
export const notification_time = 2000;
export type GeneralStats = {
services:number,
@@ -17,3 +18,21 @@ export type Service = {
n_packets:number,
n_regex:number,
}
export type ServiceAddForm = {
name:string,
port:number
}
export type ServerResponse = {
status:string
}
export type RegexFilter = {
id:number,
service_id:string,
regex:string
is_blacklist:boolean,
mode:string // C->S S->C BOTH
}