mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Move files around to better places
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
34adfcd20b
commit
0c1e822788
30 files changed
+37
-37
No files matched your search
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { shouldPersistentStorageDisableSyncInIpcListenerInjectionToken } from "../../common/persistent-storage/disable-sync";
|
||||
|
||||
const shouldBaseStoreDisableSyncInIpcListenerInjectable = getInjectable({
|
||||
id: "should-base-store-disable-sync-in-ipc-listener",
|
||||
instantiate: () => false,
|
||||
injectionToken: shouldPersistentStorageDisableSyncInIpcListenerInjectionToken,
|
||||
});
|
||||
|
||||
export default shouldBaseStoreDisableSyncInIpcListenerInjectable;
|
||||
@@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { persistentStorageIpcChannelPrefixesInjectionToken } from "../../common/persistent-storage/channel-prefix";
|
||||
|
||||
const baseStoreIpcChannelPrefixInjectable = getInjectable({
|
||||
id: "base-store-ipc-channel-prefix",
|
||||
instantiate: () => ({
|
||||
local: "store-sync-main",
|
||||
remote: "store-sync-renderer",
|
||||
}),
|
||||
injectionToken: persistentStorageIpcChannelPrefixesInjectionToken,
|
||||
});
|
||||
|
||||
export default baseStoreIpcChannelPrefixInjectable;
|
||||
@@ -1,25 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { persistStateToConfigInjectionToken } from "../../common/persistent-storage/save-to-file";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
|
||||
const persistStateToConfigInjectable = getInjectable({
|
||||
id: "persist-state-to-config",
|
||||
instantiate: (di) => {
|
||||
const logger = di.inject(loggerInjectionToken);
|
||||
|
||||
return (config, state) => {
|
||||
logger.info(`[BASE-STORE]: saving ${config.path}...`);
|
||||
|
||||
for (const [key, value] of Object.entries(state)) {
|
||||
config.set(key, value);
|
||||
}
|
||||
};
|
||||
},
|
||||
injectionToken: persistStateToConfigInjectionToken,
|
||||
});
|
||||
|
||||
export default persistStateToConfigInjectable;
|
||||
Reference in new issue
Block a user