0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

Merge pull request #3343 from penpot/niwinz-onmpremise-improvements

 Add minor improvements for onpremise users
This commit is contained in:
Alejandro 2023-06-23 13:10:14 +02:00 committed by GitHub
commit 71a6ee51fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 30 additions and 17 deletions

View file

@ -1,6 +1,6 @@
# CHANGELOG
## :rocket: 1.19.0
## 1.19.0
### :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)
- Improve dashboard performance related to thumbnails; now the thumbnails are
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

View file

@ -36,10 +36,10 @@
(defmethod ig/init-key ::routes
[_ {:keys [::wrk/executor] :as cfg}]
(letfn [(handler [request respond _]
(letfn [(handler [request]
(let [data (-> request yrq/body slurp)]
(px/run! executor #(handle-request cfg data)))
(respond {::yrs/status 200}))]
{::yrs/status 200})]
["/sns" {:handler handler
:allowed-methods #{:post}}]))

View file

@ -59,7 +59,9 @@
:webworker))
(def default-flags
[:enable-newsletter-subscription])
[:enable-newsletter-subscription
:enable-dashboard-templates-section
:enable-google-fonts-provider])
(defn- parse-flags
[global]

View file

@ -65,7 +65,9 @@
(merge db (d/index-by :id 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]
(get @fontsdb id))

View file

@ -9,6 +9,7 @@
[app.common.data :as d]
[app.common.math :as mth]
[app.common.spec :as us]
[app.config :as cf]
[app.main.data.dashboard :as dd]
[app.main.data.dashboard.shortcuts :as sc]
[app.main.data.events :as ev]
@ -259,11 +260,13 @@
:projects projects
:profile profile
:default-project-id default-project-id}]
[:& templates-section {:profile profile
:project project
:default-project-id default-project-id
:team team
:content-width @content-width}]]
(when (contains? cf/flags :dashboard-templates-section)
[:& templates-section {:profile profile
:project project
:default-project-id default-project-id
:team team
:content-width @content-width}])]
:dashboard-fonts
[:& fonts-page {:team team}]
@ -275,11 +278,12 @@
(when project
[:*
[:& files-section {:team team :project project}]
[:& templates-section {:profile profile
:project project
:default-project-id default-project-id
:team team
:content-width @content-width}]])
(when (contains? cf/flags :dashboard-templates-section)
[:& templates-section {:profile profile
:project project
:default-project-id default-project-id
:team team
:content-width @content-width}])])
:dashboard-search
[:& search-page {:team team

View file

@ -9,6 +9,7 @@
[app.common.data :as d]
[app.common.geom.point :as gpt]
[app.common.math :as mth]
[app.config :as cf]
[app.main.data.dashboard :as dd]
[app.main.data.events :as ev]
[app.main.data.messages :as msg]
@ -195,7 +196,7 @@
on-menu-click
(mf/use-fn
(fn [event]
(dom/prevent-default event)
(dom/prevent-default event)
(let [client-position (dom/get-client-position event)
position (if (and (nil? (:y client-position)) (nil? (:x client-position)))
@ -414,7 +415,9 @@
(when team-hero?
[:& 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
(when (and (not tutorial-viewed?) (:is-default team))
[:& tutorial-project