mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
refactor: change template file format from YAML to TOML
- Updated the TemplateDialog and TemplateGrid components to use 'template.toml' instead of 'template.yml'. - Modified the CodeEditor component to support 'toml' as a valid language option.
This commit is contained in:
@@ -228,7 +228,7 @@ const TemplateDialog: React.FC<TemplateDialogProps> = ({
|
||||
<div className="relative w-full rounded-md overflow-hidden border">
|
||||
<CodeEditor
|
||||
value={templateFiles.config || ""}
|
||||
language="yaml"
|
||||
language="toml"
|
||||
className="font-mono w-full [&_*]:!break-words"
|
||||
/>
|
||||
<Button
|
||||
|
||||
@@ -82,7 +82,7 @@ const TemplateGrid: React.FC<TemplateGridProps> = ({ view }) => {
|
||||
try {
|
||||
const [dockerComposeRes, configRes] = await Promise.all([
|
||||
fetch(`/blueprints/${templateId}/docker-compose.yml`),
|
||||
fetch(`/blueprints/${templateId}/template.yml`),
|
||||
fetch(`/blueprints/${templateId}/template.toml`),
|
||||
]);
|
||||
|
||||
const dockerCompose = dockerComposeRes.ok
|
||||
|
||||
@@ -121,7 +121,7 @@ function dockerComposeComplete(
|
||||
interface Props extends ReactCodeMirrorProps {
|
||||
wrapperClassName?: string;
|
||||
disabled?: boolean;
|
||||
language?: "yaml" | "json" | "properties" | "shell";
|
||||
language?: "yaml" | "json" | "properties" | "shell" | "toml";
|
||||
lineWrapping?: boolean;
|
||||
lineNumbers?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user