mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-23 08:43:46 +02:00
Cleanup socketio stuff for typescript
This commit is contained in:
@@ -1,24 +1,19 @@
|
||||
import User, {UserData} from '../../models/user';
|
||||
import {ActionContext} from "vuex";
|
||||
import {AuthenticationState} from "../types";
|
||||
|
||||
const route = require('./../../../../../vendor/tightenco/ziggy/src/js/route').default;
|
||||
|
||||
type LoginAction = {
|
||||
type: 'login',
|
||||
user: string,
|
||||
password: string,
|
||||
}
|
||||
|
||||
type UpdateEmailAction = {
|
||||
type: 'updateEmail',
|
||||
email: string,
|
||||
password: string,
|
||||
}
|
||||
|
||||
export type AuthenticationState = {
|
||||
user: null | User,
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import Server, {ServerData} from '../../models/server';
|
||||
import {ActionContext} from "vuex";
|
||||
import {DashboardState} from "../types";
|
||||
const route = require('./../../../../../vendor/tightenco/ziggy/src/js/route').default;
|
||||
|
||||
export type DashboardState = {
|
||||
searchTerm: string,
|
||||
servers: Array<Server>,
|
||||
};
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
|
||||
@@ -2,17 +2,7 @@
|
||||
import route from '../../../../../vendor/tightenco/ziggy/src/js/route';
|
||||
import {ActionContext} from "vuex";
|
||||
import {ServerData} from "../../models/server";
|
||||
|
||||
type ServerApplicationCredentials = {
|
||||
node: string,
|
||||
key: string,
|
||||
};
|
||||
|
||||
export type ServerState = {
|
||||
server: ServerData,
|
||||
credentials: ServerApplicationCredentials,
|
||||
console: Array<string>,
|
||||
};
|
||||
import {ServerApplicationCredentials, ServerState} from "../types";
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import Status from '../../helpers/statuses';
|
||||
|
||||
export type SocketState = {
|
||||
connected: boolean,
|
||||
connectionError: boolean | Error,
|
||||
status: number,
|
||||
}
|
||||
import {SocketState} from "../types";
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
|
||||
Reference in New Issue
Block a user