Migrate more components to TS
This commit is contained in:
parent
085da72934
commit
2a0d649b2a
13 changed files with 320 additions and 328 deletions
11
resources/assets/scripts/components/forms/CSRF.ts
Normal file
11
resources/assets/scripts/components/forms/CSRF.ts
Normal 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" />`,
|
||||
});
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue