Skip to content

Commit 8400a05

Browse files
committed
Configure vue-css-grid
1 parent 59b6e69 commit 8400a05

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/components/Login.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<!-- Server status -->
55
<h4>Server Status</h4>
66
<div class="server-status">
7-
<table>
8-
<!-- Should these be dynamically loaded? -->
7+
<ServerStatusGrid></ServerStatusGrid>
8+
<!-- <table>
99
<tr>
1010
<th>Server</th>
1111
<th>Online</th>
@@ -32,7 +32,7 @@
3232
<td>{{!server.ais ? '-' : `${server.ais} ${server.ais === 1 ? 'AI' : 'AIs'}`}}</td>
3333
<td>{{! server.latency ? '-' : `${server.latency} ms`}}</td>
3434
</tr>
35-
</table>
35+
</table> -->
3636
<input @click="refreshServers()" :disabled="refreshing" type="button" value="Refresh" class="btn btn-navbar" style="margin-top: 10px;"/>
3737
<p v-if="refreshing">Refreshing...</p>
3838
</div>
@@ -109,6 +109,7 @@
109109
<script>
110110
import CardshifterServerAPI from "../server_interface";
111111
import TopNavbar from "./TopNavbar";
112+
import ServerStatusGrid from "./css_grid/ServerStatusGrid";
112113
113114
const loginStorageMap = {
114115
"CARDSHIFTER_LAST_NAME": "username",
@@ -138,7 +139,8 @@ export default {
138139
};
139140
},
140141
components :{
141-
TopNavbar
142+
TopNavbar,
143+
ServerStatusGrid
142144
},
143145
methods: {
144146
/*

src/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ import router from "./router";
66
import BootstrapVue from "bootstrap-vue";
77
import "bootstrap/dist/css/bootstrap.css";
88
import "bootstrap-vue/dist/bootstrap-vue.css";
9+
import { CssGrid, CssGridItem, ViewportListener } from 'vue-css-grid';
910

1011
Vue.use(BootstrapVue);
1112

13+
Vue.component('css-grid', CssGrid)
14+
Vue.component('css-grid-item', CssGridItem)
15+
Vue.component('viewport-listener', ViewportListener)
16+
1217
Vue.config.productionTip = false;
1318

1419
/* eslint-disable no-new */

0 commit comments

Comments
 (0)