Migrate more components to TS

This commit is contained in:
Dane Everitt 2018-12-30 15:31:41 -08:00
parent 085da72934
commit 2a0d649b2a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
13 changed files with 320 additions and 328 deletions

View file

@ -0,0 +1,11 @@
import Vue from 'vue';
export default Vue.component('csrf', {
data: function () {
return {
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
};
},
template: `<input type="hidden" name="_token" v-bind:value="X_CSRF_TOKEN" />`,
});

View file

@ -1,14 +0,0 @@
<template>
<input type="hidden" name="_token" v-bind:value="X_CSRF_TOKEN" />
</template>
<script>
export default {
name: 'csrf',
data: function () {
return {
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
};
},
}
</script>