mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Updated settings.
This commit is contained in:
parent
be2fc0de8d
commit
9260e5bc33
16 changed files with 62 additions and 39 deletions
|
|
@ -16,7 +16,7 @@ export default function LoginPage({ disabled }) {
|
|||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.DISABLE_LOGIN,
|
||||
disabled: !!(process.env.DISABLE_LOGIN || process.env.CLOUD_MODE),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
export default () => null;
|
||||
|
||||
export async function getServerSideProps() {
|
||||
const dest = process.env.CLOUD_MODE ? 'profile' : 'websites';
|
||||
|
||||
return {
|
||||
redirect: {
|
||||
destination: '/settings/websites',
|
||||
destination: `/settings/${dest}`,
|
||||
permanent: true,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import ProfileSettings from 'components/pages/settings/profile/ProfileSettings';
|
||||
|
||||
export default function ProfilePage() {
|
||||
return (
|
||||
<AppLayout>
|
||||
<SettingsLayout>
|
||||
<ProfileSettings />
|
||||
</AppLayout>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import TeamSettings from 'components/pages/settings/teams/TeamSettings';
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
|
|
@ -11,9 +11,9 @@ export default function TeamDetailPage({ disabled }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<SettingsLayout>
|
||||
<TeamSettings teamId={id} />
|
||||
</AppLayout>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import TeamsList from 'components/pages/settings/teams/TeamsList';
|
||||
|
||||
export default function TeamsPage({ disabled }) {
|
||||
|
|
@ -7,9 +7,9 @@ export default function TeamsPage({ disabled }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<SettingsLayout>
|
||||
<TeamsList />
|
||||
</AppLayout>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import UserSettings from 'components/pages/settings/users/UserSettings';
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
|
|
@ -11,9 +11,9 @@ export default function TeamDetailPage({ disabled }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<SettingsLayout>
|
||||
<UserSettings userId={id} />
|
||||
</AppLayout>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import UsersList from 'components/pages/settings/users/UsersList';
|
||||
|
||||
export default function UsersPage({ disabled }) {
|
||||
|
|
@ -7,9 +7,9 @@ export default function UsersPage({ disabled }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<SettingsLayout>
|
||||
<UsersList />
|
||||
</AppLayout>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { useRouter } from 'next/router';
|
||||
import WebsiteSettings from 'components/pages/settings/websites/WebsiteSettings';
|
||||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
|
||||
export default function WebsiteSettingsPage({ disabled }) {
|
||||
const router = useRouter();
|
||||
|
|
@ -11,9 +11,9 @@ export default function WebsiteSettingsPage({ disabled }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<AppLayout>
|
||||
<SettingsLayout>
|
||||
<WebsiteSettings websiteId={id} />
|
||||
</AppLayout>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue