You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
540 B

  1. import Vue from 'vue';
  2. import { demoNamedEntity as data } from '../components/demo/demo_data';
  3. import DemoApi from '../components/demo/demo_api';
  4. import SequenceLabeling from '../components/sequence_labeling.vue';
  5. Vue.use(require('vue-shortkey'), {
  6. prevent: ['input', 'textarea'],
  7. });
  8. const demoApi = new DemoApi(data, 'start_offset');
  9. new Vue({
  10. el: '#mail-app',
  11. components: { SequenceLabeling },
  12. beforeCreate() {
  13. demoApi.start();
  14. },
  15. beforeDestroy() {
  16. demoApi.stop();
  17. },
  18. template: '<SequenceLabeling />',
  19. });