waiting for ios review
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { Component } from 'react'
|
||||
import { t } from '../i18n'
|
||||
import { errText } from '../lib/wasm'
|
||||
|
||||
// A render error would otherwise unmount the whole app and leave a dark,
|
||||
// empty screen (and the global error banner with it): show it with a reload.
|
||||
export default class ErrorBoundary extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
this.state = { error: null }
|
||||
}
|
||||
|
||||
static getDerivedStateFromError(error) {
|
||||
return { error }
|
||||
}
|
||||
|
||||
render() {
|
||||
if (!this.state.error) return this.props.children
|
||||
return (
|
||||
<div className="crash" role="alert">
|
||||
<strong>{t('app.crashed')}</strong>
|
||||
<span className="small">{errText(this.state.error)}</span>
|
||||
<button className="btn btn-primary" onClick={() => location.reload()}>{t('app.reload')}</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -56,6 +56,14 @@ export const IconCompass = icon(
|
||||
20,
|
||||
1.8,
|
||||
)
|
||||
export const IconSun = icon(
|
||||
<>
|
||||
<circle cx="12" cy="12" r="4" />
|
||||
<path d="M12 2.5v2.5M12 19v2.5M2.5 12H5M19 12h2.5M5.3 5.3l1.8 1.8M16.9 16.9l1.8 1.8M5.3 18.7l1.8-1.8M16.9 7.1l1.8-1.8" />
|
||||
</>,
|
||||
20,
|
||||
1.8,
|
||||
)
|
||||
export const IconClose = icon(<path d="M6 6l12 12M18 6L6 18" />, 20, 2)
|
||||
export const IconUndo = icon(
|
||||
<>
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'تعذّر تحميل المحرّك: {error}',
|
||||
|
||||
'app.crashed': 'حدث خطأ ما.',
|
||||
|
||||
'app.reload': 'إعادة التحميل',
|
||||
|
||||
'welcome.tagline': 'تتبّع الأشجار وأسطح المنازل حول تلسكوبك',
|
||||
'welcome.formats': 'NINA .HRZ · مشهد Stellarium',
|
||||
'welcome.daylight': 'قِس في ضوء النهار',
|
||||
'welcome.start': 'ابدأ',
|
||||
'welcome.sceneLabel': 'حديقة ليلية فيها منزل وأشجار وتلسكوب تحت سماء مرصّعة بالنجوم؛ خطّ كهرماني متقطّع يتتبّع الأفق فوق الأسطح وقمم الأشجار',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'الإعدادات',
|
||||
'sites.count': 'المواقع · {count}',
|
||||
'sites.emptyTitle': 'لا توجد مواقع بعد',
|
||||
'sites.emptyHint': 'قف حيث يقف تلسكوبك وابدأ مسحًا.',
|
||||
'sites.emptyHint': 'قف حيث يقف تلسكوبك وابدأ مسحًا في ضوء النهار.',
|
||||
'sites.emptyHintApp': 'اضغط «{tab}» في الأسفل، أو استورد ملف \u200E.hrz من NINA بالزر في الأعلى.',
|
||||
'sites.newSurvey': 'مسح جديد للأفق',
|
||||
'sites.import': 'استيراد ملف \u200E.hrz موجود',
|
||||
@@ -59,6 +64,8 @@ export default {
|
||||
'setup.northTitle': 'الشمال من البوصلة',
|
||||
'setup.northHint': 'لم يُطبَّق الانحراف المغناطيسي بعد: صحّح الشمال بالإزاحة في شاشة المراجعة',
|
||||
'setup.howTo': 'طريقة التصوير',
|
||||
'setup.daylightTitle': 'قِس في ضوء النهار',
|
||||
'setup.daylightHint': 'يبحث التطبيق عن الحد بين السماء الساطعة والأشجار أو الأسطح الداكنة. في الظلام لا يوجد حد يمكن العثور عليه: قِس نهارًا أو عند الغسق.',
|
||||
'setup.skyNotNeeded': 'لا حاجة للسماء',
|
||||
'setup.illustration': 'استدر دورة كاملة في مكانك والهاتف قائم؛ يُصوَّر فقط شريط حول الأفق',
|
||||
'setup.step1': 'قف حيث يقف التلسكوب.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'Die Rechen-Engine konnte nicht geladen werden: {error}',
|
||||
|
||||
'app.crashed': 'Etwas ist schiefgelaufen.',
|
||||
|
||||
'app.reload': 'Neu laden',
|
||||
|
||||
'welcome.tagline': 'Erfasse die Bäume und Dächer rund um dein Teleskop',
|
||||
'welcome.formats': 'NINA .HRZ · STELLARIUM-LANDSCHAFT',
|
||||
'welcome.daylight': 'Bei Tageslicht messen',
|
||||
'welcome.start': 'Los geht’s',
|
||||
'welcome.sceneLabel': 'Nächtlicher Garten mit Haus, Bäumen und Teleskop unter Sternenhimmel; eine gestrichelte bernsteinfarbene Linie folgt dem Horizont über Dächern und Baumkronen',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Einstellungen',
|
||||
'sites.count': 'Standorte · {count}',
|
||||
'sites.emptyTitle': 'Noch keine Standorte',
|
||||
'sites.emptyHint': 'Stell dich dorthin, wo dein Teleskop steht, und starte eine Messung.',
|
||||
'sites.emptyHint': 'Stell dich dorthin, wo dein Teleskop steht, und starte bei Tageslicht eine Messung.',
|
||||
'sites.emptyHintApp': 'Tippe unten auf „{tab}“ oder importiere eine NINA-.hrz mit der Schaltfläche oben.',
|
||||
'sites.newSurvey': 'Neue Horizontmessung',
|
||||
'sites.import': 'Vorhandene .hrz importieren',
|
||||
@@ -53,6 +58,8 @@ export default {
|
||||
'setup.northTitle': 'Norden vom Kompass',
|
||||
'setup.northHint': 'Die Deklination wird noch nicht berücksichtigt: korrigiere Norden mit dem Versatz in der Prüfung',
|
||||
'setup.howTo': 'So wird aufgenommen',
|
||||
'setup.daylightTitle': 'Bei Tageslicht messen',
|
||||
'setup.daylightHint': 'Die App sucht die Kante zwischen hellem Himmel und dunklen Bäumen oder Dächern. Im Dunkeln gibt es keine Kante: Miss tagsüber oder in der Dämmerung.',
|
||||
'setup.skyNotNeeded': 'Himmel nicht nötig',
|
||||
'setup.illustration': 'Dreh dich einmal auf der Stelle und halte das Telefon aufrecht; fotografiert wird nur ein Band um den Horizont',
|
||||
'setup.step1': 'Stell dich dorthin, wo das Teleskop steht.',
|
||||
|
||||
@@ -19,9 +19,14 @@ export default {
|
||||
|
||||
'app.engineError': 'Could not load the engine: {error}',
|
||||
|
||||
'app.crashed': 'Something went wrong.',
|
||||
|
||||
'app.reload': 'Reload',
|
||||
|
||||
// Welcome
|
||||
'welcome.tagline': 'Trace the trees and rooftops around your telescope',
|
||||
'welcome.formats': 'NINA .HRZ · STELLARIUM LANDSCAPE',
|
||||
'welcome.daylight': 'Survey in daylight',
|
||||
'welcome.start': 'Get started',
|
||||
'welcome.sceneLabel': 'Night garden with a house, trees and a telescope under a starry sky; a dashed amber line traces the horizon over the rooftops and treetops',
|
||||
|
||||
@@ -30,7 +35,7 @@ export default {
|
||||
'sites.settings': 'Settings',
|
||||
'sites.count': 'Sites · {count}',
|
||||
'sites.emptyTitle': 'No sites yet',
|
||||
'sites.emptyHint': 'Stand where your telescope stands and start a survey.',
|
||||
'sites.emptyHint': 'Stand where your telescope stands and start a survey in daylight.',
|
||||
'sites.emptyHintApp': 'Tap “{tab}” below, or import a NINA .hrz with the button above.',
|
||||
'sites.newSurvey': 'New horizon survey',
|
||||
'sites.import': 'Import existing .hrz',
|
||||
@@ -59,6 +64,8 @@ export default {
|
||||
'setup.northTitle': 'North from compass',
|
||||
'setup.northHint': 'Declination is not applied yet: correct north with the offset in Review',
|
||||
'setup.howTo': 'How to capture',
|
||||
'setup.daylightTitle': 'Survey in daylight',
|
||||
'setup.daylightHint': 'The app finds the edge between bright sky and dark trees or roofs. In the dark there is no edge to find: survey by day or at dusk.',
|
||||
'setup.skyNotNeeded': 'sky not needed',
|
||||
'setup.illustration': 'Turn once around in place, holding the phone upright; only a band around the horizon is photographed',
|
||||
'setup.step1': 'Stand where the telescope stands.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'No se pudo cargar el motor: {error}',
|
||||
|
||||
'app.crashed': 'Algo salió mal.',
|
||||
|
||||
'app.reload': 'Recargar',
|
||||
|
||||
'welcome.tagline': 'Traza los árboles y tejados alrededor de tu telescopio',
|
||||
'welcome.formats': 'NINA .HRZ · PAISAJE DE STELLARIUM',
|
||||
'welcome.daylight': 'Mide con luz de día',
|
||||
'welcome.start': 'Empezar',
|
||||
'welcome.sceneLabel': 'Jardín nocturno con una casa, árboles y un telescopio bajo un cielo estrellado; una línea ámbar discontinua sigue el horizonte sobre los tejados y las copas de los árboles',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Ajustes',
|
||||
'sites.count': 'Lugares · {count}',
|
||||
'sites.emptyTitle': 'Aún no hay lugares',
|
||||
'sites.emptyHint': 'Colócate donde está tu telescopio e inicia un estudio.',
|
||||
'sites.emptyHint': 'Colócate donde está tu telescopio e inicia un estudio de día.',
|
||||
'sites.emptyHintApp': 'Toca «{tab}» abajo o importa un .hrz de NINA con el botón de arriba.',
|
||||
'sites.newSurvey': 'Nuevo estudio del horizonte',
|
||||
'sites.import': 'Importar un .hrz existente',
|
||||
@@ -53,6 +58,8 @@ export default {
|
||||
'setup.northTitle': 'Norte de la brújula',
|
||||
'setup.northHint': 'La declinación aún no se aplica: corrige el norte con el desfase en la revisión',
|
||||
'setup.howTo': 'Cómo capturar',
|
||||
'setup.daylightTitle': 'Mide con luz de día',
|
||||
'setup.daylightHint': 'La app busca el borde entre el cielo claro y los árboles o tejados oscuros. A oscuras no hay borde que encontrar: mide de día o al atardecer.',
|
||||
'setup.skyNotNeeded': 'el cielo no hace falta',
|
||||
'setup.illustration': 'Gira una vez sobre ti mismo con el teléfono vertical; solo se fotografía una franja alrededor del horizonte',
|
||||
'setup.step1': 'Colócate donde está el telescopio.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'Impossible de charger le moteur : {error}',
|
||||
|
||||
'app.crashed': 'Un problème est survenu.',
|
||||
|
||||
'app.reload': 'Recharger',
|
||||
|
||||
'welcome.tagline': 'Tracez les arbres et les toits autour de votre télescope',
|
||||
'welcome.formats': 'NINA .HRZ · PAYSAGE STELLARIUM',
|
||||
'welcome.daylight': 'Mesurez en plein jour',
|
||||
'welcome.start': 'Commencer',
|
||||
'welcome.sceneLabel': 'Jardin de nuit avec une maison, des arbres et un télescope sous un ciel étoilé ; une ligne ambre en pointillés suit l’horizon au-dessus des toits et des arbres',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Réglages',
|
||||
'sites.count': 'Sites · {count}',
|
||||
'sites.emptyTitle': 'Aucun site pour l’instant',
|
||||
'sites.emptyHint': 'Placez-vous à l’emplacement de votre télescope et lancez un relevé.',
|
||||
'sites.emptyHint': 'Placez-vous à l’emplacement de votre télescope et lancez un relevé en plein jour.',
|
||||
'sites.emptyHintApp': 'Touchez « {tab} » en bas, ou importez un .hrz NINA avec le bouton en haut.',
|
||||
'sites.newSurvey': 'Nouveau relevé d’horizon',
|
||||
'sites.import': 'Importer un .hrz existant',
|
||||
@@ -53,6 +58,8 @@ export default {
|
||||
'setup.northTitle': 'Nord donné par la boussole',
|
||||
'setup.northHint': 'La déclinaison n’est pas encore appliquée : corrigez le nord avec le décalage dans la vérification',
|
||||
'setup.howTo': 'Comment capturer',
|
||||
'setup.daylightTitle': 'Mesurez en plein jour',
|
||||
'setup.daylightHint': 'L’app cherche la limite entre le ciel clair et les arbres ou toits sombres. Dans le noir, il n’y a aucune limite à trouver : mesurez de jour ou au crépuscule.',
|
||||
'setup.skyNotNeeded': 'ciel inutile',
|
||||
'setup.illustration': 'Faites un tour sur vous-même en tenant le téléphone droit ; seule une bande autour de l’horizon est photographiée',
|
||||
'setup.step1': 'Placez-vous à l’emplacement du télescope.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'Nem sikerült betölteni a motort: {error}',
|
||||
|
||||
'app.crashed': 'Valami hiba történt.',
|
||||
|
||||
'app.reload': 'Újratöltés',
|
||||
|
||||
'welcome.tagline': 'Rajzold körbe a fákat és háztetőket a távcsöved körül',
|
||||
'welcome.formats': 'NINA .HRZ · STELLARIUM TÁJKÉP',
|
||||
'welcome.daylight': 'Nappal mérj',
|
||||
'welcome.start': 'Kezdjük',
|
||||
'welcome.sceneLabel': 'Éjszakai kert házzal, fákkal és távcsővel a csillagos ég alatt; szaggatott borostyánszínű vonal követi a horizontot a háztetők és fák fölött',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Beállítások',
|
||||
'sites.count': 'Helyszínek · {count}',
|
||||
'sites.emptyTitle': 'Még nincs helyszín',
|
||||
'sites.emptyHint': 'Állj oda, ahol a távcsöved áll, és indíts egy felmérést.',
|
||||
'sites.emptyHint': 'Állj oda, ahol a távcsöved áll, és indíts egy felmérést nappal.',
|
||||
'sites.emptyHintApp': 'Koppints lent az „{tab}” fülre, vagy importálj egy NINA .hrz fájlt a fenti gombbal.',
|
||||
'sites.newSurvey': 'Új horizontfelmérés',
|
||||
'sites.import': 'Meglévő .hrz importálása',
|
||||
@@ -53,6 +58,8 @@ export default {
|
||||
'setup.northTitle': 'Észak az iránytűből',
|
||||
'setup.northHint': 'A deklinációt még nem számolja az app: az északot a Review képernyőn az eltolással igazítsd',
|
||||
'setup.howTo': 'Így készül a felvétel',
|
||||
'setup.daylightTitle': 'Nappal mérj',
|
||||
'setup.daylightHint': 'Az app a világos ég és a sötét fák, tetők határát keresi. Sötétben nincs mit megtalálnia: mérj nappal vagy szürkületben.',
|
||||
'setup.skyNotNeeded': 'az ég nem kell',
|
||||
'setup.illustration': 'Fordulj körbe egy helyben, a telefont függőlegesen tartva; csak a horizont körüli sáv kerül a képekre',
|
||||
'setup.step1': 'Állj oda, ahol a távcső áll.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'Impossibile caricare il motore: {error}',
|
||||
|
||||
'app.crashed': 'Qualcosa è andato storto.',
|
||||
|
||||
'app.reload': 'Ricarica',
|
||||
|
||||
'welcome.tagline': 'Traccia gli alberi e i tetti intorno al tuo telescopio',
|
||||
'welcome.formats': 'NINA .HRZ · PAESAGGIO STELLARIUM',
|
||||
'welcome.daylight': 'Misura con la luce del giorno',
|
||||
'welcome.start': 'Inizia',
|
||||
'welcome.sceneLabel': 'Giardino notturno con una casa, alberi e un telescopio sotto un cielo stellato; una linea ambra tratteggiata segue l’orizzonte sopra i tetti e le chiome degli alberi',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Impostazioni',
|
||||
'sites.count': 'Luoghi · {count}',
|
||||
'sites.emptyTitle': 'Ancora nessun luogo',
|
||||
'sites.emptyHint': 'Mettiti dove si trova il tuo telescopio e avvia un rilievo.',
|
||||
'sites.emptyHint': 'Mettiti dove si trova il tuo telescopio e avvia un rilievo di giorno.',
|
||||
'sites.emptyHintApp': 'Tocca «{tab}» in basso oppure importa un .hrz di NINA con il pulsante in alto.',
|
||||
'sites.newSurvey': 'Nuovo rilievo dell’orizzonte',
|
||||
'sites.import': 'Importa un .hrz esistente',
|
||||
@@ -53,6 +58,8 @@ export default {
|
||||
'setup.northTitle': 'Nord dalla bussola',
|
||||
'setup.northHint': 'La declinazione non è ancora applicata: correggi il nord con lo scostamento nella revisione',
|
||||
'setup.howTo': 'Come riprendere',
|
||||
'setup.daylightTitle': 'Misura con la luce del giorno',
|
||||
'setup.daylightHint': 'L’app cerca il confine tra il cielo chiaro e gli alberi o i tetti scuri. Al buio non c’è nessun confine da trovare: misura di giorno o al crepuscolo.',
|
||||
'setup.skyNotNeeded': 'il cielo non serve',
|
||||
'setup.illustration': 'Fai un giro su te stesso tenendo il telefono in verticale; viene fotografata solo una fascia intorno all’orizzonte',
|
||||
'setup.step1': 'Mettiti dove si trova il telescopio.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'Nie udało się wczytać silnika: {error}',
|
||||
|
||||
'app.crashed': 'Coś poszło nie tak.',
|
||||
|
||||
'app.reload': 'Wczytaj ponownie',
|
||||
|
||||
'welcome.tagline': 'Obrysuj drzewa i dachy wokół swojego teleskopu',
|
||||
'welcome.formats': 'NINA .HRZ · KRAJOBRAZ STELLARIUM',
|
||||
'welcome.daylight': 'Mierz za dnia',
|
||||
'welcome.start': 'Zaczynamy',
|
||||
'welcome.sceneLabel': 'Nocny ogród z domem, drzewami i teleskopem pod rozgwieżdżonym niebem; przerywana bursztynowa linia biegnie wzdłuż horyzontu nad dachami i koronami drzew',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Ustawienia',
|
||||
'sites.count': 'Miejsca · {count}',
|
||||
'sites.emptyTitle': 'Brak miejsc',
|
||||
'sites.emptyHint': 'Stań tam, gdzie stoi twój teleskop, i rozpocznij pomiar.',
|
||||
'sites.emptyHint': 'Stań tam, gdzie stoi twój teleskop, i rozpocznij pomiar za dnia.',
|
||||
'sites.emptyHintApp': 'Dotknij „{tab}” na dole albo zaimportuj plik .hrz z NINA przyciskiem u góry.',
|
||||
'sites.newSurvey': 'Nowy pomiar horyzontu',
|
||||
'sites.import': 'Importuj istniejący .hrz',
|
||||
@@ -59,6 +64,8 @@ export default {
|
||||
'setup.northTitle': 'Północ z kompasu',
|
||||
'setup.northHint': 'Deklinacja nie jest jeszcze uwzględniana: popraw północ przesunięciem w przeglądzie',
|
||||
'setup.howTo': 'Jak wykonać pomiar',
|
||||
'setup.daylightTitle': 'Mierz za dnia',
|
||||
'setup.daylightHint': 'Aplikacja szuka krawędzi między jasnym niebem a ciemnymi drzewami lub dachami. W ciemności nie ma czego znaleźć: mierz w dzień lub o zmierzchu.',
|
||||
'setup.skyNotNeeded': 'niebo zbędne',
|
||||
'setup.illustration': 'Obróć się raz w miejscu, trzymając telefon pionowo; fotografowany jest tylko pas wokół horyzontu',
|
||||
'setup.step1': 'Stań tam, gdzie stoi teleskop.',
|
||||
|
||||
@@ -16,8 +16,13 @@ export default {
|
||||
|
||||
'app.engineError': 'Nepodarilo sa načítať výpočtové jadro: {error}',
|
||||
|
||||
'app.crashed': 'Niečo sa pokazilo.',
|
||||
|
||||
'app.reload': 'Znova načítať',
|
||||
|
||||
'welcome.tagline': 'Obkresli stromy a strechy okolo svojho ďalekohľadu',
|
||||
'welcome.formats': 'NINA .HRZ · KRAJINA STELLARIUM',
|
||||
'welcome.daylight': 'Meraj za denného svetla',
|
||||
'welcome.start': 'Začať',
|
||||
'welcome.sceneLabel': 'Nočná záhrada s domom, stromami a ďalekohľadom pod hviezdnou oblohou; prerušovaná jantárová čiara sleduje horizont nad strechami a korunami stromov',
|
||||
|
||||
@@ -25,7 +30,7 @@ export default {
|
||||
'sites.settings': 'Nastavenia',
|
||||
'sites.count': 'Miesta · {count}',
|
||||
'sites.emptyTitle': 'Zatiaľ žiadne miesta',
|
||||
'sites.emptyHint': 'Postav sa tam, kde stojí tvoj ďalekohľad, a začni meranie.',
|
||||
'sites.emptyHint': 'Postav sa tam, kde stojí tvoj ďalekohľad, a začni meranie cez deň.',
|
||||
'sites.emptyHintApp': 'Ťukni dole na „{tab}“ alebo importuj súbor .hrz z NINA tlačidlom hore.',
|
||||
'sites.newSurvey': 'Nové meranie horizontu',
|
||||
'sites.import': 'Importovať existujúci .hrz',
|
||||
@@ -59,6 +64,8 @@ export default {
|
||||
'setup.northTitle': 'Sever z kompasu',
|
||||
'setup.northHint': 'Deklinácia sa zatiaľ neuplatňuje: sever oprav posunom pri kontrole',
|
||||
'setup.howTo': 'Ako snímať',
|
||||
'setup.daylightTitle': 'Meraj za denného svetla',
|
||||
'setup.daylightHint': 'Aplikácia hľadá hranicu medzi svetlou oblohou a tmavými stromami či strechami. V tme nemá čo nájsť: meraj cez deň alebo za súmraku.',
|
||||
'setup.skyNotNeeded': 'obloha nie je potrebná',
|
||||
'setup.illustration': 'Raz sa otoč na mieste a drž telefón zvisle; fotí sa len pás okolo horizontu',
|
||||
'setup.step1': 'Postav sa tam, kde stojí ďalekohľad.',
|
||||
|
||||
@@ -8,9 +8,12 @@ import '@fontsource/ibm-plex-mono/400.css'
|
||||
import '@fontsource/ibm-plex-mono/500.css'
|
||||
import './styles.css'
|
||||
import App from './App.jsx'
|
||||
import ErrorBoundary from './components/ErrorBoundary'
|
||||
|
||||
createRoot(document.getElementById('root')).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
<ErrorBoundary>
|
||||
<App />
|
||||
</ErrorBoundary>
|
||||
</StrictMode>,
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { IconBack, IconPin, IconCompass, IconChevronRight } from '../components/Icons'
|
||||
import { IconBack, IconPin, IconCompass, IconChevronRight, IconSun } from '../components/Icons'
|
||||
import { latText, lonText } from '../lib/format'
|
||||
import { startCamera, startOrientation } from '../lib/camera'
|
||||
import { errText } from '../lib/wasm'
|
||||
@@ -109,6 +109,13 @@ export default function Setup({ suggestedName, onBack, onStart }) {
|
||||
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
||||
<span className="overline">{t('setup.howTo')}</span>
|
||||
<div className="daylight-card" role="note">
|
||||
<IconSun size={24} style={{ color: 'var(--accent)', flex: 'none' }} />
|
||||
<div>
|
||||
<span className="strong">{t('setup.daylightTitle')}</span>
|
||||
<span className="small">{t('setup.daylightHint')}</span>
|
||||
</div>
|
||||
</div>
|
||||
<svg viewBox="0 0 350 120" width="100%" role="img" style={{ display: 'block' }}
|
||||
aria-label={t('setup.illustration')}>
|
||||
<ellipse cx="175" cy="66" rx="150" ry="34" fill="none" stroke="#263042" strokeWidth="22" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMemo } from 'react'
|
||||
import AppIcon from '../components/AppIcon'
|
||||
import { IconChevronRight } from '../components/Icons'
|
||||
import { IconChevronRight, IconSun } from '../components/Icons'
|
||||
import { t } from '../i18n'
|
||||
import { APP_NAME } from '../lib/app'
|
||||
|
||||
@@ -143,6 +143,7 @@ export default function Welcome({ onStart }) {
|
||||
<p style={{ margin: 0, maxWidth: 280, fontSize: 17, lineHeight: 1.4, color: 'var(--text2)' }}>
|
||||
{t('welcome.tagline')}
|
||||
</p>
|
||||
<span className="daylight-pill"><IconSun size={16} />{t('welcome.daylight')}</span>
|
||||
</div>
|
||||
<div style={{
|
||||
position: 'absolute', left: 20, right: 20, bottom: 'calc(var(--safe-bottom) + 24px)',
|
||||
|
||||
@@ -199,6 +199,24 @@ button:disabled { cursor: default; opacity: 0.45; }
|
||||
font-size: 13px; line-height: 1.35; padding: 10px 12px; border-radius: 12px;
|
||||
background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--text);
|
||||
}
|
||||
.crash {
|
||||
min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 14px;
|
||||
padding: calc(var(--safe-top, 0px) + 24px) 24px calc(var(--safe-bottom, 0px) + 24px); text-align: center;
|
||||
}
|
||||
.crash strong { font-size: 20px; }
|
||||
.crash .small { font-size: 13px; color: var(--muted); word-break: break-word; }
|
||||
.daylight-card {
|
||||
display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px;
|
||||
background: var(--warn-bg); border: 1px solid var(--warn-border);
|
||||
}
|
||||
.daylight-card > div { display: flex; flex-direction: column; gap: 3px; }
|
||||
.daylight-card .strong { font-size: 15px; font-weight: 600; color: var(--accent); }
|
||||
.daylight-card .small { font-size: 13px; line-height: 1.4; color: var(--text2); }
|
||||
.daylight-pill {
|
||||
display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
|
||||
font-size: 14px; font-weight: 600; color: var(--accent);
|
||||
background: rgba(10, 13, 19, 0.6); border: 1px solid var(--warn-border);
|
||||
}
|
||||
.notice.error { background: #2A1410; border-color: #5A2A1E; }
|
||||
|
||||
.chip {
|
||||
|
||||
Reference in New Issue
Block a user