Skip to content

Commit 0c84a53

Browse files
committed
fix: add more extensions
1 parent add2d11 commit 0c84a53

File tree

7 files changed

+11
-1
lines changed

7 files changed

+11
-1
lines changed

packages/react/src/core/FileTree.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,19 +374,29 @@ function getFileExtension(filename: string) {
374374

375375
const extensionsToIcons = new Map([
376376
['ts', 'i-ph-file-ts-duotone'],
377+
['cts', 'i-ph-file-ts-duotone'],
378+
['mts', 'i-ph-file-ts-duotone'],
377379

380+
['tsx', 'i-ph-file-tsx-duotone'],
381+
382+
['js', 'i-ph-file-js-duotone'],
378383
['cjs', 'i-ph-file-js-duotone'],
379384
['mjs', 'i-ph-file-js-duotone'],
380-
['js', 'i-ph-file-js-duotone'],
385+
386+
['jsx', 'i-ph-file-jsx-duotone'],
381387

382388
['html', 'i-ph-file-html-duotone'],
383389

384390
['css', 'i-ph-file-css-duotone'],
385391

386392
['md', 'i-ph-file-md-duotone'],
387393

394+
['vue', 'i-ph-file-vue-duotone'],
395+
388396
['gif', 'i-ph-file-image-duotone'],
389397
['jpg', 'i-ph-file-image-duotone'],
390398
['jpeg', 'i-ph-file-image-duotone'],
391399
['png', 'i-ph-file-image-duotone'],
400+
401+
['svg', 'i-ph-file-svg-duotone'],
392402
]);

packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_files/src/test-11.jsx

Whitespace-only changes.

packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_files/src/test-12.tsx

Whitespace-only changes.

packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_files/src/test-13.cts

Whitespace-only changes.

packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_files/src/test-14.mts

Whitespace-only changes.

packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_files/src/test-15.svg

Loading

packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_files/src/test-16.vue

Whitespace-only changes.

0 commit comments

Comments
 (0)