mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 14:01:38 +02:00
✨ Fix linter issues on frontend (part 2).
This commit is contained in:
parent
e90185b553
commit
3e4e54870b
41 changed files with 276 additions and 401 deletions
|
@ -10,9 +10,7 @@
|
|||
[app.common.uri :as u]
|
||||
[app.config :as cfg]
|
||||
[app.util.http :as http]
|
||||
[app.util.time :as dt]
|
||||
[beicon.core :as rx]
|
||||
[cuerdas.core :as str]))
|
||||
[beicon.core :as rx]))
|
||||
|
||||
(defn handle-response
|
||||
[{:keys [status body] :as response}]
|
||||
|
@ -86,7 +84,7 @@
|
|||
([id params] (mutation id params)))
|
||||
|
||||
(defmethod mutation :login-with-oauth
|
||||
[id {:keys [provider] :as params}]
|
||||
[_ {:keys [provider] :as params}]
|
||||
(let [uri (u/join base-uri "api/auth/oauth/" (d/name provider))
|
||||
params (dissoc params :provider)]
|
||||
(->> (http/send! {:method :post :uri uri :query params})
|
||||
|
@ -94,7 +92,7 @@
|
|||
(rx/mapcat handle-response))))
|
||||
|
||||
(defmethod mutation :send-feedback
|
||||
[id params]
|
||||
[_ params]
|
||||
(->> (http/send! {:method :post
|
||||
:uri (u/join base-uri "api/feedback")
|
||||
:body (http/transit-data params)})
|
||||
|
@ -102,7 +100,7 @@
|
|||
(rx/mapcat handle-response)))
|
||||
|
||||
(defmethod query :export
|
||||
[id params]
|
||||
[_ params]
|
||||
(->> (http/send! {:method :post
|
||||
:uri (u/join base-uri "export")
|
||||
:body (http/transit-data params)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue