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

@ -10,7 +10,8 @@ window._ = require('lodash');
try {
window.$ = window.jQuery = require('jquery');
} catch (e) {}
} catch (e) {
}
window.axios = axios;

View File

@ -5,7 +5,8 @@
<button class="btn btn-green uppercase text-xs px-4 py-2"
v-if="status === statuses.STATUS_OFF"
v-on:click.prevent="sendPowerAction('start')"
>Start</button>
>Start
</button>
<div v-else>
<button class="btn btn-red uppercase text-xs px-4 py-2" v-on:click.prevent="sendPowerAction('stop')">Stop</button>
<button class="btn btn-secondary uppercase text-xs px-4 py-2" v-on:click.prevent="sendPowerAction('restart')">Restart</button>

View File

@ -2,7 +2,8 @@
<div class="animated-fade-in">
<div class="filemanager-breadcrumbs">
/<span class="px-1">home</span><!--
-->/<router-link :to="{ name: 'server-files' }" class="px-1">container</router-link><!--
-->/
<router-link :to="{ name: 'server-files' }" class="px-1">container</router-link><!--
--><span v-for="crumb in breadcrumbs" class="inline-block">
<span v-if="crumb.path">
/<router-link :to="{ name: 'server-files', params: { path: crumb.path } }" class="px-1">{{crumb.directoryName}}</router-link>

View File

@ -3,9 +3,9 @@
baseUrl: 'http://pterodactyl.test/',
baseProtocol: 'http',
baseDomain: 'pterodactyl.test',
basePort: false
basePort: false,
};
export {
Ziggy
}
Ziggy,
};

View File

@ -1,4 +1,3 @@
type ServerAllocation = {
ip: string,
port: number,

View File

@ -5,7 +5,6 @@ import {AxiosInstance} from "axios";
import {Vue as VueType} from "vue/types/vue";
import {ApplicationState} from "./store/types";
import {Route} from "vue-router";
// @ts-ignore
import {Ziggy} from './helpers/ziggy';

View File

@ -1,9 +1,6 @@
import VueRouter, {Route} from 'vue-router';
import store from './store/index';
import User from './models/user';
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
// Base Vuejs Templates
import Login from './components/auth/Login.vue';
import Dashboard from './components/dashboard/Dashboard.vue';
@ -17,6 +14,8 @@ import ConsolePage from "@/components/server/subpages/Console.vue";
import FileManagerPage from "@/components/server/subpages/FileManager.vue";
import DatabasesPage from "@/components/server/subpages/Databases.vue";
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
const routes = [
{
path: '/auth', component: 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 {

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.

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 = {