Commit Graph

300 Commits

Author SHA1 Message Date
Danny 44ae5d38f2 move custom date selector to far right, #32 2018-05-16 17:25:50 +02:00
Danny bcae762a35 update document title with realtime visitor count 2018-05-16 17:25:29 +02:00
Danny 0ecd4ec251 use pikaday for the date component, closes #32 2018-05-16 17:02:46 +02:00
Danny f082231b12 implement logic to get a working html5 input date. #32 2018-05-16 13:54:52 +02:00
Danny a0bb890210 wip... show input date field 2018-05-16 12:57:03 +02:00
Danny 7d8d0b9c42 show current date range in date-nav, #32 2018-05-16 11:51:40 +02:00
Danny 50771a6314 browser offset should be substracted, not added #31 2018-05-16 03:26:56 -06:00
Danny f0d255c26b limit animation progress to 1 in case tab loses focus or lags 2018-05-16 03:26:44 -06:00
Danny 9cb8d443ec add local timezone offset to utc timestamps we send to server. #31 2018-05-16 11:10:53 +02:00
Danny 0caf52b780 use local timezone in client, utc timezone on server. should close #31 2018-05-16 03:54:51 -05:00
Danny fc552b0508 set start variable outside of tick loop 2018-05-16 10:16:13 +02:00
Danny 9f6684f0fb fix rounding issue for percentage values 2018-05-16 10:10:23 +02:00
Danny van Kooten ce00a975b4 animate numbers in count widget 2018-05-15 22:26:24 +02:00
Danny f1a85e7d01 move gulp into build task to ensure latest assets are packrd 2018-05-15 14:41:08 +02:00
Danny bbfb5d0b5f check for unauthorized status code to auto-logout on auth errors 2018-05-15 14:32:30 +02:00
Danny a4be3ef3a7 use status code as error message 2018-05-15 14:32:01 +02:00
Danny 1e60fc8102 access props through function arg 2018-05-15 14:31:51 +02:00
Danny 0039683b74 set header code when sessionstore returns err 2018-05-15 14:20:05 +02:00
Danny 47c6dc3ab7 add test for setting secret through env var 2018-05-15 14:15:47 +02:00
Danny dfbe15636d move config to its own pkg & gather global pkg var in App struct 2018-05-15 13:55:10 +02:00
Danny 1bd093b8a4 add test for config.randomString func 2018-05-15 13:54:36 +02:00
Danny c30e5b3120 introduce datastore interface & stop relying on package var to retrieve db conn. relates to #29 2018-05-15 13:30:37 +02:00
Danny 94db89fd27 add tests for parseConfig func 2018-05-15 11:24:50 +02:00
Danny 1f3dc51b26 add --config flag to global cli options. closes #30 2018-05-15 11:07:27 +02:00
Danny 8b639d348d lowercase all log messages and strip newlines 2018-05-15 10:26:35 +02:00
Danny dcc3959f4c update command in dockerfile 2018-05-14 16:34:13 +02:00
Danny 69fc3e7aa1 implement results type container 2018-05-14 15:31:33 +02:00
Danny e5fcb0a34e simple bc for old --port arg 2018-05-14 14:54:16 +02:00
Danny 89e321a383 dont gitignore main pkg... 2018-05-14 14:11:52 +02:00
Danny 68ab44c57d use github.com/urfave/cli as cli framework 2018-05-14 13:42:03 +02:00
Danny 73e011b6cc implement notfound handler with simple 404 page, closes #19 2018-05-14 12:08:18 +02:00
Danny 6482378734 serve assets from /assets subdir and re-use packr box for index.html & tracker.js 2018-05-14 11:17:41 +02:00
Danny 4aac79c7f9 coalesce query results to handle nil 2018-05-14 10:17:58 +02:00
Danny 7c33ac7b86 Merge branch 'master' of github.com:usefathom/fathom 2018-05-14 10:16:43 +02:00
Danny 2c09050d74 move should-collect logic into func so it can be tested 2018-05-14 10:14:43 +02:00
Danny 05a159da7f skip missing referrer values. closes #26 2018-05-14 10:06:53 +02:00
Danny van Kooten 7d111a8372 Merge branch 'master' of https://github.com/usefathom/fathom
* 'master' of https://github.com/usefathom/fathom:
  fire off request for fetching totals earlier
  use pageviews sum to show green percentage bar in pseudo-element
  add api routes for getting aggregated pageview sum for pages & referrers
  ignore prerendered pages, #13
  don't send unneeded var in collect request
  derive tracker URL from script element if not explicitly set
  restyle login page
  weight multi-day average for pages & referrers too. #23
  weight site averages when calculating multi-day average. closes #23
  only update average duration if we know time on page.
2018-05-12 14:49:23 +02:00
Danny van Kooten 618e85e53b unique index on daily_page_stats should include hostname 2018-05-12 14:49:21 +02:00
Danny 9b037389f5 fire off request for fetching totals earlier 2018-05-11 16:07:13 +02:00
Danny 04d1065698 use pageviews sum to show green percentage bar in pseudo-element 2018-05-11 15:49:52 +02:00
Danny dbcc0545a2 add api routes for getting aggregated pageview sum for pages & referrers 2018-05-11 15:49:37 +02:00
Danny c25e164eac ignore prerendered pages, #13 2018-05-11 14:42:10 +02:00
Danny 931cc8f775 don't send unneeded var in collect request 2018-05-11 14:34:56 +02:00
Danny 224124c1c9 derive tracker URL from script element if not explicitly set 2018-05-11 14:34:39 +02:00
Danny fb5cd41a34 restyle login page 2018-05-11 14:15:58 +02:00
Danny d104abaec2 Merge branch 'master' of github.com:usefathom/fathom 2018-05-11 10:54:47 +02:00
Danny 3991665a72 weight multi-day average for pages & referrers too. #23 2018-05-11 10:54:41 +02:00
Danny 88a59e75ab weight site averages when calculating multi-day average. closes #23 2018-05-11 10:48:25 +02:00
Danny 9bb1a05e06 only update average duration if we know time on page. 2018-05-11 10:33:12 +02:00
Danny van Kooten e2d45dbc40 check errors returned by sessionstoreE 2018-05-10 22:21:44 +02:00