Fix types - requires new shell version; fix yaml dependency

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:00:49 +02:00
parent ea12a81174
commit 5ce303eaec
8 changed files with 25 additions and 43 deletions
+1 -1
View File
@@ -1 +1 @@
module.exports = require('./.shell/pkg/babel.config.js');
module.exports = require('@shell/pkg/babel.config.js');
+1 -3
View File
@@ -24,6 +24,7 @@ import {
SUB_TYPE,
ADDRESS,
} from '@shell/config/table-headers';
import { IF_HAVE } from '@shell/store/type-map';
import { HCI, VOLUME_SNAPSHOT } from './types';
import {
IMAGE_DOWNLOAD_SIZE,
@@ -32,9 +33,6 @@ import {
SNAPSHOT_TARGET_VOLUME,
} from './config/table-headers';
// import { IF_HAVE } from '@shell/store/type-map';
const IF_HAVE = { MULTI_CLUSTER: false };
const TEMPLATE = HCI.VM_VERSION;
const MONITORING_GROUP = 'Monitoring & Logging::Monitoring';
const LOGGING_GROUP = 'Monitoring & Logging::Logging';
+3 -2
View File
@@ -1,4 +1,5 @@
// import { RouteConfig } from 'vue-router';
// eslint-disable-next-line import/named
import { RouteConfig } from 'vue-router';
import { PRODUCT_NAME } from '../config/harvester';
import Root from '../pages/c/_cluster/index.vue';
@@ -15,7 +16,7 @@ import HarvesterMembers from '../pages/c/_cluster/members/index.vue';
import ProjectNamespaces from '../pages/c/_cluster/projectsnamespaces.vue';
import HarvesterAlertmanagerReceiver from '../pages/c/_cluster/alertmanagerconfig/_alertmanagerconfigid/receiver.vue';
const routes: any[] = [
const routes: RouteConfig[] = [
{
name: `${ PRODUCT_NAME }-c-cluster-support`,
path: `/:product/c/:cluster/support`,
@@ -13,7 +13,7 @@ export default {
divider,
notFilterNamespaces
}: any) => {
const out = [{
const out: { id: string, kind: string, label: string }[] = [{
id: ALL,
kind: NAMESPACE_FILTER_KINDS.SPECIAL,
label: rootGetters['i18n/t']('nav.ns.all'),
@@ -29,9 +29,11 @@ export default {
MANAGEMENT.PROJECT
);
projects = sortBy(filterBy(projects, 'spec.clusterName', cluster.id), [
'nameDisplay',
]).filter((project: any) => project.nameDisplay !== 'System');
projects = sortBy(
filterBy(projects, 'spec.clusterName', cluster.id),
['nameDisplay'],
null
).filter((project: any) => project.nameDisplay !== 'System');
const projectsById: any = {};
const namespacesByProject: any = {};
+1 -1
View File
@@ -7,7 +7,7 @@ import mutations from './mutations';
import actions from './actions';
const harvesterFactory = (): CoreStoreSpecifics => {
const steveFactory = SteveFactory();
const steveFactory = SteveFactory(null, null);
steveFactory.getters = {
...steveFactory.getters,
+1 -1
View File
@@ -1 +1 @@
module.exports = require('./.shell/pkg/vue.config')(__dirname);
module.exports = require('@shell/pkg/vue.config')(__dirname);