From 8aa4f6882accef549e198b54be1cf579a522884c Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 8 Aug 2020 14:30:42 +0200 Subject: [PATCH] Add bookmarking and syndication targets --- src/components/Entry.vue | 62 +++++++++++++++++++++++++-- src/components/NewPost.vue | 17 +++++++- src/components/SyndicationButtons.vue | 43 +++++++++++++++++++ src/store.js | 7 +++ 4 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 src/components/SyndicationButtons.vue diff --git a/src/components/Entry.vue b/src/components/Entry.vue index 85e762e..6e1759c 100644 --- a/src/components/Entry.vue +++ b/src/components/Entry.vue @@ -42,6 +42,7 @@ Like · Reply · Repost + · Bookmark · Follow · Debug @@ -64,23 +65,53 @@ +
+
+
+
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+ +
+
+
+
+ \ No newline at end of file diff --git a/src/store.js b/src/store.js index 46cb0eb..e00295e 100644 --- a/src/store.js +++ b/src/store.js @@ -178,6 +178,13 @@ export default new Vuex.Store({ } }) }, + fetchSyndicationTargets() { + let micropub = new Micropub({ + token: this.state.access_token, + micropubEndpoint: this.state.micropubEndpoint + }) + return micropub.query('syndicate-to') + }, micropubPost(_, mf2post) { let micropub = new Micropub({ token: this.state.access_token,