mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 17:07:12 +02:00
parent
ab87db099a
commit
834c18323e
5 changed files with 6 additions and 49 deletions
|
@ -375,21 +375,6 @@
|
||||||
[{:keys [::rpc/profile-id]} {:keys [modified-at revn]}]
|
[{:keys [::rpc/profile-id]} {:keys [modified-at revn]}]
|
||||||
(str profile-id (dt/format-instant modified-at :iso) revn))
|
(str profile-id (dt/format-instant modified-at :iso) revn))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(sv/defmethod ::hey
|
|
||||||
{::doc/added "1.17"
|
|
||||||
::rpc/auth false}
|
|
||||||
[_ _]
|
|
||||||
(str (rand-int 100)))
|
|
||||||
|
|
||||||
(sv/defmethod ::ho
|
|
||||||
{::doc/added "1.17"
|
|
||||||
::rpc/auth false}
|
|
||||||
[_ _]
|
|
||||||
(str (rand-int 1000)))
|
|
||||||
|
|
||||||
|
|
||||||
(sv/defmethod ::get-file
|
(sv/defmethod ::get-file
|
||||||
"Retrieve a file by its ID. Only authenticated users."
|
"Retrieve a file by its ID. Only authenticated users."
|
||||||
{::doc/added "1.17"
|
{::doc/added "1.17"
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
(log/setup! {:app :info})
|
(log/setup! {:app :info})
|
||||||
|
|
||||||
(when (= :browser cf/target)
|
(when (= :browser cf/target)
|
||||||
(log/info :message "Hey!,Welcome to penpot"
|
(log/info :message "Welcome to penpot"
|
||||||
:version (:full cf/version)
|
:version (:full cf/version)
|
||||||
:asserts *assert*
|
:asserts *assert*
|
||||||
:build-date cf/build-date
|
:build-date cf/build-date
|
||||||
|
|
|
@ -518,29 +518,6 @@
|
||||||
(->> (rp/cmd! :get-access-tokens)
|
(->> (rp/cmd! :get-access-tokens)
|
||||||
(rx/map access-tokens-fetched)))))
|
(rx/map access-tokens-fetched)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn heyhey-fetched
|
|
||||||
[value]
|
|
||||||
(ptk/reify ::heyhey-fetched
|
|
||||||
ptk/UpdateEvent
|
|
||||||
(update [_ state]
|
|
||||||
(assoc state :hey-value value))))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn fetch-heyhey
|
|
||||||
[]
|
|
||||||
(ptk/reify ::fetch-heyhey
|
|
||||||
ptk/WatchEvent
|
|
||||||
(watch [_ _ _]
|
|
||||||
(->> (rp/cmd! :hey)
|
|
||||||
(rx/map heyhey-fetched)))))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; --- EVENT: create-access-token
|
;; --- EVENT: create-access-token
|
||||||
|
|
||||||
(defn access-token-created
|
(defn access-token-created
|
||||||
|
|
|
@ -260,21 +260,16 @@
|
||||||
[:& access-token-actions
|
[:& access-token-actions
|
||||||
{:on-delete on-delete}]]]))
|
{:on-delete on-delete}]]]))
|
||||||
|
|
||||||
(def hey-ref
|
|
||||||
(l/derived :hey-value st/state))
|
|
||||||
|
|
||||||
(mf/defc access-tokens-page
|
(mf/defc access-tokens-page
|
||||||
[]
|
[]
|
||||||
(mf/with-effect []
|
(mf/with-effect []
|
||||||
(dom/set-html-title (tr "title.settings.access-tokens"))
|
(dom/set-html-title (tr "title.settings.access-tokens"))
|
||||||
(st/emit! (du/fetch-access-tokens))
|
(st/emit! (du/fetch-access-tokens)))
|
||||||
(st/emit! (du/fetch-heyhey)))
|
|
||||||
|
|
||||||
(let [tokens (mf/deref tokens-ref)
|
(let [tokens (mf/deref tokens-ref)]
|
||||||
hey (mf/deref hey-ref)]
|
[:div.dashboard-access-tokens
|
||||||
[:div.dashboard-access-tokens {:style {:background "pink"}}
|
|
||||||
[:div
|
[:div
|
||||||
[:div {:on-click #(st/emit! (du/fetch-heyhey))} hey]
|
[:& access-tokens-hero]
|
||||||
(if (empty? tokens)
|
(if (empty? tokens)
|
||||||
[:div.access-tokens-empty
|
[:div.access-tokens-empty
|
||||||
[:div (tr "dashboard.access-tokens.empty.no-access-tokens")]
|
[:div (tr "dashboard.access-tokens.empty.no-access-tokens")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.19.1
|
1.19.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue