Commit Graph

131 Commits

Author SHA1 Message Date
80b2acb79a expires vs expiration
It appears I have misunderstood the difference between `expires =>
time() + 3600` and `expiration => 3600` as I thought `expires` would
just set the expiration one time and not update for subsequent
requests. Per this discussion thread, that does not appear to be
correct:

https://github.com/mojolicious/mojo/discussions/1833

Thus I felt it best to just set the expiry period to 30 min and allow
that to reset on subsequent requests rather than reinvent the wheel
2022-04-04 17:22:23 -04:00
a36e43ea11 Whoopsie... Remember to run your unit tests before comitting, folks 2022-04-04 14:02:05 -04:00
fe739e7f2b I should've been using 'expires' for the session rather than 'expiration' 2022-04-04 13:48:31 -04:00
29bf6f71e2 Lower session lifetime cuz visitor counter 2022-04-04 00:04:09 -04:00
dfb27d3815 Boop 2022-04-03 23:35:59 -04:00
71501bc904 What's next?? 2022-04-03 21:42:53 -04:00
27ec34b208 Make the visitor counter increment when a new session is created 2022-04-03 21:34:22 -04:00
3532310738 Display the visitor counter 2022-04-03 21:04:09 -04:00
6fe9a59b6d Some style tweaks, this was buggin me 2022-04-03 17:11:02 -04:00
7c951baaa6 Merge branch 'main' into visitor_counter 2022-04-01 22:39:07 -04:00
1fdd18c42f Change some <section> to <div> where a heading is not necessary (HTML linter findings) 2022-04-01 22:38:14 -04:00
93ee1b080b Style tweaks for the new <p> tags 2022-04-01 16:26:40 -04:00
a11bae7cdf Use <p> instead of <figcaption> to appease HTML validator 2022-04-01 15:36:16 -04:00
64067b22f9 Revert "Move <h3> for article heading to the inside of the <section> tag"
This reverts commit 14bc79d89d.

This was just to address some warning but now it's creating errors in
HTML validation so probably best to just ignore
2022-03-18 16:15:09 -04:00
96fd173660 Add lang=en attribute to <html> 2022-03-18 16:13:15 -04:00
14bc79d89d Move <h3> for article heading to the inside of the <section> tag 2022-03-18 15:56:44 -04:00
161d591f74 Font style changes 2022-02-23 16:21:49 -05:00
0a035e1502 Font style changes 2022-02-23 16:18:08 -05:00
54aa04d04c Add helper for the new model 2022-02-09 21:17:49 -05:00
01ca269dd3 Remove hash key, not needed 2022-02-09 21:14:15 -05:00
7c89420bbd Change the schema 2022-02-09 21:02:35 -05:00
b95a1965bd Merge branch 'visitor_counter' of https://git.n4vn33t.com/swag/guestbook-ng into visitor_counter 2022-02-09 20:18:23 -05:00
ad2a898c1a Add model for counters 2022-02-09 20:15:52 -05:00
c26f034a3d Set session to 1 day 2022-02-09 19:33:47 -05:00
95c3bc83a8 Handle word wrapping in long words 2022-02-08 23:42:36 -05:00
96f9ab2d30 Begin visitor counter stuff 2022-01-12 17:05:36 -05:00
0804b52d46 Don't let spam be indexed 2022-01-12 15:41:03 -05:00
02355ee08b Implement /spam route 2022-01-12 15:18:34 -05:00
3739016a50 Allow indexing 2022-01-12 14:27:58 -05:00
322ca8c9ca Style tweak for submit button 2022-01-12 13:36:01 -05:00
e69b3ea4c7 Print message ID in hidden span to easily ID posts 2022-01-11 22:13:33 -05:00
706742a212 Merge branch 'main' of https://git.n4vn33t.com/swag/guestbook-ng 2022-01-11 21:13:57 -05:00
920d62cf16 Implement meta tags 2022-01-11 21:12:53 -05:00
02b087a38e Fix post count 2022-01-11 20:15:53 -05:00
53f292ac7c Implement post count 2022-01-11 19:51:45 -05:00
575431237b More tweaks 2022-01-10 22:46:17 -05:00
3e03b82cd0 Some tweaks 2022-01-10 21:57:39 -05:00
3115d6f17d How did I miss this?? 2022-01-10 15:36:25 -05:00
681ed961e8 Just specify Postgres connection string in conf file 2022-01-10 14:18:49 -05:00
467854df49 Merge branch 'main' of https://git.n4vn33t.com/swag/guestbook-ng 2022-01-10 13:45:17 -05:00
361c4d432a Explicit return for the redirect in the /sign route 2022-01-10 13:44:30 -05:00
8d001338f8 Fix Docker instructions 2022-01-10 13:28:43 -05:00
022eb93399 Tag and push commands 2022-01-10 13:16:48 -05:00
Daniel Bowling
770cc23884 Getting things ready to deploy 2022-01-10 12:53:10 -05:00
2d30602907 New TODO 2022-01-10 11:59:34 -05:00
d7c0f715d2 More tests 2022-01-08 22:01:51 -05:00
e4aad2ccbd Validate input 2022-01-08 21:21:22 -05:00
84182fe25b TODOs++ 2022-01-07 22:51:12 -05:00
05cc4cc33c More TODOs 2022-01-07 22:46:04 -05:00
3179628934 Some front-end input validation to hint the user before I do the fun back-end part 2022-01-07 22:43:19 -05:00