After changing theapp name
@ -1,5 +1,5 @@
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Prediqo — variables d'environnement (NE PAS committer le fichier .env réel)
|
# Tloto — variables d'environnement (NE PAS committer le fichier .env réel)
|
||||||
#
|
#
|
||||||
# DÉVELOPPEMENT LOCAL avec Docker (stack identique au VPS, Postgres sur l'hôte) :
|
# DÉVELOPPEMENT LOCAL avec Docker (stack identique au VPS, Postgres sur l'hôte) :
|
||||||
# • cp .env.docker.example .env.docker
|
# • cp .env.docker.example .env.docker
|
||||||
@ -98,7 +98,7 @@ SWEEP_MIN_AMOUNT_RAW=1000000
|
|||||||
# HOT_USDT_MIN_RESERVE_RAW=0
|
# HOT_USDT_MIN_RESERVE_RAW=0
|
||||||
RATE_LIMIT_MAX=2000
|
RATE_LIMIT_MAX=2000
|
||||||
|
|
||||||
# Ports dédiés Prediqo (n'utilise pas 80/443 du VPS)
|
# Ports dédiés Tloto (n'utilise pas 80/443 du VPS)
|
||||||
PREDIQO_HTTP_PORT=9080
|
PREDIQO_HTTP_PORT=9080
|
||||||
PREDIQO_HTTPS_PORT=9443
|
PREDIQO_HTTPS_PORT=9443
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Prediqo
|
# Tloto
|
||||||
|
|
||||||
**Prediqo** is an online prediction games platform (web + mobile) where players use **cryptocurrencies** as the payment method. The stack includes a crypto wallet layer (**USDT TRC20**, **TRX**, **USDC Polygon**) managed by the platform, ready for game integration.
|
**Tloto** is an online prediction games platform (web + mobile) where players use **cryptocurrencies** as the payment method. The stack includes a crypto wallet layer (**USDT TRC20**, **TRX**, **USDC Polygon**) managed by the platform, ready for game integration.
|
||||||
|
|
||||||
## Monorepo layout
|
## Monorepo layout
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ npm run migrate
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Prediqo Mobile (Flutter)
|
## Tloto Mobile (Flutter)
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
@ -223,7 +223,7 @@ Configure API base URL:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Prediqo Web (React)
|
## Tloto Web (React)
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ PASSWORD_RESET_EXPIRY_HOURS=1
|
|||||||
# SMTP_SECURE=false
|
# SMTP_SECURE=false
|
||||||
# SMTP_USER=your-smtp-user
|
# SMTP_USER=your-smtp-user
|
||||||
# SMTP_PASS=your-smtp-password
|
# SMTP_PASS=your-smtp-password
|
||||||
# EMAIL_FROM=Prediqo <noreply@yourdomain.com>
|
# EMAIL_FROM=Tloto <noreply@yourdomain.com>
|
||||||
|
|
||||||
# Candle Predict engine (performance tuning for production scale)
|
# Candle Predict engine (performance tuning for production scale)
|
||||||
# CANDLE_PREDICT_ENGINE_TICK_MS=3000 # main loop interval (ms)
|
# CANDLE_PREDICT_ENGINE_TICK_MS=3000 # main loop interval (ms)
|
||||||
|
|||||||
@ -33,7 +33,7 @@ async function main(): Promise<void> {
|
|||||||
|
|
||||||
const server = http.createServer((_req, res) => {
|
const server = http.createServer((_req, res) => {
|
||||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
||||||
res.end('Prediqo WebSocket gateway');
|
res.end('Tloto WebSocket gateway');
|
||||||
});
|
});
|
||||||
|
|
||||||
const gameWss = new WebSocketServer({ noServer: true });
|
const gameWss = new WebSocketServer({ noServer: true });
|
||||||
|
|||||||
5
backend/src/brand/platformName.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/** Official platform name shown in emails, 2FA issuers, and user-facing copy. */
|
||||||
|
export const PLATFORM_NAME = 'Tloto';
|
||||||
|
|
||||||
|
/** Wordmark spelling used in branded email headers. */
|
||||||
|
export const PLATFORM_WORDMARK = 'TLOTO';
|
||||||
@ -648,7 +648,7 @@ CREATE TABLE IF NOT EXISTS candle_predict_config (
|
|||||||
wallet_type_code VARCHAR(32) NOT NULL DEFAULT 'USDT_TRC20',
|
wallet_type_code VARCHAR(32) NOT NULL DEFAULT 'USDT_TRC20',
|
||||||
auto_modes JSONB NOT NULL DEFAULT '["each_round","interval"]'::jsonb,
|
auto_modes JSONB NOT NULL DEFAULT '["each_round","interval"]'::jsonb,
|
||||||
is_active BOOLEAN NOT NULL DEFAULT TRUE,
|
is_active BOOLEAN NOT NULL DEFAULT TRUE,
|
||||||
-- Display-only synthetic instrument branding (OHLC still from Prediqo engine).
|
-- Display-only synthetic instrument branding (OHLC still from Tloto engine).
|
||||||
instrument_symbol VARCHAR(16) NOT NULL DEFAULT 'FO',
|
instrument_symbol VARCHAR(16) NOT NULL DEFAULT 'FO',
|
||||||
instrument_display_name VARCHAR(64) NOT NULL DEFAULT 'Full Option',
|
instrument_display_name VARCHAR(64) NOT NULL DEFAULT 'Full Option',
|
||||||
instrument_quote_currency VARCHAR(16) NOT NULL DEFAULT 'USDT',
|
instrument_quote_currency VARCHAR(16) NOT NULL DEFAULT 'USDT',
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import jwt from 'jsonwebtoken';
|
|||||||
import { authenticator } from 'otplib';
|
import { authenticator } from 'otplib';
|
||||||
import { randomBytes } from 'crypto';
|
import { randomBytes } from 'crypto';
|
||||||
import * as QRCode from 'qrcode';
|
import * as QRCode from 'qrcode';
|
||||||
|
import { PLATFORM_NAME } from '../brand/platformName';
|
||||||
import { config } from '../config';
|
import { config } from '../config';
|
||||||
import { hashForIndex, hashForPhone, hashToken, decrypt, encrypt } from '../utils/crypto';
|
import { hashForIndex, hashForPhone, hashToken, decrypt, encrypt } from '../utils/crypto';
|
||||||
import * as userRepository from '../repositories/userRepository';
|
import * as userRepository from '../repositories/userRepository';
|
||||||
@ -730,7 +731,7 @@ export async function setupTotp(
|
|||||||
|
|
||||||
const secret = authenticator.generateSecret();
|
const secret = authenticator.generateSecret();
|
||||||
const encrypted = encrypt(secret);
|
const encrypted = encrypt(secret);
|
||||||
const otpauth = authenticator.keyuri(user.email_hash, 'Prediqo', secret);
|
const otpauth = authenticator.keyuri(user.email_hash, PLATFORM_NAME, secret);
|
||||||
const qrCodeUrl = await QRCode.toDataURL(otpauth);
|
const qrCodeUrl = await QRCode.toDataURL(otpauth);
|
||||||
await userRepository.updateTotp(userId, encrypted, false);
|
await userRepository.updateTotp(userId, encrypted, false);
|
||||||
await auditLogRepository.create({
|
await auditLogRepository.create({
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
import nodemailer from 'nodemailer';
|
import nodemailer from 'nodemailer';
|
||||||
import type Transporter from 'nodemailer/lib/mailer';
|
import type Transporter from 'nodemailer/lib/mailer';
|
||||||
|
import { PLATFORM_NAME, PLATFORM_WORDMARK } from '../brand/platformName';
|
||||||
import { config } from '../config';
|
import { config } from '../config';
|
||||||
|
|
||||||
let transporter: Transporter | null = null;
|
let transporter: Transporter | null = null;
|
||||||
@ -94,21 +95,21 @@ function resolveFromAddress(): string {
|
|||||||
const usesGmail = host.includes('gmail.com') || host.includes('googlemail.com');
|
const usesGmail = host.includes('gmail.com') || host.includes('googlemail.com');
|
||||||
|
|
||||||
if (usesGmail && user.endsWith('@gmail.com') && !fromEmail.endsWith('@gmail.com')) {
|
if (usesGmail && user.endsWith('@gmail.com') && !fromEmail.endsWith('@gmail.com')) {
|
||||||
return `"Prediqo" <${user}>`;
|
return `"${PLATFORM_NAME}" <${user}>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return from;
|
return from;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Shared Prediqo HTML shell (no external image — works in all mail clients). */
|
/** Shared branded HTML shell (no external image — works in all mail clients). */
|
||||||
function brandEmailHtml(title: string, bodyHtml: string): string {
|
function brandEmailHtml(title: string, bodyHtml: string): string {
|
||||||
return `
|
return `
|
||||||
<div style="font-family:system-ui,-apple-system,Segoe UI,sans-serif;max-width:520px;margin:0 auto;padding:24px;background:#0B0F1A;color:#F8FAFC;border-radius:12px;">
|
<div style="font-family:system-ui,-apple-system,Segoe UI,sans-serif;max-width:520px;margin:0 auto;padding:24px;background:#0B0F1A;color:#F8FAFC;border-radius:12px;">
|
||||||
<div style="font-weight:900;font-size:20px;letter-spacing:0.3px;color:#10B981;margin:0 0 16px;">Prediqo</div>
|
<div style="font-weight:900;font-size:20px;letter-spacing:0.3px;color:#10B981;margin:0 0 16px;">${PLATFORM_WORDMARK}</div>
|
||||||
<h2 style="color:#F8FAFC;margin:0 0 16px;font-size:22px;">${title}</h2>
|
<h2 style="color:#F8FAFC;margin:0 0 16px;font-size:22px;">${title}</h2>
|
||||||
${bodyHtml}
|
${bodyHtml}
|
||||||
<p style="font-size:11px;color:#64748B;margin:28px 0 0;border-top:1px solid #1E2740;padding-top:14px;">
|
<p style="font-size:11px;color:#64748B;margin:28px 0 0;border-top:1px solid #1E2740;padding-top:14px;">
|
||||||
Prediqo — premium prediction platform
|
${PLATFORM_NAME} — premium prediction platform
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -122,9 +123,9 @@ const CTA_STYLE =
|
|||||||
* @param verifyUrl - Full URL opened by the user to confirm ownership
|
* @param verifyUrl - Full URL opened by the user to confirm ownership
|
||||||
*/
|
*/
|
||||||
export async function sendVerificationEmail(to: string, verifyUrl: string): Promise<void> {
|
export async function sendVerificationEmail(to: string, verifyUrl: string): Promise<void> {
|
||||||
const subject = 'Verify your Prediqo email address';
|
const subject = 'Verify your Tloto email address';
|
||||||
const text = [
|
const text = [
|
||||||
'Welcome to Prediqo!',
|
'Welcome to Tloto!',
|
||||||
'',
|
'',
|
||||||
'Please verify your email address by opening this link:',
|
'Please verify your email address by opening this link:',
|
||||||
verifyUrl,
|
verifyUrl,
|
||||||
@ -136,7 +137,7 @@ export async function sendVerificationEmail(to: string, verifyUrl: string): Prom
|
|||||||
const html = brandEmailHtml(
|
const html = brandEmailHtml(
|
||||||
'Verify your email',
|
'Verify your email',
|
||||||
`
|
`
|
||||||
<p style="color:#94A3B8;line-height:1.5;">Thanks for joining <strong style="color:#F8FAFC;">Prediqo</strong>. Confirm your email address to secure your account.</p>
|
<p style="color:#94A3B8;line-height:1.5;">Thanks for joining <strong style="color:#F8FAFC;">Tloto</strong>. Confirm your email address to secure your account.</p>
|
||||||
<p style="margin:24px 0;">
|
<p style="margin:24px 0;">
|
||||||
<a href="${verifyUrl}" style="${CTA_STYLE}">Verify email</a>
|
<a href="${verifyUrl}" style="${CTA_STYLE}">Verify email</a>
|
||||||
</p>
|
</p>
|
||||||
@ -171,9 +172,9 @@ export async function sendVerificationEmail(to: string, verifyUrl: string): Prom
|
|||||||
* Sends a password reset message with a clickable link.
|
* Sends a password reset message with a clickable link.
|
||||||
*/
|
*/
|
||||||
export async function sendPasswordResetEmail(to: string, resetUrl: string): Promise<void> {
|
export async function sendPasswordResetEmail(to: string, resetUrl: string): Promise<void> {
|
||||||
const subject = 'Reset your Prediqo password';
|
const subject = 'Reset your Tloto password';
|
||||||
const text = [
|
const text = [
|
||||||
'You requested a password reset for your Prediqo account.',
|
'You requested a password reset for your Tloto account.',
|
||||||
'',
|
'',
|
||||||
'Open this link to choose a new password:',
|
'Open this link to choose a new password:',
|
||||||
resetUrl,
|
resetUrl,
|
||||||
@ -185,7 +186,7 @@ export async function sendPasswordResetEmail(to: string, resetUrl: string): Prom
|
|||||||
const html = brandEmailHtml(
|
const html = brandEmailHtml(
|
||||||
'Reset your password',
|
'Reset your password',
|
||||||
`
|
`
|
||||||
<p style="color:#94A3B8;line-height:1.5;">We received a request to reset the password for your <strong style="color:#F8FAFC;">Prediqo</strong> account.</p>
|
<p style="color:#94A3B8;line-height:1.5;">We received a request to reset the password for your <strong style="color:#F8FAFC;">Tloto</strong> account.</p>
|
||||||
<p style="margin:24px 0;">
|
<p style="margin:24px 0;">
|
||||||
<a href="${resetUrl}" style="${CTA_STYLE}">Reset password</a>
|
<a href="${resetUrl}" style="${CTA_STYLE}">Reset password</a>
|
||||||
</p>
|
</p>
|
||||||
@ -233,9 +234,9 @@ export async function sendSecurityAlertEmail(
|
|||||||
to: string,
|
to: string,
|
||||||
alert: SecurityAlertPayload
|
alert: SecurityAlertPayload
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const subject = `[Prediqo Security ${alert.severity.toUpperCase()}] ${alert.title}`;
|
const subject = `[Tloto Security ${alert.severity.toUpperCase()}] ${alert.title}`;
|
||||||
const text = [
|
const text = [
|
||||||
'A security alert was raised on the Prediqo platform.',
|
'A security alert was raised on the Tloto platform.',
|
||||||
'',
|
'',
|
||||||
`Alert ID: ${alert.alertId}`,
|
`Alert ID: ${alert.alertId}`,
|
||||||
`Severity: ${alert.severity}`,
|
`Severity: ${alert.severity}`,
|
||||||
@ -348,10 +349,10 @@ async function sendUserSecurityEmail(
|
|||||||
export async function sendNewLoginEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
export async function sendNewLoginEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'New sign-in to your Prediqo account',
|
'New sign-in to your Tloto account',
|
||||||
'New sign-in detected',
|
'New sign-in detected',
|
||||||
[
|
[
|
||||||
'We detected a sign-in to your Prediqo account from a new IP address or device.',
|
'We detected a sign-in to your Tloto account from a new IP address or device.',
|
||||||
'',
|
'',
|
||||||
formatSecurityContext(ctx),
|
formatSecurityContext(ctx),
|
||||||
'',
|
'',
|
||||||
@ -370,10 +371,10 @@ export async function sendNewCountryLoginEmail(to: string, ctx: SecurityEmailCon
|
|||||||
const country = ctx.countryCode?.trim() || 'unknown';
|
const country = ctx.countryCode?.trim() || 'unknown';
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'Sign-in from a new country on your Prediqo account',
|
'Sign-in from a new country on your Tloto account',
|
||||||
'New country sign-in',
|
'New country sign-in',
|
||||||
[
|
[
|
||||||
`We detected a sign-in to your Prediqo account from a new country (${country}).`,
|
`We detected a sign-in to your Tloto account from a new country (${country}).`,
|
||||||
'',
|
'',
|
||||||
formatSecurityContext(ctx),
|
formatSecurityContext(ctx),
|
||||||
'',
|
'',
|
||||||
@ -391,16 +392,16 @@ export async function sendNewCountryLoginEmail(to: string, ctx: SecurityEmailCon
|
|||||||
export async function sendPasswordChangedEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
export async function sendPasswordChangedEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'Your Prediqo password was changed',
|
'Your Tloto password was changed',
|
||||||
'Password changed',
|
'Password changed',
|
||||||
[
|
[
|
||||||
'The password for your Prediqo account was just changed.',
|
'The password for your Tloto account was just changed.',
|
||||||
'',
|
'',
|
||||||
formatSecurityContext(ctx),
|
formatSecurityContext(ctx),
|
||||||
'',
|
'',
|
||||||
`Time: ${new Date().toISOString()}`,
|
`Time: ${new Date().toISOString()}`,
|
||||||
],
|
],
|
||||||
`<p>The password for your Prediqo account was just changed.</p>
|
`<p>The password for your Tloto account was just changed.</p>
|
||||||
<ul style="font-size:14px;line-height:1.6;">${formatSecurityContextHtml(ctx)}</ul>
|
<ul style="font-size:14px;line-height:1.6;">${formatSecurityContextHtml(ctx)}</ul>
|
||||||
<p style="font-size:13px;color:#666;">Time: ${new Date().toISOString()}</p>`
|
<p style="font-size:13px;color:#666;">Time: ${new Date().toISOString()}</p>`
|
||||||
);
|
);
|
||||||
@ -410,10 +411,10 @@ export async function sendPasswordChangedEmail(to: string, ctx: SecurityEmailCon
|
|||||||
export async function sendTotpEnabledEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
export async function sendTotpEnabledEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'Two-factor authentication enabled on Prediqo',
|
'Two-factor authentication enabled on Tloto',
|
||||||
'2FA enabled',
|
'2FA enabled',
|
||||||
[
|
[
|
||||||
'Two-factor authentication was enabled on your Prediqo account.',
|
'Two-factor authentication was enabled on your Tloto account.',
|
||||||
'',
|
'',
|
||||||
formatSecurityContext(ctx),
|
formatSecurityContext(ctx),
|
||||||
'',
|
'',
|
||||||
@ -429,10 +430,10 @@ export async function sendTotpEnabledEmail(to: string, ctx: SecurityEmailContext
|
|||||||
export async function sendTotpDisabledEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
export async function sendTotpDisabledEmail(to: string, ctx: SecurityEmailContext): Promise<void> {
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'Two-factor authentication disabled on Prediqo',
|
'Two-factor authentication disabled on Tloto',
|
||||||
'2FA disabled',
|
'2FA disabled',
|
||||||
[
|
[
|
||||||
'Two-factor authentication was disabled on your Prediqo account.',
|
'Two-factor authentication was disabled on your Tloto account.',
|
||||||
'',
|
'',
|
||||||
formatSecurityContext(ctx),
|
formatSecurityContext(ctx),
|
||||||
'',
|
'',
|
||||||
@ -453,10 +454,10 @@ export async function sendRolesChangedEmail(
|
|||||||
const roleList = roles.join(', ') || '(none)';
|
const roleList = roles.join(', ') || '(none)';
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'Your Prediqo account roles were updated',
|
'Your Tloto account roles were updated',
|
||||||
'Account roles updated',
|
'Account roles updated',
|
||||||
[
|
[
|
||||||
'An administrator updated the roles assigned to your Prediqo account.',
|
'An administrator updated the roles assigned to your Tloto account.',
|
||||||
'',
|
'',
|
||||||
`New roles: ${roleList}`,
|
`New roles: ${roleList}`,
|
||||||
'',
|
'',
|
||||||
@ -480,10 +481,10 @@ export async function sendPermissionsChangedEmail(
|
|||||||
const permList = permissions.join(', ') || '(none)';
|
const permList = permissions.join(', ') || '(none)';
|
||||||
await sendUserSecurityEmail(
|
await sendUserSecurityEmail(
|
||||||
to,
|
to,
|
||||||
'Your Prediqo account permissions were updated',
|
'Your Tloto account permissions were updated',
|
||||||
'Account permissions updated',
|
'Account permissions updated',
|
||||||
[
|
[
|
||||||
'An administrator updated the permissions assigned to your Prediqo account.',
|
'An administrator updated the permissions assigned to your Tloto account.',
|
||||||
'',
|
'',
|
||||||
`Effective permissions: ${permList}`,
|
`Effective permissions: ${permList}`,
|
||||||
'',
|
'',
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* E2E API contract tests for the Prediqo mobile app.
|
* E2E API contract tests for the Tloto mobile app.
|
||||||
* Validates endpoints, payloads, and response shapes the Flutter client relies on.
|
* Validates endpoints, payloads, and response shapes the Flutter client relies on.
|
||||||
*/
|
*/
|
||||||
import { test, describe, mock, afterEach, before } from 'node:test';
|
import { test, describe, mock, afterEach, before } from 'node:test';
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 420 128" role="img" aria-label="Prediqo">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 420 128" role="img" aria-label="Tloto">
|
||||||
<g>
|
<g>
|
||||||
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
||||||
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
||||||
@ -8,5 +8,5 @@
|
|||||||
<circle cx="70" cy="64" r="7" fill="#10B981"/>
|
<circle cx="70" cy="64" r="7" fill="#10B981"/>
|
||||||
<path d="M70 52 L72 58 L78.5 60 L72 62 L70 68 L68 62 L61.5 60 L68 58 Z" fill="#D4AF37"/>
|
<path d="M70 52 L72 58 L78.5 60 L72 62 L70 68 L68 62 L61.5 60 L68 58 Z" fill="#D4AF37"/>
|
||||||
</g>
|
</g>
|
||||||
<text x="152" y="82" font-family="Inter, Segoe UI, system-ui, sans-serif" font-size="64" font-weight="800" fill="#F8FAFC" letter-spacing="-1.5">Prediqo</text>
|
<text x="152" y="82" font-family="Inter, Segoe UI, system-ui, sans-serif" font-size="64" font-weight="800" fill="#F8FAFC" letter-spacing="-1.5">TLOTO</text>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 930 B |
@ -1,4 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Prediqo mark">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Tloto mark">
|
||||||
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
||||||
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
||||||
<!-- Custom P stem with cut ends -->
|
<!-- Custom P stem with cut ends -->
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 896 B |
@ -1,6 +1,6 @@
|
|||||||
# Guide de déploiement Prediqo sur VPS
|
# Guide de déploiement Tloto sur VPS
|
||||||
|
|
||||||
Ce guide décrit comment lancer Prediqo sur un serveur Linux (VPS) **sans perturber** les autres applications (ports dédiés **9080** / **9443**).
|
Ce guide décrit comment lancer Tloto sur un serveur Linux (VPS) **sans perturber** les autres applications (ports dédiés **9080** / **9443**).
|
||||||
|
|
||||||
**Démarrage sur base vierge (VPS + local) :** voir la [section 4](#4-démarrage-sur-base-de-données-vierge-vps-et-local).
|
**Démarrage sur base vierge (VPS + local) :** voir la [section 4](#4-démarrage-sur-base-de-données-vierge-vps-et-local).
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ SMTP_PORT=587
|
|||||||
SMTP_SECURE=false
|
SMTP_SECURE=false
|
||||||
SMTP_USER=votre-compte@gmail.com
|
SMTP_USER=votre-compte@gmail.com
|
||||||
SMTP_PASS=xxxxxxxxxxxxxxxx
|
SMTP_PASS=xxxxxxxxxxxxxxxx
|
||||||
EMAIL_FROM="Prediqo" <votre-compte@gmail.com>
|
EMAIL_FROM="Tloto" <votre-compte@gmail.com>
|
||||||
APP_PUBLIC_URL=https://prediqo.redirectme.net:9443
|
APP_PUBLIC_URL=https://prediqo.redirectme.net:9443
|
||||||
RESET_PASSWORD_PATH=/reset-password
|
RESET_PASSWORD_PATH=/reset-password
|
||||||
```
|
```
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "prediqo",
|
"name": "prediqo",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Prediqo monorepo — Phase B Docker Compose helpers",
|
"description": "Tloto monorepo — Phase B Docker Compose helpers",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"phase-b:init": "docker compose run --rm --no-deps --build backend node dist/db/migrate.js && docker compose --profile http up -d --build",
|
"phase-b:init": "docker compose run --rm --no-deps --build backend node dist/db/migrate.js && docker compose --profile http up -d --build",
|
||||||
"phase-b:init:https": "docker compose run --rm --no-deps --build backend node dist/db/migrate.js && docker compose --profile https-dns up -d --build",
|
"phase-b:init:https": "docker compose run --rm --no-deps --build backend node dist/db/migrate.js && docker compose --profile https-dns up -d --build",
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Prediqo Mobile
|
# Tloto Mobile
|
||||||
|
|
||||||
## API URL (compile-time)
|
## API URL (compile-time)
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Prediqo Mobile — Tests E2E
|
# Tloto Mobile — Tests E2E
|
||||||
|
|
||||||
Guide pour exécuter les tests end-to-end de l'application mobile et des contrats API associés.
|
Guide pour exécuter les tests end-to-end de l'application mobile et des contrats API associés.
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<application
|
<application
|
||||||
android:label="Prediqo"
|
android:label="Tloto"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:usesCleartextTraffic="true">
|
android:usesCleartextTraffic="true">
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Prediqo mark">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Tloto mark">
|
||||||
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
||||||
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
||||||
<!-- Custom P stem with cut ends -->
|
<!-- Custom P stem with cut ends -->
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 896 B |
@ -10,7 +10,7 @@ import '../test/support/e2e_fixtures.dart';
|
|||||||
void main() {
|
void main() {
|
||||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
group('Prediqo mobile E2E', () {
|
group('Tloto mobile E2E', () {
|
||||||
tearDown(() async {
|
tearDown(() async {
|
||||||
if (sl.isRegistered<AppConfig>()) {
|
if (sl.isRegistered<AppConfig>()) {
|
||||||
await sl.reset();
|
await sl.reset();
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Prediqo</string>
|
<string>Tloto</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>Prediqo</string>
|
<string>Tloto</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
|
|||||||
@ -74,7 +74,7 @@ class _PrediqoAppState extends State<PrediqoApp> {
|
|||||||
listenable: _localeController,
|
listenable: _localeController,
|
||||||
builder: (context, _) {
|
builder: (context, _) {
|
||||||
return MaterialApp.router(
|
return MaterialApp.router(
|
||||||
title: 'Prediqo',
|
title: 'Tloto',
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
theme: AppTheme.light,
|
theme: AppTheme.light,
|
||||||
darkTheme: AppTheme.dark,
|
darkTheme: AppTheme.dark,
|
||||||
|
|||||||
@ -88,6 +88,22 @@ class GameSocketService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Forces a fresh, verified reconnect regardless of [isConnected].
|
||||||
|
///
|
||||||
|
/// After the OS suspends the app in the background for a while (screen
|
||||||
|
/// lock, app switcher, etc.), the underlying socket can be silently closed
|
||||||
|
/// by the network/OS without ever firing `onDone`/`onError` — `_channel`
|
||||||
|
/// stays non-null so [isConnected] wrongly reports healthy. Call this on
|
||||||
|
/// app foreground-resume to guarantee a real, working connection instead of
|
||||||
|
/// possibly reusing a zombie one.
|
||||||
|
Future<void> forceReconnect() async {
|
||||||
|
_reconnectAttempt = 0;
|
||||||
|
_disposeChannel();
|
||||||
|
await connect();
|
||||||
|
final interval = _subscribedInterval;
|
||||||
|
if (interval != null && isConnected) subscribe(interval);
|
||||||
|
}
|
||||||
|
|
||||||
void subscribe(int intervalMinutes) {
|
void subscribe(int intervalMinutes) {
|
||||||
_subscribedInterval = intervalMinutes;
|
_subscribedInterval = intervalMinutes;
|
||||||
_send({'type': 'subscribe', 'intervalMinutes': intervalMinutes});
|
_send({'type': 'subscribe', 'intervalMinutes': intervalMinutes});
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import 'app_typography.dart';
|
|||||||
|
|
||||||
export 'app_colors.dart';
|
export 'app_colors.dart';
|
||||||
|
|
||||||
/// Material 3 themes for Prediqo — dark-first premium fintech aesthetic.
|
/// Material 3 themes for Tloto — dark-first premium fintech aesthetic.
|
||||||
class AppTheme {
|
class AppTheme {
|
||||||
static ThemeData get dark => _build(Brightness.dark);
|
static ThemeData get dark => _build(Brightness.dark);
|
||||||
static ThemeData get light => _build(Brightness.light);
|
static ThemeData get light => _build(Brightness.light);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/// Synthetic chart instrument for Candle Predict (display identity only).
|
/// Synthetic chart instrument for Candle Predict (display identity only).
|
||||||
///
|
///
|
||||||
/// OHLC always comes from the Prediqo backend — never from an external market.
|
/// OHLC always comes from the Tloto backend — never from an external market.
|
||||||
/// Runtime values come from game config and are edited in web Catalog → Candle.
|
/// Runtime values come from game config and are edited in web Catalog → Candle.
|
||||||
class CandlePredictInstrument {
|
class CandlePredictInstrument {
|
||||||
const CandlePredictInstrument({
|
const CandlePredictInstrument({
|
||||||
|
|||||||
@ -44,6 +44,7 @@ class PredictionBloc extends Bloc<PredictionEvent, PredictionState> {
|
|||||||
on<PredictionCandlesOlderRequested>(_onOlderCandles);
|
on<PredictionCandlesOlderRequested>(_onOlderCandles);
|
||||||
on<PredictionPaused>(_onPaused);
|
on<PredictionPaused>(_onPaused);
|
||||||
on<PredictionResumed>(_onResumed);
|
on<PredictionResumed>(_onResumed);
|
||||||
|
on<PredictionAppResumed>(_onAppResumed, transformer: _sequential());
|
||||||
on<PredictionBalancesRefreshRequested>(_onBalancesRefresh);
|
on<PredictionBalancesRefreshRequested>(_onBalancesRefresh);
|
||||||
on<PredictionFeedbackConsumed>((event, emit) {
|
on<PredictionFeedbackConsumed>((event, emit) {
|
||||||
emit(state.copyWith(clearError: true, betPlaced: false));
|
emit(state.copyWith(clearError: true, betPlaced: false));
|
||||||
@ -180,6 +181,31 @@ class PredictionBloc extends Bloc<PredictionEvent, PredictionState> {
|
|||||||
add(const PredictionLoadRequested());
|
add(const PredictionLoadRequested());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// True root fix for "countdown stuck until I leave and reopen the page":
|
||||||
|
/// mobile OSes suspend Dart `Timer`s and can silently drop the WebSocket
|
||||||
|
/// while backgrounded (screen lock, app switcher, incoming call, long time
|
||||||
|
/// on the page with the screen off) — none of which fires `onDone`, so
|
||||||
|
/// [GameSocketService.isConnected] keeps reporting healthy. Nothing was
|
||||||
|
/// listening for the app returning to the foreground, so the zombie
|
||||||
|
/// connection / disrupted poll schedule silently lingered until the user
|
||||||
|
/// manually left and reopened the prediction screen (which forces a fresh
|
||||||
|
/// `_onLoad`). Wiring [PredictionAppResumed] to `AppLifecycleState.resumed`
|
||||||
|
/// (see `_PredictionScreenState.didChangeAppLifecycleState`) closes that gap
|
||||||
|
/// without requiring any user action.
|
||||||
|
Future<void> _onAppResumed(
|
||||||
|
PredictionAppResumed event,
|
||||||
|
Emitter<PredictionState> emit,
|
||||||
|
) async {
|
||||||
|
if (!_screenActive) return;
|
||||||
|
if (_socket.isEnabled) {
|
||||||
|
await _socket.forceReconnect();
|
||||||
|
}
|
||||||
|
// Old recursive Timer chain may have been suspended mid-flight; restart
|
||||||
|
// it fresh instead of trusting whatever was already scheduled.
|
||||||
|
_startPolling();
|
||||||
|
add(const PredictionRefreshTick(forceGameState: true));
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> _onBalancesRefresh(PredictionBalancesRefreshRequested event, Emitter<PredictionState> emit) async {
|
Future<void> _onBalancesRefresh(PredictionBalancesRefreshRequested event, Emitter<PredictionState> emit) async {
|
||||||
final labels = await _loadBalances(state.gameState?.config.walletTypeCode);
|
final labels = await _loadBalances(state.gameState?.config.walletTypeCode);
|
||||||
emit(state.copyWith(
|
emit(state.copyWith(
|
||||||
|
|||||||
@ -138,6 +138,18 @@ class PredictionResumed extends PredictionEvent {
|
|||||||
const PredictionResumed();
|
const PredictionResumed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Fired when the OS brings the app back to the foreground (screen unlock,
|
||||||
|
/// app switcher return, etc.) while already on the prediction screen.
|
||||||
|
///
|
||||||
|
/// Unlike [PredictionResumed] (screen navigation), this does NOT trust that
|
||||||
|
/// the existing WebSocket connection / poll timer chain are still healthy:
|
||||||
|
/// mobile OSes routinely suspend timers and silently drop sockets while
|
||||||
|
/// backgrounded without ever firing `onDone`/`onError`, so `isConnected` can
|
||||||
|
/// stay (wrongly) true. This forces a verified-fresh reconnect + full resync.
|
||||||
|
class PredictionAppResumed extends PredictionEvent {
|
||||||
|
const PredictionAppResumed();
|
||||||
|
}
|
||||||
|
|
||||||
/// Reload main / bonus / test wallet labels for the stake selector.
|
/// Reload main / bonus / test wallet labels for the stake selector.
|
||||||
class PredictionBalancesRefreshRequested extends PredictionEvent {
|
class PredictionBalancesRefreshRequested extends PredictionEvent {
|
||||||
const PredictionBalancesRefreshRequested();
|
const PredictionBalancesRefreshRequested();
|
||||||
|
|||||||
@ -24,7 +24,7 @@ class PredictionScreen extends StatefulWidget {
|
|||||||
State<PredictionScreen> createState() => _PredictionScreenState();
|
State<PredictionScreen> createState() => _PredictionScreenState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _PredictionScreenState extends State<PredictionScreen> {
|
class _PredictionScreenState extends State<PredictionScreen> with WidgetsBindingObserver {
|
||||||
late final PredictionBloc _bloc;
|
late final PredictionBloc _bloc;
|
||||||
Timer? _uiClock;
|
Timer? _uiClock;
|
||||||
|
|
||||||
@ -37,15 +37,29 @@ class _PredictionScreenState extends State<PredictionScreen> {
|
|||||||
_uiClock = Timer.periodic(const Duration(seconds: 1), (_) {
|
_uiClock = Timer.periodic(const Duration(seconds: 1), (_) {
|
||||||
if (mounted) setState(() {});
|
if (mounted) setState(() {});
|
||||||
});
|
});
|
||||||
|
WidgetsBinding.instance.addObserver(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
WidgetsBinding.instance.removeObserver(this);
|
||||||
_uiClock?.cancel();
|
_uiClock?.cancel();
|
||||||
_bloc.add(const PredictionPaused());
|
_bloc.add(const PredictionPaused());
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Screen navigation (`initState`/`dispose`) is NOT the only way this page's
|
||||||
|
/// timers/socket can go stale — the OS backgrounding the whole app (screen
|
||||||
|
/// lock, app switcher, phone call) while the user stays on this route is
|
||||||
|
/// far more common, especially over "several minutes". Force a verified
|
||||||
|
/// reconnect + full resync every time the app comes back to the foreground.
|
||||||
|
@override
|
||||||
|
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||||
|
if (state == AppLifecycleState.resumed) {
|
||||||
|
_bloc.add(const PredictionAppResumed());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void _setHistoryFilters({String? wallet, String? status}) {
|
void _setHistoryFilters({String? wallet, String? status}) {
|
||||||
_bloc.add(PredictionHistoryFilterChanged(
|
_bloc.add(PredictionHistoryFilterChanged(
|
||||||
walletFilter: wallet,
|
walletFilter: wallet,
|
||||||
|
|||||||
@ -102,13 +102,13 @@ class _ShareResultDialogState extends State<_ShareResultDialog> {
|
|||||||
: (payload.status ?? 'result');
|
: (payload.status ?? 'result');
|
||||||
final id = (payload.isWallet ? payload.transactionId : payload.betId) ?? 'x';
|
final id = (payload.isWallet ? payload.transactionId : payload.betId) ?? 'x';
|
||||||
final shortId = id.length >= 8 ? id.substring(0, 8) : id;
|
final shortId = id.length >= 8 ? id.substring(0, 8) : id;
|
||||||
final file = File('${dir.path}/prediqo-$tag-$shortId.png');
|
final file = File('${dir.path}/tloto-$tag-$shortId.png');
|
||||||
await file.writeAsBytes(bytes.buffer.asUint8List());
|
await file.writeAsBytes(bytes.buffer.asUint8List());
|
||||||
await SharePlus.instance.share(
|
await SharePlus.instance.share(
|
||||||
ShareParams(
|
ShareParams(
|
||||||
files: [XFile(file.path)],
|
files: [XFile(file.path)],
|
||||||
text: payload.registerUrl.isNotEmpty ? payload.registerUrl : payload.verifyUrl,
|
text: payload.registerUrl.isNotEmpty ? payload.registerUrl : payload.verifyUrl,
|
||||||
subject: 'Prediqo',
|
subject: 'Tloto',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
@ -283,7 +283,7 @@ class _WalletCard extends StatelessWidget {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return _CardShell(
|
return _CardShell(
|
||||||
title: 'Prediqo Wallet',
|
title: 'Tloto Wallet',
|
||||||
accent: _accent,
|
accent: _accent,
|
||||||
amountLine: '${payload.amountSignedDisplay ?? '0'} ${payload.assetSymbol ?? ''}',
|
amountLine: '${payload.amountSignedDisplay ?? '0'} ${payload.assetSymbol ?? ''}',
|
||||||
subtitle: opLabel,
|
subtitle: opLabel,
|
||||||
@ -396,8 +396,8 @@ class _CardShell extends StatelessWidget {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
s.t(
|
s.t(
|
||||||
'Scan to verify · Authentic Prediqo result',
|
'Scan to verify · Authentic Tloto result',
|
||||||
'Scanner pour vérifier · Résultat Prediqo authentique',
|
'Scanner pour vérifier · Résultat Tloto authentique',
|
||||||
),
|
),
|
||||||
style: const TextStyle(color: Colors.white70, fontSize: 11),
|
style: const TextStyle(color: Colors.white70, fontSize: 11),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
|
||||||
/// Supported locales for the Prediqo mobile app.
|
/// Supported locales for the Tloto mobile app.
|
||||||
class AppLocale {
|
class AppLocale {
|
||||||
static const Locale english = Locale('en');
|
static const Locale english = Locale('en');
|
||||||
static const Locale french = Locale('fr');
|
static const Locale french = Locale('fr');
|
||||||
|
|||||||
@ -10,7 +10,7 @@ class AppStrings {
|
|||||||
String t(String en, String fr) => isFr ? fr : en;
|
String t(String en, String fr) => isFr ? fr : en;
|
||||||
|
|
||||||
// Brand
|
// Brand
|
||||||
String get appName => 'Prediqo';
|
String get appName => 'Tloto';
|
||||||
String get tagline => t(
|
String get tagline => t(
|
||||||
'Premium prediction platform',
|
'Premium prediction platform',
|
||||||
'Plateforme de prédiction premium',
|
'Plateforme de prédiction premium',
|
||||||
@ -42,7 +42,7 @@ class AppStrings {
|
|||||||
'Une plateforme de prédiction premium : règlement instantané, portefeuilles USDT sécurisés et réseau de parrainage.',
|
'Une plateforme de prédiction premium : règlement instantané, portefeuilles USDT sécurisés et réseau de parrainage.',
|
||||||
);
|
);
|
||||||
String get welcomeGetStarted => t('Get started', 'Commencer');
|
String get welcomeGetStarted => t('Get started', 'Commencer');
|
||||||
String get welcomeWhyTitle => t('Why Prediqo', 'Pourquoi Prediqo');
|
String get welcomeWhyTitle => t('Why Tloto', 'Pourquoi Tloto');
|
||||||
String get welcomeWhyPredict => t(
|
String get welcomeWhyPredict => t(
|
||||||
'Live candle predictions with clear Short / Long outcomes.',
|
'Live candle predictions with clear Short / Long outcomes.',
|
||||||
'Prédictions sur bougies en direct, résultats Short / Long clairs.',
|
'Prédictions sur bougies en direct, résultats Short / Long clairs.',
|
||||||
@ -68,8 +68,8 @@ class AppStrings {
|
|||||||
String get signIn => t('Sign in', 'Connexion');
|
String get signIn => t('Sign in', 'Connexion');
|
||||||
String get signUp => t('Create account', 'Créer un compte');
|
String get signUp => t('Create account', 'Créer un compte');
|
||||||
String get registerSubtitle => t(
|
String get registerSubtitle => t(
|
||||||
'Fill in your details to create your Prediqo account.',
|
'Fill in your details to create your Tloto account.',
|
||||||
'Renseignez vos informations pour créer votre compte Prediqo.',
|
'Renseignez vos informations pour créer votre compte Tloto.',
|
||||||
);
|
);
|
||||||
String get email => t('Email', 'E-mail');
|
String get email => t('Email', 'E-mail');
|
||||||
String get emailRequired => t('Email *', 'E-mail *');
|
String get emailRequired => t('Email *', 'E-mail *');
|
||||||
@ -501,7 +501,7 @@ class AppStrings {
|
|||||||
'Referral snapshot',
|
'Referral snapshot',
|
||||||
'Aperçu de votre parrainage',
|
'Aperçu de votre parrainage',
|
||||||
);
|
);
|
||||||
String get howItWorks => t('How Prediqo works', 'Comment fonctionne Prediqo');
|
String get howItWorks => t('How Tloto works', 'Comment fonctionne Tloto');
|
||||||
String get howItWorksSubtitle => t(
|
String get howItWorksSubtitle => t(
|
||||||
'Learn the rules, wallets, and prediction types',
|
'Learn the rules, wallets, and prediction types',
|
||||||
'Règles, portefeuilles et types de prédiction',
|
'Règles, portefeuilles et types de prédiction',
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../core/theme/app_colors.dart';
|
import '../../../core/theme/app_colors.dart';
|
||||||
|
|
||||||
/// Prediqo brand mark (SVG/PNG asset) with optional wordmark.
|
/// Tloto brand mark (SVG/PNG asset) with optional wordmark.
|
||||||
class PrediqoLogo extends StatelessWidget {
|
class PrediqoLogo extends StatelessWidget {
|
||||||
const PrediqoLogo({
|
const PrediqoLogo({
|
||||||
super.key,
|
super.key,
|
||||||
@ -37,7 +37,7 @@ class PrediqoLogo extends StatelessWidget {
|
|||||||
mark,
|
mark,
|
||||||
SizedBox(width: gap),
|
SizedBox(width: gap),
|
||||||
Text(
|
Text(
|
||||||
'Prediqo',
|
'TLOTO',
|
||||||
style: wordmarkStyle ??
|
style: wordmarkStyle ??
|
||||||
Theme.of(context).textTheme.headlineMedium?.copyWith(
|
Theme.of(context).textTheme.headlineMedium?.copyWith(
|
||||||
fontWeight: FontWeight.w900,
|
fontWeight: FontWeight.w900,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: prediqo_mobile
|
name: prediqo_mobile
|
||||||
description: "Prediqo mobile app - prediction games and crypto wallet."
|
description: "Tloto mobile app - prediction games and crypto wallet."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 2.0.0+1
|
version: 2.0.0+1
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import 'support/e2e_fixtures.dart';
|
|||||||
void main() {
|
void main() {
|
||||||
setUpAll(configureE2eTestEnvironment);
|
setUpAll(configureE2eTestEnvironment);
|
||||||
|
|
||||||
group('Prediqo mobile E2E (UI)', () {
|
group('Tloto mobile E2E (UI)', () {
|
||||||
tearDown(() async {
|
tearDown(() async {
|
||||||
if (sl.isRegistered<AppConfig>()) {
|
if (sl.isRegistered<AppConfig>()) {
|
||||||
await sl.reset();
|
await sl.reset();
|
||||||
|
|||||||
@ -94,7 +94,7 @@ class E2eMockInterceptor extends Interceptor {
|
|||||||
{
|
{
|
||||||
'id': 'ad-1',
|
'id': 'ad-1',
|
||||||
'placement': 'home_hero',
|
'placement': 'home_hero',
|
||||||
'title': 'Welcome to Prediqo',
|
'title': 'Welcome to Tloto',
|
||||||
'subtitle': 'Predict candle direction',
|
'subtitle': 'Predict candle direction',
|
||||||
'ctaLabel': 'Play',
|
'ctaLabel': 'Play',
|
||||||
'linkUrl': '/predict',
|
'linkUrl': '/predict',
|
||||||
@ -404,7 +404,7 @@ class FakeAdvertisementRepository implements AdvertisementRepository {
|
|||||||
AdvertisementModel(
|
AdvertisementModel(
|
||||||
id: 'ad-1',
|
id: 'ad-1',
|
||||||
placement: 'home_hero',
|
placement: 'home_hero',
|
||||||
title: 'Welcome to Prediqo',
|
title: 'Welcome to Tloto',
|
||||||
subtitle: 'Predict candle direction',
|
subtitle: 'Predict candle direction',
|
||||||
ctaLabel: 'Play',
|
ctaLabel: 'Play',
|
||||||
linkUrl: '/predict',
|
linkUrl: '/predict',
|
||||||
|
|||||||
@ -17,7 +17,7 @@ void main() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets('Login screen shows Prediqo branding', (tester) async {
|
testWidgets('Login screen shows Tloto branding', (tester) async {
|
||||||
await setupE2eDependencies(loggedIn: false);
|
await setupE2eDependencies(loggedIn: false);
|
||||||
final authBloc = sl<AuthBloc>();
|
final authBloc = sl<AuthBloc>();
|
||||||
await tester.pumpWidget(
|
await tester.pumpWidget(
|
||||||
@ -26,7 +26,7 @@ void main() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
await e2ePump(tester);
|
await e2ePump(tester);
|
||||||
expect(find.text('Prediqo'), findsOneWidget);
|
expect(find.text('Tloto'), findsOneWidget);
|
||||||
expect(find.byKey(const Key('login_email')), findsOneWidget);
|
expect(find.byKey(const Key('login_email')), findsOneWidget);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -18,18 +18,18 @@
|
|||||||
|
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||||
<meta name="description" content="A new Flutter project.">
|
<meta name="description" content="Tloto — premium prediction games and crypto wallet.">
|
||||||
|
|
||||||
<!-- iOS meta tags & icons -->
|
<!-- iOS meta tags & icons -->
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
<meta name="apple-mobile-web-app-title" content="Prediqo">
|
<meta name="apple-mobile-web-app-title" content="Tloto">
|
||||||
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
||||||
|
|
||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||||
|
|
||||||
<title>Prediqo</title>
|
<title>Tloto</title>
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "Prediqo",
|
"name": "Tloto",
|
||||||
"short_name": "Prediqo",
|
"short_name": "Tloto",
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#0B0F1A",
|
"background_color": "#0B0F1A",
|
||||||
"theme_color": "#10B981",
|
"theme_color": "#10B981",
|
||||||
"description": "Prediqo — premium prediction games and crypto wallet.",
|
"description": "Tloto — premium prediction games and crypto wallet.",
|
||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
"prefer_related_applications": false,
|
"prefer_related_applications": false,
|
||||||
"icons": [
|
"icons": [
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
## Prediqo Web
|
## Tloto Web
|
||||||
|
|
||||||
Application web React (TypeScript + Vite) pour **Prediqo** — plateforme de jeux de prédiction avec paiements en cryptomonnaies.
|
Application web React (TypeScript + Vite) pour **Tloto** — plateforme de jeux de prédiction avec paiements en cryptomonnaies.
|
||||||
|
|
||||||
Le web regroupe deux grands modules (en cours d’extension) :
|
Le web regroupe deux grands modules (en cours d’extension) :
|
||||||
- **Platform** : gestion admin (utilisateurs, paramètres, overview, etc.)
|
- **Platform** : gestion admin (utilisateurs, paramètres, overview, etc.)
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<link rel="apple-touch-icon" href="/brand/prediqo-app-icon.png" />
|
<link rel="apple-touch-icon" href="/brand/prediqo-app-icon.png" />
|
||||||
<meta name="theme-color" content="#0B0F1A" />
|
<meta name="theme-color" content="#0B0F1A" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Prediqo</title>
|
<title>Tloto</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 420 128" role="img" aria-label="Prediqo">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 420 128" role="img" aria-label="Tloto">
|
||||||
<g>
|
<g>
|
||||||
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
||||||
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
||||||
@ -8,5 +8,5 @@
|
|||||||
<circle cx="70" cy="64" r="7" fill="#10B981"/>
|
<circle cx="70" cy="64" r="7" fill="#10B981"/>
|
||||||
<path d="M70 52 L72 58 L78.5 60 L72 62 L70 68 L68 62 L61.5 60 L68 58 Z" fill="#D4AF37"/>
|
<path d="M70 52 L72 58 L78.5 60 L72 62 L70 68 L68 62 L61.5 60 L68 58 Z" fill="#D4AF37"/>
|
||||||
</g>
|
</g>
|
||||||
<text x="152" y="82" font-family="Inter, Segoe UI, system-ui, sans-serif" font-size="64" font-weight="800" fill="#F8FAFC" letter-spacing="-1.5">Prediqo</text>
|
<text x="152" y="82" font-family="Inter, Segoe UI, system-ui, sans-serif" font-size="64" font-weight="800" fill="#F8FAFC" letter-spacing="-1.5">TLOTO</text>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 930 B |
@ -1,4 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Prediqo mark">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Tloto mark">
|
||||||
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
|
||||||
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
|
||||||
<path d="M34 22 H49 V106 H34 Z" fill="#10B981"/>
|
<path d="M34 22 H49 V106 H34 Z" fill="#10B981"/>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 907 B After Width: | Height: | Size: 905 B |
@ -1,4 +1,4 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Prediqo">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Tloto">
|
||||||
<rect width="64" height="64" rx="14" fill="#0B0F1A"/>
|
<rect width="64" height="64" rx="14" fill="#0B0F1A"/>
|
||||||
<rect x="4" y="4" width="56" height="56" rx="12" fill="none" stroke="#D4AF37" stroke-width="2"/>
|
<rect x="4" y="4" width="56" height="56" rx="12" fill="none" stroke="#D4AF37" stroke-width="2"/>
|
||||||
<!-- Custom P stem -->
|
<!-- Custom P stem -->
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 903 B |
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* Root application component and global provider composition.
|
* Root application component and global provider composition.
|
||||||
* Wires React Query, authentication, MUI theme, and routing for Prediqo web.
|
* Wires React Query, authentication, MUI theme, and routing for Tloto web.
|
||||||
*/
|
*/
|
||||||
import { CssBaseline, ThemeProvider } from '@mui/material';
|
import { CssBaseline, ThemeProvider } from '@mui/material';
|
||||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Login page for the Prediqo web app (platform admin and player access).
|
* Login page for the Tloto web app (platform admin and player access).
|
||||||
* Authenticates via `/api/v1/auth/login`, stores tokens in auth context,
|
* Authenticates via `/api/v1/auth/login`, stores tokens in auth context,
|
||||||
* and redirects to the route the user attempted before sign-in.
|
* and redirects to the route the user attempted before sign-in.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* User profile page for Prediqo web.
|
* User profile page for Tloto web.
|
||||||
* Displays account information and self-service edits for personal data, password, and 2FA.
|
* Displays account information and self-service edits for personal data, password, and 2FA.
|
||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -108,7 +108,7 @@ function WalletOpCard({
|
|||||||
const created = new Date(payload.createdAt);
|
const created = new Date(payload.createdAt);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CardShell cardRef={cardRef} title="Prediqo Wallet">
|
<CardShell cardRef={cardRef} title="Tloto Wallet">
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: 42,
|
fontSize: 42,
|
||||||
|
|||||||
@ -74,7 +74,7 @@ function canShareUrlOnly(): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function shareCaption(inviteUrl: string): string {
|
function shareCaption(inviteUrl: string): string {
|
||||||
return `Prediqo — ${inviteUrl}`;
|
return `Tloto — ${inviteUrl}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function tryNativeShare(opts: {
|
async function tryNativeShare(opts: {
|
||||||
@ -92,14 +92,14 @@ async function tryNativeShare(opts: {
|
|||||||
if (withFiles) {
|
if (withFiles) {
|
||||||
await nav.share({
|
await nav.share({
|
||||||
files: [file],
|
files: [file],
|
||||||
title: 'Prediqo',
|
title: 'Tloto',
|
||||||
text: shareCaption(opts.inviteUrl),
|
text: shareCaption(opts.inviteUrl),
|
||||||
});
|
});
|
||||||
return 'shared';
|
return 'shared';
|
||||||
}
|
}
|
||||||
// Desktop / limited browsers: share invite link only (no silent download).
|
// Desktop / limited browsers: share invite link only (no silent download).
|
||||||
await nav.share({
|
await nav.share({
|
||||||
title: 'Prediqo',
|
title: 'Tloto',
|
||||||
text: shareCaption(opts.inviteUrl),
|
text: shareCaption(opts.inviteUrl),
|
||||||
url: opts.inviteUrl,
|
url: opts.inviteUrl,
|
||||||
});
|
});
|
||||||
@ -198,7 +198,7 @@ export function ShareResultDialog({ open, betId, transactionId, onClose }: Props
|
|||||||
? payload.transactionId.slice(0, 8)
|
? payload.transactionId.slice(0, 8)
|
||||||
: payload.betId.slice(0, 8);
|
: payload.betId.slice(0, 8);
|
||||||
const tag = payload.kind === 'wallet' ? payload.operationType : payload.status;
|
const tag = payload.kind === 'wallet' ? payload.operationType : payload.status;
|
||||||
const filename = `prediqo-${tag}-${id}.png`;
|
const filename = `tloto-${tag}-${id}.png`;
|
||||||
const next = { blob, filename };
|
const next = { blob, filename };
|
||||||
setCachedExport(next);
|
setCachedExport(next);
|
||||||
return next;
|
return next;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* In-app transfer dialog for the wallet page.
|
* In-app transfer dialog for the wallet page.
|
||||||
* Sends funds to another Prediqo user by email with optional 2FA.
|
* Sends funds to another Tloto user by email with optional 2FA.
|
||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
Alert,
|
Alert,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Application entry point for the Prediqo web app.
|
* Application entry point for the Tloto web app.
|
||||||
* Mounts the root React tree in strict mode and loads global styles.
|
* Mounts the root React tree in strict mode and loads global styles.
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* Prediqo brand mark / lockup for web chrome and auth surfaces.
|
* Tloto brand mark / lockup for web chrome and auth surfaces.
|
||||||
*/
|
*/
|
||||||
import { Box, Stack, Typography, type SxProps, type Theme } from '@mui/material';
|
import { Box, Stack, Typography, type SxProps, type Theme } from '@mui/material';
|
||||||
|
import { PLATFORM_WORDMARK } from './platformName';
|
||||||
|
|
||||||
type PrediqoLogoProps = {
|
type PrediqoLogoProps = {
|
||||||
/** `mark` = icon only; `wordmark`/`lockup` = icon + wordmark */
|
/** `mark` = icon only; `wordmark`/`lockup` = icon + wordmark */
|
||||||
@ -55,7 +56,7 @@ export function PrediqoLogo({
|
|||||||
...(wordmarkSx as object),
|
...(wordmarkSx as object),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Prediqo
|
{PLATFORM_WORDMARK}
|
||||||
</Typography>
|
</Typography>
|
||||||
) : null}
|
) : null}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
5
prediqo_web/src/shared/brand/platformName.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/** Official platform name shown in UI, emails, and share surfaces. */
|
||||||
|
export const PLATFORM_NAME = 'Tloto';
|
||||||
|
|
||||||
|
/** Wordmark / lockup spelling used next to the brand mark. */
|
||||||
|
export const PLATFORM_WORDMARK = 'TLOTO';
|
||||||
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* i18n bootstrap — English and French for the Prediqo web app.
|
* i18n bootstrap — English and French for the Tloto web app.
|
||||||
*/
|
*/
|
||||||
import i18n from 'i18next';
|
import i18n from 'i18next';
|
||||||
import { initReactI18next } from 'react-i18next';
|
import { initReactI18next } from 'react-i18next';
|
||||||
|
|||||||
@ -104,7 +104,7 @@ export const en = {
|
|||||||
captchaMathLabel: 'Security check: {{prompt}}',
|
captchaMathLabel: 'Security check: {{prompt}}',
|
||||||
captchaMathHelper: 'Enter the result to continue after several failed attempts.',
|
captchaMathHelper: 'Enter the result to continue after several failed attempts.',
|
||||||
resendFailed: 'Failed to resend verification email',
|
resendFailed: 'Failed to resend verification email',
|
||||||
registerSubtitle: "Join Prediqo — use a friend's referral link or sign up directly.",
|
registerSubtitle: "Join Tloto — use a friend's referral link or sign up directly.",
|
||||||
invitedWithCode: 'You were invited with referral code <strong>{{code}}</strong>.',
|
invitedWithCode: 'You were invited with referral code <strong>{{code}}</strong>.',
|
||||||
fullName: 'Full name',
|
fullName: 'Full name',
|
||||||
fullNameRequired: 'Full name *',
|
fullNameRequired: 'Full name *',
|
||||||
@ -178,7 +178,7 @@ export const en = {
|
|||||||
setupComplete: 'Setup complete',
|
setupComplete: 'Setup complete',
|
||||||
adminExists: 'An administrator account already exists. Sign in to access the platform.',
|
adminExists: 'An administrator account already exists. Sign in to access the platform.',
|
||||||
goToLogin: 'Go to sign in',
|
goToLogin: 'Go to sign in',
|
||||||
title: 'Prediqo setup',
|
title: 'Tloto setup',
|
||||||
subtitle: 'Create the first administrator account to configure the platform in production.',
|
subtitle: 'Create the first administrator account to configure the platform in production.',
|
||||||
tokenEnvWarning:
|
tokenEnvWarning:
|
||||||
'Set the <strong>INITIAL_SETUP_TOKEN</strong> environment variable on the server (min. 16 random characters), then restart the API.',
|
'Set the <strong>INITIAL_SETUP_TOKEN</strong> environment variable on the server (min. 16 random characters), then restart the API.',
|
||||||
@ -263,11 +263,11 @@ export const en = {
|
|||||||
modeSingle: 'Single candle',
|
modeSingle: 'Single candle',
|
||||||
modeMulti: 'Multi candle',
|
modeMulti: 'Multi candle',
|
||||||
verifyTitle: 'Scan to verify',
|
verifyTitle: 'Scan to verify',
|
||||||
verifyHint: 'Authentic Prediqo result',
|
verifyHint: 'Authentic Tloto result',
|
||||||
verifyPageTitle: 'Verified Prediqo share',
|
verifyPageTitle: 'Verified Tloto share',
|
||||||
verifyAuthentic: 'This Prediqo share is authentic.',
|
verifyAuthentic: 'This Tloto share is authentic.',
|
||||||
verifyInvalid: 'This share link is invalid or no longer available.',
|
verifyInvalid: 'This share link is invalid or no longer available.',
|
||||||
joinCta: 'Join Prediqo',
|
joinCta: 'Join Tloto',
|
||||||
operation: 'Operation',
|
operation: 'Operation',
|
||||||
amount: 'Amount',
|
amount: 'Amount',
|
||||||
asset: 'Asset',
|
asset: 'Asset',
|
||||||
@ -341,7 +341,7 @@ export const en = {
|
|||||||
},
|
},
|
||||||
transferDialog: {
|
transferDialog: {
|
||||||
title: 'Send to user',
|
title: 'Send to user',
|
||||||
subtitle: 'Transfer to another Prediqo account instantly. On-chain fees do not apply.',
|
subtitle: 'Transfer to another Tloto account instantly. On-chain fees do not apply.',
|
||||||
recipientEmail: 'Recipient email',
|
recipientEmail: 'Recipient email',
|
||||||
networkAuto: 'Network: <b>{{network}}</b> (auto-selected)',
|
networkAuto: 'Network: <b>{{network}}</b> (auto-selected)',
|
||||||
available: 'Available: {{amount}}',
|
available: 'Available: {{amount}}',
|
||||||
@ -935,7 +935,7 @@ export const en = {
|
|||||||
support: {
|
support: {
|
||||||
widget: {
|
widget: {
|
||||||
ariaLabel: 'Support',
|
ariaLabel: 'Support',
|
||||||
title: 'Prediqo Support',
|
title: 'Tloto Support',
|
||||||
subtitle: 'Real-time response from our team',
|
subtitle: 'Real-time response from our team',
|
||||||
},
|
},
|
||||||
chat: {
|
chat: {
|
||||||
@ -1453,7 +1453,7 @@ export const en = {
|
|||||||
'Synthetic candles are generated from player stake pools — no real market data. Interval-specific overrides are managed below; empty fields inherit these defaults.',
|
'Synthetic candles are generated from player stake pools — no real market data. Interval-specific overrides are managed below; empty fields inherit these defaults.',
|
||||||
instrumentTitle: 'Chart instrument',
|
instrumentTitle: 'Chart instrument',
|
||||||
instrumentIntro:
|
instrumentIntro:
|
||||||
'Display-only branding for the candlestick chart. This is a synthetic Prediqo instrument — not a real market pair. Candles still come from the game engine.',
|
'Display-only branding for the candlestick chart. This is a synthetic Tloto instrument — not a real market pair. Candles still come from the game engine.',
|
||||||
instrumentSymbol: 'Symbol',
|
instrumentSymbol: 'Symbol',
|
||||||
instrumentSymbolHint: 'Short ticker shown on the chart (e.g. FO)',
|
instrumentSymbolHint: 'Short ticker shown on the chart (e.g. FO)',
|
||||||
instrumentDisplayName: 'Full name',
|
instrumentDisplayName: 'Full name',
|
||||||
|
|||||||
@ -106,7 +106,7 @@ export const fr = {
|
|||||||
captchaMathHelper: 'Saisissez le résultat pour continuer après plusieurs échecs.',
|
captchaMathHelper: 'Saisissez le résultat pour continuer après plusieurs échecs.',
|
||||||
resendFailed: 'Échec de l’envoi de l’e-mail de vérification',
|
resendFailed: 'Échec de l’envoi de l’e-mail de vérification',
|
||||||
registerSubtitle:
|
registerSubtitle:
|
||||||
'Rejoignez Prediqo — utilisez le lien de parrainage d’un ami ou inscrivez-vous directement.',
|
'Rejoignez Tloto — utilisez le lien de parrainage d’un ami ou inscrivez-vous directement.',
|
||||||
invitedWithCode: 'Vous avez été invité avec le code de parrainage <strong>{{code}}</strong>.',
|
invitedWithCode: 'Vous avez été invité avec le code de parrainage <strong>{{code}}</strong>.',
|
||||||
fullName: 'Nom complet',
|
fullName: 'Nom complet',
|
||||||
fullNameRequired: 'Nom complet *',
|
fullNameRequired: 'Nom complet *',
|
||||||
@ -183,7 +183,7 @@ export const fr = {
|
|||||||
adminExists:
|
adminExists:
|
||||||
'Un compte administrateur existe déjà. Connectez-vous pour accéder à la plateforme.',
|
'Un compte administrateur existe déjà. Connectez-vous pour accéder à la plateforme.',
|
||||||
goToLogin: 'Aller à la connexion',
|
goToLogin: 'Aller à la connexion',
|
||||||
title: 'Initialisation Prediqo',
|
title: 'Initialisation Tloto',
|
||||||
subtitle:
|
subtitle:
|
||||||
'Créez le premier compte administrateur pour configurer la plateforme en production.',
|
'Créez le premier compte administrateur pour configurer la plateforme en production.',
|
||||||
tokenEnvWarning:
|
tokenEnvWarning:
|
||||||
@ -270,11 +270,11 @@ export const fr = {
|
|||||||
modeSingle: 'Single candle',
|
modeSingle: 'Single candle',
|
||||||
modeMulti: 'Multi candle',
|
modeMulti: 'Multi candle',
|
||||||
verifyTitle: 'Scanner pour vérifier',
|
verifyTitle: 'Scanner pour vérifier',
|
||||||
verifyHint: 'Résultat Prediqo authentique',
|
verifyHint: 'Résultat Tloto authentique',
|
||||||
verifyPageTitle: 'Partage Prediqo vérifié',
|
verifyPageTitle: 'Partage Tloto vérifié',
|
||||||
verifyAuthentic: 'Ce partage Prediqo est authentique.',
|
verifyAuthentic: 'Ce partage Tloto est authentique.',
|
||||||
verifyInvalid: 'Ce lien de partage est invalide ou n’est plus disponible.',
|
verifyInvalid: 'Ce lien de partage est invalide ou n’est plus disponible.',
|
||||||
joinCta: 'Rejoindre Prediqo',
|
joinCta: 'Rejoindre Tloto',
|
||||||
operation: 'Opération',
|
operation: 'Opération',
|
||||||
amount: 'Montant',
|
amount: 'Montant',
|
||||||
asset: 'Actif',
|
asset: 'Actif',
|
||||||
@ -349,7 +349,7 @@ export const fr = {
|
|||||||
},
|
},
|
||||||
transferDialog: {
|
transferDialog: {
|
||||||
title: 'Envoyer à un utilisateur',
|
title: 'Envoyer à un utilisateur',
|
||||||
subtitle: 'Transférez vers un autre compte Prediqo instantanément. Pas de frais on-chain.',
|
subtitle: 'Transférez vers un autre compte Tloto instantanément. Pas de frais on-chain.',
|
||||||
recipientEmail: 'E-mail du destinataire',
|
recipientEmail: 'E-mail du destinataire',
|
||||||
networkAuto: 'Réseau : <b>{{network}}</b> (sélection automatique)',
|
networkAuto: 'Réseau : <b>{{network}}</b> (sélection automatique)',
|
||||||
available: 'Disponible : {{amount}}',
|
available: 'Disponible : {{amount}}',
|
||||||
@ -949,7 +949,7 @@ export const fr = {
|
|||||||
support: {
|
support: {
|
||||||
widget: {
|
widget: {
|
||||||
ariaLabel: 'Assistance',
|
ariaLabel: 'Assistance',
|
||||||
title: 'Assistance Prediqo',
|
title: 'Assistance Tloto',
|
||||||
subtitle: 'Réponse en temps réel de notre équipe',
|
subtitle: 'Réponse en temps réel de notre équipe',
|
||||||
},
|
},
|
||||||
chat: {
|
chat: {
|
||||||
@ -1469,7 +1469,7 @@ export const fr = {
|
|||||||
'Les bougies synthétiques sont générées à partir des mises des joueurs — pas de données de marché réelles. Les dérogations par intervalle se gèrent ci-dessous ; les champs vides héritent de ces valeurs par défaut.',
|
'Les bougies synthétiques sont générées à partir des mises des joueurs — pas de données de marché réelles. Les dérogations par intervalle se gèrent ci-dessous ; les champs vides héritent de ces valeurs par défaut.',
|
||||||
instrumentTitle: 'Instrument du graphique',
|
instrumentTitle: 'Instrument du graphique',
|
||||||
instrumentIntro:
|
instrumentIntro:
|
||||||
'Identité affichée sur le graphique en chandeliers. Instrument synthétique Prediqo — pas une paire de marché réelle. Les bougies viennent toujours du moteur de jeu.',
|
'Identité affichée sur le graphique en chandeliers. Instrument synthétique Tloto — pas une paire de marché réelle. Les bougies viennent toujours du moteur de jeu.',
|
||||||
instrumentSymbol: 'Symbole',
|
instrumentSymbol: 'Symbole',
|
||||||
instrumentSymbolHint: 'Ticker court affiché sur le graphique (ex. FO)',
|
instrumentSymbolHint: 'Ticker court affiché sur le graphique (ex. FO)',
|
||||||
instrumentDisplayName: 'Nom complet',
|
instrumentDisplayName: 'Nom complet',
|
||||||
@ -1624,7 +1624,7 @@ export const fr = {
|
|||||||
gasOk: 'suffisant pour les retraits',
|
gasOk: 'suffisant pour les retraits',
|
||||||
gasLow: 'sous le minimum {{min}} {{symbol}} — rechargez avant les retraits',
|
gasLow: 'sous le minimum {{min}} {{symbol}} — rechargez avant les retraits',
|
||||||
gasHint:
|
gasHint:
|
||||||
'Le gas natif (BNB / TRX) n’est pas un solde ledger Prediqo. Il reste on-chain sur le hot wallet et est vérifié en direct avant chaque retrait. Historique : lien explorateur.',
|
'Le gas natif (BNB / TRX) n’est pas un solde ledger Tloto. Il reste on-chain sur le hot wallet et est vérifié en direct avant chaque retrait. Historique : lien explorateur.',
|
||||||
gasTransferTitle: 'Déplacer le gas entre Hot et Cold',
|
gasTransferTitle: 'Déplacer le gas entre Hot et Cold',
|
||||||
gasTransferSubtitle:
|
gasTransferSubtitle:
|
||||||
'Alimentez le cold en BNB ou TRX depuis le hot (ou l’inverse) sans passer par un exchange. Hot → Cold est signé par la plateforme après approbation. Cold → Hot est envoyé depuis MetaMask, puis confirmé ici.',
|
'Alimentez le cold en BNB ou TRX depuis le hot (ou l’inverse) sans passer par un exchange. Hot → Cold est signé par la plateforme après approbation. Cold → Hot est envoyé depuis MetaMask, puis confirmé ici.',
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Authenticated application layout for the Prediqo web app.
|
* Authenticated application layout for the Tloto web app.
|
||||||
* Renders responsive navigation, header actions, and nested route content.
|
* Renders responsive navigation, header actions, and nested route content.
|
||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
|
|||||||