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.
- Loading branch information
Showing
36 changed files
with
294 additions
and
61 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
outline: none; | ||
cursor: pointer; | ||
white-space: nowrap; | ||
position: relative; | ||
} | ||
|
||
.button:hover { | ||
|
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, { useRef } from 'react'; | ||
import Icon from 'components/common/Icon'; | ||
import Check from 'assets/check.svg'; | ||
import styles from './Checkbox.module.css'; | ||
|
||
export default function Checkbox({ name, value, label, onChange }) { | ||
const ref = useRef(); | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.checkbox} onClick={() => ref.current.click()}> | ||
{value && <Icon icon={<Check />} size="small" />} | ||
</div> | ||
<label className={styles.label} htmlFor={name}> | ||
{label} | ||
</label> | ||
<input | ||
ref={ref} | ||
className={styles.input} | ||
type="checkbox" | ||
name={name} | ||
value={value} | ||
onChange={onChange} | ||
/> | ||
</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,27 @@ | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
overflow: hidden; | ||
} | ||
|
||
.checkbox { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 20px; | ||
height: 20px; | ||
border: 1px solid var(--gray500); | ||
border-radius: 4px; | ||
} | ||
|
||
.label { | ||
margin-left: 10px; | ||
} | ||
|
||
.input { | ||
position: absolute; | ||
height: 0; | ||
width: 0; | ||
bottom: -1px; | ||
right: -1px; | ||
} |
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,30 @@ | ||
import React, { useRef } from 'react'; | ||
import Button from 'components/common/Button'; | ||
import FormLayout, { FormButtons, FormRow } from 'components/layout/FormLayout'; | ||
import CopyButton from '../common/CopyButton'; | ||
|
||
export default function TrackingCodeForm({ values, onClose }) { | ||
const ref = useRef(); | ||
const { name, share_id } = values; | ||
|
||
return ( | ||
<FormLayout> | ||
<p> | ||
This is the public URL for <b>{values.name}</b>. | ||
</p> | ||
<FormRow> | ||
<textarea | ||
ref={ref} | ||
rows={3} | ||
cols={60} | ||
defaultValue={`${document.location.origin}/share/${share_id}/${name}`} | ||
readOnly | ||
/> | ||
</FormRow> | ||
<FormButtons> | ||
<CopyButton type="submit" variant="action" element={ref} /> | ||
<Button onClick={onClose}>Cancel</Button> | ||
</FormButtons> | ||
</FormLayout> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
import React from 'react'; | ||
import Link from 'next/link'; | ||
import classNames from 'classnames'; | ||
import Button from 'components/common/Button'; | ||
import Logo from 'assets/logo.svg'; | ||
import styles from './Footer.module.css'; | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className={classNames(styles.footer, 'container mt-5 mb-5')}> | ||
umami - deliciously simple web stats | ||
<footer className="container"> | ||
<div className={classNames(styles.footer, 'row justify-content-center')}> | ||
<div>powered by</div> | ||
<Link href="https://umami.is"> | ||
<a> | ||
<Button icon={<Logo />} size="small"> | ||
<b>umami</b> | ||
</Button> | ||
</a> | ||
</Link> | ||
</div> | ||
</footer> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
.footer { | ||
display: flex; | ||
align-items: center; | ||
font-size: var(--font-size-small); | ||
padding: 40px 0; | ||
} | ||
|
||
.footer button { | ||
margin-left: 10px; | ||
} | ||
|
||
.footer a { | ||
text-decoration: none; | ||
} |
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
Oops, something went wrong.