mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Merge pull request #3343 from penpot/niwinz-onmpremise-improvements
✨ Add minor improvements for onpremise users
This commit is contained in:
commit
71a6ee51fa
6 changed files with 30 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
## :rocket: 1.19.0
|
## 1.19.0
|
||||||
|
|
||||||
### :boom: Breaking changes & Deprecations
|
### :boom: Breaking changes & Deprecations
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@
|
||||||
- Show interactions setting at the view mode [Taiga #1330](https://tree.taiga.io/project/penpot/issue/1330)
|
- Show interactions setting at the view mode [Taiga #1330](https://tree.taiga.io/project/penpot/issue/1330)
|
||||||
- Improve dashboard performance related to thumbnails; now the thumbnails are
|
- Improve dashboard performance related to thumbnails; now the thumbnails are
|
||||||
rendered as bitmap images.
|
rendered as bitmap images.
|
||||||
|
- Add the ability to disable google fonts provider with the `disable-google-fonts-provider` flag
|
||||||
|
- Add the ability to disable dashboard templates section with the `disable-dashboard-templates-section` flag
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,10 @@
|
||||||
|
|
||||||
(defmethod ig/init-key ::routes
|
(defmethod ig/init-key ::routes
|
||||||
[_ {:keys [::wrk/executor] :as cfg}]
|
[_ {:keys [::wrk/executor] :as cfg}]
|
||||||
(letfn [(handler [request respond _]
|
(letfn [(handler [request]
|
||||||
(let [data (-> request yrq/body slurp)]
|
(let [data (-> request yrq/body slurp)]
|
||||||
(px/run! executor #(handle-request cfg data)))
|
(px/run! executor #(handle-request cfg data)))
|
||||||
(respond {::yrs/status 200}))]
|
{::yrs/status 200})]
|
||||||
["/sns" {:handler handler
|
["/sns" {:handler handler
|
||||||
:allowed-methods #{:post}}]))
|
:allowed-methods #{:post}}]))
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,9 @@
|
||||||
:webworker))
|
:webworker))
|
||||||
|
|
||||||
(def default-flags
|
(def default-flags
|
||||||
[:enable-newsletter-subscription])
|
[:enable-newsletter-subscription
|
||||||
|
:enable-dashboard-templates-section
|
||||||
|
:enable-google-fonts-provider])
|
||||||
|
|
||||||
(defn- parse-flags
|
(defn- parse-flags
|
||||||
[global]
|
[global]
|
||||||
|
|
|
@ -65,7 +65,9 @@
|
||||||
(merge db (d/index-by :id fonts))))))
|
(merge db (d/index-by :id fonts))))))
|
||||||
|
|
||||||
(register! :builtin local-fonts)
|
(register! :builtin local-fonts)
|
||||||
(register! :google google-fonts)
|
|
||||||
|
(when (contains? cf/flags :google-fonts-provider)
|
||||||
|
(register! :google google-fonts))
|
||||||
|
|
||||||
(defn get-font-data [id]
|
(defn get-font-data [id]
|
||||||
(get @fontsdb id))
|
(get @fontsdb id))
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.math :as mth]
|
[app.common.math :as mth]
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.data.dashboard :as dd]
|
[app.main.data.dashboard :as dd]
|
||||||
[app.main.data.dashboard.shortcuts :as sc]
|
[app.main.data.dashboard.shortcuts :as sc]
|
||||||
[app.main.data.events :as ev]
|
[app.main.data.events :as ev]
|
||||||
|
@ -259,11 +260,13 @@
|
||||||
:projects projects
|
:projects projects
|
||||||
:profile profile
|
:profile profile
|
||||||
:default-project-id default-project-id}]
|
:default-project-id default-project-id}]
|
||||||
[:& templates-section {:profile profile
|
|
||||||
:project project
|
(when (contains? cf/flags :dashboard-templates-section)
|
||||||
:default-project-id default-project-id
|
[:& templates-section {:profile profile
|
||||||
:team team
|
:project project
|
||||||
:content-width @content-width}]]
|
:default-project-id default-project-id
|
||||||
|
:team team
|
||||||
|
:content-width @content-width}])]
|
||||||
|
|
||||||
:dashboard-fonts
|
:dashboard-fonts
|
||||||
[:& fonts-page {:team team}]
|
[:& fonts-page {:team team}]
|
||||||
|
@ -275,11 +278,12 @@
|
||||||
(when project
|
(when project
|
||||||
[:*
|
[:*
|
||||||
[:& files-section {:team team :project project}]
|
[:& files-section {:team team :project project}]
|
||||||
[:& templates-section {:profile profile
|
(when (contains? cf/flags :dashboard-templates-section)
|
||||||
:project project
|
[:& templates-section {:profile profile
|
||||||
:default-project-id default-project-id
|
:project project
|
||||||
:team team
|
:default-project-id default-project-id
|
||||||
:content-width @content-width}]])
|
:team team
|
||||||
|
:content-width @content-width}])])
|
||||||
|
|
||||||
:dashboard-search
|
:dashboard-search
|
||||||
[:& search-page {:team team
|
[:& search-page {:team team
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
[app.common.math :as mth]
|
[app.common.math :as mth]
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.data.dashboard :as dd]
|
[app.main.data.dashboard :as dd]
|
||||||
[app.main.data.events :as ev]
|
[app.main.data.events :as ev]
|
||||||
[app.main.data.messages :as msg]
|
[app.main.data.messages :as msg]
|
||||||
|
@ -195,7 +196,7 @@
|
||||||
on-menu-click
|
on-menu-click
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
|
|
||||||
(let [client-position (dom/get-client-position event)
|
(let [client-position (dom/get-client-position event)
|
||||||
position (if (and (nil? (:y client-position)) (nil? (:x client-position)))
|
position (if (and (nil? (:y client-position)) (nil? (:x client-position)))
|
||||||
|
@ -414,7 +415,9 @@
|
||||||
(when team-hero?
|
(when team-hero?
|
||||||
[:& team-hero {:team team :close-fn close-banner}])
|
[:& team-hero {:team team :close-fn close-banner}])
|
||||||
|
|
||||||
(when (or (not tutorial-viewed?) (not walkthrough-viewed?))
|
(when (and (contains? cf/flags :dashboard-templates-section)
|
||||||
|
(or (not tutorial-viewed?)
|
||||||
|
(not walkthrough-viewed?)))
|
||||||
[:div.hero-projects
|
[:div.hero-projects
|
||||||
(when (and (not tutorial-viewed?) (:is-default team))
|
(when (and (not tutorial-viewed?) (:is-default team))
|
||||||
[:& tutorial-project
|
[:& tutorial-project
|
||||||
|
|
Loading…
Reference in a new issue