Skip to content

Commit

Permalink
Still not working
Browse files Browse the repository at this point in the history
  • Loading branch information
cibernox committed Oct 6, 2023
1 parent 0998f5e commit b797357
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions assets/js/beacon_live_admin.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import topbar from "../vendor/topbar"
import { CodeEditorHook } from "../../deps/live_monaco_editor/priv/static/live_monaco_editor.esm"

import {getHooks} from "live_svelte"
import * as Components from "../svelte/**/*.svelte"
let Hooks = {}
Hooks.CodeEditorHook = CodeEditorHook

debugger;
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())
Expand Down Expand Up @@ -58,7 +59,7 @@ window.addEventListener("beacon_admin:clipcopy", (event) => {
let socketPath = document.querySelector("html").getAttribute("phx-socket") || "/live"
let csrfToken = document .querySelector("meta[name='csrf-token']") .getAttribute("content")
let liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, {
hooks: Hooks,
hooks: { ...getHooks(Components), ...Hooks },
params: { _csrf_token: csrfToken },
})
liveSocket.connect()
Expand Down

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion priv/static/beacon_live_admin.min.css.map

Large diffs are not rendered by default.

Binary file modified priv/static/beacon_live_admin.min.css.map.gz
Binary file not shown.

0 comments on commit b797357

Please sign in to comment.