fix(ui): give AsciiDoc files their own icon

Every language file needs a specific icon; .adoc/.asciidoc resolved to the generic text glyph, which fails the icon catalog test on main.
This commit is contained in:
l0ng-ai
2026-11-02 10:46:59 +08:00
parent 239753df9f
commit 85d1861ca5
3 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -130,6 +130,7 @@ const ICONS = {
"file-gdscript": "openidea/fileTypes/gdscript",
"file-godot": "openidea/fileTypes/godot",
"file-gdshader": "openidea/fileTypes/gdshader",
"file-asciidoc": "openidea/fileTypes/asciidoc",
"file-d": "openidea/fileTypes/d",
"file-dart": "openidea/fileTypes/dart",
"file-elixir": "openidea/fileTypes/elixir",
@@ -826,7 +827,7 @@ const EXT_ICONS = table({
"file-rst": "rst",
"file-yaml": "yaml yml",
"file-toml": "toml",
"file-text": "txt text adoc",
"file-text": "txt text",
"file-log": "log",
"file-csv": "csv tsv",
"file-html": "html htm shtml html.tmpl",
@@ -879,6 +880,7 @@ const EXT_ICONS = table({
"file-gdscript": "gd",
"file-godot": "tscn tres godot import",
"file-gdshader": "gdshader gdshaderinc",
"file-asciidoc": "adoc asciidoc",
"file-d": "d di",
"file-dart": "dart",
"file-elixir": "ex exs",
+3
View File
@@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g stroke-linejoin="round"><path d="M14 4C14 2.89543 13.1046 2 12 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V4Z" fill="#C94F6D"/><path d="M4.5 11.5L8 4L11.5 11.5" stroke="#2B2D30" stroke-linecap="round"/><path d="M5.9 8.5H10.1" stroke="#2B2D30"/></g>
</svg>

After

Width:  |  Height:  |  Size: 399 B

@@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g stroke-linejoin="round"><path d="M14 4C14 2.89543 13.1046 2 12 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V4Z" fill="#E0708A"/><path d="M4.5 11.5L8 4L11.5 11.5" stroke="#2B2D30" stroke-linecap="round"/><path d="M5.9 8.5H10.1" stroke="#2B2D30"/></g>
</svg>

After

Width:  |  Height:  |  Size: 399 B