Commit Graph
46 Commits
Author SHA1 Message Date
KKlochko a0ecb1dc58 Update the format for server module. 2024-04-19 10:54:57 +03:00
KKlochko 2d9add29e6 Update to remove unused variable for the validation route. 2024-04-19 10:54:46 +03:00
KKlochko 0c3aa99918 Fix the query for the brief article. 2024-04-19 10:49:26 +03:00
KKlochko 782d66aed0 Update the handler to get a article's row briefly. 2024-04-19 09:53:09 +03:00
KKlochko 88a9eb7749 Add a validation for the edit article form. 2024-04-19 09:41:31 +03:00
KKlochko f493b47320 Add a validation for the create form. 2024-04-19 09:20:57 +03:00
KKlochko 634f7e41e2 Add a validation for the about form in the admin panel. 2024-04-19 08:24:18 +03:00
KKlochko 60f943d2ca Add the about page and the about content form to the admin panel. 2024-04-18 22:09:28 +03:00
KKlochko 38e89bc2db Add CRU for the about content. 2024-04-18 22:07:58 +03:00
KKlochko da7b6e6122 Add the validation for the /login page. 2024-04-18 17:27:55 +03:00
KKlochko 69ef4e3069 Add the logout item to the navbar and the footer. 2024-04-18 16:47:08 +03:00
KKlochko 16d8e1f140 Add cookie-parser and session to use authorization. 2024-04-18 16:43:15 +03:00
KKlochko 3f1ba5a556 Add the middleware to prevent access to the admin panel if authorized. 2024-04-18 16:28:12 +03:00
KKlochko d70f03aee4 Add the authorization to login and logout as the admin. 2024-04-18 15:36:53 +03:00
KKlochko a1d48ceb64 Add a function to get the SECRET enviroment variable. 2024-04-18 15:09:12 +03:00
KKlochko 8ee9b5b595 Add a drawer, routes, handlers to update an article. 2024-04-15 19:08:24 +03:00
KKlochko 09ce47614a Add the function to update an article. 2024-04-15 18:39:56 +03:00
KKlochko 6d3eefcd35 Add the search for articles for the admin panel. 2024-04-14 22:09:00 +03:00
KKlochko dd72f8d489 Update the index page to save the search in the query parameters. 2024-04-14 21:36:36 +03:00
KKlochko 9d2f940a07 Add the urls of main pages for navbar. 2024-04-11 21:19:11 +03:00
KKlochko 2f82f419d7 Add the search for articles on the index page. 2024-04-11 21:18:44 +03:00
KKlochko e464e9d70f Add auto-creating tables if they do not exists. 2024-04-11 17:12:01 +03:00
KKlochko 65c8a49182 Update the navbar to highlight depend on the page. 2024-04-11 17:10:13 +03:00
KKlochko 76cd096f70 Add the lazy loading for articles on the index page. 2024-04-11 14:29:01 +03:00
KKlochko c24fce08f3 Update the queries to get articles in the order new first. 2024-04-11 12:55:09 +03:00
KKlochko 9d7ec9888b Add a helper to format an article's timestamp. 2024-04-11 11:17:42 +03:00
KKlochko 9c0e888284 Add the helpers for timestamp and brief contents. 2024-04-10 21:47:10 +03:00
KKlochko 5ce17d3aa8 Update the admin panel to show brief contents. 2024-04-10 21:42:27 +03:00
KKlochko 72b9e604ca Add functions to get an article or articles with the brief content. 2024-04-10 21:41:46 +03:00
KKlochko d8d8340aa2 Add the route and handler to delete a article. 2024-04-10 12:48:32 +03:00
KKlochko 9177e42fb0 Add the create modal, a route, a handler to create a article. 2024-04-10 12:46:09 +03:00
KKlochko 72cbb71d55 Add the delete-article to delete an article by the id. 2024-04-09 20:51:37 +03:00
KKlochko 20ed9e09dc Add a feature to preview a article for the admin panel. 2024-04-09 19:49:34 +03:00
KKlochko f78df3d232 Add the routes and handlers for the admin panel. 2024-04-02 14:52:24 +03:00
KKlochko 2b1ea5d806 Add function to insert a new article. 2024-04-02 13:28:27 +03:00
KKlochko 46f017d716 Add the handler factories for index and article pages. 2024-04-01 21:33:46 +03:00
KKlochko bfef190c91 Update the get-article to return data as a cljs map without arrays. 2024-04-01 21:22:21 +03:00
KKlochko ff2ad7de9d Add the express-handlebars as a template engine. 2024-04-01 20:55:41 +03:00
KKlochko 1ad0610f19 Add a function to get an article by id. 2024-03-27 17:12:29 +02:00
KKlochko c7223f0a00 Add the get-articles to read all articles. 2024-03-27 16:19:53 +02:00
KKlochko 3b70a1a497 Add a function to create tables. 2024-03-27 16:16:49 +02:00
KKlochko 5954224327 Add the db module with functions to create the connection. 2024-03-27 15:57:55 +02:00
KKlochko 50521a8cc9 Add the environment variables for database credentials. 2024-03-27 15:55:56 +02:00
KKlochko 39b8c633b0 Update to move server logic to the server module. 2024-03-27 14:40:25 +02:00
KKlochko a092283cf2 Add the environment variables support. 2024-03-27 14:28:44 +02:00
KKlochko bd8d737758 Add the simple endpoint and the configuration. 2024-03-26 21:07:26 +02:00