Added tag page. Added default 'anal' tag to Vixen scraper for Tushy and Tushy Raw.

This commit is contained in:
2019-11-11 05:18:28 +01:00
parent 4c1087ca53
commit 681f1bca85
37 changed files with 348 additions and 84 deletions

22
assets/js/tags/actions.js Normal file
View File

@@ -0,0 +1,22 @@
import { get } from '../api';
function initTagsActions(_store, _router) {
async function fetchTags({ _commit }, tagId) {
const tags = await get(`/tags/${tagId || ''}`);
return tags;
}
async function fetchTagReleases({ _commit }, tagId) {
const releases = await get(`/tags/${tagId}/releases`);
return releases;
}
return {
fetchTags,
fetchTagReleases,
};
}
export default initTagsActions;

View File

@@ -0,0 +1 @@
export default {};

1
assets/js/tags/state.js Normal file
View File

@@ -0,0 +1 @@
export default {};

13
assets/js/tags/tags.js Normal file
View File

@@ -0,0 +1,13 @@
import state from './state';
import mutations from './mutations';
import actions from './actions';
function initTagsStore(store, router) {
return {
state,
mutations,
actions: actions(store, router),
};
}
export default initTagsStore;