1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core
Sami Tiilikainen 48db54ec9e
Renderer file logging through IPC (#7300)
* Renderer file logging through IPC

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove pagehide event listener as it may cause UI to freeze

Pagehide was needed in cluster frame to better handle main frame close/reload situation. But even empty pagehide listener in cluster frame seems to freeze the UI at least on some situations (multiple clusters open).

Beforeunload is not always executed in cluster frame when main frame is reloaded/closed, leaving log files open. To fix that, `stopIpcLoggingInjectable` is introduced to close all log files.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary formatting changes

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Lint fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Winston logger override

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove usage of doGeneralOverrides as it has been removed

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Update imports to match the new base

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove unnecessary id

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Review improvements

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Extract beforeunload listener to injectable

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Typo fix

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-03-21 15:04:22 -04:00
..
__mocks__ Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
build Remove notarize as unused (#7215) 2023-02-22 12:37:53 -05:00
src Renderer file logging through IPC (#7300) 2023-03-21 15:04:22 -04:00
static Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
test-data Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
types Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
webpack Fix bundled extensions not being loaded (#7359) 2023-03-15 18:16:09 +02:00
.eslintrc.js Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
.gitignore Add package for sharing webpack configurations for upcoming Features (#7199) 2023-02-22 12:28:07 +02:00
.swcrc Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
package.json Electron 22.3.3 (#7389) 2023-03-21 11:07:27 -04:00
tailwind.config.js Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
tsconfig.json Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00