Created
November 24, 2017 15:46
-
-
Save filipgorczynski/92cdf0e53f108000315ee010f58928b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // main.js start | |
| import Vue from 'vue' | |
| import App from './App.vue' | |
| new Vue({ | |
| el: '#app', | |
| render: h => h(App) | |
| }) | |
| // main.js end | |
| // Header.vue start | |
| <template> | |
| <header> | |
| <h1>Server Status</h1> | |
| </header> | |
| </template> | |
| <script> | |
| export default {} | |
| </script> | |
| // Header.vue end | |
| // Footer.vue start | |
| <template> | |
| <footer> | |
| <p>All Servers are managed here</p> | |
| </footer> | |
| </template> | |
| <script> | |
| export default {} | |
| </script> | |
| // Footer.vue end | |
| // ServerList.vue start | |
| <template> | |
| <ul class="list-group"> | |
| <li class="list-group-item" v-for="index in 5" :key="index"> | |
| Server #{{ index }} | |
| </li> | |
| </ul> | |
| </template> | |
| <script> | |
| export default { | |
| methods: { | |
| previewStatus($event) { | |
| console.log(index); | |
| console.log($event); | |
| } | |
| } | |
| } | |
| </script> | |
| // ServerList.vue end | |
| // ServerDetails.vue start | |
| <template> | |
| <p>Server Details are currently not updated</p> | |
| </template> | |
| <script> | |
| export default {} | |
| </script> | |
| // ServerDetails.vue end | |
| // Layout.vue start | |
| <template> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-xs-12"> | |
| <fkg-header></fkg-header> | |
| </div> | |
| </div> | |
| <hr> | |
| <div class="row"> | |
| <div class="col-xs-12 col-sm-6"> | |
| <fkg-server-list></fkg-server-list> | |
| </div> | |
| <div class="col-xs-12 col-sm-6"> | |
| <fkg-server-details></fkg-server-details> | |
| </div> | |
| </div> | |
| <hr> | |
| <div class="row"> | |
| <div class="col-xs-12"> | |
| <fkg-footer></fkg-footer> | |
| </div> | |
| </div> | |
| </div> | |
| </template> | |
| <script> | |
| import Header from './Header.vue'; | |
| import Footer from './Footer.vue'; | |
| import ServerList from './ServerList.vue'; | |
| import ServerDetails from './ServerDetails.vue'; | |
| export default { | |
| components: { | |
| 'fkg-header': Header, | |
| 'fkg-server-list': ServerList, | |
| 'fkg-server-details': ServerDetails, | |
| 'fkg-footer': Footer | |
| } | |
| } | |
| </script> | |
| // Layout.vue end | |
| // App.vue start | |
| <template> | |
| <fkg-layout></fkg-layout> | |
| </template> | |
| <script> | |
| import Layout from './Layout.vue'; | |
| export default { | |
| components: { | |
| 'fkg-layout': Layout | |
| } | |
| } | |
| </script> | |
| // App.vue end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment