diff --git a/package.json b/package.json index d8b7fa3..e957a17 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,9 @@ "ts-loader": "^6.0.1", "typescript": "^3.4.5", "vue": "^2.6.10", - "vue-template-compiler": "^2.6.6" + "vue-class-component": "^7.1.0", + "vue-property-decorator": "^8.1.1", + "vue-template-compiler": "^2.6.10" }, "stylelint": { "extends": "stylelint-config-recess-order" diff --git a/resources/assets/js/checkin.ts b/resources/assets/js/checkin.ts index 1e0a67d..7e54285 100644 --- a/resources/assets/js/checkin.ts +++ b/resources/assets/js/checkin.ts @@ -1,59 +1,9 @@ -function updateTags() { - $('input[name=tags]').val( - $('#tags') - .find('li') - .map(function () { - return $(this).data('value'); - }) - .get() - .join(' ') - ); -} +import Vue from 'vue'; +import TagInput from "./components/TagInput.vue"; -function insertTag(value: string) { - $('