mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 07:41:38 +02:00
Merge pull request #2211 from penpot/niwinz-rate-limit
Rate Limit for RPC methods
This commit is contained in:
commit
89e5607d7f
53 changed files with 1349 additions and 645 deletions
|
@ -116,6 +116,7 @@
|
|||
(some? position-modifier)
|
||||
(gpt/transform position-modifier))
|
||||
content (:content draft)
|
||||
|
||||
pos-x (* (:x position) zoom)
|
||||
pos-y (* (:y position) zoom)
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
[app.main.ui.settings.options :refer [options-page]]
|
||||
[app.main.ui.settings.password :refer [password-page]]
|
||||
[app.main.ui.settings.profile :refer [profile-page]]
|
||||
[app.main.ui.settings.sidebar :refer [sidebar]]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[app.main.ui.settings.sidebar :refer [sidebar]]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[app.util.router :as rt]
|
||||
[rumext.alpha :as mf]))
|
||||
|
||||
|
@ -31,10 +31,11 @@
|
|||
(let [section (get-in route [:data :name])
|
||||
profile (mf/deref refs/profile)
|
||||
locale (mf/deref i18n/locale)]
|
||||
|
||||
(mf/use-effect
|
||||
#(when (nil? profile)
|
||||
(st/emit! (rt/nav :auth-login))))
|
||||
|
||||
|
||||
[:section.dashboard-layout
|
||||
[:& sidebar {:profile profile
|
||||
:locale locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue