16 Commits

Author SHA1 Message Date
Elian Doran
f9e4ae7210
feat(import/zip): treat mdx as markdown (closes #1236) 2025-02-20 20:25:42 +02:00
Panagiotis Papadopoulos
2d1381b4f8 fix(import/mime): fix TypeScript handling
.ts file are now treated as code type with text/x-typescript as MIME type

fixes #1142
2025-02-09 17:45:15 +01:00
Panagiotis Papadopoulos
4e59f58ce6 refactor(import/mime): simplify getMime 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
6a0edb68de refactor(import/mime): simplify getType 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
91ae4b629e refactor(import/mime): simplify normalizeMimeType 2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
815929c376 refactor(import/mime): split CODE_MIME_TYPES Record into two separate objects
CODE_MIME_TYPES -> as a Set -> as we only care about the existance of those types
CODE_MIME_TYPES_OVERRIDE -> as a Map with those keys and the "overwrite" values as associated value

-> this way  we don't have to unnecessarily store additional boolean values for everything *but* those hand ful of mime types

-> also I've sorted the items alphabetically, while I was at it
2025-01-20 08:36:11 +01:00
Elian Doran
324696bc54
refactor(ts): enable verbatim module syntax 2025-01-09 18:36:24 +02:00
Elian Doran
4cbb529fd4
chore(prettier): fix all files 2025-01-09 18:07:02 +02:00
Elian Doran
b321d99076
chore(code): fix editorconfig for src/public 2024-12-22 15:42:15 +02:00
Elian Doran
24af2e55dc
server: Fix the remainder of import issues 2024-07-24 20:33:35 +03:00
Elian Doran
0ceae0a65e
server-esm: Change some more export object to export default object 2024-07-18 21:47:30 +03:00
Elian Doran
2750df04a3
server-esm: Change simple library import statements 2024-07-18 21:37:45 +03:00
Elian Doran
53d4873c1f
server-ts: Port services/import/zip 2024-04-03 22:46:14 +03:00
Elian Doran
8c5f680dca
server-ts: Fix build errors 2024-02-25 15:06:43 +02:00
Elian Doran
7f0102181d
server-ts: Port services/import/single 2024-02-25 14:52:20 +02:00
Elian Doran
fd37fd3a45
server-ts: Port services/import/mime 2024-02-25 07:57:17 +02:00