1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common/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__ Add several more util functions and tests (#4106) 2021-10-26 09:36:34 -04:00
allowed-resource.ts Remove circular dependency with isAllowedResource function (#3545) 2021-08-04 16:01:47 -04:00
app-version.ts Switch integration tests to get application menus by IDs (#3912) 2021-10-07 15:30:52 -04:00
array.ts Add several more util functions and tests (#4106) 2021-10-26 09:36:34 -04:00
autobind.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
base64.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
buildUrl.ts Move all RouteParam's and URL builders to src/common (#2778) 2021-06-10 08:52:09 -04:00
camelCase.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
cloneJson.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
cluster-id-url-parsing.ts Stop using @electron/remote to obtain app.getPath() (#4078) 2021-10-27 21:07:41 -04:00
convertCpu.ts Refactor k8s api to common (#3553) 2021-08-10 13:26:14 +03:00
convertMemory.ts Refactor k8s api to common (#3553) 2021-08-10 13:26:14 +03:00
debouncePromise.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
defineGlobal.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
delay.ts Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777) 2021-05-19 12:11:54 -04:00
disposer.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
downloadFile.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
escapeRegExp.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
extended-map.ts Sync kubeconfigs from catalog (#3573) 2021-08-11 13:24:33 +03:00
formatDuration.ts Refactor k8s api to common (#3553) 2021-08-10 13:26:14 +03:00
getRandId.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
hash-set.ts Split UserManagement into seperate Cluster and Namespace Roles and RoleBindings (#2755) 2021-06-09 13:40:55 -04:00
index.ts Stop using @electron/remote to obtain app.getPath() (#4078) 2021-10-27 21:07:41 -04:00
iter.ts Sort pod names by convering sub-parts (#3314) 2021-10-19 10:36:49 -04:00
local-kubeconfig.ts Stop using @electron/remote to obtain app.getPath() (#4078) 2021-10-27 21:07:41 -04:00
makeCss.ts Adding Topbar extension registries (#2997) 2021-06-14 07:40:14 +03:00
n-fircate.ts Split UserManagement into seperate Cluster and Namespace Roles and RoleBindings (#2755) 2021-06-09 13:40:55 -04:00
objects.ts Stop using @electron/remote to obtain app.getPath() (#4078) 2021-10-27 21:07:41 -04:00
openExternal.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
paths.ts Ignore extensions' clusters when adding to kubeConfigSync (#3313) 2021-07-12 12:05:05 -04:00
readableStream.ts Refactor k8s api to common (#3553) 2021-08-10 13:26:14 +03:00
reject-promise.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
singleton.ts Unblock subsequent Singleton.createInstance() (#3225) 2021-07-06 17:16:04 +03:00
sort-compare.ts Update helm cache if files have been modified (#3973) 2021-10-20 08:50:52 -04:00
splitArray.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
tar.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
toggle-set.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
toJS.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
tuple.ts Add several more util functions and tests (#4106) 2021-10-26 09:36:34 -04:00
type-narrowing.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
types.ts Move cluster related types and function into seperate files (#3530) 2021-08-03 10:36:14 -04:00