Danny van Kooten
ed21a80df9
add site-id flag to stats command
2018-10-08 12:30:43 +02:00
Danny van Kooten
fdfaa058df
remember selected site in localstorage
2018-10-08 12:21:30 +02:00
Danny van Kooten
47a1f5908d
use onFocus for texarea select all
2018-10-05 16:18:06 +02:00
Danny van Kooten
09149e5d00
show text creating or updating site
2018-10-05 16:16:17 +02:00
Danny van Kooten
3cd7bcb53d
make things work when there are no sites yet
2018-10-05 16:11:49 +02:00
Danny van Kooten
21371e2c30
close site settings when pressing ESC
2018-10-05 15:59:36 +02:00
Danny van Kooten
53c1702d0d
only re-fetch data when needed
2018-10-05 15:13:48 +02:00
Danny van Kooten
d4176de238
get aggregator to take site ID's into account
2018-10-05 14:19:11 +02:00
Danny van Kooten
c1367325e6
modify all routes & queries to take a site ID parameter
2018-10-05 13:09:58 +02:00
Danny van Kooten
dc8bf7fdc3
modify tracker.js to take a siteId and insert that into pageviews table. add siteId to tracking snippet.
2018-10-05 10:07:00 +02:00
Danny van Kooten
5abd1a7a8a
Merge branch 'master' into multiple-sites
...
* master:
Use arrows (without alt) to go through date ranges
2018-10-05 08:56:56 +02:00
Frederik Creemers
181bee780a
Use arrows (without alt) to go through date ranges
...
fixes #138
2018-10-04 19:32:06 +02:00
Danny van Kooten
ac140fcbb0
improve text when deleting a site
2018-10-04 13:41:47 +02:00
Danny van Kooten
4a4e5267fa
don't show add site link if dashboard is public
2018-10-04 13:40:11 +02:00
Danny van Kooten
e51bbe047d
update state after adding, updating or deleting a site
2018-10-04 13:37:46 +02:00
Danny van Kooten
927c50b419
add & delete sites through api
2018-10-03 15:27:36 +02:00
Danny van Kooten
61cc23eb0d
fetch sites from server & update dashboard state from site switcher
2018-10-03 11:54:48 +02:00
Danny van Kooten
9b0d831f9e
only show gearwheel if dashboard is not public
2018-10-02 13:58:56 +02:00
Danny van Kooten
c0448d9719
add functioning modal that opens on gearwheel click
2018-10-02 13:41:47 +02:00
Danny van Kooten
6db0edc8dc
add-in non-functional UI components
2018-10-02 11:57:16 +02:00
Gaya Kessler
b85f2f490b
use classnames to determine main-col
2018-10-01 15:33:02 +02:00
Gaya Kessler
c3db9377b1
add actual lib 😅
2018-10-01 15:29:57 +02:00
Gaya Kessler
72489baaef
use classNames for table row width
2018-10-01 15:29:19 +02:00
Gaya Kessler
0136d1aaee
use classname for active state
2018-10-01 15:23:20 +02:00
Gaya Kessler
213c169616
use classnames for loading state
2018-10-01 15:21:24 +02:00
Danny van Kooten
bbdf67ff5a
take timezone offset into account to fix today view. stick to utc for those ahead of utc... see #134 (needs a better fix)
2018-09-21 06:52:34 -07:00
Danny van Kooten
734d32082a
client-side error handling structure incl. better error message for invalid login details. #131
2018-09-21 10:45:47 +02:00
Danny van Kooten
966a4addab
change style of footer hint
2018-09-19 08:23:12 +02:00
Danny van Kooten
2ff9676043
always show at least 1 visitor if there are pageviews. #129
2018-09-19 08:21:04 +02:00
Danny van Kooten
0f08d8ed1d
decrease animation duration to 600ms. relates to #125
2018-09-18 14:46:03 +02:00
Danny van Kooten
e7de28ffa7
show shortkey possibility for cycling through date ranges. #126
2018-09-18 13:42:02 +02:00
Danny van Kooten
369fca8710
cycle through next/previous date-range using ALT + arrow keys. closes #126
2018-09-18 13:30:35 +02:00
Danny van Kooten
c66e69b797
remember view when loading dashboard without explicit period in location hash. closes #128
2018-09-18 12:03:45 +02:00
Danny van Kooten
d1728ba501
resolve now at runtime to make sure it always points to today (for when fathom tab is not closed over several days)
2018-09-17 16:26:46 +02:00
Danny van Kooten
fc2e9d2fd1
host overpass font locally
2018-09-14 10:41:44 +02:00
Danny van Kooten
b75506ce8f
simplify tracker to not depend on modules, we want this file as small as possible anyway. prevents #124
2018-09-14 10:25:21 +02:00
Danny van Kooten
86e50ca573
get rid of timezone offset as we're already populating date object from timestamp
2018-09-13 11:47:48 +03:00
Danny van Kooten
5ef2b166ab
last 7 & last 30 days should be today-6 and today-29
2018-02-01 22:01:19 -09:00
Danny van Kooten
4028dcab68
expire tracking cookie at local midnight, not utc midnight. fixes issue with immediate cookie expiration on negative utc offsets
2018-02-01 21:51:12 -09:00
Danny van Kooten
221e6394de
assume dashboard is public when there are no users in connected datastore. #117
2018-09-12 09:36:59 +02:00
Danny van Kooten
c09fda89a3
refactor date logic for preset periods. switch out this week and this month for last-7 and last-30. closes #43
2018-08-07 09:20:22 +02:00
Danny van Kooten
3418e81ea5
Revert "link[href] is already an absolute URL"
2018-07-27 09:08:25 +02:00
Daniel Aleksandersen
c6ec64a267
link[href] is already an absolute URL
...
a[href] and link[href] will both normalize to an absolute URL so there is no need to create an extra a element here.
2018-07-23 05:53:13 +02:00
Danny
42008ab83f
get rid of session_id and move knowledge of previous pageview to client. this also gets rid of the (only) index on the pageviews table, allowing for much faster INSERT's. closes #14
2018-07-11 15:03:56 +02:00
Danny
d9bce6a0cf
set time for dates coming from pikaday too. fixes #88
2018-07-11 14:20:45 +02:00
Danny
f7afb8c503
only add path if not already in pagesViewed
2018-07-04 14:43:24 +02:00
Danny van Kooten
37897e9d35
stop sending document title from client, since it is not used right now
2018-06-28 10:37:21 +02:00
Danny van Kooten
9b47ee27ef
parse hostname from client instead of relying on http header. fixes #79
2018-06-28 10:37:02 +02:00
Danny van Kooten
67308e3348
default to empty path if parsing from <a> fails. #73
2018-06-23 17:45:53 +02:00
Danny van Kooten
ad29167db1
Merge branch 'master' of https://github.com/usefathom/fathom
...
* 'master' of https://github.com/usefathom/fathom: (23 commits)
improve security and add persistence for MySQL
Don’t send Referer headers
set 'Tk: N' header on resources loaded by client. #65
disregard requests to /collect with DNT header set to '1'.
expire client-side session at midnight UTC, for now
print some info regardless of log level
use mysql Config.FormatDSN to generate dsn conn string for mysql. closes #56 closes #60
update go mysql driver
set explicit charset for mysql tables to workaround key limit of 7xx bytes. #58
don't concat lastSeen in client-side data. fixes #64
use https in git clone example in readme (because broader compat). closes #63
set server addr explicitly in docker-compose file
update docker-compose file
add instructions on prebuilt docker img to readme
get rid of old ana screenshot
add NULLIF in group statement because of go null values = empty string
fix postgres errors by converting to null in divisions. closes #54 relates to #52
use absolute url to readme img
build npm assets in intermedia docker container so we can auto-build from git push. relates to #49 #51
client-side assets do not need to be built inside docker container. closes #51
...
2018-06-23 17:43:46 +02:00