From dd7bb4cfdebd5c85a5a9c94abb4a3c0e4fe3657e Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Wed, 27 Mar 2024 15:38:53 -0600 Subject: [PATCH] blinkies --- api/serve.go | 2 +- args/args.go | 2 +- static/img/blinkies/autism.gif | Bin 0 -> 1214 bytes static/img/blinkies/connection.gif | Bin 0 -> 3965 bytes static/img/blinkies/construction.gif | Bin 0 -> 1761 bytes static/img/blinkies/fuckcomputers.gif | Bin 0 -> 2493 bytes static/img/blinkies/hatecomputers-club.gif | Bin 0 -> 2119 bytes static/img/blinkies/loveuguys.gif | Bin 0 -> 6357 bytes templates/base.html | 42 ++++++++++++++++++--- templates/home.html | 4 +- 10 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 static/img/blinkies/autism.gif create mode 100644 static/img/blinkies/connection.gif create mode 100644 static/img/blinkies/construction.gif create mode 100644 static/img/blinkies/fuckcomputers.gif create mode 100644 static/img/blinkies/hatecomputers-club.gif create mode 100644 static/img/blinkies/loveuguys.gif diff --git a/api/serve.go b/api/serve.go index df30e76..758a8d9 100644 --- a/api/serve.go +++ b/api/serve.go @@ -111,7 +111,7 @@ func MakeServer(argv *args.Arguments, dbConn *sql.DB) *http.Server { mux.HandleFunc("GET /{name}", func(w http.ResponseWriter, r *http.Request) { requestContext := makeRequestContext() name := r.PathValue("name") - LogRequestContinuation(requestContext, r, w)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) + LogRequestContinuation(requestContext, r, w)(VerifySessionContinuation, FailurePassingContinuation)(IdContinuation, IdContinuation)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) }) return &http.Server{ diff --git a/args/args.go b/args/args.go index 64dee35..fe06f28 100644 --- a/args/args.go +++ b/args/args.go @@ -29,8 +29,8 @@ func GetArgs() (*Arguments, error) { databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database") templatePath := flag.String("template-path", "./templates", "Path to the template directory") staticPath := flag.String("static-path", "./static", "Path to the static directory") - scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") + scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") server := flag.Bool("server", false, "Run the server") migrate := flag.Bool("migrate", false, "Run the migrations") diff --git a/static/img/blinkies/autism.gif b/static/img/blinkies/autism.gif new file mode 100644 index 0000000000000000000000000000000000000000..1290ff4f679fdf0274aa55219234925d3442b645 GIT binary patch literal 1214 zcmZ?wbhEHboW>x+@R@<(fBumx3l9AM|DOTKt~ma`W zx<+k#cxg>_V@GtVTj9j!GSR+7x00x?`pFY|gSw|j%%5A_*s8iXW&Xmo4KtU_o49ex z>e+QI)3(P2E}t~H>Cn0@`xfk3Skl;=p>`tj=%G2C%MM&xf4(zqm&nao8=AJ(%w6~J z+P&Eewv>6Ux_5Nx!Ocfz9(%gz#l>4{yMKOrFlWQb>@WOx_qhiJ?KL>DL2*mUQ;oZY z9vc;xIIewU5*@KId0V%FmHww{ry!q&*${l zKllE;yKOHkV4)$^z8ZH}N3I2j^-)+@+t{pQ|NOcrwMH+qwymTiyP-Y0$t}pODZIR= zuC#kX{j9*gs2Nkk`({s=tg5{rZcgEy6aZqbFJ&3pG;y?tci;h+qSr;VEqt-iZ&&6VqK z4&7KL@@DOkkAJ4G6Z?2e{9PDlFgvGKjD(-?${Jw_FBOfIi&UImt7UCrJEvsP;cx0B zq)~A2KqE5?hlyr`!jjWk3`$333>;@pm~C0~=*CUv&U5oDD%pNohOF>k>=~mKduoej z2M3A4+ziY_z#Ih3N5GgNCKI7$0Vd9#)XrI}vv$4wd8*KR^X9eBYwkYYr*OeUL#li! zBwCI(U}gc|HIQg|>Hx_C@Muw1HmYrpC~c_jh;MRl3~Vm%t?OzonF)-c#;ES8ofAt6 zCwpowOzEG!dg6jP{Tu36#>|)>K4r_Qd3!dj*}r7do?Vgk4Kp%U90@;EJpIhErE4c` zJAE}IUG(&YHLE8aF1j)A%7NSSx9tluYJ0ZMebc2U@9tfC@b>Qg*{^PWfB*6Dzox0b zSy$aPt<}DCC;CJ{h($tSk?EWp`Z4OBul(jNIC1fgYxi6WE?Y^>Mu$djHa-~zhXtOD wEGq6{j0ZZOHE=2=@?1Rm+09?Yx|WOe*Jt-YMfYZ*-jiEaUS2M%#K2$;06Rc9b^rhX literal 0 HcmV?d00001 diff --git a/static/img/blinkies/connection.gif b/static/img/blinkies/connection.gif new file mode 100644 index 0000000000000000000000000000000000000000..fa17e1ac65de24a45c208e099c804dc6c8c4d499 GIT binary patch literal 3965 zcmeH~X;4#V7=)$|72Iy&u4ZKeM4{`>CSxj)|LJMTHi(%Qms zFD40)10De4hd>~RL?S#M58$B_zOJqg5CJO7FyLe8s3O{6YmPo~=-@GPeO<&FiI=ae zFJfHIAH}%1IbYc1g1LARV~o%>KpG&CfHw32ApSS7=EXXu1Y9+Ou_f^#a|tm@UObha z8yn@Li!msr*Lvj55zxgy`~NJe&%A7dOMb=PE zRi*eQeIcEhnuX2Yjnqw}xtYepue;*?Pgf*l7uO0=|#jSG?XM#yU$?nuE>Hl=0YH7TEC5mfpf z#wT0Va?KLp%)NNua;55uqRQ$Vd2Tv8gH_9D;PY#0jhT+1L?>9LS5U#bQD4-|t>Lh5 z2^tH%Su;E*Nl@~RW7qxOvFVoN*@)56iS4t#PZlPgM{|KNP^W*JL$z^^GCg z{+VR#q&kk)fSKyHj@m&#LW+ZJ6r78Tmr;u*9!}n@)<#C0cVAQ}(-26^_0R1GI&(TR zOoFBCRhV#;olf}<64gKzrhMcAE&S<~{NC)7)Nj3F{|%8>;u1l8#1eZ)L|_NE{2`5| zh^7JlUUc95-IzXjw2RBWBWJ#MhkL4f8T%gyxO#|aB_@IuYlEVpn5LSHC4V7JP0Pm7 zAZ?`6-AohUC9Z^k)0K&tjItVi*(zKOqo}ByP|Yo;8<#kO9UY}Q9C9;@S6I)gs;eGs z;bl^MnkJ%|k}%2n_D--{IK@XkXq_Hf8W~$$8WfKAj}l7!z{nr8oU(F4PlT16WIAcV z^Lr%S<4N|ikDovL$T~B*nfy5pk(IM27ZORHSt7i2F9BPj#HuW=Vlm|F zu5mJJ*ts`aT58$GrNJ0jxn5yqLnE)4UsucJ^tUz@`P57|IDs&5{!*7j&*+pOWhQcD zWPJM!_VF*{zs5KL<&i&J7-Gm2EOAu(-BR_o7UVAbRZI7>k53dYoUyc6N6l6TzSO5q zH)gjOQEc;V@=ED#r<9*@(sp?OMqY-S*x7=7;)4 zGXhl{V_LCOn1@2yo2$L;KKhFYCFUVoojtW$5h^G+GKE}G@7q?)5^&hO8-3J5?}4!c zYoIiHyTds$d?bHxSU6BK6fw29ee&^;!`aSdJ+APSeY+50%gvcQR`Fdj+qRqLRhxtu zlLub(r@J_9?>RprDEkbieC@RB zdL`%E4H<4>{Z=^i+8ai;iK<8=t?y3Atbbb?t26Zv4dQPr+w0f=9p}}M|1BLkf?Zv& z#iLs*@o1*O2@0%tI=exrK?qW2BUc&(R@@+BxWMJdaD@uHoem3r=7q9*oD3br4MIf& zM;A8;E8WxTHc{dR5fT?4qDG4Oy+OGAWrOI3qe6Cb{9<9Hrm2}=t@5N_{oDf ID*)K{8v(*Rc>n+a literal 0 HcmV?d00001 diff --git a/static/img/blinkies/construction.gif b/static/img/blinkies/construction.gif new file mode 100644 index 0000000000000000000000000000000000000000..332399f3c38e75417b8cdf843ee253d22ae9cc7d GIT binary patch literal 1761 zcmZ?wbhEHb)M3du@y%|!>E9?!J^8^4MJL_TGPw&o($OWG$VdT6@0ID$1oBg3O&#f%d(w!XOWqLsr_ zbLVFBh?Q-YnUXtiUgwnGUxMu&-`n}UCJNkB4SIEWJzqw^}YmR3n?F3Vy0*TtxwXA>*X})g_w8R^IXyeSxV*Z)dF%F_yZ7!NpS-@ke|&y@ z|NQm){dpho2ON}ds{b#;A>&}6cz}gVlrN`3K;lRThqRPW#Yd$h|JsGc%dYG&P(Iu# z;~DnH;!@(NCgq2MJTC;3Pfr#L&s(xGXwk_@`nhduID%4-H*0tw;?XM3IJ3wi^3xyB ziLw3@EgLV{RDHdEWv0PmuN%KUXofC7cpy#o^;C_>xp9tVeux?h0FfW=D1PRo)))?1$TPKFf)n-g@`(nymke)@E87#m7&s4$F%&-JEeSbNVk+ znTpR|M|JEkyXMR)c(c#{{h?=bs!VfF8D{feTN_pO^5Tx$O!j(vwqLz|xKcem_fGkj z%`0YChsE77d^3BoFn_eq-rqUbC*@nKubsQY|HGTJ@%^*s7RJAOcu_bz{#I4?o2UQ2 z2Jd-yKl9O1_K1dqXP3v;y}bH-uE7u09Sd?V&%7)d$>28QcEeT96AyA;buL#Zk?`w~ zY5Ejfwjg9iV0mJwSLTel-P&FmQ5mX!&u&MX$sH4^H97ToaqDl^PN6>OQynTH&g&`` zO#I@>zOc{O?`M45pP0_nX;FD6Q>Vw(ai+~k>hnySnKrL8ZC2L0lWDW__Hm}qNsLoy zVAyUD@O*B?lbNTPYGySppIa;SVYy1_HP7b@JDe80Sk$OBOJhlonbgaLQ>|X9FP-f5 zYsJ#pRkt*kwQzA|EUS7KsG+fP*TyXEwU-WLF5B2=mCex0RiL?UeplA&WeZ>Z%3gQq z9oL#Q?bA+qoLsq%XP3^Vv&WjcH}8INh)eErRCMm9GjXfeZnC-Z1&sz>7JOAkVHSMP^MJqL;QYq={}LP`pe)Er(=6yTngywl1=HUx;?}OXP`P~W zoI644^DBStOxLUDl3JlzEA)zMQH7Wkw_Y3HFO9`p7-nTGnQB(GVrh4rmFBVuRaz?- zFDTN=TE1*rSJtw{d8by*Te51^%GGOwtX41Dbk9qB-L_|^Ua#AC?3VV1{p(h(-f&E4 KHd8hugEas#f?m1+ literal 0 HcmV?d00001 diff --git a/static/img/blinkies/fuckcomputers.gif b/static/img/blinkies/fuckcomputers.gif new file mode 100644 index 0000000000000000000000000000000000000000..c743acbafe69d8eddf6d33e16ba1004aeddda1dd GIT binary patch literal 2493 zcmeIyc}&x17{Kvg3$&#dP!Dc_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OjR9A)*McKFnBX&6LFI?{p7<{z0nSr z^)OvTx>MQqy3{?CCdFV4w&X%W*XF$CG|t}fS5j!kjsuo^39M0S0YQ9a+SIx;fi=`x z$`P%$KZY4fI~Y9D+aZ~qGIs>a^EJXiTc9w|87S-@tRcwki^Bervz4l*neG)0Zso9w z-4jdpZD8a-@|}h?%bh^L|w^Mncco;X6lEcg77ZryIj})fB zS$G%59{SlvVper{gNWN6A#5mXwS|MgkhZ8WIJ%dqR$mf&h1MvMl@F9RH?_z|2V4uu z4?;006jnnWrKy1q=|OAZUNP3T!Fffa5>`wju4GTjHu$ExBzDyUq0{*ZP~SjPNjA zy|odW7`;^PECgYbAFP`?Vx5nN;}9g+P;vpucr1XW}q|B+_(quf6V@+n8o}TVrKU{rsyUW literal 0 HcmV?d00001 diff --git a/static/img/blinkies/hatecomputers-club.gif b/static/img/blinkies/hatecomputers-club.gif new file mode 100644 index 0000000000000000000000000000000000000000..aa90c8dd41b27c10e456c9cf33e2a28ad6bab29b GIT binary patch literal 2119 zcmZ?wbhEHboW>x+@R@R+Bv&p|^V;_2*Qr&}$IWb>Z>f8~L!sb@_OCwM z&V-XWR`V~cDDhewwf;s|)uuH+Rk2_6=Q|;#fI2#kcNdKNo-Q{Kdr=FPz_Y{ql{Q7tY?ibN$|m ztNWkszqNX83nNGMEQZ+Q9G_2BWiDIzW82-|zy3Xc_UYs0>;1DV4gND}`J{K=-DBDL zNO87%KGWvfzid&fm%W;QpylcE51G4N`4%7RQTr%T|Fh`W}f!WV=IG_ zeCOLeQ9UVsdppY+I~BHIUEdu`KfDr6`99ZWX*Dx9+mkD)4AzOqc;e37=#|me-|8{X zXXmD;rvs7{A0CYCm?*cvTKMLhnO|O9SQDuj>z^<&t-F;KSRAlSnVQR!FiN~dwd6rz$Cn#Qdw{YWx zYiwOI9fI;cz4GaYE?aKA=^i`FgUj^zbD;(wZ9|7SGj-?t7Y1y-neuG%?PGHS*GC4v@YF}v@|yQ!)xn}TI!JwyUlnn?CQHUsU>5|!aJNLAGzdg+};PZ z)~UBDp4m}&^Jscd)=Y4TFk|5sr$dW33n<$t5@Ft6MJCFN Ogkhc%m`6-Xum%91o$_7) literal 0 HcmV?d00001 diff --git a/static/img/blinkies/loveuguys.gif b/static/img/blinkies/loveuguys.gif new file mode 100644 index 0000000000000000000000000000000000000000..89cd0aae613433f31db5bee50cfc1e3a9661412c GIT binary patch literal 6357 zcmeI$XHZjH0>JSQY9J~_LXn3wk!AqNqZerbf+$E)=`A8n^Z^1IE&%9sy|;JpbT_&lfliN#q7w*F^dBods)tVR>Di%9^w1Bk4(0;= zw@3f=BD%-K#`)tmQ98#3Ln}*tU30^;Pz6SY-?vPBT|AIxE*_q4-bXxKe0^QC6rix5 zVL$&2kUMzw!8Zb!_nk!&-97UqimQD3gji*U0({>ESFPP$qqk4@8`^h7QA&R4^-<4= zy&h3gCSy!pqL7kR z6c=g!Y0HH7x_TiY2B?aHEsa(?cVPzvwxim@xTqvEyO-_i6;AfYA8!;?O*K2XB~JA< ztQoSR89DB&n|LvxyaePHa(FJG#kXoT)2Du83<&2kU^q)z)cvJyxYCo(xihk!g zKb7#|h_Xed778SmrE-IK3hkaqbjr^0jIl`MV-AT(1@KEBNxd|@Cz1wM1tHTdFDQuv z_#CfF;=Hl3i~0^M%62%_dVwWeQa-2@7f&WGX8H+ZQ}B@nx*ieD4Cn=72=}-vhr;mg zLOFVHTMWQ??q*@Su*o$i_=|W=uVAip^-@)fT+2XDxdr;ua)2H$6?et=ILpo(d6NDr zV^=%t3L~^NgZr#joe1(Ny{7YucB59;!)NPRYO^%CxE&blNa7~@ z1TqG@T5XPL=u6Kua{5c$df`55T5tGKxUY27>sW&HQ=zWB03+nBqSJww>+su#_OHGz zztY6Cj=c8E8mO2|f+nm^h&Fr=m`NT=*c}hxv*}C@AU{UKLK@;r#`f>MSqY4ZKlsG$#D zW$JHombJGi)k&W9Th(`nDD+sJqlQ_a%KNJfofq}*#u}Bfa}BKed~YaVKi(j2CK2~g zZsKdp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FM{Fzn{=zP2UcsX`av>+qXFFJxte04Jhj)E20``}2t@X2}ij=^>HF z>8mqID0Nh)ep;tCE0LT`u zQ&XBZ5;BZoVsqiF+$4pRpX-5fQmh3T5S|GKFw z%V>62I#Myi6KMNuA%fkUplEAivTGQg)_=ZKDOxQKd4nfsO7og>7jeMu7k~bG*eUtm zrbtcevxvUjj=tp|D8&DPLT}|PXz;&;!eJ>Kmcn5v9G1diDIAu<-;R$COM!S;3Wud| OSPF-w@PAke8h-&QhaM^b literal 0 HcmV?d00001 diff --git a/templates/base.html b/templates/base.html index 1846493..094d018 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,14 +19,24 @@
-
+

hatecomputers.club

- + light mode. + | + home. + | + about. + | + guestbook. + | + webring. | {{ if .User }} - logout, {{ .User.DisplayName }}. + dns. + | + logout, {{ .User.DisplayName }}. {{ else }} - login. + login. {{ end }}

@@ -34,7 +44,29 @@
{{ template "content" . }}
-

hi

+ +
+ +
diff --git a/templates/home.html b/templates/home.html index 1938a03..de52bef 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,3 +1,3 @@ {{ define "content" }} - -{{ end }} \ No newline at end of file +

under construction!

+{{ end }}