From 2f4b2a8c985190a2dea687fa3cc26883f3d5a7d5 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sun, 20 Aug 2023 21:33:36 -0400 Subject: [PATCH] refine token parser + menu bar pages can now be dynamically loaded with the template prefix '@' --- crow_test/data/db/users.sqlite | Bin 20480 -> 20480 bytes crow_test/data/session/aubTl45vzPn5feHw.json | 2 +- crow_test/static/css/menu_bar.css | 34 +++++++++++++++++++ crow_test/webcontent/index.html | 8 ++--- crow_test/webcontent/login.html | 34 +++++++++++-------- crow_test/webcontent/menu_bar.part | 27 +++++++++++++++ 6 files changed, 84 insertions(+), 21 deletions(-) create mode 100644 crow_test/static/css/menu_bar.css diff --git a/crow_test/data/db/users.sqlite b/crow_test/data/db/users.sqlite index e38c63435abb9c5d05c98923ae5467209db2678f..d4654215a225053983bf4fd6413b3ae888e959c4 100644 GIT binary patch delta 121 zcmZozz}T>Wae_3X)I=F)MyZVnr{oxUCu_^sh9(u~CI#fDmR5v2xf>%00F zTbLG`Tb6qU8wQvbMtbCzrDbG$X84uommutJ^B~_LCIeQsaYKJ5lW%v|i ZCL0%)q$eengqLmpE6*gr$h*iu0RUS#C-(pV delta 121 zcmZozz}T>Wae_3X#6%fqMv09Hr{oy9Cu_^shK3~PSY+x48#-52X@|N8oB36x29@f2 zRA!r*<$GmCCKU%2=Ngv;6sG7qhLspqI)){=xw>ZR=ewsQ=6mLZ6lDgcnTAA|XQW03 ZR1~HpyZh$)1chz>E6*gr$i2uw0RU7cC#e7c diff --git a/crow_test/data/session/aubTl45vzPn5feHw.json b/crow_test/data/session/aubTl45vzPn5feHw.json index e225beb..d6599b7 100644 --- a/crow_test/data/session/aubTl45vzPn5feHw.json +++ b/crow_test/data/session/aubTl45vzPn5feHw.json @@ -1 +1 @@ -{"clientID":"50a21c33-66c4-5a0f-902f-9434632025e6","clientToken":"Tcl8i/S1Czz+UGS6NzeRu/Hyk66oJjYbsRsm3tPqd/AVt2yAVbFEEi/oGdaoIlTriQf5TX7heYPxqdcGMmLRVg=="} \ No newline at end of file +{"clientID":"50a21c33-66c4-5a0f-902f-9434632025e6","clientToken":"bsmbPoeuxWBE0/j1W9O/EOs85s79wIS1P5qYHovfhkIhNwl5SGkcpHww+DnbzwNCJ1y+Tb2hLpic3qtgbbtWvg=="} \ No newline at end of file diff --git a/crow_test/static/css/menu_bar.css b/crow_test/static/css/menu_bar.css new file mode 100644 index 0000000..90e8e21 --- /dev/null +++ b/crow_test/static/css/menu_bar.css @@ -0,0 +1,34 @@ +ul.menu_bar { + list-style-type: none; + margin: 0; + padding: 0; + overflow: hidden; + background-color: #333; +} + +ul.menu_bar li.left { + display: inline; + float: left; +} + +ul.menu_bar li.right { + display: inline; + float: right; +} + +ul.menu_bar li a { + display: block; + color: white; + text-align: center; + padding: 14px 16px; + text-decoration: none; +} + +ul.menu_bar li a.active { + background-color: #04AA6D; +} + +/* Change the link color to #111 (black) on hover */ +ul.menu_bar li a:hover { + background-color: #111; +} \ No newline at end of file diff --git a/crow_test/webcontent/index.html b/crow_test/webcontent/index.html index 83bfee4..b532ad2 100644 --- a/crow_test/webcontent/index.html +++ b/crow_test/webcontent/index.html @@ -3,7 +3,7 @@ - + @@ -14,10 +14,8 @@
-
- - -
+ {{@menu_bar.part}} +
HAXsdsad {{#_admin}} diff --git a/crow_test/webcontent/login.html b/crow_test/webcontent/login.html index 7aaedc3..9c77604 100644 --- a/crow_test/webcontent/login.html +++ b/crow_test/webcontent/login.html @@ -3,26 +3,30 @@ + + + + + + {{$SITE_TITLE}} - +
-
- - -
+ {{@menu_bar.part}} +
-
-
-
-
-
-
-
- -
-
+
+
+
+
+
+
+
+ +
+
diff --git a/crow_test/webcontent/menu_bar.part b/crow_test/webcontent/menu_bar.part index e69de29..ed6a7e7 100644 --- a/crow_test/webcontent/menu_bar.part +++ b/crow_test/webcontent/menu_bar.part @@ -0,0 +1,27 @@ + + \ No newline at end of file