diff options
| author | Henry Jameson <me@hjkos.com> | 2019-05-14 22:38:16 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-05-14 22:48:44 +0300 |
| commit | 543604fd2d107d3c6b7123e5713ac923eb76f23c (patch) | |
| tree | d981ba4a7877689593a312c83c9d993187dc11ca /src/components/interactions/interactions.js | |
| parent | 2322610b62c8593e8ca71a2a8ae7057d4c39b480 (diff) | |
removed unused masto api, added initial version of interactions timeline
Diffstat (limited to 'src/components/interactions/interactions.js')
| -rw-r--r-- | src/components/interactions/interactions.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/interactions/interactions.js b/src/components/interactions/interactions.js new file mode 100644 index 00000000..4c56a931 --- /dev/null +++ b/src/components/interactions/interactions.js @@ -0,0 +1,25 @@ +import Notifications from '../notifications/notifications.vue' + +const tabModeDict = { + mentions: ['mention'], + 'likes+repeats': ['repeat', 'like'], + follows: ['follow'] +} + +const Interactions = { + data () { + return { + filterMode: tabModeDict['mentions'] + } + }, + methods: { + onModeSwitch(index, dataset) { + this.filterMode = tabModeDict[dataset.filter] + } + }, + components: { + Notifications + } +} + +export default Interactions |
