mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-25 08:32:27 -04:00
Add setup page componant
This commit is contained in:
@@ -33,6 +33,12 @@ export const OidcInfoP = z.object({
|
||||
logoUrl: z.string().nullable(),
|
||||
});
|
||||
|
||||
export enum SetupStep {
|
||||
MissingAdminAccount = "MissingAdminAccount",
|
||||
NoVideoFound = "NoVideoFound",
|
||||
Done = "Done",
|
||||
}
|
||||
|
||||
export const ServerInfoP = z
|
||||
.object({
|
||||
/*
|
||||
@@ -51,6 +57,10 @@ export const ServerInfoP = z
|
||||
* The list of oidc providers configured for this instance of kyoo.
|
||||
*/
|
||||
oidc: z.record(z.string(), OidcInfoP),
|
||||
/*
|
||||
* Check if kyoo's setup is finished.
|
||||
*/
|
||||
setupStatus: z.nativeEnum(SetupStep),
|
||||
})
|
||||
.transform((x) => {
|
||||
const baseUrl = Platform.OS === "web" ? x.publicUrl : "kyoo://";
|
||||
|
||||
Reference in New Issue
Block a user