mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add support for json, text files, web fonts
This commit is contained in:
parent
ea11a3f911
commit
c4a067bf29
2 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
class Site < Sequel::Model
|
||||
# We might need to include fonts in here..
|
||||
VALID_MIME_TYPES = ['text/plain', 'text/html', 'text/css', 'application/javascript', 'image/png', 'image/jpeg', 'image/gif', 'image/svg+xml']
|
||||
VALID_EXTENSIONS = %w{ html htm txt text css js jpg jpeg png gif svg md markdown }
|
||||
VALID_MIME_TYPES = ['text/plain', 'text/html', 'text/css', 'application/javascript', 'image/png', 'image/jpeg', 'image/gif', 'image/svg+xml', 'application/vnd.ms-fontobject', 'application/x-font-ttf', 'application/octet-stream']
|
||||
VALID_EXTENSIONS = %w{ html htm txt text css js jpg jpeg png gif svg md markdown eot ttf woff json}
|
||||
#USERNAME_SHITLIST = %w{ payment secure login signin www ww web } # I thought they were funny personally, but everybody is freaking out so..
|
||||
MAX_SPACE = (5242880*2) # 10MB
|
||||
MINIMUM_PASSWORD_LENGTH = 5
|
||||
|
|
|
@ -26,9 +26,12 @@
|
|||
ul id="file_criteria"
|
||||
li HTML (.html, .htm)
|
||||
li Image (.jpg, .png, .gif, .svg)
|
||||
li Markdown (.md)
|
||||
li JavaScript (.js)
|
||||
li Markdown (.md, .markdown)
|
||||
li JavaScript (.js, .json)
|
||||
li CSS (.css)
|
||||
li Text (.txt, .text)
|
||||
li Web Fonts (.eot, .ttf, .woff, .svg)
|
||||
|
||||
h4 If the file already exists, <u><b>it will be overwritten without warning</b></u>.
|
||||
h4 It has to be <u>legal to share this content in the United States</u>.
|
||||
h4 It must fit into your home page space (5MB).
|
||||
|
|
Loading…
Add table
Reference in a new issue