forked from umami-software/umami
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request umami-software#853 from mikecao/dev
v1.24.0
- Loading branch information
Showing
75 changed files
with
1,583 additions
and
1,583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "Umami", | ||
"description": "Umami is a simple, fast, website analytics alternative to Google Analytics.", | ||
"keywords": [ | ||
"analytics", | ||
"charts", | ||
"statistics", | ||
"web-analytics" | ||
], | ||
"website": "https://umami.is", | ||
"repository": "https://github.com/mikecao/umami", | ||
"addons": [ | ||
"heroku-postgresql" | ||
], | ||
"env": { | ||
"HASH_SALT": { | ||
"description": "Used to generate unique values for your installation", | ||
"required": true, | ||
"generator": "secret" | ||
} | ||
}, | ||
"scripts": { | ||
"postdeploy": "psql $DATABASE_URL -f sql/schema.postgresql.sql" | ||
}, | ||
"success_url": "/" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
margin: auto; | ||
display: flex; | ||
z-index: 1; | ||
background-color: var(--gray50); | ||
padding: 10px; | ||
} | ||
|
||
.icon { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
align-content: center; | ||
min-height: 80px; | ||
align-self: stretch; | ||
font-weight: bold; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
import Button from 'components/common/Button'; | ||
import Times from 'assets/times.svg'; | ||
import styles from './FilterTags.module.css'; | ||
|
||
export default function FilterTags({ params, onClick }) { | ||
if (Object.keys(params).filter(key => params[key]).length === 0) { | ||
return null; | ||
} | ||
return ( | ||
<div className={classNames(styles.filters, 'col-12')}> | ||
{Object.keys(params).map(key => { | ||
if (!params[key]) { | ||
return null; | ||
} | ||
return ( | ||
<div className={styles.tag}> | ||
<Button icon={<Times />} onClick={() => onClick(key)} variant="action" iconRight> | ||
{`${key}: ${params[key]}`} | ||
</Button> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.filters { | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: flex-start; | ||
} | ||
|
||
.tag { | ||
text-align: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.tag + .tag { | ||
margin-left: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
body .inactive { | ||
color: var(--gray500); | ||
} | ||
|
||
body .active { | ||
color: var(--gray900); | ||
font-weight: 600; | ||
} | ||
|
||
.row { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.row .link { | ||
display: none; | ||
} | ||
|
||
.row .label { | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.row:hover .link { | ||
display: block; | ||
} | ||
|
||
.icon { | ||
cursor: pointer; | ||
} |
Oops, something went wrong.