From de7624072df02ece1c07573898a5577a92a76cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6tzsch?= Date: Wed, 9 Mar 2022 09:46:03 +0100 Subject: [PATCH] remove org.webjars --- backend/project.clj | 6 ------ backend/src/beherbergung/webserver/middleware.clj | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/backend/project.clj b/backend/project.clj index 439430b..f3496f9 100644 --- a/backend/project.clj +++ b/backend/project.clj @@ -26,12 +26,6 @@ [crypto-random "1.2.1"] [buddy/buddy-sign "3.4.333"] #_[com.draines/postal "2.0.4"] - ;; graphiql ;; TODO not required for productive build - [ring-webjars "0.2.0" :exclusions [org.webjars/webjars-locator]] - [org.webjars/webjars-locator "0.45"] - [org.webjars/graphiql "0.11.11"] - [org.webjars.npm/react "18.0.0-rc.1" :exclusions [org.webjars.npm/loose-envify org.webjars.npm/js-tokens org.webjars.npm/object-assign]] - [org.webjars.npm/react-dom "17.0.2" :exclusions [org.webjars.npm/loose-envify org.webjars.npm/js-tokens org.webjars.npm/object-assign org.webjars.npm/scheduler]] ;; logging [org.clojure/tools.logging "1.2.4"] [org.slf4j/slf4j-api "2.0.0-alpha6"] diff --git a/backend/src/beherbergung/webserver/middleware.clj b/backend/src/beherbergung/webserver/middleware.clj index 94ef367..1d87ed2 100644 --- a/backend/src/beherbergung/webserver/middleware.clj +++ b/backend/src/beherbergung/webserver/middleware.clj @@ -1,7 +1,6 @@ (ns beherbergung.webserver.middleware (:require [beherbergung.config.state :refer [env]] [ring.middleware.resource :refer [wrap-resource]] - [ring.middleware.webjars :refer [wrap-webjars]] [ring.middleware.json :refer [wrap-json-response wrap-json-body]] [ring.middleware.content-type :refer [wrap-content-type]] [ring.middleware.not-modified :refer [wrap-not-modified]] @@ -29,7 +28,7 @@ "Add graphqli using org.webjars/graphiql and resources/public/graphiql/index.html" [handler] (-> handler - (wrap-webjars) + #_ (wrap-webjars) ;; we will provide resources from npm (wrap-resource "public"))) (defn wrap-graphql