diff --git a/frontend/src/components/subscriptions/ArtistSection.vue b/frontend/src/components/subscriptions/ArtistSection.vue new file mode 100644 index 0000000..894f3ab --- /dev/null +++ b/frontend/src/components/subscriptions/ArtistSection.vue @@ -0,0 +1,61 @@ + + + + + {{ artist.name }} + + {{ sources.length }} source{{ sources.length === 1 ? '' : 's' }} + + ยท last check {{ latestChecked }} + + + + + + Add source to {{ artist.name }} + + + + + + + diff --git a/frontend/src/components/subscriptions/SourceRow.vue b/frontend/src/components/subscriptions/SourceRow.vue new file mode 100644 index 0000000..66807a3 --- /dev/null +++ b/frontend/src/components/subscriptions/SourceRow.vue @@ -0,0 +1,43 @@ + + + + {{ source.platform }} + + + {{ source.url }} + + + + + + + + + + diff --git a/frontend/src/router.js b/frontend/src/router.js index 601c2d0..6115b25 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -7,6 +7,7 @@ import TagsView from './views/TagsView.vue' import ArtistView from './views/ArtistView.vue' import SeriesManageView from './views/SeriesManageView.vue' import SeriesReaderView from './views/SeriesReaderView.vue' +import SubscriptionsView from './views/SubscriptionsView.vue' // The application's front door. `/` redirects here. Changing the front door // is a one-line edit (e.g. '/gallery' or '/tags'). @@ -29,7 +30,7 @@ const routes = [ { path: '/settings', name: 'settings', component: SettingsView, meta: { title: 'Settings' } }, // FC-3: subscription backbone - { path: '/subscriptions', name: 'subscriptions', component: PlaceholderView, meta: { title: 'Subscriptions' } }, + { path: '/subscriptions', name: 'subscriptions', component: SubscriptionsView, meta: { title: 'Subscriptions' } }, { path: '/credentials', name: 'credentials', component: PlaceholderView, meta: { title: 'Credentials' } }, { path: '/downloads', name: 'downloads', component: PlaceholderView, meta: { title: 'Downloads' } } ] diff --git a/frontend/src/views/SubscriptionsView.vue b/frontend/src/views/SubscriptionsView.vue new file mode 100644 index 0000000..9ceefa4 --- /dev/null +++ b/frontend/src/views/SubscriptionsView.vue @@ -0,0 +1,144 @@ + + + + + Add subscription + + + New artist + + + + {{ expandAll ? 'Collapse all' : 'Expand all' }} + + + + + {{ String(store.error) }} + + + + + + + + No subscriptions yet. Add your first artist. + + + + + + + + + + + + + +
No subscriptions yet. Add your first artist.