Merge branch 'dev' into feat/um-145-re-add-events
commit
10dabc60b6
|
@ -72,13 +72,13 @@ docker compose up
|
||||||
Alternatively, to pull just the Umami Docker image with PostgreSQL support:
|
Alternatively, to pull just the Umami Docker image with PostgreSQL support:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull docker.umami.is/umami-software/umami:postgresql-latest
|
docker pull docker.umami.dev/umami-software/umami:postgresql-latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Or with MySQL support:
|
Or with MySQL support:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull docker.umami.is/umami-software/umami:mysql-latest
|
docker pull docker.umami.dev/umami-software/umami:mysql-latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting updates
|
## Getting updates
|
||||||
|
|
|
@ -7,7 +7,9 @@ export interface Auth {
|
||||||
role: string;
|
role: string;
|
||||||
isAdmin: boolean;
|
isAdmin: boolean;
|
||||||
};
|
};
|
||||||
shareToken?: string;
|
shareToken?: {
|
||||||
|
websiteId: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NextApiRequestQueryBody<TQuery = any, TBody = any> extends NextApiRequest {
|
export interface NextApiRequestQueryBody<TQuery = any, TBody = any> extends NextApiRequest {
|
||||||
|
|
|
@ -23,8 +23,7 @@ export default async (
|
||||||
const website = await getWebsite({ shareId });
|
const website = await getWebsite({ shareId });
|
||||||
|
|
||||||
if (website) {
|
if (website) {
|
||||||
const { id } = website;
|
const data = { websiteId: website.id };
|
||||||
const data = { id };
|
|
||||||
const token = createToken(data, secret());
|
const token = createToken(data, secret());
|
||||||
|
|
||||||
return ok(res, { ...data, token });
|
return ok(res, { ...data, token });
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { WebsiteActive } from 'lib/types';
|
import { WebsiteActive, NextApiRequestQueryBody } from 'lib/types';
|
||||||
import { NextApiRequestQueryBody } from 'lib/types';
|
|
||||||
import { canViewWebsite } from 'lib/auth';
|
import { canViewWebsite } from 'lib/auth';
|
||||||
import { useAuth, useCors } from 'lib/middleware';
|
import { useAuth, useCors } from 'lib/middleware';
|
||||||
import { NextApiResponse } from 'next';
|
import { NextApiResponse } from 'next';
|
||||||
|
|
|
@ -15,7 +15,7 @@ export default function SharePage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<WebsiteDetails websiteId={shareToken.id} />
|
<WebsiteDetails websiteId={shareToken.websiteId} />
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ a,
|
||||||
a:active,
|
a:active,
|
||||||
a:visited {
|
a:visited {
|
||||||
color: var(--primary400);
|
color: var(--primary400);
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
Loading…
Reference in New Issue