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.
This commit is contained in:
Cody Jackson
2024-10-23 17:00:57 +02:00
committed by Francesco Torchia
parent d761b88ba0
commit 2d2615128c
9 changed files with 48 additions and 39 deletions
@@ -1,3 +1,4 @@
//@ts-nocheck
import {
NAMESPACE_FILTER_KINDS,
NAMESPACE_FILTER_ALL as ALL,
@@ -14,8 +15,8 @@ export default {
notFilterNamespaces
}: any) => {
const out: { id: string, kind: string, label: string }[] = [{
id: ALL,
kind: NAMESPACE_FILTER_KINDS.SPECIAL,
id: ALL,
kind: NAMESPACE_FILTER_KINDS.SPECIAL,
label: rootGetters['i18n/t']('nav.ns.all'),
}];
@@ -71,8 +72,8 @@ export default {
}
out.push({
id: `project://${ id }`,
kind: 'project',
id: `project://${id}`,
kind: 'project',
label: project.nameDisplay,
});
@@ -89,8 +90,8 @@ export default {
}
out.push({
id: ALL_ORPHANS,
kind: 'project',
id: ALL_ORPHANS,
kind: 'project',
label: rootGetters['i18n/t']('nav.ns.orphan'),
});