1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(custom-templates): migrate create view to react [EE-6400] (#10715)

This commit is contained in:
Chaim Lev-Ari 2023-12-06 14:11:02 +01:00 committed by GitHub
parent bd5ba7b5d0
commit dabcf4f7db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 495 additions and 960 deletions

View file

@ -0,0 +1,51 @@
import { StackType } from '../types';
const dockerTexts = {
editor: {
placeholder: 'Define or paste the content of your docker compose file here',
description: (
<p>
You can get more information about Compose file format in the{' '}
<a
href="https://docs.docker.com/compose/compose-file/"
target="_blank"
rel="noreferrer"
>
official documentation
</a>
.
</p>
),
},
upload: 'You can upload a Compose file from your computer.',
} as const;
export const textByType = {
[StackType.DockerCompose]: dockerTexts,
[StackType.DockerSwarm]: dockerTexts,
[StackType.Kubernetes]: {
editor: {
placeholder: 'Define or paste the content of your manifest file here',
description: (
<>
<p>
Templates allow deploying any kind of Kubernetes resource
(Deployment, Secret, ConfigMap...)
</p>
<p>
You can get more information about Kubernetes file format in the
<a
href="https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/"
target="_blank"
rel="noreferrer"
>
official documentation
</a>
.
</p>
</>
),
},
upload: 'You can upload a Manifest file from your computer.',
},
} as const;