mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
* add vuex, cleanup client directory and create example components * disale sample unit test * disable import for non existing file * correct regexp for unit tests, add simple test to avoid error, add babel-polyfill for Vuex * add line wrongly removed, update regexp
31 lines
412 B
Vue
31 lines
412 B
Vue
<template lang="pug">
|
|
#app
|
|
site-header
|
|
ul
|
|
li
|
|
router-link(to='/') Home
|
|
li
|
|
router-link(to='/page') Another Page
|
|
router-view.view
|
|
</template>
|
|
|
|
<script>
|
|
import SiteHeader from './siteHeader';
|
|
|
|
export default {
|
|
components: {
|
|
SiteHeader,
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
#app {
|
|
margin: 0 auto;
|
|
width: 80%;
|
|
border-left : 1px solid;
|
|
border-right: 1px solid;
|
|
padding: 20px;
|
|
}
|
|
</style>
|