This commit is contained in:
meiqinyan 2025-04-16 17:20:22 +08:00 committed by GitHub
commit 5d7580a108
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-fontobject
application/vnd.ms-opentype application/vnd.ms-opentype
application/xml application/xml
application/xslt+xml
audio/midi audio/midi
font/otf font/otf
font/sfnt font/sfnt
@ -49,14 +50,15 @@ class Site < Sequel::Model
text/plain text/plain
text/tsv text/tsv
text/xml text/xml
text/xsl
} }
VALID_EXTENSIONS = %w{ 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{ 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 MINIMUM_PASSWORD_LENGTH = 5