lmjtfy.git / packages / tree / src / icons_theme.rs
1//! Which of Jerry's pixel icons a name gets: the icon theme's own map
2//! (`themes/icon-theme.json` of wolfsouldev/jerrys-pixel-icons, at
3//! 515ab8e v0.3.0), read into tables. Generated by
4//! third-party/jerrys-pixel-icons/update.py; do not edit by hand. Entries
5//! with a wildcard are left out. Each icon is a file of that name, `.png`,
6//! in third-party/jerrys-pixel-icons.
7
8/// A file, by what follows its last dot.
9pub const EXTENSIONS: &[(&str, &str)] = &[
10    ("ase", "file-ase"),
11    ("aseprite", "file-ase"),
12    ("astro", "file-astro"),
13    ("avi", "file-mp4"),
14    ("bash", "file-shell"),
15    ("bat", "file-bat"),
16    ("c", "file-c"),
17    ("cc", "file-cpp"),
18    ("cjs", "file-js"),
19    ("class", "file-javaclass"),
20    ("cmd", "file-bat"),
21    ("conf", "file-conf"),
22    ("cpp", "file-cpp"),
23    ("cs", "file-cs"),
24    ("cshtml", "file-razor"),
25    ("csproj", "file-vs"),
26    ("css", "file-css"),
27    ("cts", "file-ts"),
28    ("cxx", "file-cpp"),
29    ("dart", "file-dart"),
30    ("docx", "file-docx"),
31    ("fish", "file-shell"),
32    ("go", "file-go"),
33    ("gql", "file-gql"),
34    ("graphql", "file-gql"),
35    ("h", "file-h"),
36    ("htm", "file-html"),
37    ("html", "file-html"),
38    ("http", "file-http"),
39    ("ico", "file-svg"),
40    ("info", "file-readme"),
41    ("ini", "file-ini"),
42    ("java", "file-java"),
43    ("jpeg", "file-png"),
44    ("jpg", "file-png"),
45    ("js", "file-js"),
46    ("json", "file-json"),
47    ("jsonc", "file-json"),
48    ("jsx", "file-jsx"),
49    ("kt", "file-kotlin"),
50    ("kts", "file-kotlin"),
51    ("less", "file-less"),
52    ("lua", "file-lua"),
53    ("markdown", "file-md"),
54    ("md", "file-md"),
55    ("mjs", "file-js"),
56    ("mp3", "file-mp3"),
57    ("mp4", "file-mp4"),
58    ("mts", "file-ts"),
59    ("php", "file-php"),
60    ("png", "file-png"),
61    ("pptx", "file-pptx"),
62    ("prisma", "file-prisma"),
63    ("props", "file-conf"),
64    ("ps1", "file-powershell"),
65    ("psm1", "file-powershell"),
66    ("py", "file-py"),
67    ("pyi", "file-py"),
68    ("pyw", "file-py"),
69    ("r", "file-r"),
70    ("razor", "file-razor"),
71    ("rb", "file-ruby"),
72    ("rs", "file-rust"),
73    ("sass", "file-sass"),
74    ("sc", "file-scala"),
75    ("scala", "file-scala"),
76    ("scss", "file-sass"),
77    ("sh", "file-shell"),
78    ("sln", "file-vs"),
79    ("sql", "file-sql"),
80    ("svelte", "file-svelte"),
81    ("svg", "file-svg"),
82    ("swift", "file-swift"),
83    ("targets", "file-xml"),
84    ("toml", "file-toml"),
85    ("ts", "file-ts"),
86    ("tsx", "file-tsx"),
87    ("txt", "file-txt"),
88    ("vsix", "file-vsix"),
89    ("vue", "file-vue"),
90    ("webm", "file-mp4"),
91    ("webp", "file-png"),
92    ("xlsx", "file-xlsx"),
93    ("xml", "file-xml"),
94    ("yaml", "file-yaml"),
95    ("yml", "file-yaml"),
96    ("zig", "file-zig"),
97    ("zon", "file-zig"),
98    ("zsh", "file-shell"),
99];
100
101/// A file, by its whole name.
102pub const NAMES: &[(&str, &str)] = &[
103    (".dockerignore", "file-docker"),
104    (".env", "file-env"),
105    (".env.development", "file-env"),
106    (".env.local", "file-env"),
107    (".env.production", "file-env"),
108    (".env.test", "file-env"),
109    (".gitattributes", "file-git"),
110    (".gitignore", "file-git"),
111    (".gitmodules", "file-git"),
112    (".npmrc", "file-npm"),
113    (".prettierignore", "file-prettier"),
114    (".prettierrc", "file-prettier"),
115    (".vscode-test.js", "file-vscode"),
116    (".vscode-test.mjs", "file-vscode"),
117    (".vscodeignore", "file-vscode"),
118    ("CHANGELOG", "file-changelog"),
119    ("CHANGELOG.md", "file-changelog"),
120    ("CHANGELOG.txt", "file-changelog"),
121    ("Dockerfile", "file-docker"),
122    ("LICENSE", "file-license"),
123    ("LICENSE.md", "file-license"),
124    ("LICENSE.txt", "file-license"),
125    ("README", "file-readme"),
126    ("README.md", "file-readme"),
127    ("README.txt", "file-readme"),
128    ("astro.config.js", "file-astro"),
129    ("astro.config.mjs", "file-astro"),
130    ("bun.lock", "file-bun"),
131    ("bun.lockb", "file-bun"),
132    ("changelog", "file-changelog"),
133    ("changelog.md", "file-changelog"),
134    ("changelog.txt", "file-changelog"),
135    ("docker-compose.yaml", "file-docker"),
136    ("docker-compose.yml", "file-docker"),
137    ("dockerfile", "file-docker"),
138    ("eslint.config.js", "file-eslint"),
139    ("eslint.config.mjs", "file-eslint"),
140    ("license", "file-license"),
141    ("next.config.js", "file-next"),
142    ("next.config.mjs", "file-next"),
143    ("next.config.ts", "file-next"),
144    ("package-lock.json", "file-node2"),
145    ("package.json", "file-node2"),
146    ("pnpm-lock.yaml", "file-pnpm"),
147    ("readme", "file-readme"),
148    ("readme.md", "file-readme"),
149    ("robots.txt", "file-robot"),
150    ("schema.prisma", "file-prisma"),
151    ("tailwind.config.js", "file-tailwind"),
152    ("tailwind.config.ts", "file-tailwind"),
153    ("tsconfig.json", "file-tsconfig"),
154    ("vite.config.js", "file-vite"),
155    ("vite.config.mjs", "file-vite"),
156    ("vite.config.ts", "file-vite"),
157    ("yarn.lock", "file-yarn"),
158];
159
160/// A folder, by its name. Its open icon is the same name with `-open`.
161pub const FOLDERS: &[(&str, &str)] = &[
162    (".env", "folder-env"),
163    (".git", "folder-git"),
164    (".idea", "folder-idea"),
165    (".vscode", "folder-vscode"),
166    ("admin", "folder-user"),
167    ("admins", "folder-user"),
168    ("api", "folder-api"),
169    ("assets", "folder-assets"),
170    ("bin", "folder-bin"),
171    ("build", "folder-bin"),
172    ("client", "folder-user"),
173    ("clients", "folder-user"),
174    ("cmd", "folder-cmd"),
175    ("components", "folder-components"),
176    ("config", "folder-config"),
177    ("constant", "folder-constants"),
178    ("constants", "folder-constants"),
179    ("content", "folder-content"),
180    ("contents", "folder-content"),
181    ("controllers", "folder-controller"),
182    ("cypress", "folder-test"),
183    ("data", "folder-data"),
184    ("db", "folder-db"),
185    ("debug", "folder-debug"),
186    ("dist", "folder-bin"),
187    ("docs", "folder-docs"),
188    ("dto", "folder-dto"),
189    ("dtos", "folder-dto"),
190    ("endpoint", "folder-endpoint"),
191    ("endpoints", "folder-endpoint"),
192    ("entities", "folder-entity"),
193    ("entity", "folder-entity"),
194    ("enum", "folder-enums"),
195    ("enums", "folder-enums"),
196    ("env", "folder-env"),
197    ("example", "folder-examples"),
198    ("examples", "folder-examples"),
199    ("form", "folder-forms"),
200    ("forms", "folder-forms"),
201    ("helper", "folder-helper"),
202    ("helpers", "folder-helper"),
203    ("hooks", "folder-hooks"),
204    ("i18n", "folder-i18n"),
205    ("icons", "folder-icons"),
206    ("layout", "folder-layouts"),
207    ("layouts", "folder-layouts"),
208    ("lib", "folder-lib"),
209    ("mapper", "folder-mapper"),
210    ("mappers", "folder-mapper"),
211    ("middleware", "folder-middleware"),
212    ("middlewares", "folder-middleware"),
213    ("models", "folder-models"),
214    ("node_modules", "folder-node_modules"),
215    ("obj", "folder-bin"),
216    ("pages", "folder-pages"),
217    ("profile", "folder-user"),
218    ("profiles", "folder-user"),
219    ("properties", "folder-properties"),
220    ("public", "folder-public"),
221    ("release", "folder-bin"),
222    ("repositories", "folder-repository"),
223    ("repository", "folder-repository"),
224    ("routes", "folder-routes"),
225    ("scripts", "folder-scripts"),
226    ("services", "folder-services"),
227    ("spec", "folder-test"),
228    ("src", "folder-src"),
229    ("static", "folder-assets"),
230    ("store", "folder-store"),
231    ("style", "folder-styles"),
232    ("styles", "folder-styles"),
233    ("tests", "folder-test"),
234    ("themes", "folder-themes"),
235    ("types", "folder-types"),
236    ("ui", "folder-ui"),
237    ("uis", "folder-ui"),
238    ("upload", "folder-upload"),
239    ("uploads", "folder-upload"),
240    ("user", "folder-user"),
241    ("users", "folder-user"),
242    ("utils", "folder-utils"),
243    ("views", "folder-pages"),
244];
245
246/// A file with no icon of its own, and a folder with none.
247pub const FILE: &str = "file-txt";
248pub const FOLDER: &str = "folder-folder";