Commit Graph

70 Commits (stage)

Author SHA1 Message Date
Brian Cao 8732d056dd
Dev (#1702)
* Initial Typescript models.

* Re-add realtime data

* get distinct sessions for session metrics

* Add queries for new schema.

* Fix Typo.

* Add some api/team endpoints.

* Fix destructure error.

* Fix getWebsites call.

* Ignore typescript build errors.

* Fix enum issue.

* add clickhouse route to deleteWebsite

* Fix Website auth.

* Updated lint-staged config.

* Add permission checks.

* Add user role api.

* Fix error when updating website.

* Fix isAdmin check.  Fix Schema.

* Initial conversion to react-basics.

* Remove user/team transfer from website update.

* delete website in relational query

* Fix login secure token creation.

* Add event type to event.

* Allow user to be added to team with role.

* Updated login form.

* Add Role to TeamUser.

* Add database migration.

* Refactored permissions check. Updated redis lib.

* Feat/um 114 roles and permissions (#1683)

* Auth checkpoint.

* Merge branch 'dev' into feat/um-114-roles-and-permissions

* Add 02 migration.

* Added lib/types.

* Updated schema.

* Updated roles and permissions logic.

* Implement react-basics styles. Fix queries.

* Update website details layout.

* Add 01 migration.

* Fix admin create.

* Update react-basics.

Co-authored-by: Francis Cao <franciscao@gmail.com>
Co-authored-by: Mike Cao <mike@mikecao.com>
Co-authored-by: Mike Cao <moocao@gmail.com>
2022-12-12 19:45:38 -08:00
Brian Cao 7bf12cc552 Assign user to userStore 2022-11-09 13:54:09 -08:00
Mike Cao c58e037a7e Updated useConfig. Added SSO page. 2022-10-31 11:02:37 -07:00
Mike Cao 52bbc3692d Fix issue with generating URLs. 2022-09-05 12:04:30 -07:00
Mike Cao f4e0da481e Use next-basics package. 2022-08-28 20:20:54 -07:00
akashrajpurohit_postman ec7bc92497 feat: customize theme and locale based on query params 2022-08-21 17:00:40 +05:30
Mike Cao 50e491af06 Added endpoint for fetching server-side variables. 2022-08-01 23:04:47 -07:00
Mike Cao c8ca0a0a56 Updated version checking. 2022-06-24 01:54:55 -07:00
Pavan Gangireddy 6a88f3e7f4
Update spelling from useLoadiing to useLoading 2022-05-28 14:58:31 +05:30
Mike Cao 5b2628172b Updated README. 2022-05-06 21:57:25 -07:00
Mike Cao e735a1c50d Updated share token logic. Closes #1113. 2022-05-05 19:04:28 -07:00
Mike Cao f24696de5a Refactored localization files. 2022-03-18 19:17:23 -07:00
Mike Cao 373dbf50ba Added website limit and show more button. Closes #592. 2022-03-01 23:03:50 -08:00
Mike Cao 7a3c1e9faa Fix default date range setting. 2022-03-01 22:02:31 -08:00
Mike Cao 69b81880cb Fix refresh button. Closes #994, #985. 2022-03-01 21:13:15 -08:00
Mike Cao be98500e82 Move auth token logic to useApi hook. 2022-02-27 00:25:24 -08:00
Mike Cao 3a8bfd1dbd Move auth token logic to useApi hook. 2022-02-26 15:53:45 -08:00
Mike Cao d19b6b5a82 Added useApi hook. 2022-02-22 23:52:31 -08:00
Mike Cao 9937caa569 Replaced redux with zustand. Fixed login issue, closes #980. 2022-02-22 22:47:59 -08:00
Mike Cao 7270d95240 Move environment variables to middleware. Closes #972. 2022-02-20 23:27:50 -08:00
Mike Cao 251617ffc5 Added lt-LT and ur-PK languages. Changed lang build. 2022-02-15 20:34:16 -08:00
Mike Cao d8e831db50 Switch to authentication using bearer token. 2022-01-23 00:33:06 -08:00
Mike Cao a101d639d3 Added `All time` date filter option. 2022-01-14 00:04:07 -08:00
Chris Walsh b5f7aa1813
Add languages to metrics API endpoint 2021-12-01 19:25:00 -08:00
Mike Cao 0a8c06b1f8 Added helper methods for locales. 2021-11-20 17:18:25 -08:00
Mike Cao 92b205b7b7 Cleaned up language files. 2021-11-04 17:09:03 -07:00
Gaeulbyul b5b628ae3f
Fix checking prefers-color-scheme media query 2021-09-21 20:28:36 +09:00
Mike Cao f91cc82c82 Dynamically fetch language bundles at runtime. 2021-06-29 18:41:34 -07:00
Mike Cao b294c8ef72 Proper fix. 2021-04-28 02:18:54 -07:00
Mike Cao 5f41447158 Fix issue with server build. 2021-04-28 02:12:17 -07:00
Mike Cao 041c7737e8 Check user theme preference, closes #555. 2021-04-26 00:06:50 -07:00
Alexander Klein 3cb748b29b feature(hooks): use locale in useDateRange hook 2021-03-10 10:39:31 +01:00
Mike Cao 23d4d13c9d Fix basePath references. 2021-01-14 00:34:51 -08:00
Mike Cao 339cd21596 Fix issues with basePath. 2020-11-09 21:01:53 -08:00
Mike Cao 5a73c224b7 Created share token hook. 2020-10-11 02:29:55 -07:00
Mike Cao 1fcb610bdd Updated fetch hook. 2020-10-10 22:36:55 -07:00
Mike Cao 69b317386a Updated fetch hook API. 2020-10-09 12:39:03 -07:00
Mike Cao 8e0ea48c87 Updated log table rendering. 2020-10-09 04:21:59 -07:00
Mike Cao 9737127bb1 Updated polling logic. 2020-10-09 01:04:06 -07:00
Mike Cao fdc92d087b Update realtime chart. 2020-10-08 23:26:05 -07:00
Mike Cao ca8a6fe049 Added error message component. Update fetch hook. 2020-10-03 22:36:51 -07:00
Mike Cao 4cafa68e23 Add force SSL check. 2020-10-03 21:54:21 -07:00
Mike Cao 48a1994219 Fix version check. 2020-10-02 10:34:22 -07:00
Mike Cao 9edf657e25 Update version check. Updated packages. 2020-10-02 10:25:31 -07:00
Mike Cao 5068ab12a9 Support basePath in all queries. 2020-09-30 22:34:16 -07:00
Mike Cao fd69f0df24 Localized country names. 2020-09-30 16:27:27 -07:00
Mike Cao e5cd162b83 Updated api fetch to return an object. 2020-09-30 15:14:44 -07:00
Mike Cao ce2ca57aba
Merge pull request #233 from acoard/feat/close-on-esc
Close the profile password modal via 'Esc' key
2020-09-29 21:26:25 -07:00
Mike Cao 37cf2e3017 Update version check logic. 2020-09-29 21:22:08 -07:00
Adam Coard 6f929378f0 Close the profile password modal via 'Esc' key 2020-09-29 23:32:17 +00:00