diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js
index e3bf241..5b5a21f 100644
--- a/assets/tailwind.config.js
+++ b/assets/tailwind.config.js
@@ -1,26 +1,40 @@
// See the Tailwind configuration guide for advanced usage
// https://tailwindcss.com/docs/configuration
-const plugin = require("tailwindcss/plugin")
+const plugin = require("tailwindcss/plugin");
module.exports = {
- content: [
- "./js/**/*.js",
- "../lib/*_web.ex",
- "../lib/*_web/**/*.*ex"
- ],
+ content: ["./js/**/*.js", "../lib/*_web.ex", "../lib/*_web/**/*.*ex"],
theme: {
extend: {
colors: {
brand: "#FD4F00",
- }
+ },
},
},
plugins: [
require("@tailwindcss/forms"),
- plugin(({addVariant}) => addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])),
- plugin(({addVariant}) => addVariant("phx-click-loading", [".phx-click-loading&", ".phx-click-loading &"])),
- plugin(({addVariant}) => addVariant("phx-submit-loading", [".phx-submit-loading&", ".phx-submit-loading &"])),
- plugin(({addVariant}) => addVariant("phx-change-loading", [".phx-change-loading&", ".phx-change-loading &"]))
- ]
-}
+ require("@tailwindcss/typography"),
+ plugin(({ addVariant }) =>
+ addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])
+ ),
+ plugin(({ addVariant }) =>
+ addVariant("phx-click-loading", [
+ ".phx-click-loading&",
+ ".phx-click-loading &",
+ ])
+ ),
+ plugin(({ addVariant }) =>
+ addVariant("phx-submit-loading", [
+ ".phx-submit-loading&",
+ ".phx-submit-loading &",
+ ])
+ ),
+ plugin(({ addVariant }) =>
+ addVariant("phx-change-loading", [
+ ".phx-change-loading&",
+ ".phx-change-loading &",
+ ])
+ ),
+ ],
+};
diff --git a/config/dev.exs b/config/dev.exs
index d11222a..2dfd7db 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -60,7 +60,7 @@ config :swornforged, SwornforgedWeb.Endpoint,
]
# Enable dev routes for dashboard and mailbox
-config :swornforged, dev_routes: true
+config :swornforged, dev_routes: true, datasworn_debug: true
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
diff --git a/lib/swornforged_web/components/core_components.ex b/lib/swornforged_web/components/core_components.ex
index a652731..2107669 100644
--- a/lib/swornforged_web/components/core_components.ex
+++ b/lib/swornforged_web/components/core_components.ex
@@ -401,31 +401,6 @@ defmodule SwornforgedWeb.CoreComponents do
"""
end
- @doc """
- Renders a header with title.
- """
- attr :class, :string, default: nil
-
- slot :inner_block, required: true
- slot :subtitle
- slot :actions
-
- def header(assigns) do
- ~H"""
-
- <%= render_slot(@subtitle) %>
-
- <%= render_slot(@inner_block) %>
-
-
+ Source
+
+ <%= get_in(@item, ["Source", "Title"]) %>
+
+ p.<%= get_in(@item, ["Source", "Page"]) %>
+
+
<%= Jason.encode!(@item, pretty: true, escape: :html_safe) %>
+ Roll | +Result | +
---|---|
<%= row["Floor"] %>-<%= row["Ceiling"] %> | ++ <%= raw(Earmark.as_html!(row["Result"], compact_output: true)) %> + | +
Roll | +Result | +
---|---|
<%= row["Floor"] %>-<%= row["Ceiling"] %> | ++ <%= raw(Earmark.as_html!(row["Result"], compact_output: true)) %> + | +