mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
feat: user profile/settings pages (#958)
This commit is contained in:
9
src/pages/profile/index.tsx
Normal file
9
src/pages/profile/index.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserProfile from '../../components/UserProfile';
|
||||
|
||||
const UserPage: NextPage = () => {
|
||||
return <UserProfile />;
|
||||
};
|
||||
|
||||
export default UserPage;
|
||||
14
src/pages/profile/settings/index.tsx
Normal file
14
src/pages/profile/settings/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../components/UserProfile/UserSettings';
|
||||
import UserGeneralSettings from '../../../components/UserProfile/UserSettings/UserGeneralSettings';
|
||||
|
||||
const UserSettingsPage: NextPage = () => {
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserGeneralSettings />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserSettingsPage;
|
||||
14
src/pages/profile/settings/main.tsx
Normal file
14
src/pages/profile/settings/main.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../components/UserProfile/UserSettings';
|
||||
import UserGeneralSettings from '../../../components/UserProfile/UserSettings/UserGeneralSettings';
|
||||
|
||||
const UserSettingsMainPage: NextPage = () => {
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserGeneralSettings />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserSettingsMainPage;
|
||||
14
src/pages/profile/settings/notifications.tsx
Normal file
14
src/pages/profile/settings/notifications.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../components/UserProfile/UserSettings';
|
||||
import UserNotificationSettings from '../../../components/UserProfile/UserSettings/UserNotificationSettings';
|
||||
|
||||
const UserSettingsMainPage: NextPage = () => {
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserNotificationSettings />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserSettingsMainPage;
|
||||
14
src/pages/profile/settings/password.tsx
Normal file
14
src/pages/profile/settings/password.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../components/UserProfile/UserSettings';
|
||||
import UserPasswordChange from '../../../components/UserProfile/UserSettings/UserPasswordChange';
|
||||
|
||||
const UserPassswordPage: NextPage = () => {
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserPasswordChange />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserPassswordPage;
|
||||
14
src/pages/profile/settings/permissions.tsx
Normal file
14
src/pages/profile/settings/permissions.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../components/UserProfile/UserSettings';
|
||||
import UserPermissions from '../../../components/UserProfile/UserSettings/UserPermissions';
|
||||
|
||||
const UserPermissionsPage: NextPage = () => {
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserPermissions />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserPermissionsPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
import React from 'react';
|
||||
import { NextPage } from 'next';
|
||||
import UserEdit from '../../../components/UserEdit';
|
||||
import useRouteGuard from '../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../hooks/useUser';
|
||||
|
||||
const UserProfilePage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return <UserEdit />;
|
||||
};
|
||||
|
||||
export default UserProfilePage;
|
||||
9
src/pages/users/[userId]/index.tsx
Normal file
9
src/pages/users/[userId]/index.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserProfile from '../../../components/UserProfile';
|
||||
|
||||
const UserPage: NextPage = () => {
|
||||
return <UserProfile />;
|
||||
};
|
||||
|
||||
export default UserPage;
|
||||
17
src/pages/users/[userId]/settings/index.tsx
Normal file
17
src/pages/users/[userId]/settings/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../../components/UserProfile/UserSettings';
|
||||
import UserGeneralSettings from '../../../../components/UserProfile/UserSettings/UserGeneralSettings';
|
||||
import useRouteGuard from '../../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../../hooks/useUser';
|
||||
|
||||
const UserSettingsPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserGeneralSettings />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserSettingsPage;
|
||||
17
src/pages/users/[userId]/settings/main.tsx
Normal file
17
src/pages/users/[userId]/settings/main.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../../components/UserProfile/UserSettings';
|
||||
import UserGeneralSettings from '../../../../components/UserProfile/UserSettings/UserGeneralSettings';
|
||||
import useRouteGuard from '../../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../../hooks/useUser';
|
||||
|
||||
const UserSettingsMainPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserGeneralSettings />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserSettingsMainPage;
|
||||
17
src/pages/users/[userId]/settings/notifications.tsx
Normal file
17
src/pages/users/[userId]/settings/notifications.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../../components/UserProfile/UserSettings';
|
||||
import UserNotificationSettings from '../../../../components/UserProfile/UserSettings/UserNotificationSettings';
|
||||
import useRouteGuard from '../../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../../hooks/useUser';
|
||||
|
||||
const UserSettingsMainPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserNotificationSettings />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserSettingsMainPage;
|
||||
17
src/pages/users/[userId]/settings/password.tsx
Normal file
17
src/pages/users/[userId]/settings/password.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../../components/UserProfile/UserSettings';
|
||||
import UserPasswordChange from '../../../../components/UserProfile/UserSettings/UserPasswordChange';
|
||||
import useRouteGuard from '../../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../../hooks/useUser';
|
||||
|
||||
const UserPassswordPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserPasswordChange />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserPassswordPage;
|
||||
17
src/pages/users/[userId]/settings/permissions.tsx
Normal file
17
src/pages/users/[userId]/settings/permissions.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NextPage } from 'next';
|
||||
import React from 'react';
|
||||
import UserSettings from '../../../../components/UserProfile/UserSettings';
|
||||
import UserPermissions from '../../../../components/UserProfile/UserSettings/UserPermissions';
|
||||
import useRouteGuard from '../../../../hooks/useRouteGuard';
|
||||
import { Permission } from '../../../../hooks/useUser';
|
||||
|
||||
const UserPermissionsPage: NextPage = () => {
|
||||
useRouteGuard(Permission.MANAGE_USERS);
|
||||
return (
|
||||
<UserSettings>
|
||||
<UserPermissions />
|
||||
</UserSettings>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserPermissionsPage;
|
||||
Reference in New Issue
Block a user