From 107af78925389c2c392f5edfa4833464440bb8be Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Mon, 29 Jul 2024 18:07:44 +0500 Subject: [PATCH] feat: public note list --- lib/comfycamp_web/components/navbar.ex | 4 +- .../controllers/blog_controller.ex | 7 -- lib/comfycamp_web/controllers/blog_html.ex | 8 -- .../controllers/blog_html/index.html.heex | 1 - .../controllers/notes_controller.ex | 76 +--------------- .../controllers/notes_editor_controller.ex | 89 +++++++++++++++++++ .../controllers/notes_editor_html.ex | 5 ++ .../edit.html.heex | 0 .../notes_editor_html/index.html.heex | 17 ++++ .../new.html.heex | 0 .../note_form.html.heex | 0 .../notes_editor_html/show.html.heex | 13 +++ lib/comfycamp_web/controllers/notes_html.ex | 3 + .../controllers/notes_html/index.html.heex | 23 ++--- .../controllers/notes_html/show.html.heex | 11 ++- lib/comfycamp_web/router.ex | 4 +- 16 files changed, 147 insertions(+), 114 deletions(-) delete mode 100644 lib/comfycamp_web/controllers/blog_controller.ex delete mode 100644 lib/comfycamp_web/controllers/blog_html.ex delete mode 100644 lib/comfycamp_web/controllers/blog_html/index.html.heex create mode 100644 lib/comfycamp_web/controllers/notes_editor_controller.ex create mode 100644 lib/comfycamp_web/controllers/notes_editor_html.ex rename lib/comfycamp_web/controllers/{notes_html => notes_editor_html}/edit.html.heex (100%) create mode 100644 lib/comfycamp_web/controllers/notes_editor_html/index.html.heex rename lib/comfycamp_web/controllers/{notes_html => notes_editor_html}/new.html.heex (100%) rename lib/comfycamp_web/controllers/{notes_html => notes_editor_html}/note_form.html.heex (100%) create mode 100644 lib/comfycamp_web/controllers/notes_editor_html/show.html.heex diff --git a/lib/comfycamp_web/components/navbar.ex b/lib/comfycamp_web/components/navbar.ex index 14424c2..02f1694 100644 --- a/lib/comfycamp_web/components/navbar.ex +++ b/lib/comfycamp_web/components/navbar.ex @@ -17,8 +17,8 @@ defmodule ComfycampWeb.NavBar do ~H"""