Added WIP campaigns. Fixed entity tiles using full logo.
This commit is contained in:
@@ -115,7 +115,7 @@ async function login() {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
userInput.value.focus();
|
||||
userInput.value?.focus();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ const popularNetworks = [
|
||||
'hussiepass',
|
||||
'julesjordan',
|
||||
'kink',
|
||||
'mikeadriano',
|
||||
'mofos',
|
||||
'naughtyamerica',
|
||||
'newsensations',
|
||||
|
||||
@@ -709,6 +709,7 @@ function copySummary() {
|
||||
.detail {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.input {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { fetchScenes } from '#/src/scenes.js';
|
||||
import { curateScenesQuery } from '#/src/web/scenes.js';
|
||||
import { getRandomCampaign } from '#/src/campaigns.js';
|
||||
|
||||
export async function onBeforeRender(pageContext) {
|
||||
const withQuery = Object.hasOwn(pageContext.urlParsed.search, 'q');
|
||||
@@ -18,10 +19,14 @@ export async function onBeforeRender(pageContext) {
|
||||
tagFilter: pageContext.tagFilter,
|
||||
}), {
|
||||
page: Number(pageContext.routeParams.page) || 1,
|
||||
limit: Number(pageContext.urlParsed.search.limit) || 30,
|
||||
limit: Number(pageContext.urlParsed.search.limit) || 29,
|
||||
aggregate: withQuery,
|
||||
}, pageContext.user);
|
||||
|
||||
// const campaignIndex = Math.floor(Math.random() * (scenes.length - 5)) + 5;
|
||||
const campaignIndex = Math.floor((Math.random() * (0.5 - 0.2) + 0.2) * scenes.length);
|
||||
const sceneCampaign = await getRandomCampaign({ minRatio: 0.75, maxRatio: 1.25 });
|
||||
|
||||
return {
|
||||
pageContext: {
|
||||
title: pageContext.routeParams.scope,
|
||||
@@ -32,6 +37,10 @@ export async function onBeforeRender(pageContext) {
|
||||
aggActors,
|
||||
limit,
|
||||
total,
|
||||
campaigns: {
|
||||
index: campaignIndex,
|
||||
scenes: sceneCampaign,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user