From 3ccb517aed716b574e8e339a574a6b46e1c78641 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Mon, 26 May 2025 13:11:54 -0500 Subject: [PATCH] Fix templates --- Templates/web/res/image.png | Bin 0 -> 1073 bytes Templates/web/src/pages/about.tcross | 26 ++++++++++++++++++++ Templates/web/src/pages/counter.tcross | 25 +++++++++++++++++++ Templates/web/src/pages/echo.tcross | 32 +++++++++++++++++++++++++ Templates/web/src/pages/index.tcross | 27 +++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 Templates/web/res/image.png create mode 100644 Templates/web/src/pages/about.tcross create mode 100644 Templates/web/src/pages/counter.tcross create mode 100644 Templates/web/src/pages/echo.tcross create mode 100644 Templates/web/src/pages/index.tcross diff --git a/Templates/web/res/image.png b/Templates/web/res/image.png new file mode 100644 index 0000000000000000000000000000000000000000..e3805eb9d3f2a162513696ff4d408ec4cf23b621 GIT binary patch literal 1073 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSoCO|{#XuSa7#UhB#ep2=$DS^Z zAr*7p-reXW6DV=?~})$*gJ64bEBb$|9)alRedLYNN=;DAAyI(N9FT zZIbNX;ZbyW_v@TC@J8@6E}Z zRx71@ElLacwjt-?tM>KVDt_E@JpbHBX-V0SwWZI`^S_h+XZzlQoh5W-?Unp>mi617 z|9RW``QPu__v_~Dw<)SiZ4jYSyNGE|PK_zb>8p;NW4umxsUQi;|Izz>~>G zJ~+Iv_vGVmdAB&JLg7gNsfUdh?9|%Woj%Wyk>mJ!5-4~^?exRO10QZWCH(MFG^kl7 zAYm8G!82czrR}^()2fH{b)|KmHpU*#_K0`q5(we_f5YHGlk~O_kU+Z%%hbcstQXW- zt{#qNzo5z@eE2-`hTXeg`}_Ngo5?I@b@1U>);6DAfhT5qL5~?juA%%nj>ch|Z7AUg(?XP0c$vfN6R(+UxfgsEC`+F|^UBT|Kxoz#?Xa5=2?4M?@ z$?)a&21`gZfyjm*oQx2j591HhvVA|4uIJ0&V&+({SjqcPZWXJ*V}7HgZ>kJSZeJDV z04uCw+pu@<+xEi?BaS~V)NLr}d1BdCog#L?=zinQ`U%yFi@tC#gfWA>0nT{&-42 zoJWZ4m@hy`38uUP7lWORl|F;9yqxT=t?&N)Y}Dmom?3MIBeU(_d#U;NmYg+xe*W8> z{d*_aCo&v)d3WmP>F(#==h*C(KhLz`i^~bw19RU0kYs32Nf|K z?SJ!ikN$-pixtfoO#6QwzcxG)i7&Q6feJ=^DV(9DduMHI8mhLM +b`?>k8#sV2d7K7$ERK1g5- z!v=#IQ%?sE*@mMJR|~d&cs%*@;q7mw;+h}cR_|1ADk+xPH%mv+;7`t`h65kI8ge#1 zoPC^yr7d56Dll!Hh=rMKz?l}Q{%(0&s_y1 z?!~d?o!q|1w1WHUg6G)^f

{ipsum}

+ ); +} +var ipsum=""; \ No newline at end of file diff --git a/Templates/web/src/pages/counter.tcross b/Templates/web/src/pages/counter.tcross new file mode 100644 index 0000000..d84eebb --- /dev/null +++ b/Templates/web/src/pages/counter.tcross @@ -0,0 +1,25 @@ +func Pages.Counter() +{ + var pages = [ + { + active = false, + route = "/", + text = "Home" + }, + { + active = true, + route = "/counter", + text = "Counter" + }, + { + active = false, + route = "/about", + text = "About" + } + ]; + return Components.Shell( + "Counter", + pages, +

This is a counter

+ ); +} \ No newline at end of file diff --git a/Templates/web/src/pages/echo.tcross b/Templates/web/src/pages/echo.tcross new file mode 100644 index 0000000..17919c2 --- /dev/null +++ b/Templates/web/src/pages/echo.tcross @@ -0,0 +1,32 @@ +func Pages.Echo(text) +{ + var pages = [ + { + active = false, + route = "/", + text = "Home" + }, + { + active = false, + route = "/counter", + text = "Counter" + }, + { + active = false, + route = "/about", + text = "About" + } + ]; + return Components.Shell( + "Echo", + pages, + + +

{text}

+
+ +

No text available

+
+ + ); +} \ No newline at end of file diff --git a/Templates/web/src/pages/index.tcross b/Templates/web/src/pages/index.tcross new file mode 100644 index 0000000..e698dee --- /dev/null +++ b/Templates/web/src/pages/index.tcross @@ -0,0 +1,27 @@ +func Pages.Index() +{ + var pages = [ + { + active = true, + route = "/", + text = "Home" + }, + { + active = false, + route = "/counter", + text = "Counter" + }, + { + active = false, + route = "/about", + text = "About" + } + ]; + return Components.Shell("Main Page",pages,
+
+ + +
+

1 John 4:4: You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in the world.

+
); +} \ No newline at end of file