|
1 | 1 | <template> |
2 | 2 | <div> |
3 | | - <flash container="mt-4"/> |
4 | | - <div class="server-search animate fadein"> |
5 | | - <input type="text" |
6 | | - :placeholder="$t('dashboard.index.search')" |
7 | | - @input="onChange" |
8 | | - v-model="search" |
9 | | - ref="search" |
10 | | - /> |
11 | | - </div> |
12 | | - <div v-if="this.loading" class="my-4 animate fadein"> |
13 | | - <div class="text-center h-16"> |
14 | | - <span class="spinner spinner-xl"></span> |
| 3 | + <navigation/> |
| 4 | + <div class="container"> |
| 5 | + <flash container="mt-4"/> |
| 6 | + <div class="server-search animate fadein"> |
| 7 | + <input type="text" |
| 8 | + :placeholder="$t('dashboard.index.search')" |
| 9 | + @input="onChange" |
| 10 | + v-model="search" |
| 11 | + ref="search" |
| 12 | + /> |
| 13 | + </div> |
| 14 | + <div v-if="this.loading" class="my-4 animate fadein"> |
| 15 | + <div class="text-center h-16"> |
| 16 | + <span class="spinner spinner-xl"></span> |
| 17 | + </div> |
15 | 18 | </div> |
| 19 | + <transition-group class="w-full m-auto mt-4 animate fadein sm:flex flex-wrap content-start" v-else> |
| 20 | + <server-box |
| 21 | + v-for="(server, index) in servers.models" |
| 22 | + v-bind:key="index" |
| 23 | + v-bind:server="server" |
| 24 | + /> |
| 25 | + </transition-group> |
16 | 26 | </div> |
17 | | - <transition-group class="w-full m-auto mt-4 animate fadein sm:flex flex-wrap content-start" v-else> |
18 | | - <server-box |
19 | | - v-for="(server, index) in servers.models" |
20 | | - v-bind:key="index" |
21 | | - v-bind:server="server" |
22 | | - /> |
23 | | - </transition-group> |
24 | 27 | </div> |
25 | 28 | </template> |
26 | 29 |
|
|
30 | 33 | import _ from 'lodash'; |
31 | 34 | import Flash from '../Flash'; |
32 | 35 | import ServerBox from './ServerBox'; |
| 36 | + import Navigation from '../core/Navigation'; |
33 | 37 |
|
34 | 38 | export default { |
35 | 39 | name: 'dashboard', |
36 | | - components: { ServerBox, Flash }, |
| 40 | + components: { Navigation, ServerBox, Flash }, |
37 | 41 | data: function () { |
38 | 42 | return { |
39 | 43 | backgroundedAt: DateTime.local(), |
|
0 commit comments