|
1 | | -// import { importTypes } from '@rancher/auto-import'; |
2 | | -// import { IPlugin } from '@shell/core/types'; |
3 | | -// import extensionRouting from './routing/extension-routing'; |
4 | | - |
5 | | -// // Init the package |
6 | | -// export default function (plugin: IPlugin) { |
7 | | -// // Auto-import model, detail, edit from the folders |
8 | | -// importTypes(plugin); |
9 | | - |
10 | | -// // Provide extension metadata from package.json |
11 | | -// // it will grab information such as `name` and `description` |
12 | | -// plugin.metadata = require('./package.json'); |
13 | | - |
14 | | -// // Load a product |
15 | | -// plugin.addProduct(require('./product')); |
16 | | - |
17 | | -// // Add Vue Routes |
18 | | -// plugin.addRoutes(extensionRouting); |
19 | | -// } |
20 | | - |
21 | 1 | import { importTypes } from '@rancher/auto-import'; |
22 | 2 | import { |
23 | 3 | ActionLocation, ActionOpts, IPlugin, OnNavAwayFromPackage, OnNavToPackage |
24 | 4 | } from '@shell/core/types'; |
25 | 5 | import { EPINIO_TYPES } from './types'; |
26 | 6 | import epinioRoutes from './routing/epinio-routing'; |
27 | | -// import extensionRouting from './routing/extension-routing'; |
28 | 7 |
|
29 | 8 | import epinioMgmtStore from './store/epinio-mgmt-store'; |
30 | 9 | import epinioStore from './store/epinio-store'; |
31 | 10 | import { createEpinioRoute } from './utils/custom-routing'; |
| 11 | +import { createI18n } from 'vue-i18n'; |
32 | 12 |
|
33 | 13 | const epinioObjAnnotations = [ |
34 | 14 | 'epinio.io/app-container', |
@@ -67,12 +47,19 @@ export default function(plugin: IPlugin) { |
67 | 47 | // plugin.addProduct(require('./product')); |
68 | 48 |
|
69 | 49 | // Add Vuex stores |
70 | | - plugin.addDashboardStore(epinioMgmtStore.config.namespace, epinioMgmtStore.specifics, epinioMgmtStore.config); |
71 | | - plugin.addDashboardStore(epinioStore.config.namespace, epinioStore.specifics, epinioStore.config); |
| 50 | + plugin.addDashboardStore( |
| 51 | + epinioMgmtStore.config.namespace, |
| 52 | + epinioMgmtStore.specifics, |
| 53 | + epinioMgmtStore.config, |
| 54 | + ); |
| 55 | + plugin.addDashboardStore( |
| 56 | + epinioStore.config.namespace, |
| 57 | + epinioStore.specifics, |
| 58 | + epinioStore.config, |
| 59 | + ); |
72 | 60 |
|
73 | 61 | // Add Vue Routes |
74 | 62 | plugin.addRoutes(epinioRoutes); |
75 | | - // plugin.addRoutes(extensionRouting); |
76 | 63 |
|
77 | 64 | // Add hooks to Vue navigation world |
78 | 65 | plugin.addNavHooks(onEnter, onLeave); |
|
0 commit comments