From 784c73becd151ba4b9dd91114368e970385a3373 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 20 Jul 2018 22:34:30 -0700 Subject: [PATCH] Break console page into a component --- .../scripts/components/server/Server.vue | 6 +-- .../components/server/ServerConsole.vue | 44 ------------------- .../assets/scripts/components/server/index.js | 2 +- .../server/subpages/ConsolePage.vue | 22 ++++++++++ resources/assets/scripts/router.js | 5 ++- 5 files changed, 29 insertions(+), 50 deletions(-) delete mode 100644 resources/assets/scripts/components/server/ServerConsole.vue create mode 100644 resources/assets/scripts/components/server/subpages/ConsolePage.vue diff --git a/resources/assets/scripts/components/server/Server.vue b/resources/assets/scripts/components/server/Server.vue index 4e20bd209..75d93e587 100644 --- a/resources/assets/scripts/components/server/Server.vue +++ b/resources/assets/scripts/components/server/Server.vue @@ -25,7 +25,7 @@
- + Console @@ -64,14 +64,14 @@ diff --git a/resources/assets/scripts/components/server/index.js b/resources/assets/scripts/components/server/index.js index 5e37acd94..7f55074c1 100644 --- a/resources/assets/scripts/components/server/index.js +++ b/resources/assets/scripts/components/server/index.js @@ -1,6 +1,6 @@ export {default as Server} from './Server'; export {default as ServerAllocations} from './ServerAllocations'; -export {default as ServerConsole} from './ServerConsole'; +export {default as ConsolePage} from './subpages/ConsolePage'; export {default as ServerDatabases} from './ServerDatabases'; export {default as ServerFiles} from './ServerFiles'; export {default as ServerSchedules} from './ServerSchedules'; diff --git a/resources/assets/scripts/components/server/subpages/ConsolePage.vue b/resources/assets/scripts/components/server/subpages/ConsolePage.vue new file mode 100644 index 000000000..5db738959 --- /dev/null +++ b/resources/assets/scripts/components/server/subpages/ConsolePage.vue @@ -0,0 +1,22 @@ + + + diff --git a/resources/assets/scripts/router.js b/resources/assets/scripts/router.js index f3996eb03..9427b39df 100644 --- a/resources/assets/scripts/router.js +++ b/resources/assets/scripts/router.js @@ -12,7 +12,8 @@ import User from './models/user'; import { Server, ServerAllocations, - ServerConsole, ServerDatabases, + ConsolePage, + ServerDatabases, ServerFiles, ServerSchedules, ServerSettings, @@ -39,7 +40,7 @@ const routes = [ { path: '/server/:id', component: Server, children: [ - { name: 'server', path: '', component: ServerConsole }, + { name: 'server', path: '', component: ConsolePage }, { name: 'server-files', path: 'files', component: ServerFiles }, { name: 'server-subusers', path: 'subusers', component: ServerSubusers }, { name: 'server-schedules', path: 'schedules', component: ServerSchedules },