1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/utils
Sebastian Malton f297407156
Stop using @electron/remote to obtain app.getPath() (#4078)
* Stop using remote to obtain app.getPath()

- Initialize entire map in bootstrap()

- Updated unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Resolve PR comments

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix test

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix build

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Ensure that init can only be called once and catch errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Replace basically all uses of app.getPath() with AppPaths.get()

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-27 21:07:41 -04:00
..
__tests__ Sort pod names by convering sub-parts (#3314) 2021-10-19 10:36:49 -04:00
copyToClipboard.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
createStorage.ts Stop using @electron/remote to obtain app.getPath() (#4078) 2021-10-27 21:07:41 -04:00
cssNames.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
cssVar.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
display-booleans.ts Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777) 2021-05-19 12:11:54 -04:00
index.ts Sort pod names by convering sub-parts (#3314) 2021-10-19 10:36:49 -04:00
interval.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
isMiddleClick.ts Allow to close tabs using middle-clicks (#2995) 2021-06-09 09:23:48 -04:00
isReactNode.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
jsonPath.ts Fix spelling (#3181) 2021-07-16 08:53:01 -04:00
metricUnitsToNumber.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
name-parts.ts Sort pod names by convering sub-parts (#3314) 2021-10-19 10:36:49 -04:00
prevDefault.ts Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777) 2021-05-19 12:11:54 -04:00
rbac.ts Make customizing ItemListLayout header explicitly reducable (#2956) 2021-06-08 07:41:36 -04:00
saveFile.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
storageHelper.ts Stop using @electron/remote to obtain app.getPath() (#4078) 2021-10-27 21:07:41 -04:00