mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
draft: implement realtime current users
This commit is contained in:
parent
b756fcddf1
commit
f5ecc401bf
@ -18,7 +18,7 @@ A detailed getting started guide can be found at [https://umami.is/docs/](https:
|
|||||||
```
|
```
|
||||||
git clone https://github.com/mikecao/umami.git
|
git clone https://github.com/mikecao/umami.git
|
||||||
cd umami
|
cd umami
|
||||||
npm install
|
yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create database tables
|
### Create database tables
|
||||||
@ -50,6 +50,7 @@ HASH_SALT=(any random string)
|
|||||||
```
|
```
|
||||||
|
|
||||||
The connection url is in the following format:
|
The connection url is in the following format:
|
||||||
|
|
||||||
```
|
```
|
||||||
postgresql://username:mypassword@localhost:5432/mydb
|
postgresql://username:mypassword@localhost:5432/mydb
|
||||||
|
|
||||||
@ -83,11 +84,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 ghcr.io/mikecao/umami:postgresql-latest
|
docker pull ghcr.io/mikecao/umami:postgresql-latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Or with MySQL support:
|
Or with MySQL support:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull ghcr.io/mikecao/umami:mysql-latest
|
docker pull ghcr.io/mikecao/umami:mysql-latest
|
||||||
```
|
```
|
||||||
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import PageHeader from '../layout/PageHeader';
|
import PageHeader from '../layout/PageHeader';
|
||||||
import DropDown from '../common/DropDown';
|
import DropDown from '../common/DropDown';
|
||||||
|
import ActiveUsers from './ActiveUsers';
|
||||||
import MetricCard from './MetricCard';
|
import MetricCard from './MetricCard';
|
||||||
import styles from './RealtimeHeader.module.css';
|
import styles from './RealtimeHeader.module.css';
|
||||||
|
|
||||||
@ -24,6 +25,9 @@ export default function RealtimeHeader({ websites, data, websiteId, onSelect })
|
|||||||
<div>
|
<div>
|
||||||
<FormattedMessage id="label.realtime" defaultMessage="Realtime" />
|
<FormattedMessage id="label.realtime" defaultMessage="Realtime" />
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<ActiveUsers className={styles.active} websiteId={websiteId} />
|
||||||
|
</div>
|
||||||
<DropDown value={websiteId} options={options} onChange={onSelect} />
|
<DropDown value={websiteId} options={options} onChange={onSelect} />
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
<div className={styles.metrics}>
|
<div className={styles.metrics}>
|
||||||
|
Loading…
Reference in New Issue
Block a user