Finish auth migration, now to make it work
This commit is contained in:
parent
3b553beac6
commit
75ba2eac39
13 changed files with 375 additions and 384 deletions
16
resources/assets/scripts/pterodactyl-shims.d.ts
vendored
16
resources/assets/scripts/pterodactyl-shims.d.ts
vendored
|
@ -1,6 +1,19 @@
|
|||
import Vue from "vue";
|
||||
import {Store} from "vuex";
|
||||
import {FlashInterface} from "./mixins/flash";
|
||||
import {AxiosInstance} from "axios";
|
||||
import {Vue as VueType} from "vue/types/vue";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
X_CSRF_TOKEN: string,
|
||||
_: any,
|
||||
$: any,
|
||||
jQuery: any,
|
||||
axios: AxiosInstance,
|
||||
events: VueType,
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vue/types/options' {
|
||||
interface ComponentOptions<V extends Vue> {
|
||||
|
@ -16,6 +29,7 @@ declare module 'vue/types/options' {
|
|||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$store: Store<any>,
|
||||
$flash: FlashInterface
|
||||
$flash: FlashInterface,
|
||||
route: (name: string, params?: object, absolute?: boolean) => string,
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue