Added rudimentary tags page. Improved social match behavior.

This commit is contained in:
2019-12-01 05:32:47 +01:00
parent bead69de49
commit cf81aa99e0
41 changed files with 495 additions and 104 deletions

View File

@@ -1,10 +1,12 @@
import { get } from '../api';
function initTagsActions(store, _router) {
async function fetchTags({ _commit }, tagId) {
const tags = await get(`/tags/${tagId || ''}`);
async function fetchTags({ _commit }, { tagId, limit = 100, priority }) {
if (tagId) {
return get(`/tags/${tagId}`);
}
return tags;
return get('/tags', { limit, priority });
}
async function fetchTagReleases({ _commit }, tagId) {