mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Add log filters to web ui (#746)
* Add max level select to logs Closes: #745 * Add log filter for server actions Closes: #744 * Respond to comments Change name of component, clean up onChange anon function
This commit is contained in:
1 parent
81fb223d5e
commit
f3a62e585f
8 files changed
+113
-27
No files matched your search
@@ -4,6 +4,10 @@ export function StringEnum<T extends string[]>(values: [...T]) {
|
||||
return Type.Unsafe<T[number]>({ type: "string", enum: values });
|
||||
}
|
||||
|
||||
export function StringKey<T extends string>(object: Record<T, any>) {
|
||||
return Type.Unsafe<keyof typeof object>({ type: "string", enum: Object.keys(object) });
|
||||
}
|
||||
|
||||
export interface JSONDeserialisable<T> {
|
||||
fromJSON(json: unknown): T;
|
||||
jsonSchema: object;
|
||||
|
||||
Reference in new issue
Block a user