-
Notifications
You must be signed in to change notification settings - Fork 0
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
Apr 3, 2024
1 parent
97784ef
commit 1bf1999
Showing
18 changed files
with
237 additions
and
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
(ns build | ||
(:require | ||
[babashka.fs :as fs] | ||
[clojure.tools.build.api :as b] | ||
[deps-deploy.deps-deploy :as dd])) | ||
|
||
(def lib 'org.pinkgorilla/ui-input) | ||
(def version (format "0.1.%s" (b/git-count-revs nil))) | ||
(def class-dir "target/classes") | ||
(def basis (b/create-basis {:project "deps.edn"})) | ||
(def jar-file (format "target/%s-%s.jar" (name lib) version)) | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(def pom-template | ||
[[:licenses | ||
[:license | ||
[:name "Eclipse Public License"] | ||
[:url "https://www.eclipse.org/legal/epl-v10.html"]]] | ||
[:developers | ||
[:developer | ||
[:name "pink-gorilla"]]] | ||
[:scm | ||
[:url "https://github.com/pink-gorilla/ui-input/"] | ||
[:connection "scm:git:git://github.com/pink-gorilla/ui-input.git"] | ||
[:developerConnection "scm:git:ssh://git@github.com/pink-gorilla/ui-input.git"]]]) | ||
|
||
(def opts {:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:basis basis | ||
:pom-data pom-template | ||
:src-dirs ["src"]}) | ||
|
||
(defn jar [_] | ||
(b/write-pom opts) | ||
(b/copy-dir {:src-dirs ["src" | ||
"resources"] | ||
:target-dir class-dir}) | ||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) | ||
|
||
(defn deploy "Deploy the JAR to Clojars." [_] | ||
(println "Deploying to Clojars..") | ||
(dd/deploy {:installer :remote | ||
;:sign-releases? true | ||
:pom-file (b/pom-path (select-keys opts [:lib :class-dir])) | ||
;:artifact "target/tech.ml.dataset.jar" | ||
:artifact (b/resolve-path jar-file)})) |
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,51 +1,63 @@ | ||
(ns demo.page.sidebartree | ||
(:require | ||
[reagent.core :as r] | ||
[spaces.layout.screen :as layout-viewport] | ||
[container :refer [sidebar-tree]])) | ||
[ipsum] | ||
[container :refer [with-sidebar-menu]])) | ||
|
||
(defn welcome [] | ||
[:div.bg-red-500.w-full.h-full "welcome"]) | ||
|
||
(defn fulfillment [] | ||
[:div.bg-green-500.w-full.h-full "fulfillment"]) | ||
[:div.bg-green-500.w-full.h-full | ||
[:div {:style {;:overflow-x "scroll" | ||
;:overflow-y "scroll" | ||
} | ||
:class "w-full h-full bg-green-500" | ||
} | ||
"fulfillment" | ||
[:div.w-full.h-full | ||
[ipsum/random-paragraph 50] | ||
] | ||
]] | ||
) | ||
|
||
(defn product [] | ||
[:div.bg-blue-500.w-full.h-full "product"]) | ||
|
||
(defn finance [] | ||
[:div.bg-blue-500.w-full.h-full "finance"]) | ||
|
||
(defn menu [goto] | ||
[sidebar-tree | ||
{:name "Menu2" | ||
:items [{:name "Fulfillment" :class "ion-bag" :href "#" :on-click #(goto fulfillment) | ||
:items [{:name "Derps" :href "#" :class "ion-ios-color-filter-outline"} | ||
(defn menu [page goto] | ||
[with-sidebar-menu | ||
{:page [page] | ||
:name "Menu2" | ||
:items [{:name "Fulfillment" :class "ion-bag" :href "#" | ||
:items [{:name "Fulfillment1" :href "#" :class "ion-ios-color-filter-outline" | ||
:on-click #(goto fulfillment)} | ||
{:name "Times" :href "#" :class "ion-ios-clock-outline"} | ||
{:name "Hates" :href "#" :class "ion-android-star-outline"} | ||
{:name "Beat" :href "#" :class "ion-heart-broken"}]} | ||
{:name "Product" :class "ion-ios-settings" :href "#" :on-click #(goto product) | ||
:items [{:name "Watch" :href "#" :class "ion-ios-alarm-outline"} | ||
{:name "Product" :class "ion-ios-settings" :href "#" | ||
:items [{:name "2" :href "#" :class "ion-ios-alarm-outline" | ||
:on-click #(goto product) | ||
} | ||
{:name "Creeper" :href "#" :class "ion-ios-camera-outline"} | ||
{:name "Hate" :href "#" :class "ion-ios-chatboxes-outline"} | ||
{:name "Grinder" :href "#" :class "ion-ios-cog-outline"}]} | ||
{:name "Finance" :class "ion-ios-briefcase-outline" :href "#" :on-click #(goto finance) | ||
:items [{:name "Burn" :href "#" :class "ion-ios-flame-outline"} | ||
{:name "Finance" :class "ion-ios-briefcase-outline" :href "#" | ||
:items [{:name "3" :href "#" :class "ion-ios-flame-outline" | ||
:on-click #(goto finance) | ||
} | ||
{:name "Bulbs" :href "#" :class "ion-ios-lightbulb-outline"} | ||
{:name "Where You" :href "#" :class "ion-ios-location-outline"} | ||
{:name "On Lock" :href "#" :class "ion-ios-locked-outline" :on-click #(goto welcome)}]}]}]) | ||
|
||
(defn sidebartree-page [_] | ||
(defn sidebar-page [_] | ||
(let [page-a (r/atom welcome) | ||
goto (fn [page] | ||
(println "changing page...") | ||
(reset! page-a page))] | ||
(fn [] | ||
[layout-viewport/screen-left-right-top | ||
{:left [:div.bg-green-300.w-full.h-full [menu goto]] | ||
:left-resizeable false | ||
:left-size "17em" | ||
:right [:div.bg-blue-300.w-full.h-full [@page-a]] | ||
:top [:div.bg-gray-200.w-full.h-full "top"] | ||
:top-resizeable false | ||
:scrollable true}]))) | ||
(fn [_] | ||
[menu @page-a goto] | ||
|
||
))) |
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 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{:name "ui-rnd" | ||
; build | ||
:lazy-sci true | ||
:lazy true | ||
:cljs-namespace [pinkgorilla.layout.rnd] | ||
:cljs-ns-bindings {'ui.rnd {'rnd pinkgorilla.layout.rnd/rnd}}} |
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.