1
0
Commit Graph

71 Commits

Author SHA1 Message Date
6fe6c856cd
Show Go back on error page, need to pass a referer URL for it. 2023-08-12 23:51:26 +04:00
a5acbe4029
Updated justcaptcha dependency. 2023-08-12 22:58:54 +04:00
5802410fa4
GetArticlesMetadata() -> GetArticleMetadata() 2023-07-29 17:59:36 +04:00
a81375fc34
Removed ability to create new category when editing/creating a post. 2023-07-23 23:12:14 +04:00
023f2d1ac4
Added Privacy page. 2023-06-12 23:05:06 +04:00
0b60297031
Log why gb entries weren't loaded on a gb page. 2023-06-04 18:13:29 +04:00
9d84411d73
In MindflowAdmin don't log these errors, just show me instead. 2023-06-04 18:12:53 +04:00
405bc6d2d7
Moved misplaced error handler, added Error(...) to show what error happened. 2023-06-04 18:08:21 +04:00
339fbe354d
Added missing space between / and status text. 2023-06-04 18:06:54 +04:00
af1af0764e
Added /favicon.ico. 2023-06-04 17:48:49 +04:00
99f76234a0
Made a func cleanupNewlines() to replace repeats across handlers. 2023-05-28 04:52:09 +04:00
7a5532e1fb
Removed unneeded func AssetsFS(). 2023-05-28 04:45:15 +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
60e71378ba
Let's reduce a mess by splitting APIs by distinct files. 2023-05-23 04:36:04 +04:00
062139185c
Instead of populating an articles table by hand, load it from articles fs. 2023-05-23 04:10:02 +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
aeead5e378
New, Edit, and Delete was renamed to *Post. 2023-05-23 02:47:29 +04:00
16e2ff6ebc
In Mindflow interface renamed all methods that work with Post into *Post(). 2023-05-23 00:47:10 +04:00
714d4fdb73
Removed DeleteUnusedCategories(). Impl. NewCategory(). 2023-05-23 00:20:01 +04:00
e573870503
Moved category handlers to the end. 2023-05-22 23:40:21 +04:00
3566fc8a58
Added endpoint to delete a category. 2023-05-22 23:38:50 +04:00
a35b1a336b
Check for error here is not needed. 2023-05-22 23:24:35 +04:00
51b69e87cf
Clean unused categories on every action with posts in mindflow. 2023-05-22 23:15:20 +04:00
4e82fbddc1
Added functionality to delete unused categories from a DB. 2023-05-22 23:05:52 +04:00
3b78aa64e2
Get categories from a DB. 2023-05-22 21:32:09 +04:00
38e5d9e4bf
GetAll() method was renamed to Posts(). 2023-05-22 05:21:00 +04:00
ccde2d9e52
Implemented Edit and Delete endpoints. 2023-05-22 05:18:50 +04:00
7bab607e25
Gather mindflow posts in RSS. 2023-05-22 03:25:14 +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
2938f26f3a
Fixed misplaced if err != nil {} in mindflow page handlers. 2023-05-20 06:28:23 +04:00
cd0d627914
Added mindflow DB handling. 2023-05-19 21:54:46 +04:00
83720a317e
Create new category implemented. 2023-05-14 03:51:35 +04:00
f12ce11b7f
Oh, replaced SQLiteMindflow with Mindflow interface. 2023-05-14 03:38:17 +04:00
8cbd8f143f
New handler for Mindflow. 2023-05-14 03:36:39 +04:00
ee486aefdf
Added MindflowAdmin page handler and updated mindflow.Post. 2023-05-10 03:17:58 +04:00
b75e654ce7
Added sitemap.xml. 2023-05-10 00:16:39 +04:00
240a8c389e
Added message text new line filtering for reply. 2023-05-09 23:53:48 +04:00
66be82d6b2
Fixed Content-Type checking. Get DB as an argument. 2023-05-09 23:37:11 +04:00
6ce598d193
Instead of creating an instance get it as an argument. 2023-05-09 23:36:12 +04:00
a664bd9c5b
A separate file with API handlers created. 2023-05-06 23:13:31 +04:00
a736cc508f
Removed old CAPTCHA and guestbook admin handlers from Handlers struct. 2023-05-06 23:11:04 +04:00
42846b8d7a
gbsqlite.SQLiteDatabase -> guestbook.Guestbook. 2023-05-06 23:10:18 +04:00
78814bf806
Added PATCH HTTP method. 2023-05-06 23:09:49 +04:00
0aa6651fab
Error handlers was made into independent funcs. 2023-05-06 23:09:25 +04:00