mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-08 17:36:45 +08:00
* refactor(attachments): generate text preview whitelist Co-authored-by: Cursor <[email protected]> * fix(attachments): gate text previews on shared whitelist (MUL-8248) Co-authored-by: multica-agent <[email protected]> --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Multica Eve <[email protected]> Co-authored-by: multica-agent <[email protected]>
76 lines
1.3 KiB
JSON
76 lines
1.3 KiB
JSON
{
|
|
"$comment": "Source of truth for attachment types served by the authenticated text-preview endpoint. Edit this file only. The Go handler embeds it directly; packages/views/editor/utils/text-preview-whitelist.generated.ts is regenerated by `pnpm generate:attachment-text-preview`. CI fails when the generated TypeScript output is stale.",
|
|
"content_type_prefixes": [
|
|
"text/"
|
|
],
|
|
"content_types": [
|
|
"application/json",
|
|
"application/x-ndjson",
|
|
"application/javascript",
|
|
"application/xml",
|
|
"application/x-yaml",
|
|
"application/yaml",
|
|
"application/toml",
|
|
"application/x-sh",
|
|
"application/x-httpd-php"
|
|
],
|
|
"extensions": [
|
|
"md",
|
|
"markdown",
|
|
"txt",
|
|
"log",
|
|
"csv",
|
|
"tsv",
|
|
"html",
|
|
"htm",
|
|
"json",
|
|
"jsonl",
|
|
"ndjson",
|
|
"xml",
|
|
"yml",
|
|
"yaml",
|
|
"toml",
|
|
"ini",
|
|
"conf",
|
|
"dockerfile",
|
|
"makefile",
|
|
"gitignore",
|
|
"sh",
|
|
"bash",
|
|
"zsh",
|
|
"py",
|
|
"rb",
|
|
"go",
|
|
"rs",
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"mjs",
|
|
"cjs",
|
|
"css",
|
|
"scss",
|
|
"sass",
|
|
"less",
|
|
"sql",
|
|
"java",
|
|
"kt",
|
|
"swift",
|
|
"c",
|
|
"cc",
|
|
"cpp",
|
|
"h",
|
|
"hpp",
|
|
"cs",
|
|
"php",
|
|
"lua",
|
|
"vim"
|
|
],
|
|
"basenames": [
|
|
"dockerfile",
|
|
"makefile",
|
|
".env",
|
|
".gitignore"
|
|
]
|
|
}
|