mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
57 lines
1.3 KiB
JavaScript
57 lines
1.3 KiB
JavaScript
import angular from 'angular';
|
|
|
|
import { kubeCustomTemplatesView } from './kube-custom-templates-view';
|
|
|
|
export default angular.module('portainer.kubernetes.custom-templates', []).config(config).component('kubeCustomTemplatesView', kubeCustomTemplatesView).name;
|
|
|
|
function config($stateRegistryProvider) {
|
|
const templates = {
|
|
name: 'kubernetes.templates',
|
|
url: '/templates',
|
|
abstract: true,
|
|
};
|
|
|
|
const customTemplates = {
|
|
name: 'kubernetes.templates.custom',
|
|
url: '/custom',
|
|
|
|
views: {
|
|
'content@': {
|
|
component: 'kubeCustomTemplatesView',
|
|
},
|
|
},
|
|
data: {
|
|
docs: '/user/kubernetes/templates',
|
|
},
|
|
};
|
|
|
|
const customTemplatesNew = {
|
|
name: 'kubernetes.templates.custom.new',
|
|
url: '/new?fileContent',
|
|
|
|
views: {
|
|
'content@': {
|
|
component: 'createCustomTemplatesView',
|
|
},
|
|
},
|
|
params: {
|
|
fileContent: '',
|
|
},
|
|
};
|
|
|
|
const customTemplatesEdit = {
|
|
name: 'kubernetes.templates.custom.edit',
|
|
url: '/:id',
|
|
|
|
views: {
|
|
'content@': {
|
|
component: 'editCustomTemplatesView',
|
|
},
|
|
},
|
|
};
|
|
|
|
$stateRegistryProvider.register(templates);
|
|
$stateRegistryProvider.register(customTemplates);
|
|
$stateRegistryProvider.register(customTemplatesNew);
|
|
$stateRegistryProvider.register(customTemplatesEdit);
|
|
}
|