Added tag page. Added default 'anal' tag to Vixen scraper for Tushy and Tushy Raw.
This commit is contained in:
@@ -6,6 +6,7 @@ import Release from '../components/release/release.vue';
|
||||
import Site from '../components/site/site.vue';
|
||||
import Network from '../components/network/network.vue';
|
||||
import Actor from '../components/actor/actor.vue';
|
||||
import Tag from '../components/tag/tag.vue';
|
||||
import NotFound from '../components/errors/404.vue';
|
||||
|
||||
Vue.use(VueRouter);
|
||||
@@ -19,12 +20,12 @@ const routes = [
|
||||
{
|
||||
path: '/scene/:releaseId',
|
||||
component: Release,
|
||||
name: 'release',
|
||||
name: 'scene',
|
||||
},
|
||||
{
|
||||
path: '/movie/:releaseId',
|
||||
component: Release,
|
||||
name: 'release',
|
||||
name: 'movie',
|
||||
},
|
||||
{
|
||||
path: '/actor/:actorSlug',
|
||||
@@ -41,6 +42,11 @@ const routes = [
|
||||
component: Network,
|
||||
name: 'network',
|
||||
},
|
||||
{
|
||||
path: '/tag/:tagSlug',
|
||||
component: Tag,
|
||||
name: 'tag',
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
component: NotFound,
|
||||
|
||||
@@ -6,6 +6,7 @@ import initReleasesStore from './releases/releases';
|
||||
import initSitesStore from './sites/sites';
|
||||
import initNetworksStore from './networks/networks';
|
||||
import initActorsStore from './actors/actors';
|
||||
import initTagsStore from './tags/tags';
|
||||
|
||||
function initStore(router) {
|
||||
Vue.use(Vuex);
|
||||
@@ -17,6 +18,7 @@ function initStore(router) {
|
||||
store.registerModule('actors', initActorsStore(store, router));
|
||||
store.registerModule('sites', initSitesStore(store, router));
|
||||
store.registerModule('networks', initNetworksStore(store, router));
|
||||
store.registerModule('tags', initTagsStore(store, router));
|
||||
|
||||
return store;
|
||||
}
|
||||
|
||||
22
assets/js/tags/actions.js
Normal file
22
assets/js/tags/actions.js
Normal 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;
|
||||
1
assets/js/tags/mutations.js
Normal file
1
assets/js/tags/mutations.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {};
|
||||
1
assets/js/tags/state.js
Normal file
1
assets/js/tags/state.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {};
|
||||
13
assets/js/tags/tags.js
Normal file
13
assets/js/tags/tags.js
Normal 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;
|
||||
Reference in New Issue
Block a user