Deluan Quintão
fcdd30ba8f
build(ui): migrate from CRA/Jest to Vite/Vitest ( #3311 )
...
* feat: create vite project
* feat: it's alive!
* feat: `make dev` working!
* feat: replace custom serviceWorker with vite plugin
* test: replace Jest with Vitest
* fix: run prettier
* fix: skip eslint for now.
* chore: remove ui.old folder
* refactor: replace lodash.pick with simple destructuring
* fix: eslint errors (wip)
* fix: eslint errors (wip)
* fix: display-name eslint errors (wip)
* fix: no-console eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: build
* fix: pwa manifest
* refactor: pwa manifest
* refactor: simplify PORT configuration
* refactor: rename simple JS files
* test: cover playlistUtils
* fix: react-image-lightbox
* feat(ui): add sourcemaps to help debug issues
2024-09-28 11:54:36 -04:00
Caio Cotts
86757663d6
Reformat code with Prettier's new rules.
2023-12-18 15:12:24 -05:00
Deluan
4296741ec0
Simplify EventStream handling
2023-05-17 11:53:09 -04:00
Deluan
69615f1aa1
Trying to fix multiple EventStream connections, one more time
2021-12-02 10:49:32 -05:00
Deluan
9892524ab8
Connect eventStream after login
2021-11-29 18:49:29 -05:00
Deluan
9fe978953c
Try to avoid creating multiple eventStreams
2021-11-29 17:47:34 -05:00
Deluan Quintão
03efc48137
Refactor routing, changes API URLs ( #1171 )
...
* Make authentication part of the server, so it can be reused outside the Native API
This commit has broken tests after a rebase
* Serve frontend assets from `server`, and not from Native API
* Change Native API URL
* Fix auth tests
* Refactor server authentication
* Simplify authProvider, now subsonic token+salt comes from the server
* Don't send JWT token to UI when authenticated via Request Header
* Enable ReverseProxyWhitelist to be read from environment
2021-06-13 12:46:36 -04:00
Deluan
7f85ecd515
Trigger a UI refresh when the scanner finds changes.
...
Closes #1025
2021-06-09 21:02:20 -04:00
Deluan
a77635e883
Only setup event stream when mounting the app
2021-05-11 20:27:12 -04:00
Deluan
7adacbac0d
Removed event.type from SSE, as it was causing the browser to hang.
...
Needs more investigation, but for now, back to the simple message format
2021-02-04 12:37:06 -05:00
Deluan
cd1c693a23
Remove superfluous argument
2020-12-24 10:39:10 -05:00
Deluan
ea09629803
Fix another possible race condition
2020-12-13 20:17:20 -05:00
Deluan
f2fd7ed016
Fix race condition that could cause multiple EventSource connections from the same client
2020-12-13 14:44:57 -05:00
Deluan
b6c578e3a2
Change format of events sent by server, leveraging event type and id
2020-11-25 20:46:21 -05:00
Deluan
3e8bee4f65
Make eventStream connection/reconnection more reliable
...
Also more logs on the server
2020-11-20 20:27:30 -05:00
Deluan
1ee39835dd
Retry connecting to the events endpoint more frequently on first load
2020-11-16 15:38:03 -05:00
Deluan
08f96639f4
Add Uptime to Activity Panel
2020-11-13 20:09:23 -05:00
Deluan
9d2426a601
Use a better notation for exporting JS components and functions
2020-11-10 19:27:28 -05:00
Deluan
8a44f61189
Fix setting up Event Stream message handler on first login
2020-11-10 16:53:09 -05:00
Deluan
1b624b2505
Do not create the EventStream if unauthenticated
2020-11-09 16:12:50 -05:00
Deluan
56803d0151
Auto-reconnect to event stream after 20secs timeout
2020-11-09 16:12:50 -05:00
Deluan
2b1a5f579a
Adding a communication channel between server and clients using SSE
2020-11-09 16:12:50 -05:00