mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +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" />`,
|
||||
});
|
||||
Reference in New Issue
Block a user