From ee4174a4d6988d74c470ca18375596f7b95a987b Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 16 Nov 2024 18:12:15 +0100 Subject: [PATCH] Rename external directory to third-party. --- static/404.html | 6 +++--- static/galene.html | 14 +++++++------- .../{external => third-party}/contextual/LICENSE | 0 .../contextual/contextual.css | 0 .../contextual/contextual.js | 0 .../fontawesome/css/all.min.css | 0 .../fontawesome/css/brands.min.css | 0 .../fontawesome/css/fontawesome.min.css | 0 .../fontawesome/css/regular.min.css | 0 .../fontawesome/css/solid.min.css | 0 .../fontawesome/css/svg-with-js.min.css | 0 .../fontawesome/css/v4-font-face.min.css | 0 .../fontawesome/css/v4-shims.min.css | 0 .../fontawesome/css/v5-font-face.min.css | 0 .../fontawesome/webfonts/fa-brands-400.ttf | Bin .../fontawesome/webfonts/fa-brands-400.woff2 | Bin .../fontawesome/webfonts/fa-regular-400.ttf | Bin .../fontawesome/webfonts/fa-regular-400.woff2 | Bin .../fontawesome/webfonts/fa-solid-900.ttf | Bin .../fontawesome/webfonts/fa-solid-900.woff2 | Bin .../fontawesome/webfonts/fa-v4compatibility.ttf | Bin .../fontawesome/webfonts/fa-v4compatibility.woff2 | Bin static/{external => third-party}/toastify/LICENSE | 0 .../toastify/toastify.css | 0 .../toastify/toastify.js | 0 webserver/webserver.go | 2 +- 26 files changed, 11 insertions(+), 11 deletions(-) rename static/{external => third-party}/contextual/LICENSE (100%) rename static/{external => third-party}/contextual/contextual.css (100%) rename static/{external => third-party}/contextual/contextual.js (100%) rename static/{external => third-party}/fontawesome/css/all.min.css (100%) rename static/{external => third-party}/fontawesome/css/brands.min.css (100%) rename static/{external => third-party}/fontawesome/css/fontawesome.min.css (100%) rename static/{external => third-party}/fontawesome/css/regular.min.css (100%) rename static/{external => third-party}/fontawesome/css/solid.min.css (100%) rename static/{external => third-party}/fontawesome/css/svg-with-js.min.css (100%) rename static/{external => third-party}/fontawesome/css/v4-font-face.min.css (100%) rename static/{external => third-party}/fontawesome/css/v4-shims.min.css (100%) rename static/{external => third-party}/fontawesome/css/v5-font-face.min.css (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-brands-400.ttf (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-brands-400.woff2 (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-regular-400.ttf (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-regular-400.woff2 (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-solid-900.ttf (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-solid-900.woff2 (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-v4compatibility.ttf (100%) rename static/{external => third-party}/fontawesome/webfonts/fa-v4compatibility.woff2 (100%) rename static/{external => third-party}/toastify/LICENSE (100%) rename static/{external => third-party}/toastify/toastify.css (100%) rename static/{external => third-party}/toastify/toastify.js (100%) diff --git a/static/404.html b/static/404.html index 0d156e6..0632c07 100644 --- a/static/404.html +++ b/static/404.html @@ -7,9 +7,9 @@ - - - + + + diff --git a/static/galene.html b/static/galene.html index 7eb1cd0..d76c09e 100644 --- a/static/galene.html +++ b/static/galene.html @@ -8,11 +8,11 @@ - - - - - + + + + + @@ -304,8 +304,8 @@ - - + + diff --git a/static/external/contextual/LICENSE b/static/third-party/contextual/LICENSE similarity index 100% rename from static/external/contextual/LICENSE rename to static/third-party/contextual/LICENSE diff --git a/static/external/contextual/contextual.css b/static/third-party/contextual/contextual.css similarity index 100% rename from static/external/contextual/contextual.css rename to static/third-party/contextual/contextual.css diff --git a/static/external/contextual/contextual.js b/static/third-party/contextual/contextual.js similarity index 100% rename from static/external/contextual/contextual.js rename to static/third-party/contextual/contextual.js diff --git a/static/external/fontawesome/css/all.min.css b/static/third-party/fontawesome/css/all.min.css similarity index 100% rename from static/external/fontawesome/css/all.min.css rename to static/third-party/fontawesome/css/all.min.css diff --git a/static/external/fontawesome/css/brands.min.css b/static/third-party/fontawesome/css/brands.min.css similarity index 100% rename from static/external/fontawesome/css/brands.min.css rename to static/third-party/fontawesome/css/brands.min.css diff --git a/static/external/fontawesome/css/fontawesome.min.css b/static/third-party/fontawesome/css/fontawesome.min.css similarity index 100% rename from static/external/fontawesome/css/fontawesome.min.css rename to static/third-party/fontawesome/css/fontawesome.min.css diff --git a/static/external/fontawesome/css/regular.min.css b/static/third-party/fontawesome/css/regular.min.css similarity index 100% rename from static/external/fontawesome/css/regular.min.css rename to static/third-party/fontawesome/css/regular.min.css diff --git a/static/external/fontawesome/css/solid.min.css b/static/third-party/fontawesome/css/solid.min.css similarity index 100% rename from static/external/fontawesome/css/solid.min.css rename to static/third-party/fontawesome/css/solid.min.css diff --git a/static/external/fontawesome/css/svg-with-js.min.css b/static/third-party/fontawesome/css/svg-with-js.min.css similarity index 100% rename from static/external/fontawesome/css/svg-with-js.min.css rename to static/third-party/fontawesome/css/svg-with-js.min.css diff --git a/static/external/fontawesome/css/v4-font-face.min.css b/static/third-party/fontawesome/css/v4-font-face.min.css similarity index 100% rename from static/external/fontawesome/css/v4-font-face.min.css rename to static/third-party/fontawesome/css/v4-font-face.min.css diff --git a/static/external/fontawesome/css/v4-shims.min.css b/static/third-party/fontawesome/css/v4-shims.min.css similarity index 100% rename from static/external/fontawesome/css/v4-shims.min.css rename to static/third-party/fontawesome/css/v4-shims.min.css diff --git a/static/external/fontawesome/css/v5-font-face.min.css b/static/third-party/fontawesome/css/v5-font-face.min.css similarity index 100% rename from static/external/fontawesome/css/v5-font-face.min.css rename to static/third-party/fontawesome/css/v5-font-face.min.css diff --git a/static/external/fontawesome/webfonts/fa-brands-400.ttf b/static/third-party/fontawesome/webfonts/fa-brands-400.ttf similarity index 100% rename from static/external/fontawesome/webfonts/fa-brands-400.ttf rename to static/third-party/fontawesome/webfonts/fa-brands-400.ttf diff --git a/static/external/fontawesome/webfonts/fa-brands-400.woff2 b/static/third-party/fontawesome/webfonts/fa-brands-400.woff2 similarity index 100% rename from static/external/fontawesome/webfonts/fa-brands-400.woff2 rename to static/third-party/fontawesome/webfonts/fa-brands-400.woff2 diff --git a/static/external/fontawesome/webfonts/fa-regular-400.ttf b/static/third-party/fontawesome/webfonts/fa-regular-400.ttf similarity index 100% rename from static/external/fontawesome/webfonts/fa-regular-400.ttf rename to static/third-party/fontawesome/webfonts/fa-regular-400.ttf diff --git a/static/external/fontawesome/webfonts/fa-regular-400.woff2 b/static/third-party/fontawesome/webfonts/fa-regular-400.woff2 similarity index 100% rename from static/external/fontawesome/webfonts/fa-regular-400.woff2 rename to static/third-party/fontawesome/webfonts/fa-regular-400.woff2 diff --git a/static/external/fontawesome/webfonts/fa-solid-900.ttf b/static/third-party/fontawesome/webfonts/fa-solid-900.ttf similarity index 100% rename from static/external/fontawesome/webfonts/fa-solid-900.ttf rename to static/third-party/fontawesome/webfonts/fa-solid-900.ttf diff --git a/static/external/fontawesome/webfonts/fa-solid-900.woff2 b/static/third-party/fontawesome/webfonts/fa-solid-900.woff2 similarity index 100% rename from static/external/fontawesome/webfonts/fa-solid-900.woff2 rename to static/third-party/fontawesome/webfonts/fa-solid-900.woff2 diff --git a/static/external/fontawesome/webfonts/fa-v4compatibility.ttf b/static/third-party/fontawesome/webfonts/fa-v4compatibility.ttf similarity index 100% rename from static/external/fontawesome/webfonts/fa-v4compatibility.ttf rename to static/third-party/fontawesome/webfonts/fa-v4compatibility.ttf diff --git a/static/external/fontawesome/webfonts/fa-v4compatibility.woff2 b/static/third-party/fontawesome/webfonts/fa-v4compatibility.woff2 similarity index 100% rename from static/external/fontawesome/webfonts/fa-v4compatibility.woff2 rename to static/third-party/fontawesome/webfonts/fa-v4compatibility.woff2 diff --git a/static/external/toastify/LICENSE b/static/third-party/toastify/LICENSE similarity index 100% rename from static/external/toastify/LICENSE rename to static/third-party/toastify/LICENSE diff --git a/static/external/toastify/toastify.css b/static/third-party/toastify/toastify.css similarity index 100% rename from static/external/toastify/toastify.css rename to static/third-party/toastify/toastify.css diff --git a/static/external/toastify/toastify.js b/static/third-party/toastify/toastify.js similarity index 100% rename from static/external/toastify/toastify.js rename to static/third-party/toastify/toastify.js diff --git a/webserver/webserver.go b/webserver/webserver.go index 5e76ed1..f95566f 100644 --- a/webserver/webserver.go +++ b/webserver/webserver.go @@ -190,7 +190,7 @@ func makeCachable(w http.ResponseWriter, p string, fi os.FileInfo, cachable bool } cc := normalCacheControl - if strings.HasPrefix(p, "/external/") { + if strings.HasPrefix(p, "/third-party/") { cc = veryCachableCacheControl }