2026-03-14 19:20:56 -07:00
|
|
|
// Movie Night — Frontend Logic
|
|
|
|
|
|
|
|
|
|
const API = '';
|
|
|
|
|
let currentUser = null;
|
|
|
|
|
let selectedUserIds = [];
|
2026-03-14 20:07:05 -07:00
|
|
|
let maxRuntime = null;
|
|
|
|
|
let kidFriendly = false;
|
|
|
|
|
let shownMovieIds = [];
|
|
|
|
|
let lastMood = '';
|
|
|
|
|
let currentHistoryId = null;
|
|
|
|
|
|
|
|
|
|
const SURPRISE_PROMPTS = [
|
|
|
|
|
"pizza night with the kids",
|
|
|
|
|
"something scary but not too gory",
|
|
|
|
|
"light fun movie after a hard week",
|
|
|
|
|
"80s action classic",
|
|
|
|
|
"mind-bending sci-fi",
|
|
|
|
|
"feel-good comedy",
|
|
|
|
|
"epic adventure",
|
|
|
|
|
"rainy Sunday afternoon",
|
|
|
|
|
"date night romance",
|
|
|
|
|
"underrated hidden gem",
|
|
|
|
|
"visually stunning cinematography",
|
|
|
|
|
"based on a true story",
|
|
|
|
|
"twisty thriller with a great ending",
|
|
|
|
|
"nostalgic 90s vibes",
|
|
|
|
|
"animated movie for all ages",
|
|
|
|
|
"something weird and quirky",
|
|
|
|
|
"inspiring sports movie",
|
|
|
|
|
"cozy mystery",
|
|
|
|
|
"space exploration",
|
|
|
|
|
"laugh out loud comedy",
|
|
|
|
|
];
|
2026-03-14 19:20:56 -07:00
|
|
|
|
|
|
|
|
// --- Auth ---
|
|
|
|
|
|
|
|
|
|
async function checkAuth() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${API}/api/auth/me`);
|
|
|
|
|
if (res.ok) {
|
|
|
|
|
currentUser = await res.json();
|
|
|
|
|
showMainScreen();
|
|
|
|
|
} else {
|
|
|
|
|
showLoginScreen();
|
|
|
|
|
}
|
|
|
|
|
} catch {
|
|
|
|
|
showLoginScreen();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function login(username, password) {
|
|
|
|
|
const res = await fetch(`${API}/api/auth/login`, {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
|
|
|
body: JSON.stringify({ username, password })
|
|
|
|
|
});
|
|
|
|
|
if (!res.ok) {
|
|
|
|
|
const err = await res.json().catch(() => ({ detail: 'Login failed' }));
|
|
|
|
|
throw new Error(err.detail || 'Login failed');
|
|
|
|
|
}
|
|
|
|
|
currentUser = await res.json();
|
|
|
|
|
showMainScreen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function logout() {
|
|
|
|
|
await fetch(`${API}/api/auth/logout`, { method: 'POST' });
|
|
|
|
|
currentUser = null;
|
|
|
|
|
showLoginScreen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// --- Screens ---
|
|
|
|
|
|
|
|
|
|
function showLoginScreen() {
|
|
|
|
|
document.getElementById('login-screen').classList.remove('hidden');
|
|
|
|
|
document.getElementById('main-screen').classList.add('hidden');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showMainScreen() {
|
|
|
|
|
document.getElementById('login-screen').classList.add('hidden');
|
|
|
|
|
document.getElementById('main-screen').classList.remove('hidden');
|
|
|
|
|
document.getElementById('user-name').textContent = currentUser.name;
|
|
|
|
|
selectedUserIds = [currentUser.id];
|
|
|
|
|
loadUsers();
|
|
|
|
|
loadStats();
|
2026-03-14 19:57:50 -07:00
|
|
|
loadHistory();
|
2026-03-14 19:20:56 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// --- Users ---
|
|
|
|
|
|
|
|
|
|
async function loadUsers() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${API}/api/users`);
|
|
|
|
|
if (!res.ok) return;
|
|
|
|
|
const users = await res.json();
|
|
|
|
|
const container = document.getElementById('user-pills');
|
|
|
|
|
container.innerHTML = '';
|
|
|
|
|
users.forEach(user => {
|
|
|
|
|
const pill = document.createElement('button');
|
|
|
|
|
pill.className = `user-pill border rounded-full px-4 py-1.5 text-sm ${selectedUserIds.includes(user.id) ? 'active' : ''}`;
|
|
|
|
|
pill.textContent = user.name;
|
|
|
|
|
pill.onclick = () => toggleUser(user.id, pill);
|
|
|
|
|
container.appendChild(pill);
|
|
|
|
|
});
|
|
|
|
|
} catch { /* ignore */ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function toggleUser(userId, pill) {
|
|
|
|
|
if (selectedUserIds.includes(userId)) {
|
|
|
|
|
if (selectedUserIds.length > 1) {
|
|
|
|
|
selectedUserIds = selectedUserIds.filter(id => id !== userId);
|
|
|
|
|
pill.classList.remove('active');
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
selectedUserIds.push(userId);
|
|
|
|
|
pill.classList.add('active');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// --- Mood / Recommendations ---
|
|
|
|
|
|
2026-03-14 20:07:05 -07:00
|
|
|
async function findMovies(excludeIds = []) {
|
2026-03-14 19:20:56 -07:00
|
|
|
const mood = document.getElementById('mood-input').value.trim();
|
|
|
|
|
if (!mood) return;
|
|
|
|
|
|
2026-03-14 20:07:05 -07:00
|
|
|
// Track mood for re-roll; reset shown IDs if mood changed
|
|
|
|
|
const isReroll = excludeIds.length > 0;
|
|
|
|
|
if (mood !== lastMood) {
|
|
|
|
|
shownMovieIds = [];
|
|
|
|
|
currentHistoryId = null;
|
|
|
|
|
lastMood = mood;
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 19:20:56 -07:00
|
|
|
document.getElementById('empty-state').classList.add('hidden');
|
|
|
|
|
document.getElementById('error-state').classList.add('hidden');
|
2026-03-14 20:12:31 -07:00
|
|
|
// On re-roll, keep existing results visible; on fresh search, hide them
|
|
|
|
|
if (!isReroll) {
|
|
|
|
|
document.getElementById('results').classList.add('hidden');
|
|
|
|
|
}
|
2026-03-14 19:20:56 -07:00
|
|
|
document.getElementById('loading').classList.remove('hidden');
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const additionalIds = selectedUserIds.filter(id => id !== currentUser.id);
|
2026-03-14 20:07:05 -07:00
|
|
|
const payload = {
|
|
|
|
|
mood,
|
|
|
|
|
additional_user_ids: additionalIds,
|
|
|
|
|
exclude_ids: excludeIds,
|
|
|
|
|
kid_friendly: kidFriendly,
|
|
|
|
|
};
|
|
|
|
|
if (maxRuntime) payload.max_runtime = maxRuntime;
|
|
|
|
|
if (isReroll && currentHistoryId) payload.history_id = currentHistoryId;
|
|
|
|
|
|
2026-03-14 19:20:56 -07:00
|
|
|
const res = await fetch(`${API}/api/mood`, {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
headers: { 'Content-Type': 'application/json' },
|
2026-03-14 20:07:05 -07:00
|
|
|
body: JSON.stringify(payload)
|
2026-03-14 19:20:56 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (!res.ok) {
|
|
|
|
|
const err = await res.json().catch(() => ({ detail: 'Something went wrong' }));
|
|
|
|
|
throw new Error(err.detail || 'Failed to get recommendations');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const data = await res.json();
|
2026-03-14 20:07:05 -07:00
|
|
|
// Track shown movie IDs and history ID for re-roll
|
|
|
|
|
if (data.recommendations) {
|
|
|
|
|
data.recommendations.forEach(r => {
|
|
|
|
|
if (!shownMovieIds.includes(r.jellyfin_id)) {
|
|
|
|
|
shownMovieIds.push(r.jellyfin_id);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (data.meta && data.meta.history_id) {
|
|
|
|
|
currentHistoryId = data.meta.history_id;
|
|
|
|
|
}
|
2026-03-14 20:12:31 -07:00
|
|
|
renderResults(data, isReroll);
|
2026-03-14 19:57:50 -07:00
|
|
|
loadHistory();
|
2026-03-14 19:20:56 -07:00
|
|
|
} catch (err) {
|
|
|
|
|
document.getElementById('loading').classList.add('hidden');
|
|
|
|
|
document.getElementById('error-message').textContent = err.message;
|
|
|
|
|
document.getElementById('error-state').classList.remove('hidden');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 20:12:31 -07:00
|
|
|
function renderResults(data, append = false) {
|
2026-03-14 19:20:56 -07:00
|
|
|
document.getElementById('loading').classList.add('hidden');
|
|
|
|
|
|
|
|
|
|
const grid = document.getElementById('results-grid');
|
2026-03-14 20:12:31 -07:00
|
|
|
if (!append) {
|
|
|
|
|
grid.innerHTML = '';
|
|
|
|
|
}
|
2026-03-14 19:20:56 -07:00
|
|
|
|
|
|
|
|
if (!data.recommendations || data.recommendations.length === 0) {
|
2026-03-14 20:12:31 -07:00
|
|
|
if (!append) {
|
|
|
|
|
document.getElementById('empty-state').classList.remove('hidden');
|
|
|
|
|
}
|
2026-03-14 19:20:56 -07:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data.recommendations.forEach(movie => {
|
|
|
|
|
const card = document.createElement('div');
|
|
|
|
|
card.className = 'movie-card bg-dark-200 rounded-xl overflow-hidden border border-gray-800';
|
|
|
|
|
card.innerHTML = `
|
|
|
|
|
<div class="aspect-[2/3] bg-dark-300 relative">
|
|
|
|
|
<img src="${movie.poster_url}" alt="${movie.title}"
|
|
|
|
|
class="w-full h-full object-cover"
|
|
|
|
|
onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
|
|
|
|
|
<div class="absolute inset-0 flex items-center justify-center text-gray-600 text-lg font-semibold" style="display:none;">
|
|
|
|
|
${movie.title}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="p-4">
|
|
|
|
|
<h3 class="font-semibold text-lg leading-tight">${movie.title}</h3>
|
|
|
|
|
<div class="flex items-center gap-2 mt-1 text-sm text-gray-400">
|
|
|
|
|
${movie.year ? `<span>${movie.year}</span>` : ''}
|
|
|
|
|
${movie.runtime_minutes ? `<span>· ${movie.runtime_minutes}m</span>` : ''}
|
|
|
|
|
${movie.community_rating ? `<span>· ★ ${movie.community_rating.toFixed(1)}</span>` : ''}
|
|
|
|
|
${movie.content_rating ? `<span>· ${movie.content_rating}</span>` : ''}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-wrap gap-1 mt-2">
|
|
|
|
|
${movie.genres.slice(0, 3).map(g => `<span class="genre-pill">${g}</span>`).join('')}
|
|
|
|
|
</div>
|
|
|
|
|
<p class="text-sm text-gray-400 mt-3 italic leading-relaxed">${movie.reasoning}</p>
|
|
|
|
|
<a href="${movie.deep_link}" target="_blank"
|
|
|
|
|
class="block mt-4 text-center py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg font-semibold transition-colors text-sm">
|
|
|
|
|
Watch
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
grid.appendChild(card);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const meta = data.meta;
|
|
|
|
|
document.getElementById('results-meta').textContent =
|
|
|
|
|
`Evaluated ${meta.candidates_evaluated} of ${meta.total_unwatched} unwatched movies in ${(meta.processing_time_ms / 1000).toFixed(1)}s`;
|
|
|
|
|
|
|
|
|
|
document.getElementById('results').classList.remove('hidden');
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 19:57:50 -07:00
|
|
|
// --- Search History ---
|
|
|
|
|
|
|
|
|
|
async function loadHistory() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${API}/api/history`);
|
|
|
|
|
if (!res.ok) return;
|
|
|
|
|
const history = await res.json();
|
|
|
|
|
const list = document.getElementById('history-list');
|
|
|
|
|
list.innerHTML = '';
|
|
|
|
|
|
|
|
|
|
if (history.length === 0) {
|
|
|
|
|
document.getElementById('history-section').classList.add('hidden');
|
|
|
|
|
document.getElementById('history-toggle').classList.add('hidden');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
history.forEach(entry => {
|
|
|
|
|
const date = new Date(entry.created_at);
|
|
|
|
|
const timeStr = date.toLocaleDateString(undefined, { month: 'short', day: 'numeric' }) +
|
|
|
|
|
' ' + date.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' });
|
|
|
|
|
const movieTitles = entry.results.slice(0, 3).map(r => r.title).join(', ');
|
|
|
|
|
const more = entry.results.length > 3 ? ` +${entry.results.length - 3} more` : '';
|
|
|
|
|
|
|
|
|
|
const item = document.createElement('div');
|
|
|
|
|
item.className = 'history-item bg-dark-200 border border-gray-800 rounded-lg p-3 cursor-pointer hover:border-gray-600 transition-colors';
|
|
|
|
|
item.innerHTML = `
|
|
|
|
|
<div class="flex items-start justify-between gap-3">
|
|
|
|
|
<div class="flex-1 min-w-0">
|
|
|
|
|
<p class="text-sm font-medium text-gray-200 truncate">"${entry.mood}"</p>
|
|
|
|
|
<p class="text-xs text-gray-500 mt-1 truncate">${movieTitles}${more}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center gap-2 flex-shrink-0">
|
|
|
|
|
<span class="text-xs text-gray-600">${timeStr}</span>
|
|
|
|
|
<button class="history-delete text-gray-700 hover:text-red-400 transition-colors text-xs" data-id="${entry.id}">×</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
item.addEventListener('click', (e) => {
|
|
|
|
|
if (e.target.classList.contains('history-delete')) return;
|
|
|
|
|
showHistoryResults(entry);
|
|
|
|
|
});
|
|
|
|
|
list.appendChild(item);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Add delete handlers
|
|
|
|
|
list.querySelectorAll('.history-delete').forEach(btn => {
|
|
|
|
|
btn.addEventListener('click', async (e) => {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
const id = btn.dataset.id;
|
|
|
|
|
await fetch(`${API}/api/history/${id}`, { method: 'DELETE' });
|
|
|
|
|
loadHistory();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Show the toggle button if history is currently hidden
|
|
|
|
|
if (document.getElementById('history-section').classList.contains('hidden')) {
|
|
|
|
|
document.getElementById('history-toggle').classList.remove('hidden');
|
|
|
|
|
}
|
|
|
|
|
} catch { /* ignore */ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showHistoryResults(entry) {
|
|
|
|
|
document.getElementById('mood-input').value = entry.mood;
|
|
|
|
|
const data = { recommendations: entry.results, meta: entry.meta };
|
|
|
|
|
renderResults(data);
|
|
|
|
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function toggleHistoryVisibility(show) {
|
|
|
|
|
const section = document.getElementById('history-section');
|
|
|
|
|
const toggle = document.getElementById('history-toggle');
|
|
|
|
|
if (show) {
|
|
|
|
|
section.classList.remove('hidden');
|
|
|
|
|
toggle.classList.add('hidden');
|
|
|
|
|
} else {
|
|
|
|
|
section.classList.add('hidden');
|
|
|
|
|
toggle.classList.remove('hidden');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 19:20:56 -07:00
|
|
|
// --- Library Stats ---
|
|
|
|
|
|
|
|
|
|
async function loadStats() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${API}/api/library/stats`);
|
|
|
|
|
if (!res.ok) return;
|
|
|
|
|
const stats = await res.json();
|
|
|
|
|
document.getElementById('library-stats').textContent =
|
|
|
|
|
`${stats.total_movies} movies in library${stats.last_sync ? ` · Last synced ${new Date(stats.last_sync).toLocaleString()}` : ''}`;
|
|
|
|
|
} catch { /* ignore */ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function refreshLibrary() {
|
|
|
|
|
document.getElementById('refresh-btn').textContent = 'Syncing...';
|
|
|
|
|
try {
|
|
|
|
|
await fetch(`${API}/api/library/sync`, { method: 'POST' });
|
|
|
|
|
setTimeout(loadStats, 5000);
|
|
|
|
|
} catch { /* ignore */ }
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
document.getElementById('refresh-btn').textContent = 'Refresh Library';
|
|
|
|
|
}, 3000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// --- Event Listeners ---
|
|
|
|
|
|
|
|
|
|
document.getElementById('login-form').addEventListener('submit', async (e) => {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
const errorEl = document.getElementById('login-error');
|
|
|
|
|
errorEl.classList.add('hidden');
|
|
|
|
|
try {
|
|
|
|
|
await login(
|
|
|
|
|
document.getElementById('login-username').value,
|
|
|
|
|
document.getElementById('login-password').value
|
|
|
|
|
);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
errorEl.textContent = err.message;
|
|
|
|
|
errorEl.classList.remove('hidden');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-14 20:07:05 -07:00
|
|
|
document.getElementById('find-btn').addEventListener('click', () => findMovies());
|
2026-03-14 19:20:56 -07:00
|
|
|
document.getElementById('mood-input').addEventListener('keydown', (e) => {
|
|
|
|
|
if (e.key === 'Enter') findMovies();
|
|
|
|
|
});
|
|
|
|
|
document.getElementById('logout-btn').addEventListener('click', logout);
|
|
|
|
|
document.getElementById('refresh-btn').addEventListener('click', refreshLibrary);
|
2026-03-14 19:57:50 -07:00
|
|
|
document.getElementById('toggle-history-btn').addEventListener('click', () => toggleHistoryVisibility(false));
|
|
|
|
|
document.getElementById('show-history-btn').addEventListener('click', () => {
|
|
|
|
|
toggleHistoryVisibility(true);
|
|
|
|
|
loadHistory();
|
|
|
|
|
});
|
2026-03-14 19:20:56 -07:00
|
|
|
|
2026-03-14 20:07:05 -07:00
|
|
|
// Runtime filter buttons
|
|
|
|
|
document.querySelectorAll('.runtime-btn').forEach(btn => {
|
|
|
|
|
btn.addEventListener('click', () => {
|
|
|
|
|
document.querySelectorAll('.runtime-btn').forEach(b => b.classList.remove('active'));
|
|
|
|
|
btn.classList.add('active');
|
|
|
|
|
maxRuntime = btn.dataset.runtime ? parseInt(btn.dataset.runtime) : null;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Kid-friendly toggle
|
|
|
|
|
document.getElementById('kid-friendly-btn').addEventListener('click', () => {
|
|
|
|
|
kidFriendly = !kidFriendly;
|
|
|
|
|
const btn = document.getElementById('kid-friendly-btn');
|
|
|
|
|
if (kidFriendly) {
|
|
|
|
|
btn.classList.add('active');
|
|
|
|
|
} else {
|
|
|
|
|
btn.classList.remove('active');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Surprise me
|
|
|
|
|
document.getElementById('surprise-btn').addEventListener('click', () => {
|
|
|
|
|
const prompt = SURPRISE_PROMPTS[Math.floor(Math.random() * SURPRISE_PROMPTS.length)];
|
|
|
|
|
document.getElementById('mood-input').value = prompt;
|
|
|
|
|
findMovies();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Re-roll
|
|
|
|
|
document.getElementById('reroll-btn').addEventListener('click', () => {
|
|
|
|
|
findMovies(shownMovieIds);
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-14 20:12:31 -07:00
|
|
|
// Reset
|
|
|
|
|
document.getElementById('reset-btn').addEventListener('click', () => {
|
|
|
|
|
// Clear mood input and state
|
|
|
|
|
document.getElementById('mood-input').value = '';
|
|
|
|
|
lastMood = '';
|
|
|
|
|
shownMovieIds = [];
|
|
|
|
|
currentHistoryId = null;
|
|
|
|
|
|
|
|
|
|
// Reset runtime filter
|
|
|
|
|
maxRuntime = null;
|
|
|
|
|
document.querySelectorAll('.runtime-btn').forEach(b => b.classList.remove('active'));
|
|
|
|
|
document.querySelector('.runtime-btn[data-runtime=""]').classList.add('active');
|
|
|
|
|
|
|
|
|
|
// Reset kid-friendly
|
|
|
|
|
kidFriendly = false;
|
|
|
|
|
document.getElementById('kid-friendly-btn').classList.remove('active');
|
|
|
|
|
|
|
|
|
|
// Reset view to empty state
|
|
|
|
|
document.getElementById('results').classList.add('hidden');
|
|
|
|
|
document.getElementById('loading').classList.add('hidden');
|
|
|
|
|
document.getElementById('error-state').classList.add('hidden');
|
|
|
|
|
document.getElementById('empty-state').classList.remove('hidden');
|
|
|
|
|
document.getElementById('results-grid').innerHTML = '';
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-14 19:20:56 -07:00
|
|
|
// --- Init ---
|
|
|
|
|
checkAuth();
|