Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
awb99
committed
Oct 22, 2023
1 parent
a0cfee5
commit 7bccaf5
Showing
22 changed files
with
325 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{:goldly {;:lazy true | ||
:watch-cljs-dir ["src/demo/page"] | ||
:routes {:app {"" demo.page.welcome/welcome-page | ||
"input" demo.page.input/input-page | ||
"description-list" demo.page.desclist/desclist-page | ||
"layout" demo.page.layout/layout-page | ||
"grid-layout" demo.page.gridlayout/grid-layout-page | ||
"spaces" demo.page.spaces/spaces-page | ||
}}}} | ||
{:goldly {:watch-cljs-dir ["src/demo/page"] | ||
:routes {:app {} ; demo route are in demo/resources/Ext/app.edn | ||
:api {}}} | ||
|
||
|
||
:reval {:collections {:ui-input [:cljs "notebook/"] | ||
;:demo [:clj "demo/notebook/"] | ||
:demo-cljs [:cljs "demo/notebook/"] | ||
}} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{:paths ["src" | ||
"resources" ; goldly-ext, css | ||
"target/node_modules" ; css from npm modules | ||
] | ||
:deps | ||
{org.clojure/clojure {:mvn/version "1.11.1"} | ||
; goldly | ||
org.pinkgorilla/goldly {:mvn/version "0.4.635"} | ||
; goldly extensions | ||
org.pinkgorilla/ui-input {:local/root "../" :deps/manifest :deps} | ||
org.pinkgorilla/ui-repl {:mvn/version "0.0.73"} ; reagent | ||
org.pinkgorilla/devtools {:mvn/version "0.0.18"} ; devtools | ||
} | ||
|
||
:aliases | ||
{:demo {:exec-fn modular.system/start! | ||
:exec-args {:profile "jetty" | ||
:config ["webly/config.edn" | ||
"goldly/config.edn" | ||
"config.edn"] | ||
:services "goldly/services.edn"}} | ||
|
||
:npm-install | ||
{:exec-fn goldly.app.build/goldly-build | ||
:exec-args {:profile "npm-install"}} | ||
|
||
:compile | ||
{:exec-fn goldly.app.build/goldly-build | ||
:exec-args {:profile "compile2"}}}} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{:name "demo-app" | ||
:cljs-routes {"" demo.page.welcome/welcome-page | ||
"input" demo.page.input/input-page | ||
"description-list" demo.page.desclist/desclist-page | ||
"layout" demo.page.layout/layout-page | ||
"grid-layout" demo.page.gridlayout/grid-layout-page | ||
"spaces/" {"main" demo.page.spaces/spaces-page | ||
"layout-viewport-lrt" demo.page.spaces/spaces-layout-lrt-viewport-page | ||
"layout-viewport-lrm" demo.page.spaces/spaces-layout-lrm-viewport-page | ||
"layout-fixed-lrt" demo.page.spaces/spaces-layout-lrt-fixed-page | ||
"layout-fixed-lrm" demo.page.spaces/spaces-layout-lrm-fixed-page}} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
demo/demo/page/desclist.cljs → demo/src/demo/page/desclist.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
(ns demo.page.spaces | ||
(:require | ||
[spaces.core :as spaces] | ||
[spaces.layout.screen :as layout-viewport] | ||
[spaces.layout.fixed :as layout-fixed] | ||
[demo.lib.link :refer [link-href]])) | ||
|
||
(defn nav-layout [] | ||
[:<> | ||
[link-href "/spaces/main" "goto spaces/main"] | ||
[link-href "/spaces/layout-viewport-lrt" "goto spaces/layout-viewport-lrt"] | ||
[link-href "/spaces/layout-viewport-lrm" "goto spaces/layout-viewport-lrm"] | ||
[link-href "/spaces/layout-fixed-lrt" "goto spaces/layout-fixed-lrt"] | ||
[link-href "/spaces/layout-fixed-lrm" "goto spaces/layout-fixed-lrm"]]) | ||
|
||
(defn spaces-1 [] | ||
[spaces/viewport | ||
[spaces/left {:size "20%" :style "blue" :trackSize true} | ||
[spaces/description "Left"]] | ||
[spaces/fill {:style "green" :trackSize true} | ||
[spaces/bottom {:size "20%" :style "red" :trackSize true}] | ||
[spaces/right {:size "20%" :style "blue" :trackSize true}]]]) | ||
|
||
(defn spaces-page [_] | ||
[spaces/viewport | ||
[spaces/top-resizeable {:size 50} [:div "top" [nav-layout]]] | ||
[spaces/fill {:class "bg-green-500"} | ||
[:div | ||
[spaces/left-resizeable {:size 200} "left"] | ||
[spaces/right-resizeable {:size 200} | ||
;"right" | ||
[:div | ||
[spaces/fill {:class "bg-blue-500"} "fill"] | ||
[spaces/bottom-resizeable {:size 50 :class "bg-gray-300"} "bottom"]]] | ||
[spaces/fill {:class "bg-green-500"} | ||
;[spaces-1] | ||
[:div.bg-red-300.w-full.h-full "filling"]]]]]) | ||
|
||
;; spaces layout viewport | ||
|
||
(defn spaces-layout-lrt-viewport-page [_] | ||
[:div.bg-red-200 | ||
[layout-viewport/screen-left-right-top {:left [:div.bg-green-300.w-full.h-full "left"] | ||
:right [:div.bg-blue-300.w-full.h-full "right"] | ||
:top [:div.bg-gray-200.w-full.h-full "top" | ||
[nav-layout]]}]]) | ||
|
||
(defn spaces-layout-lrm-viewport-page [_] | ||
[layout-viewport/screen-left-right-middle {:left [:div.bg-green-300.w-full.h-full "left"] | ||
:right [:div.bg-blue-300.w-full.h-full "right"] | ||
:middle [:div.bg-gray-200.w-full.h-full "middle" | ||
[nav-layout]]}]) | ||
|
||
;; spaces layout fixed | ||
|
||
(defn spaces-layout-lrt-fixed-page [_] | ||
[:div.bg-blue-200 {:style {:width "100vw" :height "100vh"}} | ||
[layout-fixed/left-right-top {:left [:div.bg-green-300.w-full.h-full "left"] | ||
:right [:div.bg-blue-300.w-full.h-full "right"] | ||
:top [:div.bg-gray-200.w-full.h-full "top" | ||
[nav-layout]]}]]) | ||
|
||
(defn spaces-layout-lrm-fixed-page [_] | ||
[:div.bg-blue-200 {:style {:width "100vw" :height "100vh"}} | ||
[layout-fixed/left-right-middle {:left [:div.bg-green-300.w-full.h-full "left"] | ||
:right [:div.bg-blue-300.w-full.h-full "right"] | ||
:middle [:div.bg-gray-200.w-full.h-full "middle" | ||
[nav-layout]]}]]) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(ns notebook.spaces | ||
(:require | ||
[spaces.layout.screen :as layout-viewport] | ||
[spaces.layout.fixed :as layout-fixed])) | ||
|
||
(pr-str | ||
(layout-viewport/screen-left-right-middle | ||
{:left [:div.bg-green-300.w-full.h-full "left"] | ||
:right [:div.bg-blue-300.w-full.h-full "right"] | ||
:middle [:div.bg-gray-200.w-full.h-full "middle"]})) | ||
|
||
(pr-str | ||
(layout-fixed/left-right-middle | ||
{:left [:div.bg-green-300.w-full.h-full "left"] | ||
:right [:div.bg-blue-300.w-full.h-full "right"] | ||
:middle [:div.bg-gray-200.w-full.h-full "middle"]})) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.