Format all the files
This commit is contained in:
parent
5bff8d99cc
commit
b6773b56c1
|
@ -10,7 +10,8 @@ window._ = require('lodash');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
window.$ = window.jQuery = require('jquery');
|
window.$ = window.jQuery = require('jquery');
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
}
|
||||||
|
|
||||||
window.axios = axios;
|
window.axios = axios;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
<button class="btn btn-green uppercase text-xs px-4 py-2"
|
<button class="btn btn-green uppercase text-xs px-4 py-2"
|
||||||
v-if="status === statuses.STATUS_OFF"
|
v-if="status === statuses.STATUS_OFF"
|
||||||
v-on:click.prevent="sendPowerAction('start')"
|
v-on:click.prevent="sendPowerAction('start')"
|
||||||
>Start</button>
|
>Start
|
||||||
|
</button>
|
||||||
<div v-else>
|
<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-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>
|
<button class="btn btn-secondary uppercase text-xs px-4 py-2" v-on:click.prevent="sendPowerAction('restart')">Restart</button>
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
<div class="animated-fade-in">
|
<div class="animated-fade-in">
|
||||||
<div class="filemanager-breadcrumbs">
|
<div class="filemanager-breadcrumbs">
|
||||||
/<span class="px-1">home</span><!--
|
/<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-for="crumb in breadcrumbs" class="inline-block">
|
||||||
<span v-if="crumb.path">
|
<span v-if="crumb.path">
|
||||||
/<router-link :to="{ name: 'server-files', params: { path: crumb.path } }" class="px-1">{{crumb.directoryName}}</router-link>
|
/<router-link :to="{ name: 'server-files', params: { path: crumb.path } }" class="px-1">{{crumb.directoryName}}</router-link>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
baseUrl: 'http://pterodactyl.test/',
|
baseUrl: 'http://pterodactyl.test/',
|
||||||
baseProtocol: 'http',
|
baseProtocol: 'http',
|
||||||
baseDomain: 'pterodactyl.test',
|
baseDomain: 'pterodactyl.test',
|
||||||
basePort: false
|
basePort: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Ziggy
|
Ziggy,
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
type ServerAllocation = {
|
type ServerAllocation = {
|
||||||
ip: string,
|
ip: string,
|
||||||
port: number,
|
port: number,
|
||||||
|
|
|
@ -5,7 +5,6 @@ import {AxiosInstance} from "axios";
|
||||||
import {Vue as VueType} from "vue/types/vue";
|
import {Vue as VueType} from "vue/types/vue";
|
||||||
import {ApplicationState} from "./store/types";
|
import {ApplicationState} from "./store/types";
|
||||||
import {Route} from "vue-router";
|
import {Route} from "vue-router";
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {Ziggy} from './helpers/ziggy';
|
import {Ziggy} from './helpers/ziggy';
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
import VueRouter, {Route} from 'vue-router';
|
import VueRouter, {Route} from 'vue-router';
|
||||||
import store from './store/index';
|
import store from './store/index';
|
||||||
import User from './models/user';
|
import User from './models/user';
|
||||||
|
|
||||||
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
|
|
||||||
|
|
||||||
// Base Vuejs Templates
|
// Base Vuejs Templates
|
||||||
import Login from './components/auth/Login.vue';
|
import Login from './components/auth/Login.vue';
|
||||||
import Dashboard from './components/dashboard/Dashboard.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 FileManagerPage from "@/components/server/subpages/FileManager.vue";
|
||||||
import DatabasesPage from "@/components/server/subpages/Databases.vue";
|
import DatabasesPage from "@/components/server/subpages/Databases.vue";
|
||||||
|
|
||||||
|
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/auth', component: Login,
|
path: '/auth', component: Login,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import Server, {ServerData} from '../../models/server';
|
import Server, {ServerData} from '../../models/server';
|
||||||
import {ActionContext} from "vuex";
|
import {ActionContext} from "vuex";
|
||||||
import {DashboardState} from "../types";
|
import {DashboardState} from "../types";
|
||||||
|
|
||||||
const route = require('./../../../../../vendor/tightenco/ziggy/src/js/route').default;
|
const route = require('./../../../../../vendor/tightenco/ziggy/src/js/route').default;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -11,8 +11,7 @@ export default {
|
||||||
credentials: {node: '', key: ''},
|
credentials: {node: '', key: ''},
|
||||||
console: [],
|
console: [],
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {},
|
||||||
},
|
|
||||||
actions: {
|
actions: {
|
||||||
/**
|
/**
|
||||||
* Fetches the active server from the API and stores it in vuex.
|
* Fetches the active server from the API and stores it in vuex.
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import {ServerData} from "../models/server";
|
import Server, {ServerData} from "../models/server";
|
||||||
import Server from "../models/server";
|
|
||||||
import User from "../models/user";
|
import User from "../models/user";
|
||||||
|
|
||||||
export type ApplicationState = {
|
export type ApplicationState = {
|
||||||
|
|
Loading…
Reference in New Issue