1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
Commit Graph

184 Commits

Author SHA1 Message Date
Ferdinand Mütsch
71d1b2177b fix: missing ca certificates in docker container (resolve #98)
fix: server crash in unsuccessful relaying of heartbeat to wakatime
2021-01-24 21:39:35 +01:00
Steven Tang
d93348842a
fix: delay defer templateFile.Close() 2021-01-24 10:19:20 +11:00
Steven Tang
fb92747129
fix: embed of static, views 2021-01-24 10:13:37 +11:00
Steven Tang
4e6e665e19
feat: embed assets into binary
Resolves #26
2021-01-23 10:00:15 +11:00
Ferdinand Mütsch
a552073d18 feat: ui for configuring wakatime integration 2021-01-21 23:26:50 +01:00
Ferdinand Mütsch
d57c02af7c feat: add ui for managing aliases (resolve #91) 2021-01-21 00:26:52 +01:00
Ferdinand Mütsch
16b683fcbd fix: permissions bug related to deleting language mappings 2021-01-20 20:49:27 +01:00
Ferdinand Mütsch
acda62488d chore: support for cockroachdb (resolve #90) 2021-01-18 21:37:15 +01:00
Ferdinand Mütsch
cd97976ed5 chore: show total hours on index page (resolve #88) 2021-01-17 09:32:08 +01:00
Ferdinand Mütsch
98b62b33c8 fix: concurrent access to language mappings (resolve #83) 2021-01-07 10:56:00 +01:00
Ferdinand Mütsch
16b9aa2282 feat: add front page (resolve #34) 2020-11-28 20:23:40 +01:00
Ferdinand Mütsch
4a78f66778 chore: set samesite attributes and configurable max age for cookies (resolve #75)
fix: sort entities by total time descending (resolve #74)
2020-11-21 22:30:56 +01:00
Ferdinand Mütsch
ad8168801c test: add first few unit tests 2020-11-08 12:46:12 +01:00
Ferdinand Mütsch
35cdc7b485 refactor: define interface types for all services and repositories 2020-11-08 10:12:49 +01:00
Ferdinand Mütsch
2f12d8efde refactor: simplify summary generation (resolve #68) 2020-11-07 12:01:35 +01:00
Ferdinand Mütsch
8ddd9904a0 refactor: alert handling 2020-11-06 21:19:54 +01:00
Ferdinand Mütsch
e269b37b0e feat: add ability to regenerate summaries
fix: database cascade settings
chore: debug log mode for gorm queries is back
2020-11-06 17:09:41 +01:00
Ferdinand Mütsch
8efc3854ab refactor: migrate to latest gorm version
refactor: language mappings implementation
2020-11-01 20:14:10 +01:00
Ferdinand Mütsch
755cabb5f4 refactor: introduce repositories as an additional layer of abstraction to allow for better testability 2020-11-01 16:56:36 +01:00
Ferdinand Mütsch
96ff490d8d fix: crash when calling badge endpoint with no filters applied (resolve #66) 2020-11-01 16:04:30 +01:00
Ferdinand Mütsch
c2d30826f6 fix: critical fixes related to alias resolution 2020-11-01 12:50:59 +01:00
Ferdinand Mütsch
e19761337f Merge branch 'notarock/62' 2020-10-26 22:34:50 +01:00
Roch D'Amour
178c417757 Keep the old configuration rules behaviour 2020-10-25 23:02:28 -04:00
Roch D'Amour
395d039d41 General cleanup and fixed PR comments 2020-10-25 22:18:33 -04:00
Roch D'Amour
fdf2289f8e MVP for custom rules support 2020-10-25 21:51:06 -04:00
Ferdinand Mütsch
c78ee5465c chore: display database type 2020-10-16 16:58:16 +02:00
Ferdinand Mütsch
a4c344aaa1 chore: minor code restyling 2020-10-16 16:11:14 +02:00
Ferdinand Mütsch
21b822de42 chore: minor code enhancements 2020-10-09 21:37:20 +02:00
Ferdinand Mütsch
660fefcca9 refactor: migrate to new config (resolve #54) 2020-10-04 10:37:38 +02:00
Ferdinand Mütsch
f843be8d12 refactor: move config to separate package
chore: load config from main method
2020-09-29 18:55:07 +02:00
Ferdinand Mütsch
1c0e63e125 chore: restrict badge access by user agent 2020-09-12 16:58:22 +02:00
Ferdinand Mütsch
d60dddb550 feat: implement badges endpoint and sharing functionality 2020-09-12 16:09:23 +02:00
Ferdinand Mütsch
8dca9f5cc0 chore: parallel summary conversion 2020-09-12 00:20:16 +02:00
Ferdinand Mütsch
21567e7601 feat: implement summaries compat endpoint (resolve #44)
fix: fix all time view model
2020-09-11 23:24:51 +02:00
Ferdinand Mütsch
a8009e107d fix: support project query param for alltime endpoint 2020-09-11 20:22:33 +02:00
Ferdinand Mütsch
84e9559860 fix: all time data model 2020-09-06 17:20:37 +02:00
Ferdinand Mütsch
587ac6a330 feat: add wakatime-compatible alltime endpoint 2020-09-06 12:15:46 +02:00
Ferdinand Mütsch
08a83af8da feat: extract machine name from heartbeat requests (resolve #47) 2020-08-29 21:20:23 +02:00
Ferdinand Mütsch
c0d6855546 fix: return proper response to heartbeat requests (resolve #46) 2020-08-29 21:13:56 +02:00
Ferdinand Mütsch
7818f6b094 fix: return created status code for heartbeats (resolve #43) 2020-08-19 23:17:34 +02:00
Ferdinand Mütsch
4f035b3a63 chore: minor code improvement 2020-06-07 20:01:31 +02:00
Ferdinand Mütsch
0eac9a8854 feat: add ability to reset api key (resolve #29) 2020-06-07 19:58:06 +02:00
Ferdinand Mütsch
0294425de0 feat: add ability to change passwords (resolve #30) 2020-06-07 19:28:32 +02:00
Ferdinand Mütsch
c1e6a3e265 feat: persist user creation date (resolve #31) 2020-05-30 22:19:05 +02:00
Ferdinand Mütsch
3c2dc78c93 refactor: refactor migrations and add fixtures
feat: introduce key-value store
feat: imprint page (resolve #23)
chore: remove default user
chore: remove packr
2020-05-30 20:41:27 +02:00
Ferdinand Mütsch
9dae5a1f77 feat: allow insecure cookies (resolve #27) 2020-05-30 12:11:25 +02:00
Ferdinand Mütsch
6c2f0cb1ec feat: add auto-migrations for old md5 password to maintain backwards compatibility 2020-05-25 22:24:29 +02:00
Ferdinand Mütsch
08675bd99f feat: use bcrypt with salts instead of md5 for hashing password (resolve #21) 2020-05-25 21:42:45 +02:00
Ferdinand Mütsch
625994d1e9 feat: add basic sign up instructions 2020-05-24 21:42:15 +02:00
Ferdinand Mütsch
2cca2cb0bb feat: display api key on user interface (resolve #24) 2020-05-24 21:19:05 +02:00
Ferdinand Mütsch
c171d31f30 feat: set html base path from server base path
refactor: services
2020-05-24 17:32:26 +02:00
Ferdinand Mütsch
d6e9f0295a feat: introduce base path config option to better support redirections behind a proxy 2020-05-24 17:08:44 +02:00
Ferdinand Mütsch
abfaa9d768 feat: user signup 2020-05-24 16:34:32 +02:00
Ferdinand Mütsch
9697bb5fd5 refactor: use cookie-based login
feat: add login page
2020-05-24 13:41:19 +02:00
Ferdinand Mütsch
d3ab54f6dc chore: enable templates to consist of partials 2020-05-24 10:37:31 +02:00
Ferdinand Mütsch
7a74ae251c Add health endpoint. 2020-04-08 21:29:11 +02:00
Ferdinand Mütsch
7d36c4e111 Rename project.
Add build script.
2020-03-31 12:22:17 +02:00
Ferdinand Mütsch
0e61870568 Resolve #7. 2020-03-31 11:24:44 +02:00
Ferdinand Mütsch
f69b55b1f9 Default interval. 2020-02-20 15:54:20 +01:00
Ferdinand Mütsch
6d3891b398 Resolve #11. 2020-02-20 15:39:56 +01:00
Ferdinand Mütsch
b7f700e7a5 Refactor to server-rendered app. 2020-02-20 14:28:55 +01:00
Ferdinand Mütsch
d583dd312b Fix start of year computation.
Add shortcut to get lifetime statistics.
2020-01-09 00:19:24 +01:00
Ferdinand Mütsch
fe1cc3ac88 Minor code cleanup. 2019-11-07 23:11:19 +01:00
Ferdinand Mütsch
9e726028c3 Introduce flag to recompute summaries from raw events instead of using aggregations. 2019-11-07 12:56:05 +01:00
Ferdinand Mütsch
37b02ff32c Fix summary merging.
Rename some methods.
Use pointers for structs and none for primitives.
2019-10-11 08:00:02 +02:00
Ferdinand Mütsch
3696622493 Unstable. Still need to fix summary item times to not be all the same. 2019-10-10 18:32:17 +02:00
Ferdinand Mütsch
680475d466 Fix cache to be per user. 2019-10-09 21:57:43 +02:00
Ferdinand Mütsch
e18a873428 Add documentation for aliases.
Reload aliases for every summary request.
2019-07-07 10:32:28 +02:00
Ferdinand Mütsch
e98acb8315 Merge branch 'master' of git.muetsch.io:n1try/wakapi 2019-07-07 09:51:18 +02:00
Ferdinand Mütsch
37ec6c62fc Introduce entity aliases (unfinished). 2019-07-06 17:53:20 +02:00
Ferdinand Muetsch
899b2fff64 Properly redraw charts.
Add pre-defined interval for today.
Fix week interval.
2019-05-23 08:14:32 +02:00
Ferdinand Mütsch
df7b2d4a33 Auto-migrate custom languages. 2019-05-21 22:01:14 +02:00
Ferdinand Mütsch
cdf158e2ac Use expirable cache for summaries. 2019-05-21 21:46:23 +02:00
Ferdinand Mütsch
c821e02b82 Add support for custom languages. 2019-05-21 17:16:46 +02:00
Ferdinand Mütsch
cc1a9bbca1 Parallelization. 2019-05-19 21:00:19 +02:00
Ferdinand Mütsch
1caf962917 Fix caching.
Introduce live mode.
2019-05-19 20:34:26 +02:00
Ferdinand Mütsch
d5253ba46b Add summary cache. 2019-05-19 20:14:57 +02:00
Ferdinand Mütsch
a157edd03b Add intervals for summary requests. 2019-05-19 20:06:07 +02:00
Ferdinand Mütsch
be906805e7 Major refactorings.
Introduce summaries.
2019-05-19 19:49:27 +02:00
Ferdinand Mütsch
62e94f6635 Untested. Useslices of pointersto structs everywhere. 2019-05-17 08:40:03 +02:00
Ferdinand Mütsch
adb5abd4d2 Unstable. Further work on aggregations. 2019-05-17 02:05:38 +02:00
Ferdinand Mütsch
b4c8e6ecb6 Introduce GORM. 2019-05-11 17:49:56 +02:00
Ferdinand Mütsch
d1be4ce2a3 Fix heartbeats insertion.
Add OS and editor fields.
Introduce aggregations (not working yet).
2019-05-09 00:07:38 +02:00
Ferdinand Mütsch
9df289b7ed Heartbeat Insertions.
Restructuring.
2019-05-06 00:40:41 +02:00