1
0
Commit Graph

302 Commits

Author SHA1 Message Date
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
1330cbd614
Changed manage-categories form renamed new category into category name. Added Add button. 2023-05-23 00:07:13 +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
67c6902217
Oh, forgot about other posts in mindflow admin. 2023-05-22 23:16:56 +04:00
51b69e87cf
Clean unused categories on every action with posts in mindflow. 2023-05-22 23:15:20 +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
f04dbb48a3
Fix textarea's width in mindflow admin. 2023-05-22 23:06:47 +04:00
1304399232
Added DeleteCategory() to Mindflow interface. 2023-05-22 23:06:14 +04:00
4e82fbddc1
Added functionality to delete unused categories from a DB. 2023-05-22 23:05:52 +04:00
0fbc121e38
Place Category and Post types into one mindflow.go. 2023-05-22 22:35:47 +04:00
ecf9da5b3d
Added a header for a form on mindflow admin page. 2023-05-22 21:40:12 +04:00
ab3174f543
Added closing of stmtCategoryGetAll. 2023-05-22 21:39:55 +04:00
089ef27cef
Added delete category query. 2023-05-22 21:39:38 +04:00
3b78aa64e2
Get categories from a DB. 2023-05-22 21:32:09 +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
a3b25f7ea5
Week part of version was incremented to 21. 2023-05-22 05:23:39 +04:00
2e5bdc2b6f
Updated mindflow_admin template and written JS to make it work. 2023-05-22 05:22:47 +04:00
5095c7649d
Implemented getting all categories. 2023-05-22 05:21:53 +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
fc4512a625
Edit a post is actually should be of method PATCH. 2023-05-22 04:14:39 +04:00
91a76fb9d7
Found a copy-paste typo, fixed it. stmtPostNew -> stmtCategoryNew. 2023-05-22 04:10:04 +04:00
e51ceb7388
Removed call of UNIXEPOCH(). Now it works without it. 2023-05-22 04:02:17 +04:00
7bab607e25
Gather mindflow posts in RSS. 2023-05-22 03:25:14 +04:00