@rancher/shell 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/providers/outscale.svg +19 -0
- package/assets/styles/app.scss +1 -1
- package/assets/styles/base/_basic.scss +18 -0
- package/assets/styles/base/_mixins.scss +0 -11
- package/assets/styles/base/_variables.scss +2 -4
- package/assets/styles/fonts/_fontstack.scss +11 -11
- package/assets/styles/global/_button.scss +12 -2
- package/assets/styles/vendor/vue-js-modal.scss +3 -3
- package/assets/translations/en-us.yaml +113 -22
- package/assets/translations/zh-hans.yaml +113 -24
- package/babel.config.js +13 -0
- package/chart/gatekeeper.vue +78 -0
- package/chart/istio.vue +135 -112
- package/chart/logging/index.vue +13 -4
- package/chart/monitoring/index.vue +15 -5
- package/chart/monitoring/steps/uninstall-v1.vue +2 -2
- package/chart/rancher-backup/index.vue +10 -3
- package/cloud-credential/aws.vue +1 -1
- package/cloud-credential/digitalocean.vue +1 -1
- package/cloud-credential/gcp.vue +1 -1
- package/cloud-credential/generic.vue +2 -2
- package/cloud-credential/linode.vue +1 -1
- package/cloud-credential/pnap.vue +1 -1
- package/components/ActionMenu.vue +3 -4
- package/components/AssignTo.vue +1 -1
- package/components/AsyncButton.vue +1 -1
- package/components/BannerGraphic.vue +1 -1
- package/components/BrandImage.vue +1 -4
- package/components/ButtonDropdown.vue +2 -3
- package/components/Carousel.vue +85 -37
- package/components/ChartPsp.vue +76 -0
- package/components/CruResource.vue +6 -2
- package/components/DashboardMetrics.vue +12 -10
- package/components/DetailText.vue +1 -1
- package/components/DisableAuthProviderModal.vue +1 -1
- package/components/EmberPage.vue +1 -1
- package/components/EtcdInfoBanner.vue +12 -7
- package/components/ExplorerMembers.vue +101 -6
- package/components/ExplorerProjectsNamespaces.vue +46 -3
- package/components/FileDiff.vue +6 -7
- package/components/GrafanaDashboard.vue +27 -23
- package/components/LazyImage.vue +10 -12
- package/components/LogItem.vue +1 -1
- package/components/Markdown.vue +1 -1
- package/components/PromptRemove.vue +2 -2
- package/components/PromptRestore.vue +1 -1
- package/components/ResourceDetail/Masthead.vue +16 -0
- package/components/ResourceDetail/index.vue +21 -4
- package/components/ResourceList/index.vue +1 -1
- package/components/ResourceTable.vue +4 -1
- package/components/SingleClusterInfo.vue +2 -2
- package/components/SortableTable/THead.vue +1 -1
- package/components/SortableTable/index.vue +28 -13
- package/components/SortableTable/selection.js +58 -50
- package/components/Wizard.vue +4 -2
- package/components/__tests__/AsyncButton.test.ts +3 -1
- package/components/__tests__/ChartPsp.test.ts +75 -0
- package/components/__tests__/CruResource.test.ts +3 -1
- package/components/auth/Principal.vue +1 -1
- package/components/auth/RoleDetailEdit.vue +2 -2
- package/components/fleet/FleetBundles.vue +3 -1
- package/components/fleet/FleetClusters.vue +1 -2
- package/components/fleet/FleetIntro.vue +9 -1
- package/components/fleet/FleetNoWorkspaces.vue +62 -0
- package/components/fleet/FleetSummary.vue +7 -1
- package/components/form/HookOption.vue +14 -10
- package/components/form/LabeledSelect.vue +14 -11
- package/components/form/Labels.vue +32 -27
- package/components/form/MatchExpressions.vue +19 -4
- package/components/form/Members/ClusterPermissionsEditor.vue +32 -7
- package/components/form/NameNsDescription.vue +32 -46
- package/components/form/ProjectMemberEditor.vue +46 -21
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/SecretSelector.vue +5 -1
- package/components/form/ServiceNameSelect.vue +1 -1
- package/components/form/SimpleSecretSelector.vue +9 -9
- package/components/form/Tolerations.vue +4 -1
- package/components/form/ValueFromResource.vue +14 -9
- package/components/form/WorkloadPorts.vue +2 -2
- package/components/form/__tests__/LabeledSelect.test.ts +138 -0
- package/components/form/__tests__/NameNsDescription.ts +59 -0
- package/components/formatter/InternalExternalIP.vue +6 -0
- package/components/formatter/InvolvedObjectLink.vue +54 -0
- package/components/formatter/Link.vue +20 -4
- package/components/formatter/LinkName.vue +6 -1
- package/components/formatter/ServiceTargets.vue +1 -1
- package/components/formatter/WorkloadHealthScale.vue +8 -2
- package/components/nav/Group.vue +2 -2
- package/components/nav/NamespaceFilter.vue +23 -11
- package/components/nav/TopLevelMenu.vue +2 -4
- package/components/nav/Type.vue +1 -1
- package/components/nav/WorkspaceSwitcher.vue +46 -5
- package/components/nuxt/nuxt-build-indicator.vue +143 -0
- package/components/nuxt/nuxt-child.js +122 -0
- package/components/nuxt/nuxt-error.vue +98 -0
- package/components/nuxt/nuxt-link.client.js +98 -0
- package/components/nuxt/nuxt-link.server.js +16 -0
- package/components/nuxt/nuxt-loading.vue +154 -0
- package/components/nuxt/nuxt.js +101 -0
- package/config/labels-annotations.js +17 -0
- package/config/middleware.js +12 -0
- package/config/product/auth.js +3 -2
- package/config/product/explorer.js +34 -6
- package/config/product/fleet.js +2 -0
- package/config/query-params.js +1 -0
- package/config/router.js +414 -0
- package/config/store.js +181 -0
- package/config/table-headers.js +54 -12
- package/config/types.js +18 -8
- package/config/uiplugins.js +30 -0
- package/content/docs/en-us/whats-new.md +10 -0
- package/content/docs/zh-hans/whats-new.md +11 -1
- package/core/plugin-routes.ts +23 -0
- package/core/plugin.ts +4 -2
- package/core/types.ts +258 -1
- package/creators/app/app.package.json +2 -1
- package/creators/app/files/.eslintrc.js +1 -1
- package/creators/app/files/babel.config.js +1 -18
- package/creators/app/files/tsconfig.json +0 -1
- package/creators/app/files/vue.config.js +6 -0
- package/creators/app/init +5 -5
- package/creators/pkg/files/.github/workflows/build-extension.yml +110 -0
- package/creators/pkg/files/tsconfig.json +0 -1
- package/creators/pkg/init +35 -4
- package/creators/pkg/pkg.package.json +3 -3
- package/creators/update/init +1 -1
- package/detail/constraints.gatekeeper.sh.constraint.vue +34 -17
- package/detail/fleet.cattle.io.clustergroup.vue +7 -1
- package/detail/fleet.cattle.io.gitrepo.vue +19 -11
- package/detail/harvesterhci.io.management.cluster.vue +3 -3
- package/detail/provisioning.cattle.io.cluster.vue +54 -12
- package/detail/workload/index.vue +3 -3
- package/dialog/AddClusterMemberDialog.vue +1 -1
- package/dialog/AddProjectMemberDialog.vue +2 -2
- package/dialog/AddonConfigConfirmationDialog.vue +27 -15
- package/dialog/DiagnosticTimingsDialog.vue +1 -1
- package/dialog/ForceMachineRemoveDialog.vue +1 -1
- package/dialog/GenericPrompt.vue +18 -6
- package/dialog/RotateEncryptionKeyDialog.vue +1 -1
- package/dialog/SaveAsRKETemplateDialog.vue +1 -1
- package/dialog/ScaleMachineDownDialog.vue +1 -1
- package/edit/auth/github.vue +8 -8
- package/edit/auth/googleoauth.vue +5 -5
- package/edit/auth/ldap/index.vue +1 -1
- package/edit/auth/oidc.vue +1 -1
- package/edit/auth/saml.vue +1 -1
- package/edit/cis.cattle.io.clusterscan.vue +1 -1
- package/edit/fleet.cattle.io.clustergroup.vue +6 -4
- package/edit/fleet.cattle.io.gitrepo.vue +32 -4
- package/edit/helm.cattle.io.projecthelmchart.vue +5 -1
- package/edit/logging.banzaicloud.io.output/index.vue +18 -5
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +1 -0
- package/edit/management.cattle.io.fleetworkspace.vue +141 -6
- package/edit/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +4 -1
- package/edit/management.cattle.io.setting.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +2 -2
- package/edit/monitoring.coreos.com.receiver/tls.vue +18 -18
- package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +4 -4
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +1 -1
- package/edit/namespace.vue +14 -10
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +126 -45
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +21 -4
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +1 -0
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +202 -2
- package/edit/provisioning.cattle.io.cluster/import.vue +23 -25
- package/edit/provisioning.cattle.io.cluster/rke2.vue +344 -102
- package/edit/resources.cattle.io.backup.vue +1 -1
- package/edit/service.vue +1 -1
- package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +2 -2
- package/edit/workload/__tests__/Job.test.ts +3 -1
- package/edit/workload/index.vue +8 -3
- package/edit/workload/mixins/workload.js +22 -7
- package/edit/workload/storage/Mount.vue +3 -3
- package/initialize/App.js +206 -0
- package/initialize/client.js +863 -0
- package/initialize/index.js +364 -0
- package/layouts/default.vue +7 -3
- package/layouts/standalone.vue +13 -0
- package/list/catalog.cattle.io.clusterrepo.vue +1 -0
- package/list/fleet.cattle.io.bundle.vue +6 -3
- package/list/fleet.cattle.io.clusterregistrationtoken.vue +3 -1
- package/list/fleet.cattle.io.gitrepo.vue +44 -5
- package/list/management.cattle.io.fleetworkspace.vue +45 -0
- package/list/node.vue +69 -16
- package/list/provisioning.cattle.io.cluster.vue +30 -1
- package/list/rbac.authorization.k8s.io.clusterrolebinding.vue +48 -0
- package/list/workload.vue +6 -4
- package/machine-config/azure.vue +97 -38
- package/middleware/authenticated.js +34 -0
- package/mixins/chart.js +101 -2
- package/mixins/fetch.client.js +95 -0
- package/mixins/fetch.server.js +73 -0
- package/mixins/labeled-form-element.ts +2 -2
- package/mixins/resource-fetch.js +2 -2
- package/models/apps.statefulset.js +28 -0
- package/models/cluster/node.js +23 -2
- package/models/cluster.x-k8s.io.machine.js +4 -2
- package/models/clusterroletemplatebinding.js +7 -0
- package/models/constraints.gatekeeper.sh.constraint.js +46 -0
- package/models/fleet.cattle.io.cluster.js +19 -10
- package/models/fleet.cattle.io.gitrepo.js +7 -2
- package/models/management.cattle.io.cluster.js +1 -1
- package/models/management.cattle.io.fleetworkspace.js +12 -0
- package/models/management.cattle.io.gitreporestriction.js +5 -0
- package/models/management.cattle.io.podsecurityadmissionconfigurationtemplate.js +3 -0
- package/models/pod.js +4 -0
- package/models/provisioning.cattle.io.cluster.js +7 -5
- package/models/rbac.authorization.k8s.io.clusterrolebinding.js +16 -0
- package/models/rbac.authorization.k8s.io.rolebinding.js +16 -0
- package/package.json +13 -21
- package/pages/auth/setup.vue +2 -2
- package/pages/c/_cluster/apps/charts/__tests__/install.helper.test.ts +33 -0
- package/pages/c/_cluster/apps/charts/chart.vue +4 -4
- package/pages/c/_cluster/apps/charts/install.helpers.js +26 -0
- package/pages/c/_cluster/apps/charts/install.vue +98 -102
- package/pages/c/_cluster/explorer/EventsTable.vue +5 -19
- package/pages/c/_cluster/explorer/index.vue +29 -25
- package/pages/c/_cluster/explorer/tools/index.vue +8 -8
- package/pages/c/_cluster/fleet/index.vue +95 -34
- package/pages/c/_cluster/gatekeeper/index.vue +1 -1
- package/pages/c/_cluster/istio/index.vue +5 -5
- package/pages/c/_cluster/manager/cloudCredential/index.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +7 -0
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +8 -8
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +20 -7
- package/pages/c/_cluster/uiplugins/index.vue +49 -17
- package/pages/diagnostic.vue +32 -25
- package/pages/home.vue +9 -4
- package/pages/index.vue +10 -1
- package/pages/rio/mesh.vue +1 -2
- package/pkg/tsconfig.json +0 -1
- package/plugins/clean-html-directive.js +34 -0
- package/plugins/dashboard-store/actions.js +32 -9
- package/plugins/dashboard-store/index.js +1 -1
- package/plugins/dashboard-store/mutations.js +5 -2
- package/plugins/dashboard-store/resource-class.js +8 -1
- package/plugins/plugin.js +0 -14
- package/plugins/portal-vue.js +4 -0
- package/plugins/steve/mutations.js +3 -2
- package/plugins/steve/steve-description-class.js +5 -1
- package/plugins/steve/subscribe.js +63 -54
- package/plugins/steve-create-worker.js +14 -0
- package/promptRemove/management.cattle.io.globalrole.vue +2 -2
- package/promptRemove/management.cattle.io.project.vue +2 -2
- package/promptRemove/management.cattle.io.roletemplate.vue +2 -2
- package/promptRemove/pod.vue +1 -1
- package/public/index.html +65 -0
- package/rancher-components/components/Banner/Banner.test.ts +7 -1
- package/rancher-components/components/Banner/Banner.vue +2 -1
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +2 -0
- package/rancher-components/components/Form/Radio/RadioButton.test.ts +31 -0
- package/rancher-components/components/Form/Radio/RadioButton.vue +14 -3
- package/scripts/build-pkg.sh +1 -0
- package/scripts/clean +6 -0
- package/scripts/extension/bundle +58 -0
- package/scripts/extension/helmpatch +89 -0
- package/scripts/extension/publish +333 -0
- package/scripts/serve-pkgs +6 -2
- package/scripts/test-plugins-build.sh +4 -0
- package/store/__tests__/index.test.ts +110 -0
- package/store/index.js +145 -58
- package/store/type-map.js +6 -2
- package/tsconfig.default.json +36 -0
- package/tsconfig.json +23 -0
- package/types/rancher/index.d.ts +2 -0
- package/types/shell/index.d.ts +466 -320
- package/utils/__tests__/grafana.test.ts +44 -0
- package/utils/__tests__/string.test.ts +12 -0
- package/utils/auth.js +65 -0
- package/utils/axios.js +190 -0
- package/utils/cookie-universal-nuxt.js +10 -0
- package/utils/dom.js +15 -0
- package/utils/grafana.js +35 -16
- package/utils/monitoring.js +2 -1
- package/utils/nuxt.js +659 -0
- package/utils/position.js +5 -8
- package/utils/router.scrollBehavior.js +80 -0
- package/utils/select.js +1 -3
- package/utils/socket.js +1 -0
- package/utils/string.js +13 -0
- package/utils/time.js +9 -0
- package/vue.config.js +690 -0
- package/chart/rancher-alerting-drivers.vue +0 -53
- package/chart/rancher-gatekeeper.vue +0 -37
- package/creators/app/files/nuxt.config.js +0 -6
- package/models/management.cattle.io.podsecurityadmissionconfigurationtemplate.ts +0 -4
- package/nuxt.config.js +0 -798
- package/plugins/dashboard-store/extensions.js +0 -22
package/config/router.js
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import Router from 'vue-router';
|
|
3
|
+
import { normalizeURL } from 'ufo';
|
|
4
|
+
import { interopDefault } from '../utils/nuxt';
|
|
5
|
+
import scrollBehavior from '../utils/router.scrollBehavior.js';
|
|
6
|
+
|
|
7
|
+
const emptyFn = () => {};
|
|
8
|
+
|
|
9
|
+
Vue.use(Router);
|
|
10
|
+
|
|
11
|
+
export const routerOptions = {
|
|
12
|
+
mode: 'history',
|
|
13
|
+
// Note: router base comes from the VUE_APP_ROUTER_BASE env var
|
|
14
|
+
base: process.env.VUE_APP_ROUTER_BASE || '/',
|
|
15
|
+
linkActiveClass: 'nuxt-link-active',
|
|
16
|
+
linkExactActiveClass: 'nuxt-link-exact-active',
|
|
17
|
+
scrollBehavior,
|
|
18
|
+
|
|
19
|
+
routes: [{
|
|
20
|
+
path: '/about',
|
|
21
|
+
component: () => interopDefault(import('../pages/about.vue' /* webpackChunkName: "pages/about" */)),
|
|
22
|
+
name: 'about'
|
|
23
|
+
}, {
|
|
24
|
+
path: '/account',
|
|
25
|
+
component: () => interopDefault(import('../pages/account/index.vue' /* webpackChunkName: "pages/account/index" */)),
|
|
26
|
+
name: 'account'
|
|
27
|
+
}, {
|
|
28
|
+
path: '/c',
|
|
29
|
+
component: () => interopDefault(import('../pages/c/index.vue' /* webpackChunkName: "pages/c/index" */)),
|
|
30
|
+
name: 'c'
|
|
31
|
+
}, {
|
|
32
|
+
path: '/clusters',
|
|
33
|
+
component: () => interopDefault(import('../pages/clusters/index.vue' /* webpackChunkName: "pages/clusters/index" */)),
|
|
34
|
+
name: 'clusters'
|
|
35
|
+
}, {
|
|
36
|
+
path: '/diagnostic',
|
|
37
|
+
component: () => interopDefault(import('../pages/diagnostic.vue' /* webpackChunkName: "pages/diagnostic" */)),
|
|
38
|
+
name: 'diagnostic'
|
|
39
|
+
}, {
|
|
40
|
+
path: '/fail-whale',
|
|
41
|
+
component: () => interopDefault(import('../pages/fail-whale.vue' /* webpackChunkName: "pages/fail-whale" */)),
|
|
42
|
+
name: 'fail-whale'
|
|
43
|
+
}, {
|
|
44
|
+
path: '/home',
|
|
45
|
+
component: () => interopDefault(import('../pages/home.vue' /* webpackChunkName: "pages/home" */)),
|
|
46
|
+
name: 'home'
|
|
47
|
+
}, {
|
|
48
|
+
path: '/prefs',
|
|
49
|
+
component: () => interopDefault(import('../pages/prefs.vue' /* webpackChunkName: "pages/prefs" */)),
|
|
50
|
+
name: 'prefs'
|
|
51
|
+
}, {
|
|
52
|
+
path: '/safeMode',
|
|
53
|
+
component: () => interopDefault(import('../pages/safeMode.vue' /* webpackChunkName: "pages/safeMode" */)),
|
|
54
|
+
name: 'safeMode'
|
|
55
|
+
}, {
|
|
56
|
+
path: '/support',
|
|
57
|
+
component: () => interopDefault(import('../pages/support/index.vue' /* webpackChunkName: "pages/support/index" */)),
|
|
58
|
+
name: 'support'
|
|
59
|
+
}, {
|
|
60
|
+
path: '/account/create-key',
|
|
61
|
+
component: () => interopDefault(import('../pages/account/create-key.vue' /* webpackChunkName: "pages/account/create-key" */)),
|
|
62
|
+
name: 'account-create-key'
|
|
63
|
+
}, {
|
|
64
|
+
path: '/auth/login',
|
|
65
|
+
component: () => interopDefault(import('../pages/auth/login.vue' /* webpackChunkName: "pages/auth/login" */)),
|
|
66
|
+
name: 'auth-login'
|
|
67
|
+
}, {
|
|
68
|
+
path: '/auth/logout',
|
|
69
|
+
component: () => interopDefault(import('../pages/auth/logout.vue' /* webpackChunkName: "pages/auth/logout" */)),
|
|
70
|
+
name: 'auth-logout'
|
|
71
|
+
}, {
|
|
72
|
+
path: '/auth/setup',
|
|
73
|
+
component: () => interopDefault(import('../pages/auth/setup.vue' /* webpackChunkName: "pages/auth/setup" */)),
|
|
74
|
+
name: 'auth-setup'
|
|
75
|
+
}, {
|
|
76
|
+
path: '/auth/verify',
|
|
77
|
+
component: () => interopDefault(import('../pages/auth/verify.vue' /* webpackChunkName: "pages/auth/verify" */)),
|
|
78
|
+
name: 'auth-verify'
|
|
79
|
+
}, {
|
|
80
|
+
path: '/docs/toc',
|
|
81
|
+
component: () => interopDefault(import('../pages/docs/toc.js' /* webpackChunkName: "pages/docs/toc" */)),
|
|
82
|
+
name: 'docs-toc'
|
|
83
|
+
}, {
|
|
84
|
+
path: '/rio/mesh',
|
|
85
|
+
component: () => interopDefault(import('../pages/rio/mesh.vue' /* webpackChunkName: "pages/rio/mesh" */)),
|
|
86
|
+
name: 'rio-mesh'
|
|
87
|
+
}, {
|
|
88
|
+
path: '/c/:cluster',
|
|
89
|
+
component: () => interopDefault(import('../pages/c/_cluster/index.vue' /* webpackChunkName: "pages/c/_cluster/index" */)),
|
|
90
|
+
name: 'c-cluster'
|
|
91
|
+
}, {
|
|
92
|
+
path: '/docs/:doc?',
|
|
93
|
+
component: () => interopDefault(import('../pages/docs/_doc.vue' /* webpackChunkName: "pages/docs/_doc" */)),
|
|
94
|
+
name: 'docs-doc'
|
|
95
|
+
}, {
|
|
96
|
+
path: '/c/:cluster/apps',
|
|
97
|
+
component: () => interopDefault(import('../pages/c/_cluster/apps/index.vue' /* webpackChunkName: "pages/c/_cluster/apps/index" */)),
|
|
98
|
+
name: 'c-cluster-apps'
|
|
99
|
+
}, {
|
|
100
|
+
path: '/c/:cluster/auth',
|
|
101
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/index.vue' /* webpackChunkName: "pages/c/_cluster/auth/index" */)),
|
|
102
|
+
name: 'c-cluster-auth'
|
|
103
|
+
}, {
|
|
104
|
+
path: '/c/:cluster/backup',
|
|
105
|
+
component: () => interopDefault(import('../pages/c/_cluster/backup/index.vue' /* webpackChunkName: "pages/c/_cluster/backup/index" */)),
|
|
106
|
+
name: 'c-cluster-backup'
|
|
107
|
+
}, {
|
|
108
|
+
path: '/c/:cluster/cis',
|
|
109
|
+
component: () => interopDefault(import('../pages/c/_cluster/cis/index.vue' /* webpackChunkName: "pages/c/_cluster/cis/index" */)),
|
|
110
|
+
name: 'c-cluster-cis'
|
|
111
|
+
}, {
|
|
112
|
+
path: '/c/:cluster/ecm',
|
|
113
|
+
component: () => interopDefault(import('../pages/c/_cluster/ecm/index.vue' /* webpackChunkName: "pages/c/_cluster/ecm/index" */)),
|
|
114
|
+
name: 'c-cluster-ecm'
|
|
115
|
+
}, {
|
|
116
|
+
path: '/c/:cluster/explorer',
|
|
117
|
+
component: () => interopDefault(import('../pages/c/_cluster/explorer/index.vue' /* webpackChunkName: "pages/c/_cluster/explorer/index" */)),
|
|
118
|
+
name: 'c-cluster-explorer'
|
|
119
|
+
}, {
|
|
120
|
+
path: '/c/:cluster/fleet',
|
|
121
|
+
component: () => interopDefault(import('../pages/c/_cluster/fleet/index.vue' /* webpackChunkName: "pages/c/_cluster/fleet/index" */)),
|
|
122
|
+
name: 'c-cluster-fleet'
|
|
123
|
+
}, {
|
|
124
|
+
path: '/c/:cluster/gatekeeper',
|
|
125
|
+
component: () => interopDefault(import('../pages/c/_cluster/gatekeeper/index.vue' /* webpackChunkName: "pages/c/_cluster/gatekeeper/index" */)),
|
|
126
|
+
name: 'c-cluster-gatekeeper'
|
|
127
|
+
}, {
|
|
128
|
+
path: '/c/:cluster/istio',
|
|
129
|
+
component: () => interopDefault(import('../pages/c/_cluster/istio/index.vue' /* webpackChunkName: "pages/c/_cluster/istio/index" */)),
|
|
130
|
+
name: 'c-cluster-istio'
|
|
131
|
+
}, {
|
|
132
|
+
path: '/c/:cluster/legacy',
|
|
133
|
+
component: () => interopDefault(import('../pages/c/_cluster/legacy/index.vue' /* webpackChunkName: "pages/c/_cluster/legacy/index" */)),
|
|
134
|
+
name: 'c-cluster-legacy'
|
|
135
|
+
}, {
|
|
136
|
+
path: '/c/:cluster/logging',
|
|
137
|
+
component: () => interopDefault(import('../pages/c/_cluster/logging/index.vue' /* webpackChunkName: "pages/c/_cluster/logging/index" */)),
|
|
138
|
+
name: 'c-cluster-logging'
|
|
139
|
+
}, {
|
|
140
|
+
path: '/c/:cluster/longhorn',
|
|
141
|
+
component: () => interopDefault(import('../pages/c/_cluster/longhorn/index.vue' /* webpackChunkName: "pages/c/_cluster/longhorn/index" */)),
|
|
142
|
+
name: 'c-cluster-longhorn'
|
|
143
|
+
}, {
|
|
144
|
+
path: '/c/:cluster/manager',
|
|
145
|
+
component: () => interopDefault(import('../pages/c/_cluster/manager/index.vue' /* webpackChunkName: "pages/c/_cluster/manager/index" */)),
|
|
146
|
+
name: 'c-cluster-manager'
|
|
147
|
+
}, {
|
|
148
|
+
path: '/c/:cluster/mcapps',
|
|
149
|
+
component: () => interopDefault(import('../pages/c/_cluster/mcapps/index.vue' /* webpackChunkName: "pages/c/_cluster/mcapps/index" */)),
|
|
150
|
+
name: 'c-cluster-mcapps'
|
|
151
|
+
}, {
|
|
152
|
+
path: '/c/:cluster/monitoring',
|
|
153
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/index.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/index" */)),
|
|
154
|
+
name: 'c-cluster-monitoring'
|
|
155
|
+
}, {
|
|
156
|
+
path: '/c/:cluster/neuvector',
|
|
157
|
+
component: () => interopDefault(import('../pages/c/_cluster/neuvector/index.vue' /* webpackChunkName: "pages/c/_cluster/neuvector/index" */)),
|
|
158
|
+
name: 'c-cluster-neuvector'
|
|
159
|
+
}, {
|
|
160
|
+
path: '/c/:cluster/settings',
|
|
161
|
+
component: () => interopDefault(import('../pages/c/_cluster/settings/index.vue' /* webpackChunkName: "pages/c/_cluster/settings/index" */)),
|
|
162
|
+
name: 'c-cluster-settings'
|
|
163
|
+
}, {
|
|
164
|
+
path: '/c/:cluster/uiplugins',
|
|
165
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/index.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/index" */)),
|
|
166
|
+
name: 'c-cluster-uiplugins'
|
|
167
|
+
}, {
|
|
168
|
+
path: '/c/:cluster/apps/charts',
|
|
169
|
+
component: () => interopDefault(import('../pages/c/_cluster/apps/charts/index.vue' /* webpackChunkName: "pages/c/_cluster/apps/charts/index" */)),
|
|
170
|
+
name: 'c-cluster-apps-charts'
|
|
171
|
+
}, {
|
|
172
|
+
path: '/c/:cluster/auth/config',
|
|
173
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/config/index.vue' /* webpackChunkName: "pages/c/_cluster/auth/config/index" */)),
|
|
174
|
+
name: 'c-cluster-auth-config'
|
|
175
|
+
}, {
|
|
176
|
+
path: '/c/:cluster/auth/roles',
|
|
177
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/roles/index.vue' /* webpackChunkName: "pages/c/_cluster/auth/roles/index" */)),
|
|
178
|
+
name: 'c-cluster-auth-roles'
|
|
179
|
+
}, {
|
|
180
|
+
path: '/c/:cluster/explorer/ConfigBadge',
|
|
181
|
+
component: () => interopDefault(import('../pages/c/_cluster/explorer/ConfigBadge.vue' /* webpackChunkName: "pages/c/_cluster/explorer/ConfigBadge" */)),
|
|
182
|
+
name: 'c-cluster-explorer-ConfigBadge'
|
|
183
|
+
}, {
|
|
184
|
+
path: '/c/:cluster/explorer/EventsTable',
|
|
185
|
+
component: () => interopDefault(import('../pages/c/_cluster/explorer/EventsTable.vue' /* webpackChunkName: "pages/c/_cluster/explorer/EventsTable" */)),
|
|
186
|
+
name: 'c-cluster-explorer-EventsTable'
|
|
187
|
+
}, {
|
|
188
|
+
path: '/c/:cluster/explorer/explorer-utils',
|
|
189
|
+
component: () => interopDefault(import('../pages/c/_cluster/explorer/explorer-utils.js' /* webpackChunkName: "pages/c/_cluster/explorer/explorer-utils" */)),
|
|
190
|
+
name: 'c-cluster-explorer-explorer-utils'
|
|
191
|
+
}, {
|
|
192
|
+
path: '/c/:cluster/explorer/tools',
|
|
193
|
+
component: () => interopDefault(import('../pages/c/_cluster/explorer/tools/index.vue' /* webpackChunkName: "pages/c/_cluster/explorer/tools/index" */)),
|
|
194
|
+
name: 'c-cluster-explorer-tools'
|
|
195
|
+
}, {
|
|
196
|
+
path: '/c/:cluster/fleet/GitRepoGraphConfig',
|
|
197
|
+
component: () => interopDefault(import('../pages/c/_cluster/fleet/GitRepoGraphConfig.js' /* webpackChunkName: "pages/c/_cluster/fleet/GitRepoGraphConfig" */)),
|
|
198
|
+
name: 'c-cluster-fleet-GitRepoGraphConfig'
|
|
199
|
+
}, {
|
|
200
|
+
path: '/c/:cluster/gatekeeper/constraints',
|
|
201
|
+
component: () => interopDefault(import('../pages/c/_cluster/gatekeeper/constraints/index.vue' /* webpackChunkName: "pages/c/_cluster/gatekeeper/constraints/index" */)),
|
|
202
|
+
name: 'c-cluster-gatekeeper-constraints'
|
|
203
|
+
}, {
|
|
204
|
+
path: '/c/:cluster/legacy/project',
|
|
205
|
+
component: () => interopDefault(import('../pages/c/_cluster/legacy/project/index.vue' /* webpackChunkName: "pages/c/_cluster/legacy/project/index" */)),
|
|
206
|
+
name: 'c-cluster-legacy-project'
|
|
207
|
+
}, {
|
|
208
|
+
path: '/c/:cluster/manager/cloudCredential',
|
|
209
|
+
component: () => interopDefault(import('../pages/c/_cluster/manager/cloudCredential/index.vue' /* webpackChunkName: "pages/c/_cluster/manager/cloudCredential/index" */)),
|
|
210
|
+
name: 'c-cluster-manager-cloudCredential'
|
|
211
|
+
}, {
|
|
212
|
+
path: '/c/:cluster/monitoring/alertmanagerconfig',
|
|
213
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/alertmanagerconfig/index.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/alertmanagerconfig/index" */)),
|
|
214
|
+
name: 'c-cluster-monitoring-alertmanagerconfig'
|
|
215
|
+
}, {
|
|
216
|
+
path: '/c/:cluster/monitoring/monitor',
|
|
217
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/monitor/index.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/monitor/index" */)),
|
|
218
|
+
name: 'c-cluster-monitoring-monitor'
|
|
219
|
+
}, {
|
|
220
|
+
path: '/c/:cluster/monitoring/route-receiver',
|
|
221
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/route-receiver/index.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/route-receiver/index" */)),
|
|
222
|
+
name: 'c-cluster-monitoring-route-receiver'
|
|
223
|
+
}, {
|
|
224
|
+
path: '/c/:cluster/settings/banners',
|
|
225
|
+
component: () => interopDefault(import('../pages/c/_cluster/settings/banners.vue' /* webpackChunkName: "pages/c/_cluster/settings/banners" */)),
|
|
226
|
+
name: 'c-cluster-settings-banners'
|
|
227
|
+
}, {
|
|
228
|
+
path: '/c/:cluster/settings/brand',
|
|
229
|
+
component: () => interopDefault(import('../pages/c/_cluster/settings/brand.vue' /* webpackChunkName: "pages/c/_cluster/settings/brand" */)),
|
|
230
|
+
name: 'c-cluster-settings-brand'
|
|
231
|
+
}, {
|
|
232
|
+
path: '/c/:cluster/settings/DefaultLinksEditor',
|
|
233
|
+
component: () => interopDefault(import('../pages/c/_cluster/settings/DefaultLinksEditor.vue' /* webpackChunkName: "shell/pages/c/_cluster/settings/DefaultLinksEditor" */)),
|
|
234
|
+
name: 'c-cluster-settings-DefaultLinksEditor'
|
|
235
|
+
}, {
|
|
236
|
+
path: '/c/:cluster/settings/links',
|
|
237
|
+
component: () => interopDefault(import('../pages/c/_cluster/settings/links.vue' /* webpackChunkName: "pages/c/_cluster/settings/links" */)),
|
|
238
|
+
name: 'c-cluster-settings-links'
|
|
239
|
+
}, {
|
|
240
|
+
path: '/c/:cluster/settings/performance',
|
|
241
|
+
component: () => interopDefault(import('../pages/c/_cluster/settings/performance.vue' /* webpackChunkName: "pages/c/_cluster/settings/performance" */)),
|
|
242
|
+
name: 'c-cluster-settings-performance'
|
|
243
|
+
}, {
|
|
244
|
+
path: '/c/:cluster/uiplugins/DeveloperInstallDialog',
|
|
245
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/DeveloperInstallDialog" */)),
|
|
246
|
+
name: 'c-cluster-uiplugins-DeveloperInstallDialog'
|
|
247
|
+
}, {
|
|
248
|
+
path: '/c/:cluster/uiplugins/InstallDialog',
|
|
249
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/InstallDialog.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/InstallDialog" */)),
|
|
250
|
+
name: 'c-cluster-uiplugins-InstallDialog'
|
|
251
|
+
}, {
|
|
252
|
+
path: '/c/:cluster/uiplugins/PluginInfoPanel',
|
|
253
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/PluginInfoPanel.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/PluginInfoPanel" */)),
|
|
254
|
+
name: 'c-cluster-uiplugins-PluginInfoPanel'
|
|
255
|
+
}, {
|
|
256
|
+
path: '/c/:cluster/uiplugins/RemoveUIPlugins',
|
|
257
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/RemoveUIPlugins.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/RemoveUIPlugins" */)),
|
|
258
|
+
name: 'c-cluster-uiplugins-RemoveUIPlugins'
|
|
259
|
+
}, {
|
|
260
|
+
path: '/c/:cluster/uiplugins/SetupUIPlugins',
|
|
261
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/SetupUIPlugins.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/SetupUIPlugins" */)),
|
|
262
|
+
name: 'c-cluster-uiplugins-SetupUIPlugins'
|
|
263
|
+
}, {
|
|
264
|
+
path: '/c/:cluster/uiplugins/UninstallDialog',
|
|
265
|
+
component: () => interopDefault(import('../pages/c/_cluster/uiplugins/UninstallDialog.vue' /* webpackChunkName: "pages/c/_cluster/uiplugins/UninstallDialog" */)),
|
|
266
|
+
name: 'c-cluster-uiplugins-UninstallDialog'
|
|
267
|
+
}, {
|
|
268
|
+
path: '/c/:cluster/apps/charts/chart',
|
|
269
|
+
component: () => interopDefault(import('../pages/c/_cluster/apps/charts/chart.vue' /* webpackChunkName: "pages/c/_cluster/apps/charts/chart" */)),
|
|
270
|
+
name: 'c-cluster-apps-charts-chart'
|
|
271
|
+
}, {
|
|
272
|
+
path: '/c/:cluster/apps/charts/install',
|
|
273
|
+
component: () => interopDefault(import('../pages/c/_cluster/apps/charts/install.vue' /* webpackChunkName: "pages/c/_cluster/apps/charts/install" */)),
|
|
274
|
+
name: 'c-cluster-apps-charts-install'
|
|
275
|
+
}, {
|
|
276
|
+
path: '/c/:cluster/auth/group.principal/assign-edit',
|
|
277
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/group.principal/assign-edit.vue' /* webpackChunkName: "pages/c/_cluster/auth/group.principal/assign-edit" */)),
|
|
278
|
+
name: 'c-cluster-auth-group.principal-assign-edit'
|
|
279
|
+
}, {
|
|
280
|
+
path: '/c/:cluster/legacy/project/pipelines',
|
|
281
|
+
component: () => interopDefault(import('../pages/c/_cluster/legacy/project/pipelines.vue' /* webpackChunkName: "pages/c/_cluster/legacy/project/pipelines" */)),
|
|
282
|
+
name: 'c-cluster-legacy-project-pipelines'
|
|
283
|
+
}, {
|
|
284
|
+
path: '/c/:cluster/manager/cloudCredential/create',
|
|
285
|
+
component: () => interopDefault(import('../pages/c/_cluster/manager/cloudCredential/create.vue' /* webpackChunkName: "pages/c/_cluster/manager/cloudCredential/create" */)),
|
|
286
|
+
name: 'c-cluster-manager-cloudCredential-create'
|
|
287
|
+
}, {
|
|
288
|
+
path: '/c/:cluster/monitoring/monitor/create',
|
|
289
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/monitor/create.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/monitor/create" */)),
|
|
290
|
+
name: 'c-cluster-monitoring-monitor-create'
|
|
291
|
+
}, {
|
|
292
|
+
path: '/c/:cluster/monitoring/route-receiver/create',
|
|
293
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/route-receiver/create.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/route-receiver/create" */)),
|
|
294
|
+
name: 'c-cluster-monitoring-route-receiver-create'
|
|
295
|
+
}, {
|
|
296
|
+
path: '/c/:cluster/explorer/tools/pages/:page?',
|
|
297
|
+
component: () => interopDefault(import('../pages/c/_cluster/explorer/tools/pages/_page.vue' /* webpackChunkName: "pages/c/_cluster/explorer/tools/pages/_page" */)),
|
|
298
|
+
name: 'c-cluster-explorer-tools-pages-page'
|
|
299
|
+
}, {
|
|
300
|
+
path: '/c/:cluster/auth/config/:id',
|
|
301
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/config/_id.vue' /* webpackChunkName: "pages/c/_cluster/auth/config/_id" */)),
|
|
302
|
+
name: 'c-cluster-auth-config-id'
|
|
303
|
+
}, {
|
|
304
|
+
path: '/c/:cluster/legacy/pages/:page?',
|
|
305
|
+
component: () => interopDefault(import('../pages/c/_cluster/legacy/pages/_page.vue' /* webpackChunkName: "pages/c/_cluster/legacy/pages/_page" */)),
|
|
306
|
+
name: 'c-cluster-legacy-pages-page'
|
|
307
|
+
}, {
|
|
308
|
+
path: '/c/:cluster/legacy/project/:page',
|
|
309
|
+
component: () => interopDefault(import('../pages/c/_cluster/legacy/project/_page.vue' /* webpackChunkName: "pages/c/_cluster/legacy/project/_page" */)),
|
|
310
|
+
name: 'c-cluster-legacy-project-page'
|
|
311
|
+
}, {
|
|
312
|
+
path: '/c/:cluster/manager/cloudCredential/:id',
|
|
313
|
+
component: () => interopDefault(import('../pages/c/_cluster/manager/cloudCredential/_id.vue' /* webpackChunkName: "pages/c/_cluster/manager/cloudCredential/_id" */)),
|
|
314
|
+
name: 'c-cluster-manager-cloudCredential-id'
|
|
315
|
+
}, {
|
|
316
|
+
path: '/c/:cluster/manager/pages/:page?',
|
|
317
|
+
component: () => interopDefault(import('../pages/c/_cluster/manager/pages/_page.vue' /* webpackChunkName: "pages/c/_cluster/manager/pages/_page" */)),
|
|
318
|
+
name: 'c-cluster-manager-pages-page'
|
|
319
|
+
}, {
|
|
320
|
+
path: '/c/:cluster/mcapps/pages/:page?',
|
|
321
|
+
component: () => interopDefault(import('../pages/c/_cluster/mcapps/pages/_page.vue' /* webpackChunkName: "pages/c/_cluster/mcapps/pages/_page" */)),
|
|
322
|
+
name: 'c-cluster-mcapps-pages-page'
|
|
323
|
+
}, {
|
|
324
|
+
path: '/c/:cluster/monitoring/alertmanagerconfig/:alertmanagerconfigid',
|
|
325
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/index.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/index" */)),
|
|
326
|
+
name: 'c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid'
|
|
327
|
+
}, {
|
|
328
|
+
path: '/c/:cluster/monitoring/route-receiver/:id?',
|
|
329
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/route-receiver/_id.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/route-receiver/_id" */)),
|
|
330
|
+
name: 'c-cluster-monitoring-route-receiver-id'
|
|
331
|
+
}, {
|
|
332
|
+
path: '/c/:cluster/auth/roles/:resource/create',
|
|
333
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/roles/_resource/create.vue' /* webpackChunkName: "pages/c/_cluster/auth/roles/_resource/create" */)),
|
|
334
|
+
name: 'c-cluster-auth-roles-resource-create'
|
|
335
|
+
}, {
|
|
336
|
+
path: '/c/:cluster/monitoring/alertmanagerconfig/:alertmanagerconfigid/receiver',
|
|
337
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver" */)),
|
|
338
|
+
name: 'c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver'
|
|
339
|
+
}, {
|
|
340
|
+
path: '/c/:cluster/auth/roles/:resource/:id?',
|
|
341
|
+
component: () => interopDefault(import('../pages/c/_cluster/auth/roles/_resource/_id.vue' /* webpackChunkName: "pages/c/_cluster/auth/roles/_resource/_id" */)),
|
|
342
|
+
name: 'c-cluster-auth-roles-resource-id'
|
|
343
|
+
}, {
|
|
344
|
+
path: '/c/:cluster/monitoring/monitor/:namespace/:id?',
|
|
345
|
+
component: () => interopDefault(import('../pages/c/_cluster/monitoring/monitor/_namespace/_id.vue' /* webpackChunkName: "pages/c/_cluster/monitoring/monitor/_namespace/_id" */)),
|
|
346
|
+
name: 'c-cluster-monitoring-monitor-namespace-id'
|
|
347
|
+
}, {
|
|
348
|
+
path: '/c/:cluster/navlinks/:group?',
|
|
349
|
+
component: () => interopDefault(import('../pages/c/_cluster/navlinks/_group.vue' /* webpackChunkName: "pages/c/_cluster/navlinks/_group" */)),
|
|
350
|
+
name: 'c-cluster-navlinks-group'
|
|
351
|
+
}, {
|
|
352
|
+
path: '/c/:cluster/:product',
|
|
353
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/index.vue' /* webpackChunkName: "pages/c/_cluster/_product/index" */)),
|
|
354
|
+
name: 'c-cluster-product'
|
|
355
|
+
}, {
|
|
356
|
+
path: '/c/:cluster/:product/members',
|
|
357
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/members/index.vue' /* webpackChunkName: "pages/c/_cluster/_product/members/index" */)),
|
|
358
|
+
name: 'c-cluster-product-members'
|
|
359
|
+
}, {
|
|
360
|
+
path: '/c/:cluster/:product/namespaces',
|
|
361
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/namespaces.vue' /* webpackChunkName: "pages/c/_cluster/_product/namespaces" */)),
|
|
362
|
+
name: 'c-cluster-product-namespaces'
|
|
363
|
+
}, {
|
|
364
|
+
path: '/c/:cluster/:product/projectsnamespaces',
|
|
365
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/projectsnamespaces.vue' /* webpackChunkName: "pages/c/_cluster/_product/projectsnamespaces" */)),
|
|
366
|
+
name: 'c-cluster-product-projectsnamespaces'
|
|
367
|
+
}, {
|
|
368
|
+
path: '/c/:cluster/:product/:resource',
|
|
369
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/_resource/index.vue' /* webpackChunkName: "pages/c/_cluster/_product/_resource/index" */)),
|
|
370
|
+
name: 'c-cluster-product-resource'
|
|
371
|
+
}, {
|
|
372
|
+
path: '/c/:cluster/:product/:resource/create',
|
|
373
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/_resource/create.vue' /* webpackChunkName: "pages/c/_cluster/_product/_resource/create" */)),
|
|
374
|
+
name: 'c-cluster-product-resource-create'
|
|
375
|
+
}, {
|
|
376
|
+
path: '/c/:cluster/:product/:resource/:id',
|
|
377
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/_resource/_id.vue' /* webpackChunkName: "pages/c/_cluster/_product/_resource/_id" */)),
|
|
378
|
+
name: 'c-cluster-product-resource-id'
|
|
379
|
+
}, {
|
|
380
|
+
path: '/c/:cluster/:product/:resource/:namespace/:id?',
|
|
381
|
+
component: () => interopDefault(import('../pages/c/_cluster/_product/_resource/_namespace/_id.vue' /* webpackChunkName: "pages/c/_cluster/_product/_resource/_namespace/_id" */)),
|
|
382
|
+
name: 'c-cluster-product-resource-namespace-id'
|
|
383
|
+
}, {
|
|
384
|
+
path: '/',
|
|
385
|
+
component: () => interopDefault(import('../pages/index.vue' /* webpackChunkName: "pages/index" */)),
|
|
386
|
+
name: 'index'
|
|
387
|
+
}],
|
|
388
|
+
|
|
389
|
+
fallback: false
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
export function createRouter(ssrContext, config) {
|
|
393
|
+
const base = (config._app && config._app.basePath) || routerOptions.base;
|
|
394
|
+
const router = new Router({ ...routerOptions, base });
|
|
395
|
+
|
|
396
|
+
// TODO: remove in Nuxt 3
|
|
397
|
+
const originalPush = router.push;
|
|
398
|
+
|
|
399
|
+
router.push = function push(location, onComplete = emptyFn, onAbort) {
|
|
400
|
+
return originalPush.call(this, location, onComplete, onAbort);
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
const resolve = router.resolve.bind(router);
|
|
404
|
+
|
|
405
|
+
router.resolve = (to, current, append) => {
|
|
406
|
+
if (typeof to === 'string') {
|
|
407
|
+
to = normalizeURL(to);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return resolve(to, current, append);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
return router;
|
|
414
|
+
}
|
package/config/store.js
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import Vuex from 'vuex';
|
|
3
|
+
|
|
4
|
+
Vue.use(Vuex);
|
|
5
|
+
|
|
6
|
+
const VUEX_PROPERTIES = ['state', 'getters', 'actions', 'mutations'];
|
|
7
|
+
|
|
8
|
+
let store = {};
|
|
9
|
+
|
|
10
|
+
(function updateModules() {
|
|
11
|
+
store = normalizeRoot(require('../store/index.js'), 'store/index.js');
|
|
12
|
+
|
|
13
|
+
// If store is an exported method = classic mode (deprecated)
|
|
14
|
+
|
|
15
|
+
if (typeof store === 'function') {
|
|
16
|
+
return console.warn('Classic mode for store/ is deprecated and will be removed in Nuxt 3.'); // eslint-disable-line no-console
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Enforce store modules
|
|
20
|
+
store.modules = store.modules || {};
|
|
21
|
+
|
|
22
|
+
resolveStoreModules(require('../store/action-menu.js'), 'action-menu.js');
|
|
23
|
+
resolveStoreModules(require('../store/auth.js'), 'auth.js');
|
|
24
|
+
resolveStoreModules(require('../store/aws.js'), 'aws.js');
|
|
25
|
+
resolveStoreModules(require('../store/catalog.js'), 'catalog.js');
|
|
26
|
+
resolveStoreModules(require('../store/digitalocean.js'), 'digitalocean.js');
|
|
27
|
+
resolveStoreModules(require('../store/features.js'), 'features.js');
|
|
28
|
+
resolveStoreModules(require('../store/github.js'), 'github.js');
|
|
29
|
+
resolveStoreModules(require('../store/growl.js'), 'growl.js');
|
|
30
|
+
resolveStoreModules(require('../store/i18n.js'), 'i18n.js');
|
|
31
|
+
resolveStoreModules(require('../store/linode.js'), 'linode.js');
|
|
32
|
+
resolveStoreModules(require('../store/plugins.js'), 'plugins.js');
|
|
33
|
+
resolveStoreModules(require('../store/pnap.js'), 'pnap.js');
|
|
34
|
+
resolveStoreModules(require('../store/prefs.js'), 'prefs.js');
|
|
35
|
+
resolveStoreModules(require('../store/resource-fetch.js'), 'resource-fetch.js');
|
|
36
|
+
resolveStoreModules(require('../store/type-map.js'), 'type-map.js');
|
|
37
|
+
resolveStoreModules(require('../store/uiplugins.ts'), 'uiplugins.ts');
|
|
38
|
+
resolveStoreModules(require('../store/wm.js'), 'wm.js');
|
|
39
|
+
|
|
40
|
+
// If the environment supports hot reloading...
|
|
41
|
+
|
|
42
|
+
if (process.client && module.hot) {
|
|
43
|
+
// Whenever any Vuex module is updated...
|
|
44
|
+
module.hot.accept([
|
|
45
|
+
'../store/action-menu.js',
|
|
46
|
+
'../store/auth.js',
|
|
47
|
+
'../store/aws.js',
|
|
48
|
+
'../store/catalog.js',
|
|
49
|
+
'../store/digitalocean.js',
|
|
50
|
+
'../store/features.js',
|
|
51
|
+
'../store/github.js',
|
|
52
|
+
'../store/growl.js',
|
|
53
|
+
'../store/i18n.js',
|
|
54
|
+
'../store/index.js',
|
|
55
|
+
'../store/linode.js',
|
|
56
|
+
'../store/plugins.js',
|
|
57
|
+
'../store/pnap.js',
|
|
58
|
+
'../store/prefs.js',
|
|
59
|
+
'../store/resource-fetch.js',
|
|
60
|
+
'../store/type-map.js',
|
|
61
|
+
'../store/uiplugins.ts',
|
|
62
|
+
'../store/wm.js',
|
|
63
|
+
], () => {
|
|
64
|
+
// Update `root.modules` with the latest definitions.
|
|
65
|
+
updateModules();
|
|
66
|
+
// Trigger a hot update in the store.
|
|
67
|
+
window.$nuxt.$store.hotUpdate(store);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
})();
|
|
71
|
+
|
|
72
|
+
// createStore
|
|
73
|
+
export const createStore = store instanceof Function ? store : () => {
|
|
74
|
+
return new Vuex.Store(Object.assign({ strict: (process.env.NODE_ENV !== 'production') }, store));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
function normalizeRoot(moduleData, filePath) {
|
|
78
|
+
moduleData = moduleData.default || moduleData;
|
|
79
|
+
|
|
80
|
+
if (moduleData.commit) {
|
|
81
|
+
throw new Error(`[nuxt] ${ filePath } should export a method that returns a Vuex instance.`);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (typeof moduleData !== 'function') {
|
|
85
|
+
// Avoid TypeError: setting a property that has only a getter when overwriting top level keys
|
|
86
|
+
moduleData = Object.assign({}, moduleData);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return normalizeModule(moduleData, filePath);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function normalizeModule(moduleData, filePath) {
|
|
93
|
+
if (moduleData.state && typeof moduleData.state !== 'function') {
|
|
94
|
+
console.warn(`'state' should be a method that returns an object in ${ filePath }`); // eslint-disable-line no-console
|
|
95
|
+
|
|
96
|
+
const state = Object.assign({}, moduleData.state);
|
|
97
|
+
|
|
98
|
+
// Avoid TypeError: setting a property that has only a getter when overwriting top level keys
|
|
99
|
+
moduleData = Object.assign({}, moduleData, { state: () => state });
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return moduleData;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function resolveStoreModules(moduleData, filename) {
|
|
106
|
+
moduleData = moduleData.default || moduleData;
|
|
107
|
+
// Remove store src + extension (./foo/index.js -> foo/index)
|
|
108
|
+
const namespace = filename.replace(/\.(js|mjs|ts)$/, '');
|
|
109
|
+
const namespaces = namespace.split('/');
|
|
110
|
+
let moduleName = namespaces[namespaces.length - 1];
|
|
111
|
+
const filePath = `store/${ filename }`;
|
|
112
|
+
|
|
113
|
+
moduleData = moduleName === 'state' ? normalizeState(moduleData, filePath) : normalizeModule(moduleData, filePath);
|
|
114
|
+
|
|
115
|
+
// If src is a known Vuex property
|
|
116
|
+
if (VUEX_PROPERTIES.includes(moduleName)) {
|
|
117
|
+
const property = moduleName;
|
|
118
|
+
const propertyStoreModule = getStoreModule(store, namespaces, { isProperty: true });
|
|
119
|
+
|
|
120
|
+
// Replace state since it's a function
|
|
121
|
+
mergeProperty(propertyStoreModule, moduleData, property);
|
|
122
|
+
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// If file is foo/index.js, it should be saved as foo
|
|
127
|
+
const isIndexModule = (moduleName === 'index');
|
|
128
|
+
|
|
129
|
+
if (isIndexModule) {
|
|
130
|
+
namespaces.pop();
|
|
131
|
+
moduleName = namespaces[namespaces.length - 1];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const storeModule = getStoreModule(store, namespaces);
|
|
135
|
+
|
|
136
|
+
for (const property of VUEX_PROPERTIES) {
|
|
137
|
+
mergeProperty(storeModule, moduleData[property], property);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (moduleData.namespaced === false) {
|
|
141
|
+
delete storeModule.namespaced;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function normalizeState(moduleData, filePath) {
|
|
146
|
+
if (typeof moduleData !== 'function') {
|
|
147
|
+
console.warn(`${ filePath } should export a method that returns an object`); // eslint-disable-line no-console
|
|
148
|
+
const state = Object.assign({}, moduleData);
|
|
149
|
+
|
|
150
|
+
return () => state;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return normalizeModule(moduleData, filePath);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function getStoreModule(storeModule, namespaces, { isProperty = false } = {}) {
|
|
157
|
+
// If ./mutations.js
|
|
158
|
+
if (!namespaces.length || (isProperty && namespaces.length === 1)) {
|
|
159
|
+
return storeModule;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const namespace = namespaces.shift();
|
|
163
|
+
|
|
164
|
+
storeModule.modules[namespace] = storeModule.modules[namespace] || {};
|
|
165
|
+
storeModule.modules[namespace].namespaced = true;
|
|
166
|
+
storeModule.modules[namespace].modules = storeModule.modules[namespace].modules || {};
|
|
167
|
+
|
|
168
|
+
return getStoreModule(storeModule.modules[namespace], namespaces, { isProperty });
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function mergeProperty(storeModule, moduleData, property) {
|
|
172
|
+
if (!moduleData) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (property === 'state') {
|
|
177
|
+
storeModule.state = moduleData || storeModule.state;
|
|
178
|
+
} else {
|
|
179
|
+
storeModule[property] = Object.assign({}, storeModule[property], moduleData);
|
|
180
|
+
}
|
|
181
|
+
}
|