Compare commits
6 Commits
63a178ca57
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 35ffc2b0f7 | |||
| 383844dda8 | |||
| 77fb6595a2 | |||
| aa3adbe634 | |||
| 59a700c2f3 | |||
| 18f5a6f476 |
@@ -105,7 +105,7 @@
|
||||
class="bio-item residence"
|
||||
:class="{ hideable: !!actor.origin }"
|
||||
>
|
||||
<dfn class="bio-label"><Icon icon="location" />Lives in</dfn>
|
||||
<dfn class="bio-label"><Icon icon="location" />{{ actor.dateOfDeath ? 'Lived' : 'Lives' }} in</dfn>
|
||||
|
||||
<span>
|
||||
<span
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
<span
|
||||
v-if="actor.ageAtDeath"
|
||||
:title="`Passed ${formatDate(actor.ageAtDeath, 'MMMM d, yyyy')}`"
|
||||
:title="`Passed ${formatDate(actor.dateOfDeath, 'MMMM d, yyyy')}`"
|
||||
class="age age-death"
|
||||
>{{ actor.ageAtDeath }}</span>
|
||||
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "traxxx-web",
|
||||
"version": "0.49.5",
|
||||
"version": "0.49.7",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "0.49.5",
|
||||
"version": "0.49.7",
|
||||
"dependencies": {
|
||||
"@brillout/json-serializer": "^0.5.8",
|
||||
"@dicebear/collection": "^7.0.5",
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
"overrides": {
|
||||
"vite": "$vite"
|
||||
},
|
||||
"version": "0.49.5",
|
||||
"version": "0.49.7",
|
||||
"imports": {
|
||||
"#/*": "./*.js"
|
||||
}
|
||||
|
||||
@@ -57,19 +57,23 @@ export async function onBeforeRender(pageContext) {
|
||||
fetchReleases(pageContext, entityId),
|
||||
]);
|
||||
|
||||
const entityIds = entity.isIndependent || !entity.parent
|
||||
? [entity.id]
|
||||
: [entity.id, entity.parent.id];
|
||||
|
||||
const campaigns = await getRandomCampaigns([
|
||||
{
|
||||
entityIds: [entity.id, entity.parent?.id].filter(Boolean),
|
||||
entityIds,
|
||||
minRatio: 3,
|
||||
allowRandomFallback: false,
|
||||
},
|
||||
{
|
||||
entityIds: [entity.id, entity.parent?.id].filter(Boolean),
|
||||
entityIds,
|
||||
minRatio: 3,
|
||||
allowRandomFallback: false,
|
||||
},
|
||||
pageContext.routeParams.domain === 'scenes' ? {
|
||||
entityIds: [entity.id, entity.parent?.id].filter(Boolean),
|
||||
entityIds,
|
||||
minRatio: 0.75,
|
||||
maxRatio: 1.25,
|
||||
allowRandomFallback: false,
|
||||
|
||||
@@ -80,6 +80,8 @@ export function curateActor(actor, context = {}) {
|
||||
ageThen: context.sceneDate && actor.date_of_birth && actor.date_of_birth.getFullYear() > 1
|
||||
? differenceInYears(context.sceneDate, actor.date_of_birth)
|
||||
: null,
|
||||
dateOfBirth: actor.date_of_birth,
|
||||
dateOfDeath: actor.date_of_death,
|
||||
bust: actor.bust,
|
||||
cup: actor.cup,
|
||||
waist: actor.waist,
|
||||
|
||||
@@ -17,7 +17,6 @@ import initLogger from './logger.js';
|
||||
import { curateRevision } from './revisions.js';
|
||||
import { getAffiliateSceneUrl } from './affiliates.js';
|
||||
import { censor } from './censor.js';
|
||||
import initSceneRevisions from '../common/scenes-revisions.mjs';
|
||||
|
||||
const logger = initLogger();
|
||||
const mj = new MerkleJson();
|
||||
@@ -757,20 +756,6 @@ export async function fetchSceneRevisions(revisionId, filters = {}, reqUser) {
|
||||
};
|
||||
}
|
||||
|
||||
const { createSceneRevision, reviewSceneRevision } = initSceneRevisions({
|
||||
config,
|
||||
knex,
|
||||
mj,
|
||||
logger,
|
||||
fetchScenesById,
|
||||
});
|
||||
|
||||
export {
|
||||
createSceneRevision,
|
||||
reviewSceneRevision,
|
||||
};
|
||||
|
||||
/*
|
||||
const keyMap = {
|
||||
datePrecision: 'date_precision',
|
||||
productionDate: 'production_date',
|
||||
@@ -947,6 +932,10 @@ export async function reviewSceneRevision(revisionId, isApproved, { feedback },
|
||||
}
|
||||
|
||||
export async function createSceneRevision(sceneId, { edits, comment, apply }, reqUser) {
|
||||
if (!reqUser) {
|
||||
throw new HttpError('Must be authenticated to create scene revision', 401);
|
||||
}
|
||||
|
||||
const [
|
||||
[scene],
|
||||
openRevisions,
|
||||
@@ -1058,4 +1047,3 @@ export async function createSceneRevision(sceneId, { edits, comment, apply }, re
|
||||
reviewSceneRevision(revisionEntry.id, true, {}, reqUser).catch(() => {});
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
2
static
2
static
Submodule static updated: 4c6f9888dc...d77e9faeb9
Reference in New Issue
Block a user