Commit Graph
79 Commits
Author SHA1 Message Date
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 84b37695a6 Add the template for article edit content. 2024-04-19 10:33:36 +03:00
KKlochko e10530507e Add the article rows template. 2024-04-19 10:32:56 +03:00
KKlochko 09bfe9b9a5 Add the articles briefly template. 2024-04-19 10:32:20 +03:00
KKlochko 8f4d83d486 Add the about page template. 2024-04-19 10:30:10 +03:00
KKlochko eabd17eb67 Add the templates for the update form validation. 2024-04-19 10:26:19 +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 4e6d36d98c Update the main layout to ignore validation htmx requests. 2024-04-19 09:40:04 +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 a8fc0ab70c Add the example of .env. 2024-04-19 07:48:03 +03:00
KKlochko 6206b211ec Add the README. 2024-04-19 07:47:48 +03:00
KKlochko b14171da7b Update the footer's text for the white theme. 2024-04-18 22:45:30 +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 a5ffc29eba Update the article blocks to make the content uncentered. 2024-04-18 17:44:08 +03:00
KKlochko da7b6e6122 Add the validation for the /login page. 2024-04-18 17:27:55 +03:00
KKlochko 0d2566c8ce Update the white theme for the login page. 2024-04-18 17:02:06 +03:00
KKlochko 153ccabd23 Update the white theme for the navbar and the footer. 2024-04-18 16:57:07 +03:00
KKlochko f26e028fc4 Update the login template to prevent login if authorized. 2024-04-18 16:47:39 +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 89d6fa229c Add cookie-parser and express-session for the authorization. 2024-04-18 15:07:04 +03:00
KKlochko 6c64fd5609 Update the values for the primary css classes. 2024-04-18 08:52:09 +03:00
KKlochko 8f9f47c73e Update the preview drawer's size to the update drawer's size. 2024-04-15 19:09:01 +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 74f220bcc8 Update ids for the preview modal in the admin panel. 2024-04-15 16:20:09 +03:00
KKlochko 7991d55600 Update the search to update without override other parameters and use alpinejs. 2024-04-15 11:15:17 +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 cc3456fa3b Update the index page to the partial for articles. 2024-04-11 21:29:57 +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 df371f50a6 Update templates to move the navbar to the main layout. 2024-04-11 17:11:02 +03:00
KKlochko 65c8a49182 Update the navbar to highlight depend on the page. 2024-04-11 17:10:13 +03:00
KKlochko b79c1e4134 Add the separators between articles on the index page. 2024-04-11 14:30:34 +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 cbc813924e Update the article_row template to use helpers to make rows concise. 2024-04-10 21:49:22 +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