Add selecting next/previous tunit and highlight it

This commit is contained in:
Thelonius Kort
2023-03-05 20:56:19 +01:00
parent 4e6c516cb6
commit e20f8e33ee
5 changed files with 81 additions and 9 deletions

View File

@ -23,11 +23,14 @@ import {LiveSocket} from "phoenix_live_view"
import topbar from "../vendor/topbar"
import {DarkModeHook} from './dark-mode-widget'
import {TranslationFormHook} from "./translation-form"
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, {
params: {_csrf_token: csrfToken},
hooks: {dark_mode_widget: DarkModeHook},
hooks: {translation_form: TranslationFormHook,
// tunit_editor: TunitEditorHook,
dark_mode_widget: DarkModeHook},
})
// Show progress bar on live navigation and form submits