Refactor: Rename "Oscar Pool" to "Pool Oscars" in titles
Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
co-authored by
mathieumoran1
parent
76e9a934d6
commit
0c488319f6
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool - Changer le mot de passe</title>
|
<title>Pool Oscars - Changer le mot de passe</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool - Checklist</title>
|
<title>Pool Oscars - Checklist</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
<link rel="preload" as="image" href="img/logo_w.png">
|
<link rel="preload" as="image" href="img/logo_w.png">
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool - Admin</title>
|
<title>Pool Oscars - Admin</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
<link rel="preload" as="image" href="img/logo_w.png">
|
<link rel="preload" as="image" href="img/logo_w.png">
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool</title>
|
<title>Pool Oscars</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ function isTokenExpired(decoded) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function applyActiveOscarYearToTitle() {
|
async function applyActiveOscarYearToTitle() {
|
||||||
const base = 'Oscar Pool';
|
const base = 'Pool Oscars';
|
||||||
const current = String(document.title || base);
|
const current = String(document.title || base);
|
||||||
const sep = ' - ';
|
const sep = ' - ';
|
||||||
const idx = current.indexOf(sep);
|
const idx = current.indexOf(sep);
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ window.addEventListener('DOMContentLoaded', async function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const activeYear = await fetchActiveYear();
|
const activeYear = await fetchActiveYear();
|
||||||
document.title = `Oscar Pool (${activeYear}) - Checklist`;
|
document.title = `Pool Oscars (${activeYear}) - Checklist`;
|
||||||
const oscarYearEl = document.getElementById('oscar-year');
|
const oscarYearEl = document.getElementById('oscar-year');
|
||||||
if (oscarYearEl) oscarYearEl.textContent = String(activeYear);
|
if (oscarYearEl) oscarYearEl.textContent = String(activeYear);
|
||||||
|
|
||||||
|
|||||||
@@ -2332,7 +2332,7 @@ window.onload = async function () {
|
|||||||
// Initial load
|
// Initial load
|
||||||
activeYear = await fetchActiveYear();
|
activeYear = await fetchActiveYear();
|
||||||
if (activeYear) {
|
if (activeYear) {
|
||||||
document.title = `Oscar Pool (${activeYear}) - Admin`;
|
document.title = `Pool Oscars (${activeYear}) - Admin`;
|
||||||
}
|
}
|
||||||
|
|
||||||
hookModal100Inputs();
|
hookModal100Inputs();
|
||||||
@@ -2352,7 +2352,7 @@ window.onload = async function () {
|
|||||||
activeYear = await setActiveYear(y);
|
activeYear = await setActiveYear(y);
|
||||||
activeYearInput.value = String(activeYear);
|
activeYearInput.value = String(activeYear);
|
||||||
yearInput.value = String(activeYear);
|
yearInput.value = String(activeYear);
|
||||||
document.title = `Oscar Pool (${activeYear}) - Admin`;
|
document.title = `Pool Oscars (${activeYear}) - Admin`;
|
||||||
showResponse('success', `Année active appliquée: ${activeYear}`);
|
showResponse('success', `Année active appliquée: ${activeYear}`);
|
||||||
await refreshYears();
|
await refreshYears();
|
||||||
await loadMoviesForManagement();
|
await loadMoviesForManagement();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ function decodeJwt(token) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function applyActiveOscarYearToTitle() {
|
async function applyActiveOscarYearToTitle() {
|
||||||
const base = 'Oscar Pool';
|
const base = 'Pool Oscars';
|
||||||
const current = String(document.title || base);
|
const current = String(document.title || base);
|
||||||
const sep = ' - ';
|
const sep = ' - ';
|
||||||
const idx = current.indexOf(sep);
|
const idx = current.indexOf(sep);
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ window.addEventListener('DOMContentLoaded', async function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const activeYear = await fetchActiveYear();
|
const activeYear = await fetchActiveYear();
|
||||||
document.title = `Oscar Pool (${activeYear}) - Films`;
|
document.title = `Pool Oscars (${activeYear}) - Films`;
|
||||||
const oscarYearEl = document.getElementById('oscar-year');
|
const oscarYearEl = document.getElementById('oscar-year');
|
||||||
if (oscarYearEl) oscarYearEl.textContent = String(activeYear);
|
if (oscarYearEl) oscarYearEl.textContent = String(activeYear);
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ function setHeader(movie, { activeYear } = {}) {
|
|||||||
const ratingEl = document.getElementById('movie-rating');
|
const ratingEl = document.getElementById('movie-rating');
|
||||||
|
|
||||||
const year = Number.isInteger(activeYear) ? activeYear : null;
|
const year = Number.isInteger(activeYear) ? activeYear : null;
|
||||||
const titlePrefix = year ? `Oscar Pool (${year})` : 'Oscar Pool';
|
const titlePrefix = year ? `Pool Oscars (${year})` : 'Pool Oscars';
|
||||||
|
|
||||||
if (titleEl) titleEl.textContent = movie?.title || titlePrefix;
|
if (titleEl) titleEl.textContent = movie?.title || titlePrefix;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ function decodeJwt(token) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function applyActiveOscarYearToTitle() {
|
async function applyActiveOscarYearToTitle() {
|
||||||
const base = 'Oscar Pool';
|
const base = 'Pool Oscars';
|
||||||
const current = String(document.title || base);
|
const current = String(document.title || base);
|
||||||
const sep = ' - ';
|
const sep = ' - ';
|
||||||
const idx = current.indexOf(sep);
|
const idx = current.indexOf(sep);
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ window.addEventListener('DOMContentLoaded', async function () {
|
|||||||
pageLoader.setProgress(20);
|
pageLoader.setProgress(20);
|
||||||
const activeYear = await fetchActiveYear();
|
const activeYear = await fetchActiveYear();
|
||||||
if (activeYear) {
|
if (activeYear) {
|
||||||
document.title = `Oscar Pool (${activeYear}) - Statistiques des utilisateurs`;
|
document.title = `Pool Oscars (${activeYear}) - Statistiques des utilisateurs`;
|
||||||
const h2 = document.querySelector('h2');
|
const h2 = document.querySelector('h2');
|
||||||
if (h2) h2.textContent = `Statistiques des utilisateurs (${activeYear})`;
|
if (h2) h2.textContent = `Statistiques des utilisateurs (${activeYear})`;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool - Films</title>
|
<title>Pool Oscars - Films</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
<link rel="preload" as="image" href="img/logo_w.png">
|
<link rel="preload" as="image" href="img/logo_w.png">
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<!-- IMPORTANT: the player may use ?token=... for cross-origin video streaming -->
|
<!-- IMPORTANT: the player may use ?token=... for cross-origin video streaming -->
|
||||||
<meta name="referrer" content="no-referrer" />
|
<meta name="referrer" content="no-referrer" />
|
||||||
<title>Oscar Pool</title>
|
<title>Pool Oscars</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
<link rel="preload" as="image" href="img/logo_w.png">
|
<link rel="preload" as="image" href="img/logo_w.png">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool - Enregistrement</title>
|
<title>Pool Oscars - Enregistrement</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Oscar Pool - Statistiques des utilisateurs</title>
|
<title>Pool Oscars - Statistiques des utilisateurs</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="./css/app.css" rel="stylesheet">
|
<link href="./css/app.css" rel="stylesheet">
|
||||||
<link rel="preload" as="image" href="img/logo_w.png">
|
<link rel="preload" as="image" href="img/logo_w.png">
|
||||||
|
|||||||
Reference in New Issue
Block a user