chore: switch to react-router v7

This commit is contained in:
Aarnav Tale
2024-12-31 10:30:14 +05:30
parent 39504e2487
commit aa9872a45b
101 changed files with 3825 additions and 6796 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ export type Key = {
expiration: string;
createdAt: Date;
lastSeen: Date;
}
};
+22 -21
View File
@@ -1,28 +1,29 @@
import type { User } from './User'
import type { User } from './User';
export interface Machine {
id: string
machineKey: string
nodeKey: string
discoKey: string
ipAddresses: string[]
name: string
id: string;
machineKey: string;
nodeKey: string;
discoKey: string;
ipAddresses: string[];
name: string;
user: User
lastSeen: string
expiry: string
user: User;
lastSeen: string;
expiry: string;
preAuthKey?: unknown // TODO
preAuthKey?: unknown; // TODO
createdAt: string
registerMethod: 'REGISTER_METHOD_UNSPECIFIED'
| 'REGISTER_METHOD_AUTH_KEY'
| 'REGISTER_METHOD_CLI'
| 'REGISTER_METHOD_OIDC'
createdAt: string;
registerMethod:
| 'REGISTER_METHOD_UNSPECIFIED'
| 'REGISTER_METHOD_AUTH_KEY'
| 'REGISTER_METHOD_CLI'
| 'REGISTER_METHOD_OIDC';
forcedTags: string[]
invalidTags: string[]
validTags: string[]
givenName: string
online: boolean
forcedTags: string[];
invalidTags: string[];
validTags: string[];
givenName: string;
online: boolean;
}
+9 -9
View File
@@ -1,11 +1,11 @@
export interface PreAuthKey {
id: string
key: string
user: string
reusable: boolean
ephemeral: boolean
used: boolean
expiration: string
createdAt: string
aclTags: string[]
id: string;
key: string;
user: string;
reusable: boolean;
ephemeral: boolean;
used: boolean;
expiration: string;
createdAt: string;
aclTags: string[];
}
+10 -10
View File
@@ -1,13 +1,13 @@
import type { Machine } from './Machine'
import type { Machine } from './Machine';
export interface Route {
id: string
node: Machine
prefix: string
advertised: boolean
enabled: boolean
isPrimary: boolean
createdAt: string
updatedAt: string
deletedAt: string
id: string;
node: Machine;
prefix: string;
advertised: boolean;
enabled: boolean;
isPrimary: boolean;
createdAt: string;
updatedAt: string;
deletedAt: string;
}
+3 -3
View File
@@ -1,5 +1,5 @@
export interface User {
id: string
name: string
createdAt: string
id: string;
name: string;
createdAt: string;
}
+5 -5
View File
@@ -1,5 +1,5 @@
export * from './Key'
export * from './Machine'
export * from './Route'
export * from './User'
export * from './PreAuthKey'
export * from './Key';
export * from './Machine';
export * from './Route';
export * from './User';
export * from './PreAuthKey';