Cody Jackson 2d2615128c
Putting in some temporary workarounds regarding the typesystem
Without these changes we can't build the app using `yarn build-pkg harvester` because it complains about missing modules in @rancher/shell imports. I believe this will be resolved by https://github.com/rancher/dashboard/issues/11797#issue-2502509655 and we should remove this change once that occurs.
2024-10-23 17:00:57 +02:00

40 lines
865 B
TypeScript

//@ts-nocheck
import { CoreStoreSpecifics, CoreStoreConfig } from '@shell/core/types';
import { SteveFactory, steveStoreInit } from '@shell/plugins/steve/index';
import { PRODUCT_NAME } from '../../config/harvester';
import getters from './getters';
import mutations from './mutations';
import actions from './actions';
const harvesterFactory = (): CoreStoreSpecifics => {
const steveFactory = SteveFactory(null, null);
steveFactory.getters = {
...steveFactory.getters,
...getters,
};
steveFactory.mutations = {
...steveFactory.mutations,
...mutations,
};
steveFactory.actions = {
...steveFactory.actions,
...actions,
};
return steveFactory;
};
const config: CoreStoreConfig = {
namespace: PRODUCT_NAME,
isClusterStore: true
};
export default {
specifics: harvesterFactory(),
config,
init: steveStoreInit
};