fix(kube): update doc links to match new menu structure [EE-6759] (#11266)

pull/11293/head
Matt Hook 2024-03-01 15:37:32 +13:00 committed by GitHub
parent ff178641be
commit 51c672af21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 89 additions and 14 deletions

View File

@ -104,6 +104,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controllerAs: 'ctrl',
},
},
data: {
docs: '/user/docker/configs/add',
},
};
const customTemplates = {
@ -165,7 +168,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
},
},
data: {
docs: '/user/docker/host',
docs: '/user/docker/host/details',
},
};
@ -227,6 +230,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'BuildImageController',
},
},
data: {
docs: '/user/docker/images/build',
},
};
var imageImport = {
@ -238,6 +244,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'ImportImageController',
},
},
data: {
docs: '/user/docker/images/import',
},
};
var networks = {
@ -273,6 +282,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateNetworkController',
},
},
data: {
docs: '/user/docker/networks/add',
},
};
var nodes = {
@ -280,7 +292,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
url: '/nodes',
abstract: true,
data: {
docs: '/user/docker/swarm',
docs: '/user/docker/swarm/details',
},
};
@ -338,6 +350,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateSecretController',
},
},
data: {
docs: '/user/docker/secrets/add',
},
};
var services = {
@ -374,6 +389,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateServiceController',
},
},
data: {
docs: '/user/docker/stacks/add',
},
};
var serviceLogs = {
@ -444,7 +462,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
},
},
data: {
docs: '/user/docker/swarm',
docs: '/user/docker/swarm/details',
},
};
@ -500,7 +518,7 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
},
},
data: {
docs: '/user/docker/templates',
docs: '/user/docker/templates/application',
},
};
@ -549,6 +567,9 @@ angular.module('portainer.docker', ['portainer.app', reactModule]).config([
controller: 'CreateVolumeController',
},
},
data: {
docs: '/user/docker/volumes/add',
},
};
const dockerFeaturesConfiguration = {

View File

@ -85,6 +85,9 @@ function config($stateRegistryProvider: StateRegistry) {
component: 'createContainerView',
},
},
data: {
docs: '/user/docker/containers/add',
},
});
$stateRegistryProvider.register({

View File

@ -72,6 +72,9 @@ angular
component: 'createEdgeStackView',
},
},
data: {
docs: '/user/edge/stacks/add',
},
};
const stacksEdit = {
@ -141,7 +144,7 @@ angular
},
},
data: {
docs: '/user/edge/devices',
docs: '/user/edge/waiting-room',
},
});
}
@ -155,7 +158,7 @@ angular
},
},
data: {
docs: '/user/edge/templates',
docs: '/user/edge/templates/application',
},
});

View File

@ -140,7 +140,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
},
},
data: {
docs: '/user/kubernetes/helm',
docs: '/user/kubernetes/inspect-helm',
},
};
@ -153,7 +153,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
},
},
data: {
docs: '/user/kubernetes/services',
docs: '/user/kubernetes/networking/services',
},
};
@ -166,7 +166,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
},
},
data: {
docs: '/user/kubernetes/ingresses',
docs: '/user/kubernetes/networking/ingresses',
},
};
@ -178,6 +178,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesIngressesCreateView',
},
},
data: {
docs: '/user/kubernetes/networking/ingresses/add',
},
};
const ingressesEdit = {
@ -211,6 +214,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateApplicationView',
},
},
data: {
docs: '/user/kubernetes/applications/add',
},
};
const application = {
@ -221,6 +227,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'applicationDetailsView',
},
},
data: {
docs: '/user/kubernetes/applications/inspect',
},
};
const applicationEdit = {
@ -231,6 +240,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateApplicationView',
},
},
data: {
docs: '/user/kubernetes/applications/edit',
},
};
const applicationConsole = {
@ -317,6 +329,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateConfigMapView',
},
},
data: {
docs: '/user/kubernetes/configurations/add-configmap',
},
};
const configMap = {
@ -346,6 +361,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateSecretView',
},
},
data: {
docs: '/user/kubernetes/configurations/add-secret',
},
};
const secret = {
@ -367,7 +385,7 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
},
},
data: {
docs: '/user/kubernetes/cluster',
docs: '/user/kubernetes/cluster/details',
},
};
@ -379,6 +397,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesNodeView',
},
},
data: {
docs: '/user/kubernetes/cluster/node',
},
};
const nodeStats = {
@ -412,6 +433,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesDeployView',
},
},
data: {
docs: '/user/kubernetes/applications/manifest',
},
};
const resourcePools = {
@ -435,6 +459,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesCreateNamespaceView',
},
},
data: {
docs: '/user/kubernetes/namespaces/add',
},
};
const resourcePool = {
@ -445,6 +472,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesResourcePoolView',
},
},
data: {
docs: '/user/kubernetes/namespaces/manage',
},
};
const resourcePoolAccess = {
@ -455,6 +485,9 @@ angular.module('portainer.kubernetes', ['portainer.app', registriesModule, custo
component: 'kubernetesResourcePoolAccessView',
},
},
data: {
docs: '/user/kubernetes/namespaces/access',
},
};
const volumes = {

View File

@ -37,6 +37,9 @@ function config($stateRegistryProvider) {
params: {
fileContent: '',
},
data: {
docs: '/user/kubernetes/templates/add',
},
};
const customTemplatesEdit = {

View File

@ -183,7 +183,7 @@ angular
},
},
data: {
docs: '/admin/environments',
docs: '/admin/environments/environments',
},
};
@ -220,6 +220,9 @@ angular
component: 'edgeAutoCreateScriptView',
},
},
data: {
docs: '/admin/environments/aeec',
},
};
var addFDOProfile = {
@ -372,6 +375,9 @@ angular
component: 'editRegistry',
},
},
data: {
docs: '/admin/registries/edit',
},
};
const registryCreation = {
@ -382,6 +388,9 @@ angular
component: 'createRegistry',
},
},
data: {
docs: '/admin/registries/add',
},
};
var settings = {
@ -450,7 +459,7 @@ angular
},
},
data: {
docs: '/admin/users',
docs: '/admin/user/users',
access: AccessHeaders.Restricted, // allow for team leaders
},
};

View File

@ -29,7 +29,7 @@ function config($stateRegistryProvider) {
},
},
data: {
docs: '/admin/users/roles',
docs: '/admin/user/roles',
access: AccessHeaders.Admin,
},
};

View File

@ -31,7 +31,7 @@ function config($stateRegistryProvider: StateRegistry) {
},
},
data: {
docs: '/admin/users/teams',
docs: '/admin/user/teams',
access: AccessHeaders.Restricted, // allow for team leaders
},
});

View File

@ -36,6 +36,9 @@ function config($stateRegistryProvider: StateRegistry) {
component: 'updateSchedulesListView',
},
},
data: {
docs: '/admin/environments/update',
},
});
$stateRegistryProvider.register({