summaryrefslogtreecommitdiffstats
path: root/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/App.vue b/src/App.vue
index d97b47a3..984a0d0f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -97,26 +97,29 @@
};
},
+ beforeMount: function() {
+ let example = {
+ message: 'Want to #DropDropbox? #DeleteGoogle? #decentralize? We got you covered, easy as a piece of 🥞\n' +
+ '\n' +
+ 'Get started right now: https://nextcloud.com/signup',
+ author: 'Nextcloud 📱☁️💻',
+ authorId: '@nextcloud@mastodon.xyz',
+ authorAvatar: OC.linkTo('social', 'img/nextcloud.png'),
+ timestamp: '1 day ago'
+ };
+ let data = [];
+ for (let i=0; i<20; i++) {
+ example.id = Math.floor((Math.random() * 100));
+ data.push(example);
+ }
+ this.$store.commit('addToTimeline', data);
+ },
computed: {
socialId: function() {
return '@' + OC.getCurrentUser().uid + '@' + OC.getHost();
},
timeline: function() {
- let example = {
- message: 'Want to #DropDropbox? #DeleteGoogle? #decentralize? We got you covered, easy as a piece of 🥞\n' +
- '\n' +
- 'Get started right now: https://nextcloud.com/signup',
- author: 'Nextcloud 📱☁️💻',
- authorId: '@nextcloud@mastodon.xyz',
- authorAvatar: OC.linkTo('social', 'img/nextcloud.png'),
- timestamp: '1 day ago'
- };
- let data = [];
- for (let i=0; i<20; i++) {
- example.id = Math.floor((Math.random() * 100));
- data.push(example);
- }
- return data;
+ return this.$store.getters.getTimeline;
},
menu: function () {
let defaultCategories = [