2020-06-30 02:33:47 +00:00
|
|
|
import config from 'config';
|
2021-03-03 21:23:46 +00:00
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
2019-12-15 22:01:48 +00:00
|
|
|
import { graphql, get } from '../api';
|
2020-05-17 23:22:56 +00:00
|
|
|
import { curateActor, curateRelease } from '../curate';
|
2020-05-07 01:20:51 +00:00
|
|
|
import getDateRange from '../get-date-range';
|
2019-12-15 22:01:48 +00:00
|
|
|
|
2021-03-24 00:52:27 +00:00
|
|
|
import {
|
|
|
|
releaseFields,
|
|
|
|
actorStashesFields,
|
|
|
|
getIncludedEntities,
|
|
|
|
getIncludedActors,
|
|
|
|
} from '../fragments';
|
|
|
|
|
2020-06-30 02:33:47 +00:00
|
|
|
function initActorActions(store, router) {
|
2020-05-26 23:40:10 +00:00
|
|
|
async function fetchActorById({ _commit }, {
|
|
|
|
actorId,
|
|
|
|
limit = 10,
|
|
|
|
pageNumber = 1,
|
|
|
|
range = 'latest',
|
|
|
|
}) {
|
2021-03-04 01:35:43 +00:00
|
|
|
if (!actorId) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
const { before, after, orderBy } = getDateRange(range);
|
2020-12-27 21:45:38 +00:00
|
|
|
const includedTags = router.currentRoute.value.query.tags ? router.currentRoute.value.query.tags.split(',') : [];
|
|
|
|
const mode = router.currentRoute.value.query.mode || 'all';
|
2020-05-07 01:20:51 +00:00
|
|
|
|
2020-07-19 01:52:36 +00:00
|
|
|
const { actor } = await graphql(`
|
2020-01-04 01:51:58 +00:00
|
|
|
query Actor(
|
2020-05-25 02:39:58 +00:00
|
|
|
$actorId: Int!
|
2021-03-15 02:30:47 +00:00
|
|
|
$userId: Int,
|
|
|
|
$hasAuth: Boolean!,
|
2020-05-26 23:40:10 +00:00
|
|
|
$limit:Int = 10,
|
|
|
|
$offset:Int = 0,
|
2020-07-16 13:55:03 +00:00
|
|
|
$after:Datetime = "1900-01-01",
|
|
|
|
$before:Datetime = "2100-01-01",
|
2020-11-19 01:01:13 +00:00
|
|
|
$afterTime:Datetime = "1900-01-01",
|
|
|
|
$beforeTime:Datetime = "2100-01-01",
|
2020-07-19 01:52:36 +00:00
|
|
|
$orderBy:[ReleasesOrderBy!]
|
2020-06-30 02:33:47 +00:00
|
|
|
$selectableTags: [String],
|
2020-09-09 01:28:33 +00:00
|
|
|
$includedTags: [String!],
|
2021-01-04 00:30:39 +00:00
|
|
|
$exclude: [String!],
|
2020-07-19 02:25:07 +00:00
|
|
|
$mode: String!,
|
2020-09-12 01:09:05 +00:00
|
|
|
$includedEntities: [ReleaseFilter!],
|
|
|
|
$includedActors: [ReleaseFilter!]
|
2020-01-04 01:51:58 +00:00
|
|
|
) {
|
2020-05-25 02:39:58 +00:00
|
|
|
actor(id: $actorId) {
|
2019-12-15 22:01:48 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2020-05-18 02:28:38 +00:00
|
|
|
realName
|
2019-12-16 01:39:13 +00:00
|
|
|
gender
|
2020-05-17 02:59:09 +00:00
|
|
|
dateOfBirth
|
|
|
|
dateOfDeath
|
2019-12-16 01:39:13 +00:00
|
|
|
age
|
2020-12-17 02:43:09 +00:00
|
|
|
dateOfBirth
|
2020-11-29 02:59:47 +00:00
|
|
|
ageFromBirth
|
2020-05-17 02:59:09 +00:00
|
|
|
ageAtDeath
|
2019-12-16 01:39:13 +00:00
|
|
|
ethnicity
|
2020-05-17 01:00:44 +00:00
|
|
|
cup
|
2019-12-16 01:39:13 +00:00
|
|
|
bust
|
|
|
|
waist
|
|
|
|
hip
|
2020-01-23 21:45:46 +00:00
|
|
|
naturalBoobs
|
2020-11-15 03:33:24 +00:00
|
|
|
penisLengthMetric: penisLength(units:METRIC)
|
|
|
|
penisLengthImperial: penisLength(units:IMPERIAL)
|
|
|
|
penisGirthMetric: penisGirth(units:METRIC)
|
|
|
|
penisGirthImperial: penisGirth(units:IMPERIAL)
|
|
|
|
circumcised
|
2019-12-16 01:39:13 +00:00
|
|
|
heightMetric: height(units:METRIC)
|
|
|
|
heightImperial: height(units:IMPERIAL)
|
|
|
|
weightMetric: weight(units:METRIC)
|
|
|
|
weightImperial: weight(units:IMPERIAL)
|
2020-05-24 01:54:29 +00:00
|
|
|
hairColor
|
|
|
|
hairLength
|
2020-05-18 23:10:32 +00:00
|
|
|
eyes
|
2019-12-16 01:39:13 +00:00
|
|
|
hasTattoos
|
|
|
|
hasPiercings
|
|
|
|
tattoos
|
|
|
|
piercings
|
2020-01-22 21:25:58 +00:00
|
|
|
description
|
2020-05-14 02:26:05 +00:00
|
|
|
createdAt
|
|
|
|
updatedAt
|
2020-06-28 02:22:19 +00:00
|
|
|
entity {
|
2020-03-27 03:39:13 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2020-06-28 02:22:19 +00:00
|
|
|
type
|
|
|
|
parent {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
}
|
2020-03-27 03:39:13 +00:00
|
|
|
}
|
2020-05-17 01:00:44 +00:00
|
|
|
avatar: avatarMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
2021-03-18 03:36:04 +00:00
|
|
|
width
|
|
|
|
height
|
|
|
|
thumbnailWidth
|
|
|
|
thumbnailHeight
|
2020-05-17 01:00:44 +00:00
|
|
|
hash
|
|
|
|
comment
|
2020-07-16 01:47:07 +00:00
|
|
|
credit
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2020-05-17 23:22:56 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2020-05-17 01:00:44 +00:00
|
|
|
}
|
2020-07-07 17:23:36 +00:00
|
|
|
profiles: actorsProfiles(orderBy: PRIORITY_DESC) {
|
2020-05-16 02:36:45 +00:00
|
|
|
description
|
2020-05-19 02:46:49 +00:00
|
|
|
descriptionHash
|
2020-06-28 02:22:19 +00:00
|
|
|
entity {
|
2020-05-19 02:46:49 +00:00
|
|
|
id
|
|
|
|
name
|
2020-06-28 02:22:19 +00:00
|
|
|
slug
|
|
|
|
type
|
2020-07-07 17:23:36 +00:00
|
|
|
independent
|
2020-06-28 02:22:19 +00:00
|
|
|
parent {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
}
|
2020-05-19 02:46:49 +00:00
|
|
|
}
|
2020-05-16 02:36:45 +00:00
|
|
|
avatar: avatarMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
2021-03-18 03:36:04 +00:00
|
|
|
width
|
|
|
|
height
|
|
|
|
thumbnailWidth
|
|
|
|
thumbnailHeight
|
2020-05-17 01:00:44 +00:00
|
|
|
hash
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2020-05-16 02:36:45 +00:00
|
|
|
comment
|
2020-07-16 01:47:07 +00:00
|
|
|
credit
|
2020-12-20 03:21:28 +00:00
|
|
|
entropy
|
|
|
|
sharpness
|
2020-05-17 23:22:56 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2020-05-16 02:36:45 +00:00
|
|
|
}
|
2019-12-16 01:39:13 +00:00
|
|
|
}
|
|
|
|
birthCity
|
|
|
|
birthState
|
|
|
|
birthCountry: countryByBirthCountryAlpha2 {
|
2019-12-15 22:01:48 +00:00
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2019-12-16 01:39:13 +00:00
|
|
|
residenceCity
|
|
|
|
residenceState
|
|
|
|
residenceCountry: countryByResidenceCountryAlpha2 {
|
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2019-12-31 02:12:52 +00:00
|
|
|
social: actorsSocials {
|
2019-12-16 01:39:13 +00:00
|
|
|
id
|
|
|
|
url
|
|
|
|
platform
|
|
|
|
}
|
2019-12-15 22:01:48 +00:00
|
|
|
aliases: actorsByAliasFor {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
2020-06-30 02:33:47 +00:00
|
|
|
tags(selectableTags: $selectableTags) {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
priority
|
|
|
|
}
|
2020-07-20 02:20:33 +00:00
|
|
|
channels {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
independent
|
|
|
|
parent {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
2020-09-12 01:09:05 +00:00
|
|
|
actors {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
2020-07-19 01:52:36 +00:00
|
|
|
scenesConnection(
|
2020-01-04 01:51:58 +00:00
|
|
|
filter: {
|
2020-11-19 01:01:13 +00:00
|
|
|
or: [
|
|
|
|
{
|
|
|
|
date: {
|
|
|
|
lessThan: $before,
|
|
|
|
greaterThan: $after
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
date: {
|
|
|
|
isNull: true
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
lessThan: $beforeTime,
|
|
|
|
greaterThan: $afterTime,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-09-12 01:09:05 +00:00
|
|
|
and: [
|
|
|
|
{
|
|
|
|
or: $includedEntities
|
|
|
|
}
|
|
|
|
{
|
|
|
|
or: $includedActors
|
|
|
|
}
|
2021-01-04 00:30:39 +00:00
|
|
|
{
|
|
|
|
releasesTagsConnection: {
|
|
|
|
none: {
|
|
|
|
tag: {
|
|
|
|
slug: {
|
|
|
|
in: $exclude
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-12 01:09:05 +00:00
|
|
|
]
|
2020-05-26 23:40:10 +00:00
|
|
|
}
|
2020-09-09 01:28:33 +00:00
|
|
|
selectedTags: $includedTags
|
2020-07-19 02:25:07 +00:00
|
|
|
mode: $mode
|
2020-05-26 23:40:10 +00:00
|
|
|
first: $limit
|
|
|
|
offset: $offset
|
2020-01-08 23:23:37 +00:00
|
|
|
orderBy: $orderBy
|
2020-01-04 01:51:58 +00:00
|
|
|
) {
|
2020-05-26 23:40:10 +00:00
|
|
|
releases: nodes {
|
2020-07-19 01:52:36 +00:00
|
|
|
${releaseFields}
|
2020-05-26 23:40:10 +00:00
|
|
|
}
|
2020-07-19 01:52:36 +00:00
|
|
|
totalCount
|
2019-12-31 02:12:52 +00:00
|
|
|
}
|
2021-03-24 00:52:27 +00:00
|
|
|
${actorStashesFields}
|
2019-12-15 22:01:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`, {
|
2020-05-25 02:39:58 +00:00
|
|
|
actorId,
|
2020-05-14 02:26:05 +00:00
|
|
|
limit,
|
2020-05-26 23:40:10 +00:00
|
|
|
offset: Math.max(0, (pageNumber - 1)) * limit,
|
2020-05-14 02:26:05 +00:00
|
|
|
after,
|
|
|
|
before,
|
2020-11-19 01:01:13 +00:00
|
|
|
afterTime: store.getters.after,
|
|
|
|
beforeTime: store.getters.before,
|
2020-06-30 02:33:47 +00:00
|
|
|
selectableTags: config.selectableTags,
|
2020-07-19 01:52:36 +00:00
|
|
|
orderBy,
|
2021-01-04 00:30:39 +00:00
|
|
|
exclude: store.state.ui.tagFilter,
|
2020-09-09 01:28:33 +00:00
|
|
|
includedTags,
|
|
|
|
includedEntities: getIncludedEntities(router),
|
2020-09-12 01:09:05 +00:00
|
|
|
includedActors: getIncludedActors(router),
|
2020-07-19 02:25:07 +00:00
|
|
|
mode,
|
2021-03-15 02:30:47 +00:00
|
|
|
hasAuth: !!store.state.auth.user,
|
|
|
|
userId: store.state.auth.user?.id,
|
2020-05-14 02:26:05 +00:00
|
|
|
});
|
2019-12-15 22:01:48 +00:00
|
|
|
|
2020-09-10 01:17:19 +00:00
|
|
|
if (!actor) {
|
|
|
|
router.replace('/not-found');
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-05-26 23:40:10 +00:00
|
|
|
return {
|
|
|
|
actor: curateActor(actor, null, curateRelease),
|
2021-11-20 22:59:15 +00:00
|
|
|
releases: actor.scenesConnection.releases.map((release) => curateRelease(release)),
|
2020-07-19 01:52:36 +00:00
|
|
|
totalCount: actor.scenesConnection.totalCount,
|
2020-05-26 23:40:10 +00:00
|
|
|
};
|
2020-05-14 02:26:05 +00:00
|
|
|
}
|
2019-12-15 22:01:48 +00:00
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
async function fetchActors({ _commit }, {
|
2020-05-23 02:32:50 +00:00
|
|
|
limit = 10,
|
|
|
|
pageNumber = 1,
|
2021-08-22 20:25:20 +00:00
|
|
|
query,
|
2020-05-14 02:26:05 +00:00
|
|
|
gender,
|
2021-03-03 20:53:10 +00:00
|
|
|
age,
|
2021-08-22 23:29:46 +00:00
|
|
|
country,
|
2021-03-03 22:54:54 +00:00
|
|
|
dob,
|
2021-02-28 02:38:54 +00:00
|
|
|
naturalBoobs,
|
2021-03-03 01:18:36 +00:00
|
|
|
boobSize,
|
2021-03-03 15:47:57 +00:00
|
|
|
height,
|
|
|
|
weight,
|
2020-05-14 02:26:05 +00:00
|
|
|
}) {
|
2021-03-03 20:53:10 +00:00
|
|
|
const now = dayjs();
|
|
|
|
|
2020-07-14 22:15:00 +00:00
|
|
|
const genderFilter = (gender === null && 'gender: { isNull: true }')
|
|
|
|
|| (gender === 'all' && ' ')
|
2021-09-17 02:28:48 +00:00
|
|
|
|| (gender && `gender: { equalTo: "${gender}" }`)
|
|
|
|
|| '';
|
2020-05-13 21:17:39 +00:00
|
|
|
|
2021-03-03 20:53:10 +00:00
|
|
|
const ageFilter = age ? `
|
|
|
|
or: [
|
|
|
|
{
|
|
|
|
dateOfBirth: {
|
|
|
|
greaterThanOrEqualTo: "${now.subtract(age[1], 'year').format('YYYY-MM-DD')}",
|
|
|
|
lessThanOrEqualTo: "${now.subtract(age[0], 'year').format('YYYY-MM-DD')}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-03-03 21:28:52 +00:00
|
|
|
dateOfBirth: {
|
|
|
|
isNull: true
|
|
|
|
}
|
2021-03-03 20:53:10 +00:00
|
|
|
age: {
|
|
|
|
greaterThanOrEqualTo: ${age[0]}
|
|
|
|
lessThanOrEqualTo: ${age[1]}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
` : '';
|
|
|
|
|
2021-03-03 22:54:54 +00:00
|
|
|
const dobFilter = dob ? `dateOfBirth: { equalTo: "${dob}" }` : '';
|
2021-08-22 23:29:46 +00:00
|
|
|
const countryFilter = country ? `countryByBirthCountryAlpha2: { alpha2: { equalTo: "${country}" } }` : '';
|
2021-03-03 22:54:54 +00:00
|
|
|
|
2021-03-03 15:47:57 +00:00
|
|
|
const heightFilter = height ? `height: { greaterThanOrEqualTo: ${height[0]}, lessThanOrEqualTo: ${height[1]} }` : '';
|
|
|
|
const weightFilter = weight ? `weight: { greaterThanOrEqualTo: ${weight[0]}, lessThanOrEqualTo: ${weight[1]} }` : '';
|
2021-03-03 20:53:10 +00:00
|
|
|
const cupFilter = boobSize ? `cup: { greaterThanOrEqualTo: "${boobSize[0]}", lessThanOrEqualTo: "${boobSize[1]}" }` : '';
|
|
|
|
|
2021-08-22 23:29:46 +00:00
|
|
|
const { connection: { actors, totalCount }, countries } = await graphql(`
|
2020-02-09 04:30:10 +00:00
|
|
|
query Actors(
|
2021-08-22 20:25:20 +00:00
|
|
|
$query: String
|
2020-02-09 04:30:10 +00:00
|
|
|
$limit: Int,
|
2020-05-23 02:32:50 +00:00
|
|
|
$offset: Int = 0,
|
2021-03-01 01:41:53 +00:00
|
|
|
$naturalBoobs: Boolean,
|
2021-03-24 00:52:27 +00:00
|
|
|
$userId: Int,
|
|
|
|
$hasAuth: Boolean!,
|
2020-02-09 04:30:10 +00:00
|
|
|
) {
|
2021-08-22 20:25:20 +00:00
|
|
|
connection: searchActorsConnection(
|
|
|
|
query: $query
|
2020-05-23 02:32:50 +00:00
|
|
|
first: $limit,
|
|
|
|
offset: $offset
|
|
|
|
orderBy: NAME_ASC
|
2021-08-22 20:25:20 +00:00
|
|
|
minLength: 0
|
2020-02-09 04:30:10 +00:00
|
|
|
filter: {
|
2020-05-17 23:22:56 +00:00
|
|
|
aliasFor: {
|
|
|
|
isNull: true
|
|
|
|
}
|
2021-03-03 01:18:36 +00:00
|
|
|
${genderFilter}
|
2021-03-03 20:53:10 +00:00
|
|
|
${ageFilter}
|
2021-03-03 22:54:54 +00:00
|
|
|
${dobFilter}
|
2021-03-03 20:53:10 +00:00
|
|
|
${heightFilter}
|
|
|
|
${weightFilter}
|
|
|
|
${cupFilter}
|
2021-08-22 23:29:46 +00:00
|
|
|
${countryFilter}
|
2021-03-01 01:41:53 +00:00
|
|
|
naturalBoobs: {
|
|
|
|
equalTo: $naturalBoobs
|
|
|
|
}
|
2020-05-17 23:22:56 +00:00
|
|
|
}
|
2020-02-09 04:30:10 +00:00
|
|
|
) {
|
2020-05-23 02:32:50 +00:00
|
|
|
totalCount
|
|
|
|
actors: nodes {
|
2020-05-17 01:00:44 +00:00
|
|
|
id
|
2020-05-23 02:32:50 +00:00
|
|
|
name
|
|
|
|
slug
|
|
|
|
age
|
2020-12-17 02:43:09 +00:00
|
|
|
dateOfBirth
|
2020-11-29 02:59:47 +00:00
|
|
|
ageFromBirth
|
2020-05-23 02:32:50 +00:00
|
|
|
ageAtDeath
|
|
|
|
dateOfBirth
|
|
|
|
dateOfDeath
|
|
|
|
gender
|
2020-06-28 02:22:19 +00:00
|
|
|
entity {
|
2020-05-23 02:32:50 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2020-06-28 02:22:19 +00:00
|
|
|
type
|
|
|
|
parent {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
}
|
2020-05-23 02:32:50 +00:00
|
|
|
}
|
|
|
|
avatar: avatarMedia {
|
2020-05-17 23:22:56 +00:00
|
|
|
id
|
|
|
|
path
|
2020-05-23 02:32:50 +00:00
|
|
|
thumbnail
|
|
|
|
lazy
|
2020-05-17 23:22:56 +00:00
|
|
|
comment
|
2020-07-16 01:47:07 +00:00
|
|
|
credit
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2020-05-23 02:32:50 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
birthCountry: countryByBirthCountryAlpha2 {
|
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
2020-05-17 23:22:56 +00:00
|
|
|
}
|
2021-03-24 00:52:27 +00:00
|
|
|
${actorStashesFields}
|
2020-05-17 01:00:44 +00:00
|
|
|
}
|
2019-12-15 22:01:48 +00:00
|
|
|
}
|
2021-08-29 23:13:32 +00:00
|
|
|
countries(
|
|
|
|
orderBy: NAME_ASC,
|
|
|
|
) {
|
2021-08-22 23:29:46 +00:00
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2019-12-15 22:01:48 +00:00
|
|
|
}
|
|
|
|
`, {
|
2021-08-22 20:25:20 +00:00
|
|
|
query,
|
2020-05-23 02:32:50 +00:00
|
|
|
offset: Math.max(0, (pageNumber - 1)) * limit,
|
2020-05-14 02:26:05 +00:00
|
|
|
limit,
|
2021-09-17 02:28:48 +00:00
|
|
|
naturalBoobs: naturalBoobs || null,
|
2021-03-24 00:52:27 +00:00
|
|
|
hasAuth: !!store.state.auth.user,
|
|
|
|
userId: store.state.auth.user?.id,
|
2020-05-14 02:26:05 +00:00
|
|
|
});
|
2019-12-15 22:01:48 +00:00
|
|
|
|
2020-05-23 02:32:50 +00:00
|
|
|
return {
|
2021-11-20 22:59:15 +00:00
|
|
|
actors: actors.map((actor) => curateActor(actor)),
|
2020-05-23 02:32:50 +00:00
|
|
|
totalCount,
|
2021-08-22 23:29:46 +00:00
|
|
|
countries,
|
2020-05-23 02:32:50 +00:00
|
|
|
};
|
2020-05-14 02:26:05 +00:00
|
|
|
}
|
2019-11-10 03:20:22 +00:00
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
async function fetchActorReleases({ _commit }, actorId) {
|
|
|
|
const releases = await get(`/actors/${actorId}/releases`, {
|
|
|
|
filter: store.state.ui.filter,
|
|
|
|
after: store.getters.after,
|
|
|
|
before: store.getters.before,
|
|
|
|
});
|
2019-11-10 03:20:22 +00:00
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
return releases;
|
|
|
|
}
|
2019-11-10 03:20:22 +00:00
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
return {
|
2020-05-25 02:39:58 +00:00
|
|
|
fetchActorById,
|
2020-05-14 02:26:05 +00:00
|
|
|
fetchActors,
|
|
|
|
fetchActorReleases,
|
|
|
|
};
|
2019-11-10 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default initActorActions;
|