From fa26e6b0f5af00a9d270124006814a8d1825eadf Mon Sep 17 00:00:00 2001 From: Wout De Puysseleir Date: Thu, 15 Jun 2023 12:36:04 -0700 Subject: [PATCH] Run formatter --- CHANGELOG.md | 10 +++++----- README.md | 2 +- example_project/assets/js/app.js | 4 ++-- example_project/assets/svelte/LiveJson.svelte | 14 +++++++------- example_project/lib/example_web/live/live_chat.ex | 10 +++++----- example_project/mix.exs | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 853678e..f695363 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Added [LiveSvelte Components Macro](https://github.com/woutdp/live_svelte#the-components-macro) - [PR](https://github.com/woutdp/live_svelte/pull/50) +- Added [LiveSvelte Components Macro](https://github.com/woutdp/live_svelte#the-components-macro) - [PR](https://github.com/woutdp/live_svelte/pull/50) ## [0.7.1] - 2023-06-03 @@ -21,18 +21,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Added `pushEventTo` +- Added `pushEventTo` ## [0.6.0] - 2023-05-26 ### Added -- Install instructions on importing LiveSvelte inside `html_helpers` so `<.svelte />` is possible. +- Install instructions on importing LiveSvelte inside `html_helpers` so `<.svelte />` is possible. ### Changed -- Deprecated `LiveSvelte.render` in favor of `LiveSvelte.svelte` -- Now we're using `<.svelte />` instead of `` in the examples +- Deprecated `LiveSvelte.render` in favor of `LiveSvelte.svelte` +- Now we're using `<.svelte />` instead of `` in the examples ## [0.5.1] - 2023-05-06 diff --git a/README.md b/README.md index f7c55e3..7d81b95 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@
# LiveSvelte + [![GitHub](https://img.shields.io/github/stars/woutdp/live_svelte?style=social)](https://github.com/woutdp/live_svelte) [![Hex.pm](https://img.shields.io/hexpm/v/live_svelte.svg)](https://hex.pm/packages/live_svelte) @@ -245,7 +246,6 @@ _Note: that here we use the `pushEvent` function, but you could also use `phx-cl _`pushEventTo` is available too and works exactly the same way as specified in the [documentation](https://hexdocs.pm/phoenix_live_view/js-interop.html#client-hooks-via-phx-hook)._ - #### Create a LiveView ```elixir diff --git a/example_project/assets/js/app.js b/example_project/assets/js/app.js index c983aea..ac3ef2c 100644 --- a/example_project/assets/js/app.js +++ b/example_project/assets/js/app.js @@ -26,8 +26,8 @@ import {getHooks} from "live_svelte" import * as SvelteComponents from "../svelte/**/*" const Hooks = { - ...createLiveJsonHooks(), - ...getHooks(SvelteComponents) + ...createLiveJsonHooks(), + ...getHooks(SvelteComponents), } let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content") diff --git a/example_project/assets/svelte/LiveJson.svelte b/example_project/assets/svelte/LiveJson.svelte index 8cec0fb..3e316dc 100644 --- a/example_project/assets/svelte/LiveJson.svelte +++ b/example_project/assets/svelte/LiveJson.svelte @@ -1,17 +1,17 @@

LiveJson demo

Check the websocket to see how much data is being transferred.

    -
  • - Key Length: {Object.keys(big_data_set).length} -
  • -
  • - Rough byte size: {JSON.stringify(big_data_set).length} -
  • +
  • + Key Length: {Object.keys(big_data_set).length} +
  • +
  • + Rough byte size: {JSON.stringify(big_data_set).length} +
diff --git a/example_project/lib/example_web/live/live_chat.ex b/example_project/lib/example_web/live/live_chat.ex index 3ec42c1..6d38196 100644 --- a/example_project/lib/example_web/live/live_chat.ex +++ b/example_project/lib/example_web/live/live_chat.ex @@ -8,7 +8,7 @@ defmodule ExampleWeb.LiveExample6 do def render(assigns) do ~H"""
-
+ Join
<.Chat - messages={@messages} - name={@name} - class="w-full h-full flex justify-center items-center" - :if={@name} + :if={@name} + messages={@messages} + name={@name} + class="w-full h-full flex justify-center items-center" />
""" diff --git a/example_project/mix.exs b/example_project/mix.exs index 01b9c51..8e974ca 100644 --- a/example_project/mix.exs +++ b/example_project/mix.exs @@ -50,7 +50,7 @@ defmodule Example.MixProject do {:telemetry_poller, "~> 1.0"}, {:floki, ">= 0.30.0", only: :test}, {:phoenix_live_reload, "~> 1.2", only: :dev}, - {:tailwind, "~> 0.1.8", runtime: Mix.env() == :dev}, + {:tailwind, "~> 0.1.8", runtime: Mix.env() == :dev} ] end