|
1 | 1 | import Vue from 'vue'; |
2 | | -import Navigation from '../core/Navigation'; |
| 2 | +import Navigation from '@/components/core/Navigation'; |
3 | 3 | import ProgressBar from './components/ProgressBar'; |
4 | 4 | import { mapState } from 'vuex'; |
5 | 5 | import * as io from 'socket.io-client'; |
| 6 | +import { Socketio } from "@/mixins/socketio"; |
| 7 | +import Icon from "@/components/core/Icon"; |
| 8 | +import PowerButtons from "@/components/server/components/PowerButtons"; |
6 | 9 |
|
7 | 10 | export default Vue.component('server', { |
8 | | - components: { ProgressBar, Navigation }, |
| 11 | + components: { ProgressBar, PowerButtons, Navigation, Icon }, |
9 | 12 | computed: { |
10 | 13 | ...mapState('server', ['server', 'credentials']), |
11 | 14 | ...mapState('socket', ['connected', 'connectionError']), |
12 | 15 | }, |
13 | 16 |
|
| 17 | + mixins: [ Socketio ], |
| 18 | + |
14 | 19 | // Watch for route changes that occur with different server parameters. This occurs when a user |
15 | 20 | // uses the search bar. Because of the way vue-router works, it won't re-mount the server component |
16 | 21 | // so we will end up seeing the wrong server data if we don't perform this watch. |
@@ -83,25 +88,25 @@ export default Vue.component('server', { |
83 | 88 | </div> |
84 | 89 | <div class="mt-6 sidenav mr-6 bg-white border rounded"> |
85 | 90 | <router-link :to="{ name: 'server', params: { id: $route.params.id } }"> |
86 | | - <terminal-icon class="h-4"></terminal-icon> Console |
| 91 | + <icon name="terminal" class="h-4"></icon> Console |
87 | 92 | </router-link> |
88 | 93 | <router-link :to="{ name: 'server-files' }"> |
89 | | - <folder-icon class="h-4"></folder-icon> Files |
| 94 | + <icon name="folder" class="h-4"></icon> Files |
90 | 95 | </router-link> |
91 | 96 | <router-link :to="{ name: 'server-subusers' }"> |
92 | | - <users-icon class="h-4"></users-icon> Subusers |
| 97 | + <icon name="users" class="h-4"></icon> Subusers |
93 | 98 | </router-link> |
94 | 99 | <router-link :to="{ name: 'server-schedules' }"> |
95 | | - <calendar-icon class="h-4"></calendar-icon> Schedules |
| 100 | + <icon name="calendar" class="h-4"></icon> Schedules |
96 | 101 | </router-link> |
97 | 102 | <router-link :to="{ name: 'server-databases' }"> |
98 | | - <database-icon class="h-4"></database-icon> Databases |
| 103 | + <icon name="database" class="h-4"></icon> Databases |
99 | 104 | </router-link> |
100 | 105 | <router-link :to="{ name: 'server-allocations' }"> |
101 | | - <globe-icon class="h-4"></globe-icon> Allocations |
| 106 | + <icon name="globe" class="h-4"></icon> Allocations |
102 | 107 | </router-link> |
103 | 108 | <router-link :to="{ name: 'server-settings' }"> |
104 | | - <settings-icon class="h-4"></settings-icon> Settings |
| 109 | + <icon name="settings" class="h-4"></icon> Settings |
105 | 110 | </router-link> |
106 | 111 | </div> |
107 | 112 | </div> |
|
0 commit comments