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:
parent
bd5ba7b5d0
commit
dabcf4f7db
30 changed files with 495 additions and 960 deletions
51
app/react/common/stacks/common/form-texts.tsx
Normal file
51
app/react/common/stacks/common/form-texts.tsx
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue