mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 17:26:37 +02:00
Improve demo warning on home and add conditional build options.
This commit is contained in:
parent
96092fda7c
commit
e453841d66
5 changed files with 21 additions and 5 deletions
|
@ -1083,6 +1083,7 @@ input[type=range]:focus::-ms-fill-upper {
|
||||||
color: $color-info-darker;
|
color: $color-info-darker;
|
||||||
margin-bottom: 1.2rem;
|
margin-bottom: 1.2rem;
|
||||||
padding: .8rem;
|
padding: .8rem;
|
||||||
|
text-align: center;
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,9 +4,13 @@
|
||||||
(def debug?
|
(def debug?
|
||||||
(boolean (:uxbox-debug env nil)))
|
(boolean (:uxbox-debug env nil)))
|
||||||
|
|
||||||
|
(def demo?
|
||||||
|
(boolean (:uxbox-demo env nil)))
|
||||||
|
|
||||||
(def defines
|
(def defines
|
||||||
{"uxbox.config.url" "/api"
|
{"uxbox.config.url" "/api"
|
||||||
"uxbox.config.viewurl" "/view/"})
|
"uxbox.config.viewurl" "/view/"
|
||||||
|
"uxbox.config.isdemo" demo?})
|
||||||
|
|
||||||
(def options
|
(def options
|
||||||
{:main 'uxbox.main
|
{:main 'uxbox.main
|
||||||
|
|
|
@ -4,9 +4,13 @@
|
||||||
(def debug?
|
(def debug?
|
||||||
(boolean (:uxbox-debug env nil)))
|
(boolean (:uxbox-debug env nil)))
|
||||||
|
|
||||||
|
(def demo?
|
||||||
|
(boolean (:uxbox-demo env nil)))
|
||||||
|
|
||||||
(def defines
|
(def defines
|
||||||
{"uxbox.config.url" "/api"
|
{"uxbox.config.url" "/api"
|
||||||
"uxbox.config.viewurl" "/view/"})
|
"uxbox.config.viewurl" "/view/"
|
||||||
|
"uxbox.config.isdemo" demo?})
|
||||||
|
|
||||||
(def options
|
(def options
|
||||||
{:main 'uxbox.view
|
{:main 'uxbox.view
|
||||||
|
|
|
@ -8,3 +8,4 @@
|
||||||
|
|
||||||
(goog-define url "http://127.0.0.1:6060/api")
|
(goog-define url "http://127.0.0.1:6060/api")
|
||||||
(goog-define viewurl "http://127.0.0.1:3449/view/index.html")
|
(goog-define viewurl "http://127.0.0.1:3449/view/index.html")
|
||||||
|
(goog-define isdemo false)
|
||||||
|
|
|
@ -9,9 +9,10 @@
|
||||||
(:require [lentes.core :as l]
|
(:require [lentes.core :as l]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[potok.core :as ptk]
|
[potok.core :as ptk]
|
||||||
|
[uxbox.builtins.icons :as i]
|
||||||
|
[uxbox.config :as cfg]
|
||||||
[uxbox.main.store :as st]
|
[uxbox.main.store :as st]
|
||||||
[uxbox.main.data.auth :as da]
|
[uxbox.main.data.auth :as da]
|
||||||
[uxbox.builtins.icons :as i]
|
|
||||||
[uxbox.main.ui.messages :refer [messages-widget]]
|
[uxbox.main.ui.messages :refer [messages-widget]]
|
||||||
[uxbox.main.ui.navigation :as nav]
|
[uxbox.main.ui.navigation :as nav]
|
||||||
[uxbox.util.mixins :as mx :include-macros true]
|
[uxbox.util.mixins :as mx :include-macros true]
|
||||||
|
@ -40,8 +41,13 @@
|
||||||
:password (:password data)})))]
|
:password (:password data)})))]
|
||||||
[:form {:on-submit on-submit}
|
[:form {:on-submit on-submit}
|
||||||
[:div.login-content
|
[:div.login-content
|
||||||
[:div.message-inline.hide
|
(when cfg/isdemo
|
||||||
[:p "UXBOX is currently on alpha version. That means that you're going to use a non-stable environment. Sorry for the inconvenience."]]
|
[:div.message-inline
|
||||||
|
[:p
|
||||||
|
[:strong "WARNING: "] "this is a " [:strong "demo"] " service."
|
||||||
|
[:br]
|
||||||
|
[:strong "DO NOT USE"] " for real work, " [:br]
|
||||||
|
" the projects will be periodicaly wiped."]])
|
||||||
[:input.input-text
|
[:input.input-text
|
||||||
{:name "email"
|
{:name "email"
|
||||||
:tab-index "2"
|
:tab-index "2"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue