From 016ecfca8dfef6cd07026bc4b07da0d5efcb7f16 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 7 Feb 2018 22:49:50 -0800 Subject: [PATCH] add favorites, refactor local/federated --- bin/svgs.js | 3 + routes/_components/DynamicPageBanner.html | 21 ++++- routes/_components/IconButton.html | 8 +- routes/_components/Nav.html | 25 ++++-- routes/_store/instanceComputations.js | 5 ++ routes/_store/store.js | 6 +- routes/_utils/mastodon/timelines.js | 2 + routes/community/_components/PageList.html | 28 ++++++ .../community/_components/PageListItem.html | 85 +++++++++++++++++++ routes/community/index.html | 61 +++++++++++++ routes/favorites.html | 38 +++++++++ routes/federated.html | 5 +- routes/local.html | 5 +- templates/2xx.html | 3 + 14 files changed, 280 insertions(+), 15 deletions(-) create mode 100644 routes/community/_components/PageList.html create mode 100644 routes/community/_components/PageListItem.html create mode 100644 routes/community/index.html create mode 100644 routes/favorites.html diff --git a/bin/svgs.js b/bin/svgs.js index 8952ad4..f0138f9 100644 --- a/bin/svgs.js +++ b/bin/svgs.js @@ -19,4 +19,7 @@ module.exports = [ {id:'fa-user-plus', src:'node_modules/font-awesome-svg-png/white/svg/user-plus.svg', title: 'Follow'}, {id:'fa-external-link', src:'node_modules/font-awesome-svg-png/white/svg/external-link.svg', title: 'External Link'}, {id:'fa-search', src:'node_modules/font-awesome-svg-png/white/svg/search.svg', title: 'Search'}, + {id:'fa-comments', src:'node_modules/font-awesome-svg-png/white/svg/comments.svg', title: 'Conversations'}, + {id:'fa-paperclip', src:'node_modules/font-awesome-svg-png/white/svg/paperclip.svg', title: 'Paperclip'}, + {id:'fa-thumbtack', src:'node_modules/font-awesome-svg-png/white/svg/thumb-tack.svg', title: 'Thumbtack'}, ] \ No newline at end of file diff --git a/routes/_components/DynamicPageBanner.html b/routes/_components/DynamicPageBanner.html index 2927076..474e983 100644 --- a/routes/_components/DynamicPageBanner.html +++ b/routes/_components/DynamicPageBanner.html @@ -1,4 +1,9 @@ -
+
+ {{#if icon}} + + + + {{/if}}

{{title}}