Danny van Kooten
2f64d56771
alter stats table constraints to take site_id column into consideration
2018-10-10 09:30:52 +02:00
Danny van Kooten
ce8f585827
sqlstore GetXStats funcs should return nil when there are 0 results. #50
2018-10-10 09:02:32 +02:00
Danny van Kooten
901e09bcac
modify realtime component to work properly from componentWillReceiveProps
2018-10-09 17:05:49 +02:00
Danny van Kooten
6f97341e42
fix paramsChanged func in realtime component
2018-10-09 16:53:49 +02:00
Danny van Kooten
7cf241ecf0
use dashboard domain in tracking snippet
2018-10-09 14:06:53 +02:00
Danny van Kooten
1b06bd3179
change precision on numeric columns for postgres so we don't have to apply rounding. closes #116
2018-10-09 13:27:50 +02:00
Danny van Kooten
0f0db205ae
account for empty site_tracking_id in realtime visitor query
2018-10-09 11:57:56 +02:00
Danny van Kooten
371c3a2a39
bc for setTrackerUrl command
2018-10-09 11:49:44 +02:00
Danny van Kooten
84cd897319
use auto increment column for pk on sites table
2018-10-09 11:17:26 +02:00
Danny van Kooten
266d05019a
return json error when authorization middleware fails
2018-10-09 11:17:13 +02:00
Danny van Kooten
b254b1a3ee
default to site with ID 1, improve insert/update logic client-side
2018-10-09 10:37:31 +02:00
Danny van Kooten
adb26ad32f
don't show site switcher if there's only 1 site with no option to add more
2018-10-09 10:00:18 +02:00
Danny van Kooten
41331598b9
show selected site name in top left
2018-10-09 09:55:38 +02:00
Danny van Kooten
3e06bea6c7
open site settings when there are 0 sites in db
2018-10-09 09:50:03 +02:00
Danny van Kooten
e4e4bfdea6
update to latest css
2018-10-08 14:12:13 +02:00
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
80088570b0
default to site_id 1, even though it may not exist yet
2018-10-05 16:07:15 +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
876309ae59
clean-up sqlstore pkg
2018-10-05 14:34:39 +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
Danny van Kooten
8515ba646c
Merge pull request #147 from bigblind/master
...
Use arrows (without alt) to go through date ranges. Thanks @bigblind!
2018-10-05 08:35:24 +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
4c4a42879c
fix ID assignment in SaveUser func
2018-10-04 13:44:36 +02:00
Danny van Kooten
ac140fcbb0
improve text when deleting a site
2018-10-04 13:41:47 +02:00
Danny van Kooten
3674855200
apply authorize middleware to site endpoints
2018-10-04 13:40:52 +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
dc78bb45d9
add api routes + handlers for managing sites
2018-10-03 11:07:04 +02:00
Danny van Kooten
f721b75f43
modify SaveUser to support updating existing users
2018-10-03 10:47:23 +02:00
Danny van Kooten
4b855c6d05
add site related func to sqlstore
2018-10-03 10:44:31 +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
Danny van Kooten
26d7ba5578
Merge branch 'master' into multiple-sites
...
* master:
use classnames to determine main-col
add actual lib 😅
use classNames for table row width
use classname for active state
use classnames for loading state
add classnames as a dependency
update README on new user command
rework user cli management
2018-10-02 11:02:19 +02:00
Danny van Kooten
c9b95fa728
Merge pull request #144 from Gaya/classnames
...
Use classnames lib for dynamic CSS classes. Thanks @Gaya!
2018-10-01 15:38:39 +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