1
0
Commit Graph

377 Commits

Author SHA1 Message Date
7b253a16ed
Updated httpr to 0.2.0. 2023-05-28 04:31:39 +04:00
5f1724679d
In mindflow_admin.js changed mindflow category api path to a new one. 2023-05-27 21:04:45 +04:00
7180b7f35e
Replaced julienschmidt/httprouter with my httpr. 2023-05-27 21:01:13 +04:00
58887ac5e6
Updated Makefile and PKGBUILD. Version now is 23.21.2. 2023-05-27 21:00:22 +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
fa25cff2de
Removed httprouter from HttpServer. 2023-05-27 20:57:00 +04:00
2324d720f5
Replaced GetURLParam with httpr.Param. 2023-05-27 20:56:32 +04:00
7d9dc27411
Replaced error pages with a new one. 2023-05-27 20:47:53 +04:00
d828c3adde
All error pages was replaced by a universal error page. 2023-05-27 20:47:06 +04:00
bf3cb9f9bf
Okay, you need to use proxy_pass for every location inside a proxied app. 2023-05-23 23:30:06 +04:00
6b7d0485b4
For some reason justguestbook package isn't being automatically imported when building a package. 2023-05-23 05:04:28 +04:00
36cac99f48
guestbook was replaced by justguestbook in templates. 2023-05-23 04:57:35 +04:00
f95fc841ce
Fixed date format in stuff.pug. 2023-05-23 04:55:27 +04:00
439db86bbd
Added location /mindflow/admin and the second empty line above location /guestbook/admin to separate a section. 2023-05-23 04:48:44 +04:00
132a615236
Comment out Onion-Location header because my website is not available as Tor hidden service due to a block in Russia. 2023-05-23 04:40:55 +04:00
60e71378ba
Let's reduce a mess by splitting APIs by distinct files. 2023-05-23 04:36:04 +04:00
d18374e72a
Put Categories() down under the New*, Edit*, and DeleteCategory methods. 2023-05-23 04:31:22 +04:00
ca51617f0e
There is no need in DeleteUnusedCategories() so let's get rid of it. 2023-05-23 04:29:06 +04:00
f1d6f5c736
In PostID() change date location to UTC and use seconds as part of ID as well. 2023-05-23 04:18:07 +04:00
68e5f0129a
Assigned IDs for articles in their .meta files. 2023-05-23 04:11:17 +04:00
ef316defd9
For an article added an ID field used to sort the articles by their appearing, rather by a date. 2023-05-23 04:10:50 +04:00
062139185c
Instead of populating an articles table by hand, load it from articles fs. 2023-05-23 04:10:02 +04:00
f18cc3c44e
Code for articles fs moved out to a separate articles.go file.
Implemented an init func that preload articles.
Implemented GetArticlesMetadata() that returns metadata for articles used on the Stuff page.
2023-05-23 04:08:58 +04:00
db41e25c84
A one minute googling gave me a resolve to my question why Firefox was failing with a NetworkError. That's because I forgot about preventDefault()! 2023-05-23 03:41:02 +04:00
45c2ff6505
Check if we should not show a website. 2023-05-23 03:28:21 +04:00
b512af25a3
Check if line is empty. 2023-05-23 03:28:04 +04:00
18d45e5a92
Removed replacing of \\n with \n. 2023-05-23 03:27:30 +04:00
aac097feb8
Fixed mindflow API handlers. Now they are working. 2023-05-23 03:04:17 +04:00
86c1d1e00c
Updated CSS for mindflow admin. 2023-05-23 03:03:37 +04:00
73cd9cd05b
Set active a category of a post. 2023-05-23 03:03:04 +04:00
f6db24b12a
Wrong place for !=, lol. 2023-05-23 03:02:20 +04:00
aeead5e378
New, Edit, and Delete was renamed to *Post. 2023-05-23 02:47:29 +04:00
561425b739
Accept a Category instead of just a name string. 2023-05-23 02:46:22 +04:00
2fb6176b50
Added NewCategory() func. And now NewCategory() method needs a Category as an arg. 2023-05-23 02:44:54 +04:00
63dbef6b37
Fixed typos where post-id was instead of category. 2023-05-23 02:44:10 +04:00
33dba32226
Renamed mindflowApi methods for posts in main. 2023-05-23 02:41:27 +04:00
73f98c78de
Also delete SQL query file for categoryByID. 2023-05-23 00:50:54 +04:00
21444568cc
Fixed a copy-paste typo with stmtPostEdit -> stmtCategoryEdit. 2023-05-23 00:49:40 +04:00
16e2ff6ebc
In Mindflow interface renamed all methods that work with Post into *Post(). 2023-05-23 00:47:10 +04:00
a8a7e6427d
Well, GetCategoryByID() actually has no use. Let's get rid of it. 2023-05-23 00:44:42 +04:00
aeba6d6ea5
Updated justcaptcha version and description.
Added justguestbook.
2023-05-23 00:38:37 +04:00
c7f421680e
In case a category would consist of multiple words replace white space with a dot. 2023-05-23 00:29:16 +04:00
33505a12d7
Subversion was incremented. 2023-05-23 00:23:13 +04:00
f9e9e54aed
Handle manage-categories form. 2023-05-23 00:22:29 +04:00
0e28f8a16b
Impl. category editing. 2023-05-23 00:22:12 +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
714d4fdb73
Removed DeleteUnusedCategories(). Impl. NewCategory(). 2023-05-23 00:20:01 +04:00
770273bd57
Oh, and this option was off of its place. 2023-05-23 00:09:14 +04:00
05a2686c3a
Oops, fucked up nesting. Fixed. 2023-05-23 00:08:15 +04:00