Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 0 additions & 53 deletions .github/workflows/elixir.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/playwright.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/test.yaml

This file was deleted.

6 changes: 2 additions & 4 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[tools]
elixir = "1.16.1"
erlang = "26"
node = "20"
go = "1.20"
erlang = "27"
elixir = "1.17"
215 changes: 0 additions & 215 deletions app/.credo.exs

This file was deleted.

4 changes: 2 additions & 2 deletions app/.formatter.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
import_deps: [:ecto, :ecto_sql, :phoenix],
subdirectories: ["priv/*/migrations"],
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}", "priv/*/seeds.exs"],
plugins: [Styler]
plugins: [Phoenix.LiveView.HTMLFormatter],
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"]
]
2 changes: 0 additions & 2 deletions app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ bubbli-*.tar
npm-debug.log
/assets/node_modules/

/priv/plts/*.plt
/priv/plts/*.plt.hash
27 changes: 27 additions & 0 deletions app/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,30 @@
// import "some-package"
//

// Include phoenix_html to handle method=PUT/DELETE in forms and buttons.
import "phoenix_html"
// Establish Phoenix Socket and LiveView configuration.
import {Socket} from "phoenix"
import {LiveSocket} from "phoenix_live_view"
import topbar from "../vendor/topbar"

let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, {
longPollFallbackMs: 2500,
params: {_csrf_token: csrfToken}
})

// Show progress bar on live navigation and form submits
topbar.config({barColors: {0: "#29d"}, shadowColor: "rgba(0, 0, 0, .3)"})
window.addEventListener("phx:page-loading-start", _info => topbar.show(300))
window.addEventListener("phx:page-loading-stop", _info => topbar.hide())

// connect if there are any LiveViews on the page
liveSocket.connect()

// expose liveSocket on window for web console debug logs and latency simulation:
// >> liveSocket.enableDebug()
// >> liveSocket.enableLatencySim(1000) // enabled for duration of browser session
// >> liveSocket.disableLatencySim()
window.liveSocket = liveSocket

Loading