1
0
Commit Graph

59 Commits

Author SHA1 Message Date
2904a07088
Make a lang cookie accessible in JS for translation. 2024-09-15 15:03:13 +04:00
802c925450
Set lang if a lang= query set, else look for a cookie, otherwise choose a lang from Accept-Language header. 2024-09-15 00:31:00 +04:00
50ba6bb74b
Introduce i18n. Теперь переведу сайт на русский! 2024-09-14 18:34:22 +04:00
6e693e3b88
Introduced correct canonical link (includes schema://host). 2024-07-04 03:56:57 +04:00
cdabb77c39
Implemented a package for storing program's version. 2024-07-02 04:12:26 +04:00
77aa7a5e63
Call Index template right in-place. 2024-06-19 01:06:33 +04:00
f9dabbc6f9
A set of funcs to serve certain files was replaced by ServeAsset() func where you have to pass a path to an asset within an asset dir. 2024-04-20 04:52:35 +04:00
dca3804090
guestbookOwner was renamed to just owner. Also, pass an owner to web.RSS() instead of a hardcoded nickname. 2024-04-20 04:51:11 +04:00
33cd1dc3b8
Well, actually... Let's hardcode guestbook owner. :) 2023-09-25 01:56:54 +04:00
906f73c8a6
Refactored flags in main.go. 2023-09-24 21:33:08 +04:00
db34c5d249
Made cmd arguments long. 2023-09-23 04:37:48 +04:00
35b48d29e6
In main.go made use of handler's Error func and in Error() func added missing WriteHeader(). 2023-08-13 02:17:47 +04:00
ffbc027d64
Add missing 404 response code. 2023-08-13 01:41:58 +04:00
e1cf7187df
Replaced HTTP server code with a newest one. 2023-08-12 23:53:26 +04:00
a6bec0db75
Made use of httpr.Router.Sub() functionality. 2023-08-12 23:52:52 +04:00
6fe6c856cd
Show Go back on error page, need to pass a referer URL for it. 2023-08-12 23:51:26 +04:00
7ee5939d39
In main.go removed a space between httpr.Handler() statements for mindflow and its category. 2023-07-29 18:08:02 +04:00
023f2d1ac4
Added Privacy page. 2023-06-12 23:05:06 +04:00
af1af0764e
Added /favicon.ico. 2023-06-04 17:48:49 +04:00
f500cf945a
Updated HttpServer in main. 2023-05-27 20:59:38 +04:00
804d46f14e
Made use of my own httpr router. /api/minflow-category was changed to /api/minflow/category. 2023-05-27 20:59:05 +04:00
33dba32226
Renamed mindflowApi methods for posts in main. 2023-05-23 02:41:27 +04:00
aeb481b2ba
Had to do this dirty move, since httprouter complains about paths intersection.
Added /api/mindflow-category endpoints.
2023-05-23 00:21:42 +04:00
3566fc8a58
Added endpoint to delete a category. 2023-05-22 23:38:50 +04:00
2ef1b98fdb
Okay, it conflicts with :id wildcard. Let's then do cleaning on every post deletion/creation/editing. 2023-05-22 23:13:25 +04:00
4e82fbddc1
Added functionality to delete unused categories from a DB. 2023-05-22 23:05:52 +04:00
668075cbe2
Set log to print just a long path to file and line where an error occured. 2023-05-22 21:31:33 +04:00
fc4512a625
Edit a post is actually should be of method PATCH. 2023-05-22 04:14:39 +04:00
1b61434623
Deleted no more needed code for closing of a guestbook DB inside a Handlers struct. 2023-05-22 03:24:03 +04:00
e856a4b930
Endpoints reorganised a little. Handlers for assets are moved out of Handlers struct as a self-sustained funcs. 2023-05-22 03:16:38 +04:00
7a9a6c06f0
Changes for new justguestbook structure. 2023-05-22 01:14:25 +04:00
fb5188d565
Moved mindflowDB init up. 2023-05-19 21:54:28 +04:00
e520526e08
Found and fixed a type in guestbook page flag in main.go. 2023-05-19 21:42:33 +04:00
354c1b01f7
Added Close() method to Mindflow DB. Constructor renamed to New(). 2023-05-14 20:17:30 +04:00
0864526393
Additionally check for IP address validity. 2023-05-14 20:16:49 +04:00
e1871870ea
Shortened flags. 2023-05-14 20:08:29 +04:00
5b4cc67fda
Distinguish sqlite DB for Mindflow as well. 2023-05-14 03:39:16 +04:00
de8f042019
Renamed sqlite DB for guestbook as gbsqlite. 2023-05-14 03:33:55 +04:00
f3288d9869
Added mindflow DB in main.go. 2023-05-14 03:33:37 +04:00
14e25fe088
Added /mindflow/admin endpoint in main. 2023-05-10 03:17:11 +04:00
b75e654ce7
Added sitemap.xml. 2023-05-10 00:16:39 +04:00
64a51018f6
Found a typo in main.go. 2023-05-09 23:52:31 +04:00
f8a8d948a4
Create an instance of DB in main instead. 2023-05-09 23:35:08 +04:00
724e9f1cf6
NotFoundHandler changed from hand.NotFound to http.NotFound. 2023-05-06 23:13:13 +04:00
13053bbc21
HTTP endpoints reorganised. 2023-05-06 23:12:37 +04:00
37aa09cf2e
Added empty GuestbookAdminUpdateReply() method. 2023-03-11 23:38:34 +04:00
912bea6c58
Replace arav.top with arav.su. 2023-03-11 22:45:22 +04:00
fbededb796
Unified endpoint to update and add reply. 2023-02-06 02:41:30 +04:00
c9de5b9e18
Oh, I don't need to create new entries in an admin panel. 2023-02-06 02:04:13 +04:00
87ba488769
Endpoints for guestbook admin panel. 2023-02-06 01:59:06 +04:00