Allow XSLT files

This commit is contained in:
meiqinyan 2025-04-04 05:39:26 +08:00 committed by GitHub
parent e35af8c058
commit 4e96519764
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,7 @@ class Site < Sequel::Model
application/vnd.ms-fontobject
application/vnd.ms-opentype
application/xml
application/xslt+xml
audio/midi
font/otf
font/sfnt
@ -49,14 +50,15 @@ class Site < Sequel::Model
text/plain
text/tsv
text/xml
text/xsl
}
VALID_EXTENSIONS = %w{
html htm txt text css js jpg jpeg png apng gif svg md markdown eot ttf woff woff2 json geojson csv tsv mf ico pdf asc key pgp xml mid midi manifest otf webapp less sass rss kml dae obj mtl scss webp avif xcf epub gltf bin webmanifest knowl atom opml rdf map gpg resolveHandle pls yaml yml toml osdx mjs cjs ts glb py
html htm txt text css js jpg jpeg png apng gif svg md markdown eot ttf woff woff2 json geojson csv tsv mf ico pdf asc key pgp xml xsl xslt mid midi manifest otf webapp less sass rss kml dae obj mtl scss webp avif xcf epub gltf bin webmanifest knowl atom opml rdf map gpg resolveHandle pls yaml yml toml osdx mjs cjs ts glb py
}
VALID_EDITABLE_EXTENSIONS = %w{
html htm txt js css scss md manifest less webmanifest xml json opml rdf svg gpg pgp resolveHandle pls yaml yml toml osdx mjs cjs ts py rss
html htm txt js css scss md manifest less webmanifest xml xsl xslt json opml rdf svg gpg pgp resolveHandle pls yaml yml toml osdx mjs cjs ts py rss
}
MINIMUM_PASSWORD_LENGTH = 5