Fixed alert searches. Added Teen Mega World campaigns.

This commit is contained in:
DebaucheryLibrarian
2021-09-17 04:28:48 +02:00
parent 294f15e694
commit 0224c26ca0
16 changed files with 156 additions and 6 deletions

View File

@@ -43,11 +43,12 @@
<script>
async function search() {
if (this.content === 'actors') {
this.results = await this.$store.dispatch('searchActors', {
const { actors } = await this.$store.dispatch('fetchActors', {
query: this.query,
minLength: 1,
limit: 10,
});
this.results = actors;
}
if (this.content === 'entities') {

View File

@@ -116,6 +116,7 @@ export default {
::v-deep(.dialog-body) {
padding: 1rem;
flex-grow: 1;
overflow-y: auto;
}
::v-deep(.dialog-section:not(:last-child)) {

View File

@@ -303,7 +303,8 @@ function initActorActions(store, router) {
const genderFilter = (gender === null && 'gender: { isNull: true }')
|| (gender === 'all' && ' ')
|| `gender: { equalTo: "${gender}" }`;
|| (gender && `gender: { equalTo: "${gender}" }`)
|| '';
const ageFilter = age ? `
or: [
@@ -422,7 +423,7 @@ function initActorActions(store, router) {
query,
offset: Math.max(0, (pageNumber - 1)) * limit,
limit,
naturalBoobs,
naturalBoobs: naturalBoobs || null,
hasAuth: !!store.state.auth.user,
userId: store.state.auth.user?.id,
});

View File

@@ -247,10 +247,10 @@ function initEntitiesActions(store, router) {
const { entities } = await graphql(`
query SearchEntities(
$query: String!
$limit:Int = 20,
$limit: Int = 20,
) {
entities: searchEntities(
search: $query,
search: $query
first: $limit
) {
id