Commit graph

17 commits

Author SHA1 Message Date
Zed A. Shaw
7125bc2d2a All the pages are working again, but Alpine is insanely frustrating. 2025-08-02 13:56:39 -04:00
Zed A. Shaw
e4153fd74a Created a common.Page function that returns a function to render a page from a view. 2025-07-26 22:44:09 -04:00
Zed A. Shaw
ec7298cce0 Refactor everything that's used all over into a common/ package and sync files from static/ into public/ so that public's not in the git. 2025-07-25 11:35:04 -04:00
Zed A. Shaw
d481c260c5 Forgot that squirrel needs the =? on Where so switched to using sq.Eq all the time. 2025-07-15 00:10:58 -04:00
Zed A. Shaw
77e4c3fa5b I can use the isdefault validator to make sure that a form field doesn't set a data field, but that may not be the best way. 2025-07-11 12:10:45 -04:00
Zed A. Shaw
d095bc9ff4 Now can alternatively generate a static page for a URL from pages, or dynamically return it with c.Render from views. Did this for games and streams. 2025-07-10 11:46:56 -04:00
Zed A. Shaw
d9a4c226de No need to auth getting a list of streams, that's public. 2025-07-06 01:00:01 -04:00
Zed A. Shaw
3bd8d38847 Managed to get a simple and NOT SECURE login system going. 2025-07-06 00:38:01 -04:00
Zed A. Shaw
f476605ecf Came up with the pages/ directory that's templates which are rendered into public for the static pages. 2025-07-04 11:31:15 -04:00
Zed A. Shaw
facc691343 Hot garbage but that's the idea. It will render only one page. 2025-07-04 00:43:19 -04:00
Zed A. Shaw
b9d5dbb2e9 Tinkering with how to do a 'check view, then static' style of templates, but maybe I need to do a generator? 2025-06-29 22:47:03 -04:00
Zed A. Shaw
35d1b06a79 Test can now register a user and log in. 2025-06-29 13:30:40 -04:00
Zed A. Shaw
45c541ee7c User registration now works. 2025-06-27 12:37:07 -04:00
Zed A. Shaw
eaaf309260 Now have a basic auth library for doing bcrypt auth. 2025-06-27 12:02:05 -04:00
Zed A. Shaw
b0c4144987 Can now set an auth cookie to check for auth, but I should see what it takes to make a middleware. 2025-06-26 16:50:22 -04:00
Zed A. Shaw
05788e5fbb Very simple dumb login that has no password hashing. 2025-06-25 01:25:00 -04:00
Zed A. Shaw
bac4472c3a Apparently for 2 weeks (yes 2 whole fucking weeks) I was using NamedExec wrong instead of MustExec so inserts haven't worked since then. Other than that, this is a more cleaned up MVC style setup than before. 2025-06-22 02:48:02 -04:00