Add "My Profile" Page

Make integer parsing in ConfigService more robust
Add validation to config pages
Implement Cron expression validator
This commit is contained in:
Simon Grimme
2024-09-11 18:06:21 +02:00
parent 156c6b9184
commit 1273714b8d
20 changed files with 303 additions and 201 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
import {Listbox, ListboxItem} from "@nextui-org/react";
import {GearFine, Palette, User} from "@phosphor-icons/react";
import {Outlet, useNavigate} from "react-router-dom";
import {useState} from "react";
export default function ProfileView() {
const navigate = useNavigate();
@@ -11,7 +10,7 @@ export default function ProfileView() {
title: "My Profile",
key: "profile",
icon: <User/>,
action: () => navigate('/profile')
action: () => navigate('profile')
},
{
title: "Appearance",
@@ -38,7 +37,7 @@ export default function ProfileView() {
))}
</Listbox>
</div>
<div className="flex flex-col">
<div className="flex flex-col flex-grow">
<Outlet/>
</div>
</div>
+4 -4
View File
@@ -2,7 +2,7 @@ import React from 'react';
import * as Yup from 'yup';
import Wizard from "Frontend/components/wizard/Wizard";
import WizardStep from "Frontend/components/wizard/WizardStep";
import Input from "Frontend/components/Input";
import Input from "Frontend/components/general/Input";
import {GearFine, HandWaving, Palette, User} from "@phosphor-icons/react";
import {Card} from "@nextui-org/react";
import {SetupEndpoint} from "Frontend/generated/endpoints";
@@ -95,9 +95,9 @@ function SetupView() {
onSubmit={
async (values: any) => {
await SetupEndpoint.registerSuperAdmin({
username: values.username,
password: values.password,
email: values.email
username: values.username,
password: values.password,
email: values.email
});
toast.success("Setup finished", {description: "Have fun with Gameyfin!"});
navigate('/login');