Compare commits

..

No commits in common. "0cc9ee51e2654b8f4c0027764e78ed62caee293b" and "fb574e62d42dfc9e504e0755b9646df0977f4a53" have entirely different histories.

10 changed files with 41 additions and 22 deletions

View File

@ -47,7 +47,7 @@
:title="entity.name" :title="entity.name"
> >
<img <img
v-if="entity.isIndependent || entity.type === 'network' || !entity.parent" v-if="entity.isIndependent || entity.type === 'network'"
:src="`/logos/${entity.slug}/favicon_dark.png`" :src="`/logos/${entity.slug}/favicon_dark.png`"
class="favicon" class="favicon"
> >

View File

@ -228,7 +228,6 @@ function updateFilter(prop, value, reload = true) {
<style scoped> <style scoped>
.movies-page { .movies-page {
display: flex; display: flex;
flex-grow: 1;
background: var(--background-base-10); background: var(--background-base-10);
} }

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.27.2", "version": "0.27.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.27.2", "version": "0.27.1",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@ -78,5 +78,5 @@
"postcss-custom-media": "^10.0.2", "postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2" "postcss-nesting": "^12.0.2"
}, },
"version": "0.27.2" "version": "0.27.1"
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="page"> <div>
<Movies /> <Movies />
</div> </div>
</template> </template>
@ -7,10 +7,3 @@
<script setup> <script setup>
import Movies from '#/components/movies/movies.vue'; import Movies from '#/components/movies/movies.vue';
</script> </script>
<style scoped>
.page {
display: flex;
flex-grow: 1;
}
</style>

View File

@ -249,7 +249,6 @@ const scenes = pageContext.pageProps.scenes;
<style scoped> <style scoped>
.page { .page {
display: flex; display: flex;
flex-grow: 1;
justify-content: center; justify-content: center;
background: var(--background-base-10); background: var(--background-base-10);
} }

View File

@ -19,12 +19,26 @@ export async function onBeforeRender(pageContext) {
limit: Number(pageContext.urlParsed.search.limit) || 50, limit: Number(pageContext.urlParsed.search.limit) || 50,
}, pageContext.user); }, pageContext.user);
const {
movies,
aggActors,
aggTags,
aggChannels,
total,
limit,
} = movieResults;
return { return {
pageContext: { pageContext: {
title: `${stash.name} by ${stash.user.username}`, title: `${stash.name} by ${stash.user.username}`,
pageProps: { pageProps: {
stash, stash,
...movieResults, movies,
aggActors,
aggTags,
aggChannels,
total,
limit,
}, },
}, },
}; };

View File

@ -20,12 +20,26 @@ export async function onBeforeRender(pageContext) {
limit: Number(pageContext.urlParsed.search.limit) || 30, limit: Number(pageContext.urlParsed.search.limit) || 30,
}, pageContext.user); }, pageContext.user);
const {
scenes,
aggActors,
aggTags,
aggChannels,
total,
limit,
} = stashScenes;
return { return {
pageContext: { pageContext: {
title: `${stash.name} by ${stash.user.username}`, title: `${stash.name} by ${stash.user.username}`,
pageProps: { pageProps: {
stash, stash,
...stashScenes, scenes,
aggActors,
aggTags,
aggChannels,
total,
limit,
}, },
}, },
}; };

View File

@ -227,7 +227,7 @@ async function queryManticoreSql(filters, options) {
movies.stashed as stashed, movies.stashed as stashed,
movies.created_at, movies.created_at,
created_at as stashed_at, created_at as stashed_at,
year(movies.effective_date) as effective_year, year(effective_date) as effective_year,
weight() as _score weight() as _score
`)); `));
@ -237,7 +237,7 @@ async function queryManticoreSql(filters, options) {
} else { } else {
builder.select(knex.raw(` builder.select(knex.raw(`
*, *,
year(movies.effective_date) as effective_year, year(effective_date) as effective_year,
weight() as _score weight() as _score
`)); `));
} }
@ -303,7 +303,7 @@ async function queryManticoreSql(filters, options) {
.offset((options.page - 1) * options.limit) .offset((options.page - 1) * options.limit)
.toString(), .toString(),
// option threads=1 fixes actors, but drastically slows down performance, wait for fix // option threads=1 fixes actors, but drastically slows down performance, wait for fix
yearsFacet: options.aggregateYears ? knex.raw('facet effective_year as years order by effective_year desc limit ?', [aggSize]) : null, yearsFacet: options.aggregateYears ? knex.raw('facet year(effective_date) as years order by years desc limit ?', [aggSize]) : null,
actorsFacet: options.aggregateActors ? knex.raw('facet movies.actor_ids order by count(*) desc limit ?', [aggSize]) : null, actorsFacet: options.aggregateActors ? knex.raw('facet movies.actor_ids order by count(*) desc limit ?', [aggSize]) : null,
tagsFacet: options.aggregateTags ? knex.raw('facet movies.tag_ids order by count(*) desc limit ?', [aggSize]) : null, tagsFacet: options.aggregateTags ? knex.raw('facet movies.tag_ids order by count(*) desc limit ?', [aggSize]) : null,
channelsFacet: options.aggregateChannels ? knex.raw('facet movies.channel_id order by count(*) desc limit ?', [aggSize]) : null, channelsFacet: options.aggregateChannels ? knex.raw('facet movies.channel_id order by count(*) desc limit ?', [aggSize]) : null,

View File

@ -354,7 +354,7 @@ async function queryManticoreSql(filters, options, _reqUser) {
scenes.stashed as stashed, scenes.stashed as stashed,
scenes.created_at, scenes.created_at,
created_at as stashed_at, created_at as stashed_at,
year(scenes.effective_date) as effective_year, year(effective_date) as effective_year,
weight() as _score weight() as _score
`)); `));
@ -364,7 +364,7 @@ async function queryManticoreSql(filters, options, _reqUser) {
} else { } else {
builder.select(knex.raw(` builder.select(knex.raw(`
*, *,
year(scenes.effective_date) as effective_year, year(effective_date) as effective_year,
weight() as _score weight() as _score
`)); `));
} }
@ -463,7 +463,7 @@ async function queryManticoreSql(filters, options, _reqUser) {
.limit(options.limit) .limit(options.limit)
.offset((options.page - 1) * options.limit), .offset((options.page - 1) * options.limit),
// option threads=1 fixes actors, but drastically slows down performance, wait for fix // option threads=1 fixes actors, but drastically slows down performance, wait for fix
yearsFacet: options.aggregateYears ? knex.raw('facet effective_year as years order by effective_year desc limit ?', [aggSize]) : null, yearsFacet: options.aggregateYears ? knex.raw('facet year(effective_date) as years order by years desc limit ?', [aggSize]) : null,
actorsFacet: options.aggregateActors ? knex.raw('facet scenes.actor_ids order by count(*) desc limit ?', [aggSize]) : null, actorsFacet: options.aggregateActors ? knex.raw('facet scenes.actor_ids order by count(*) desc limit ?', [aggSize]) : null,
tagsFacet: options.aggregateTags ? knex.raw('facet scenes.tag_ids order by count(*) desc limit ?', [aggSize]) : null, tagsFacet: options.aggregateTags ? knex.raw('facet scenes.tag_ids order by count(*) desc limit ?', [aggSize]) : null,
channelsFacet: options.aggregateChannels ? knex.raw('facet scenes.channel_id order by count(*) desc limit ?', [aggSize]) : null, channelsFacet: options.aggregateChannels ? knex.raw('facet scenes.channel_id order by count(*) desc limit ?', [aggSize]) : null,