mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Migrate more components to TS
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user