mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Moved code into src folder. Added build for component library.
This commit is contained in:
parent
7a7233ead4
commit
ede658771e
490 changed files with 749 additions and 442 deletions
15
src/pages/settings/profile/index.js
Normal file
15
src/pages/settings/profile/index.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import ProfileSettings from 'components/pages/settings/profile/ProfileSettings';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function () {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.profile)}`}>
|
||||
<SettingsLayout>
|
||||
<ProfileSettings />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
31
src/pages/settings/teams/[id].js
Normal file
31
src/pages/settings/teams/[id].js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
if (!id || disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.teams)}`}>
|
||||
<SettingsLayout>
|
||||
<TeamSettings teamId={id} />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
27
src/pages/settings/teams/index.js
Normal file
27
src/pages/settings/teams/index.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import TeamsList from 'components/pages/settings/teams/TeamsList';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.teams)}`}>
|
||||
<SettingsLayout>
|
||||
<TeamsList />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
31
src/pages/settings/users/[id].js
Normal file
31
src/pages/settings/users/[id].js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
if (!id || disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.users)}`}>
|
||||
<SettingsLayout>
|
||||
<UserSettings userId={id} />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
27
src/pages/settings/users/index.js
Normal file
27
src/pages/settings/users/index.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import UsersList from 'components/pages/settings/users/UsersList';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.users)}`}>
|
||||
<SettingsLayout>
|
||||
<UsersList />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
31
src/pages/settings/websites/[id].js
Normal file
31
src/pages/settings/websites/[id].js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import { useRouter } from 'next/router';
|
||||
import WebsiteSettings from 'components/pages/settings/websites/WebsiteSettings';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
if (!id || disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.websites)}`}>
|
||||
<SettingsLayout>
|
||||
<WebsiteSettings websiteId={id} />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
27
src/pages/settings/websites/index.js
Normal file
27
src/pages/settings/websites/index.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import SettingsLayout from 'components/layout/SettingsLayout';
|
||||
import WebsitesList from 'components/pages/settings/websites/WebsitesList';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
|
||||
export default function ({ disabled }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<AppLayout title={`${formatMessage(labels.settings)} - ${formatMessage(labels.websites)}`}>
|
||||
<SettingsLayout>
|
||||
<WebsitesList />
|
||||
</SettingsLayout>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
disabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue