diff --git a/lib/chiya/notes/note.ex b/lib/chiya/notes/note.ex
index b5f9dbe..42c14ab 100644
--- a/lib/chiya/notes/note.ex
+++ b/lib/chiya/notes/note.ex
@@ -8,7 +8,11 @@ defmodule Chiya.Notes.Note do
@derive {Jason.Encoder, only: [:id, :name, :content, :slug, :channels]}
schema "notes" do
field :content, :string
- field :kind, Ecto.Enum, values: [:post, :bookmark], default: :post
+
+ field :kind, Ecto.Enum,
+ values: [:post, :bookmark],
+ default: :post
+
field :name, :string
field :published_at, :naive_datetime
field :slug, NoteSlug.Type
diff --git a/lib/chiya/notes/note_import.ex b/lib/chiya/notes/note_import.ex
index 66627b0..7204fa2 100644
--- a/lib/chiya/notes/note_import.ex
+++ b/lib/chiya/notes/note_import.ex
@@ -1,13 +1,13 @@
defmodule Chiya.Notes.NoteImport do
- import Ecto.Changeset
+ import Ecto.Changeset
- defstruct [:file]
+ defstruct [:file]
- @types %{file: :string}
+ @types %{file: :string}
- def change_note_import(params) do
- {%Chiya.Notes.NoteImport{}, @types}
- |> cast(params, Map.keys(@types))
- |> validate_required(:file)
- end
-end
\ No newline at end of file
+ def change_note_import(params) do
+ {%Chiya.Notes.NoteImport{}, @types}
+ |> cast(params, Map.keys(@types))
+ |> validate_required(:file)
+ end
+end
diff --git a/lib/chiya/notes/references.ex b/lib/chiya/notes/references.ex
index 2a24e37..d50d152 100644
--- a/lib/chiya/notes/references.ex
+++ b/lib/chiya/notes/references.ex
@@ -75,7 +75,6 @@ defmodule Chiya.Notes.References do
end)
end
-
def update_references({:ok, note}, attrs) do
new_reference_slugs = get_reference_ids(attrs["content"])
old_reference_slugs = Enum.map(note.links_from, fn n -> n.slug end)
diff --git a/lib/chiya_web/components/core_components.ex b/lib/chiya_web/components/core_components.ex
index 8437182..0a0400f 100644
--- a/lib/chiya_web/components/core_components.ex
+++ b/lib/chiya_web/components/core_components.ex
@@ -321,8 +321,11 @@ defmodule ChiyaWeb.CoreComponents do
attr :prompt, :string, default: nil, doc: "the prompt for select inputs"
attr :options, :list, doc: "the options to pass to Phoenix.HTML.Form.options_for_select/2"
attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs"
- attr :rest, :global, include: ~w(autocomplete accept cols disabled form max maxlength min minlength
+
+ attr :rest, :global,
+ include: ~w(autocomplete accept cols disabled form max maxlength min minlength
pattern placeholder readonly required rows size step)
+
slot :inner_block
def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
diff --git a/lib/chiya_web/components/layouts/public.html.heex b/lib/chiya_web/components/layouts/public.html.heex
index 4cbcab6..ae5dcab 100644
--- a/lib/chiya_web/components/layouts/public.html.heex
+++ b/lib/chiya_web/components/layouts/public.html.heex
@@ -16,4 +16,4 @@
<.flash_group flash={@flash} />
<%= @inner_content %>
-
\ No newline at end of file
+
diff --git a/lib/chiya_web/components/layouts/root_public.html.heex b/lib/chiya_web/components/layouts/root_public.html.heex
index 1ff835e..fa52f29 100644
--- a/lib/chiya_web/components/layouts/root_public.html.heex
+++ b/lib/chiya_web/components/layouts/root_public.html.heex
@@ -32,10 +32,12 @@
<%= raw(@settings.custom_html) %>
-