This commit is contained in:
Roger Braun 2016-10-26 19:03:55 +02:00
parent 191c02af1e
commit 4c2764c747
19 changed files with 2605 additions and 95 deletions

View file

@ -1,44 +0,0 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
<br>
<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>
</ul>
<h2>Ecosystem</h2>
<ul>
<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
</ul>
</div>
</template>
<script src='./Hello.js' />
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

View file

@ -3,6 +3,6 @@ export default {
data () {
return {
msg: 'Welcome to Your Vue.js app'
};
}
}
};
}

View file

@ -0,0 +1,11 @@
import Timeline from '../timeline/timeline.vue'
const PublicTimeline = {
components: {
Timeline
},
computed: {
timeline () { return this.$store.state.statuses.timelines.public }
}
}
export default PublicTimeline

View file

@ -0,0 +1,10 @@
<template>
<div class="panel panel-default">
<div class="panel-heading">Public Timeline</div>
<div class="panel-body">
<Timeline v-bind:timeline="timeline" />
</div>
</div>
</template>
<script src="./public_timeline.js"></script>

View file

@ -0,0 +1,7 @@
const Timeline = {
props: [
'timeline'
]
}
export default Timeline;

View file

@ -0,0 +1,7 @@
<template>
<div class="timeline">
<h1>Timeline goes here</h1>
<h2 v-for="status in timeline.visibleStatuses">{{status.text}}</h2>
</div>
</template>
<script src="./timeline.js"></script>