From 1a50ebd4fb00ab8d76aa914016f363853e5f2a74 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 2 Jun 2025 00:27:42 -0500 Subject: [PATCH] add glsl support --- models/site.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/site.rb b/models/site.rb index 5c00141b..4790e80e 100644 --- a/models/site.rb +++ b/models/site.rb @@ -48,15 +48,16 @@ class Site < Sequel::Model text/javascript text/plain text/tsv + text/x-c text/xml } 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 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 glsl } 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 json opml rdf svg gpg pgp resolveHandle pls yaml yml toml osdx mjs cjs ts py rss glsl } MINIMUM_PASSWORD_LENGTH = 5