mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-05 05:36:05 +08:00
Add Dashboard page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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();
|
||||
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user