Add legacy URL handling and update environment configurations

This commit is contained in:
MaddoScientisto 2026-04-19 08:48:15 +02:00
commit 9f56dfba1d
11 changed files with 79 additions and 28 deletions

View file

@ -1,4 +1,5 @@
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
import { legacyUrl } from '../legacyUrls.js';
const copy = {
it: {
@ -114,8 +115,8 @@ const knownServerMessages = {
'Choose a selfie before starting the search.': 'chooseSelfie'
};
const simulatorUrl = 'http://localhost:8080/faceai_simulator.php?raceId=101&lang=it';
const legacyHomeUrl = 'http://localhost:8080/index.jsp';
const simulatorUrl = legacyUrl('/faceai_simulator.php?raceId=101&lang=it');
const legacyHomeUrl = legacyUrl('/');
function isInvalidRaceAvailability(availability) {
return availability?.reasonCode === 'RACE_DIRECTORY_NOT_FOUND' || availability?.reasonCode === 'MISSING_RACE_STORAGE';