mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05: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;
|
||||
margin-bottom: 1.2rem;
|
||||
padding: .8rem;
|
||||
text-align: center;
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
@ -4,9 +4,13 @@
|
|||
(def debug?
|
||||
(boolean (:uxbox-debug env nil)))
|
||||
|
||||
(def demo?
|
||||
(boolean (:uxbox-demo env nil)))
|
||||
|
||||
(def defines
|
||||
{"uxbox.config.url" "/api"
|
||||
"uxbox.config.viewurl" "/view/"})
|
||||
"uxbox.config.viewurl" "/view/"
|
||||
"uxbox.config.isdemo" demo?})
|
||||
|
||||
(def options
|
||||
{:main 'uxbox.main
|
||||
|
|
|
@ -4,9 +4,13 @@
|
|||
(def debug?
|
||||
(boolean (:uxbox-debug env nil)))
|
||||
|
||||
(def demo?
|
||||
(boolean (:uxbox-demo env nil)))
|
||||
|
||||
(def defines
|
||||
{"uxbox.config.url" "/api"
|
||||
"uxbox.config.viewurl" "/view/"})
|
||||
"uxbox.config.viewurl" "/view/"
|
||||
"uxbox.config.isdemo" demo?})
|
||||
|
||||
(def options
|
||||
{:main 'uxbox.view
|
||||
|
|
|
@ -8,3 +8,4 @@
|
|||
|
||||
(goog-define url "http://127.0.0.1:6060/api")
|
||||
(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]
|
||||
[cuerdas.core :as str]
|
||||
[potok.core :as ptk]
|
||||
[uxbox.builtins.icons :as i]
|
||||
[uxbox.config :as cfg]
|
||||
[uxbox.main.store :as st]
|
||||
[uxbox.main.data.auth :as da]
|
||||
[uxbox.builtins.icons :as i]
|
||||
[uxbox.main.ui.messages :refer [messages-widget]]
|
||||
[uxbox.main.ui.navigation :as nav]
|
||||
[uxbox.util.mixins :as mx :include-macros true]
|
||||
|
@ -40,8 +41,13 @@
|
|||
:password (:password data)})))]
|
||||
[:form {:on-submit on-submit}
|
||||
[:div.login-content
|
||||
[:div.message-inline.hide
|
||||
[:p "UXBOX is currently on alpha version. That means that you're going to use a non-stable environment. Sorry for the inconvenience."]]
|
||||
(when cfg/isdemo
|
||||
[: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
|
||||
{:name "email"
|
||||
:tab-index "2"
|
||||
|
|
Loading…
Add table
Reference in a new issue