1
0
Commit Graph

178 Commits

Author SHA1 Message Date
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
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
183eb74ada
Removed -stdbuf -stdlib flags from go:generate jade. 2023-05-22 03:11:12 +04:00
4739827b32
Updated justguestbook to v1.3.2. 2023-05-22 03:10:40 +04:00
e561b28106
Ignore jade.go. 2023-05-22 03:10:20 +04:00
37b8003354
Remove jade.go as well. And added -f flag to ignore non-existing files. 2023-05-22 03:10:09 +04:00
054e4d6a4e
Remove jade.go since it is being created while templates are compiling. 2023-05-22 03:09:14 +04:00
7a9a6c06f0
Changes for new justguestbook structure. 2023-05-22 01:14:25 +04:00
ee35bb38ea
Updated justguestbook package in go.{mod,sum}. 2023-05-22 01:13:59 +04:00
2938f26f3a
Fixed misplaced if err != nil {} in mindflow page handlers. 2023-05-20 06:28:23 +04:00
76830d4468
Added OR IGNORE to an INSERT statement in schema. 2023-05-20 06:27:45 +04:00
b7de10e790
Added mindflow_admin.js file. Currently empty. 2023-05-20 06:27:19 +04:00
97b4887bc2
Fixed GetAll query. 2023-05-20 06:26:52 +04:00
a0995a0e97
Fixed GetAll() method. 2023-05-20 06:26:30 +04:00
0f9b365b2c
Changed program's flags to a new shortened ones. 2023-05-20 02:09:52 +04:00
cd0d627914
Added mindflow DB handling. 2023-05-19 21:54:46 +04:00
fb5188d565
Moved mindflowDB init up. 2023-05-19 21:54:28 +04:00
bf0787d8b6
Fixed typos in mindflow's SQL schema. 2023-05-19 21:53:44 +04:00
e520526e08
Found and fixed a type in guestbook page flag in main.go. 2023-05-19 21:42:33 +04:00
5efb179840
Week part of a version was incremented. 2023-05-19 21:41:13 +04:00
8b59f8f34d
Updated meta description for some pages. 2023-05-19 21:40:16 +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