SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/extracts/new_extract/main.js

Summary

Maintainability
A
1 hr
Test Coverage
import { createApp } from 'vue'
import { newStore } from './store/store'
import hotkey from '@/plugins/v-hotkey'
import App from './app.vue'

function init() {
  const app = createApp(App)

  app.use(newStore())
  app.directive('hotkey', hotkey)
  app.mount('#vue-task-new-extract')
}

document.addEventListener('turbolinks:load', () => {
  if (document.querySelector('#vue-task-new-extract')) {
    init()
  }
})