Format all the files

This commit is contained in:
Dane Everitt 2019-02-09 21:15:45 -08:00
parent 5bff8d99cc
commit b6773b56c1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
22 changed files with 158 additions and 159 deletions

View file

@ -41,7 +41,7 @@ export default {
return new Promise((resolve, reject) => {
// @ts-ignore
window.axios.post(route('auth.login'), {user, password})
// @ts-ignore
// @ts-ignore
.then(response => {
commit('logout');
@ -75,7 +75,7 @@ export default {
return new Promise((resolve, reject) => {
// @ts-ignore
window.axios.put(route('api.client.account.update-email'), {email, password})
// @ts-ignore
// @ts-ignore
.then(response => {
// If there is a 302 redirect or some other odd behavior (basically, response that isnt
// in JSON format) throw an error and don't try to continue with the login.

View file

@ -1,6 +1,7 @@
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 default {
@ -22,9 +23,9 @@ export default {
return new Promise((resolve, reject) => {
// @ts-ignore
window.axios.get(route('api.client.index'), {
params: { query: state.searchTerm },
params: {query: state.searchTerm},
})
// @ts-ignore
// @ts-ignore
.then(response => {
// If there is a 302 redirect or some other odd behavior (basically, response that isnt
// in JSON format) throw an error and don't try to continue with the request processing.

View file

@ -11,8 +11,7 @@ export default {
credentials: {node: '', key: ''},
console: [],
},
getters: {
},
getters: {},
actions: {
/**
* Fetches the active server from the API and stores it in vuex.
@ -20,8 +19,8 @@ export default {
getServer: ({commit}: ActionContext<ServerState, any>, {server}: { server: string }): Promise<void> => {
return new Promise((resolve, reject) => {
// @ts-ignore
window.axios.get(route('api.client.servers.view', { server }))
// @ts-ignore
window.axios.get(route('api.client.servers.view', {server}))
// @ts-ignore
.then(response => {
// If there is a 302 redirect or some other odd behavior (basically, response that isnt
// in JSON format) throw an error and don't try to continue with the login.
@ -47,7 +46,7 @@ export default {
return new Promise((resolve, reject) => {
// @ts-ignore
window.axios.get(route('server.credentials', {server}))
// @ts-ignore
// @ts-ignore
.then(response => {
// If there is a 302 redirect or some other odd behavior (basically, response that isnt
// in JSON format) throw an error and don't try to continue with the login.

View file

@ -14,12 +14,12 @@ export default {
state.connectionError = false;
},
SOCKET_ERROR: (state: SocketState, err : Error) => {
SOCKET_ERROR: (state: SocketState, err: Error) => {
state.connected = false;
state.connectionError = err;
},
SOCKET_CONNECT_ERROR: (state: SocketState, err : Error) => {
SOCKET_CONNECT_ERROR: (state: SocketState, err: Error) => {
state.connected = false;
state.connectionError = err;
},

View file

@ -1,5 +1,4 @@
import {ServerData} from "../models/server";
import Server from "../models/server";
import Server, {ServerData} from "../models/server";
import User from "../models/user";
export type ApplicationState = {