Skip to content

Commit c68b4f2

Browse files
authored
Merge pull request #6378 from opsmill/stable
Merge stable into develop
2 parents f034d18 + 5c4f2b1 commit c68b4f2

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

backend/infrahub/core/constants/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class ContentType(InfrahubStringEnum):
150150
APPLICATION_JSON = "application/json"
151151
APPLICATION_YAML = "application/yaml"
152152
APPLICATION_XML = "application/xml"
153+
APPLICATION_HCL = "application/hcl"
153154
TEXT_PLAIN = "text/plain"
154155
TEXT_MARKDOWN = "text/markdown"
155156
TEXT_CSV = "text/csv"

changelog/+hcl.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable HCL syntax highlighting for artifacts

docs/docs/topics/artifact.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The following MIME types or formats are supported and will be rendered properly
1313
- application/json
1414
- application/yaml
1515
- application/xml
16+
- application/hcl
1617
- text/plain
1718
- text/markdown
1819
- text/csv

frontend/app/src/entities/artifacts/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export type ArtifactStatus = "Error" | "Pending" | "Processing" | "Ready";
33
export type ArtifactContentType =
44
| "application/json"
55
| "application/yaml"
6+
| "application/hcl"
67
| "image/svg+xml"
78
| "text/plain"
89
| "text/markdown";

frontend/app/src/entities/artifacts/ui/artifact-file.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const CONTENT_TYPE_CONFIG: Record<
2424
"application/json": { extension: "json", language: "json", label: "JSON" },
2525
"text/markdown": { extension: "md", language: "markdown", label: "Markdown" },
2626
"application/yaml": { extension: "yaml", language: "yaml", label: "YAML" },
27+
"application/hcl": { extension: "hcl", language: "hcl", label: "HCL" },
2728
"image/svg+xml": { extension: "svg", language: "svg", label: "SVG" },
2829
"text/plain": { extension: "txt", language: "text", label: "text" },
2930
};

0 commit comments

Comments
 (0)