Relabel photobooth uploader mode
This commit is contained in:
@@ -1175,8 +1175,8 @@
|
|||||||
"credentials": {
|
"credentials": {
|
||||||
"heading": "FTP-Zugangsdaten",
|
"heading": "FTP-Zugangsdaten",
|
||||||
"description": "Teile die Zugangsdaten mit eurer Photobooth-Software.",
|
"description": "Teile die Zugangsdaten mit eurer Photobooth-Software.",
|
||||||
"sparkboothTitle": "Sparkbooth-Upload (HTTP)",
|
"sparkboothTitle": "Uploader-App (HTTP)",
|
||||||
"sparkboothDescription": "Trage URL, Benutzername und Passwort in Sparkbooth ein. Antworten sind JSON (optional XML).",
|
"sparkboothDescription": "Trage URL, Benutzername und Passwort in die Fotospiel-Uploader-App ein. Antworten sind JSON (optional XML).",
|
||||||
"host": "Host",
|
"host": "Host",
|
||||||
"port": "Port",
|
"port": "Port",
|
||||||
"username": "Benutzername",
|
"username": "Benutzername",
|
||||||
|
|||||||
@@ -888,8 +888,8 @@
|
|||||||
"credentials": {
|
"credentials": {
|
||||||
"heading": "FTP credentials",
|
"heading": "FTP credentials",
|
||||||
"description": "Share these credentials with your photobooth software.",
|
"description": "Share these credentials with your photobooth software.",
|
||||||
"sparkboothTitle": "Sparkbooth upload (HTTP)",
|
"sparkboothTitle": "Uploader App (HTTP)",
|
||||||
"sparkboothDescription": "Enter URL, username and password in Sparkbooth. Responses default to JSON (XML optional).",
|
"sparkboothDescription": "Enter URL, username and password in the Fotospiel uploader app. Responses default to JSON (XML optional).",
|
||||||
"host": "Host",
|
"host": "Host",
|
||||||
"port": "Port",
|
"port": "Port",
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ export default function MobileEventPhotoboothPage() {
|
|||||||
|
|
||||||
const modeLabel =
|
const modeLabel =
|
||||||
activeMode === 'sparkbooth'
|
activeMode === 'sparkbooth'
|
||||||
? t('photobooth.credentials.sparkboothTitle', 'Sparkbooth / HTTP')
|
? t('photobooth.credentials.sparkboothTitle', 'Uploader App (HTTP)')
|
||||||
: t('photobooth.credentials.heading', 'FTP (Classic)');
|
: t('photobooth.credentials.heading', 'FTP (Classic)');
|
||||||
|
|
||||||
const isActive = Boolean(status?.enabled);
|
const isActive = Boolean(status?.enabled);
|
||||||
@@ -267,7 +267,7 @@ export default function MobileEventPhotoboothPage() {
|
|||||||
<Text fontSize="$xs" color={muted}>
|
<Text fontSize="$xs" color={muted}>
|
||||||
{t(
|
{t(
|
||||||
'photobooth.selector.description',
|
'photobooth.selector.description',
|
||||||
'FTP (Classic) works with most booths. Sparkbooth uses HTTP POST without FTP.'
|
'FTP (Classic) works with most booths. The Uploader App uses HTTP POST without FTP.'
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
<XStack space="$2" marginTop="$2" flexWrap="nowrap">
|
<XStack space="$2" marginTop="$2" flexWrap="nowrap">
|
||||||
@@ -282,7 +282,7 @@ export default function MobileEventPhotoboothPage() {
|
|||||||
</XStack>
|
</XStack>
|
||||||
<XStack flex={1} minWidth={0}>
|
<XStack flex={1} minWidth={0}>
|
||||||
<CTAButton
|
<CTAButton
|
||||||
label={t('photobooth.mode.sparkbooth', 'Sparkbooth (HTTP POST)')}
|
label={t('photobooth.mode.sparkbooth', 'Uploader App (HTTP)')}
|
||||||
tone={activeMode === 'sparkbooth' ? 'primary' : 'ghost'}
|
tone={activeMode === 'sparkbooth' ? 'primary' : 'ghost'}
|
||||||
onPress={() => setSelectedMode('sparkbooth')}
|
onPress={() => setSelectedMode('sparkbooth')}
|
||||||
disabled={updating}
|
disabled={updating}
|
||||||
@@ -295,7 +295,7 @@ export default function MobileEventPhotoboothPage() {
|
|||||||
<MobileCard space="$2">
|
<MobileCard space="$2">
|
||||||
<XStack alignItems="center" justifyContent="space-between">
|
<XStack alignItems="center" justifyContent="space-between">
|
||||||
<Text fontSize="$sm" fontWeight="700" color={text}>
|
<Text fontSize="$sm" fontWeight="700" color={text}>
|
||||||
{isSpark ? t('photobooth.credentials.sparkboothTitle', 'Sparkbooth upload (HTTP)') : t('photobooth.credentials.heading', 'FTP credentials')}
|
{isSpark ? t('photobooth.credentials.sparkboothTitle', 'Uploader App (HTTP)') : t('photobooth.credentials.heading', 'FTP credentials')}
|
||||||
</Text>
|
</Text>
|
||||||
{!isSpark && ftp?.require_ftps ? <PillBadge tone="warning">{t('photobooth.credentials.ftps', 'FTPS required')}</PillBadge> : null}
|
{!isSpark && ftp?.require_ftps ? <PillBadge tone="warning">{t('photobooth.credentials.ftps', 'FTPS required')}</PillBadge> : null}
|
||||||
</XStack>
|
</XStack>
|
||||||
@@ -307,7 +307,7 @@ export default function MobileEventPhotoboothPage() {
|
|||||||
<CredentialRow label={t('photobooth.credentials.password', 'Password')} value={password ?? '—'} border={border} masked />
|
<CredentialRow label={t('photobooth.credentials.password', 'Password')} value={password ?? '—'} border={border} masked />
|
||||||
<CredentialRow label={t('photobooth.sparkbooth.format', 'Response format')} value={responseFormat.toUpperCase()} border={border} />
|
<CredentialRow label={t('photobooth.sparkbooth.format', 'Response format')} value={responseFormat.toUpperCase()} border={border} />
|
||||||
<Text fontSize="$xs" color={muted}>
|
<Text fontSize="$xs" color={muted}>
|
||||||
{t('photobooth.sparkbooth.hint', 'POST with media file or base64 "media" field; username/password required.')}
|
{t('photobooth.sparkbooth.hint', 'POST with media file or base64 "media" field; app uses these credentials.')}
|
||||||
</Text>
|
</Text>
|
||||||
<YStack space="$2" marginTop="$2">
|
<YStack space="$2" marginTop="$2">
|
||||||
<Text fontSize="$xs" color={muted}>
|
<Text fontSize="$xs" color={muted}>
|
||||||
|
|||||||
Reference in New Issue
Block a user