Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/Http/Middleware/App/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public function share(Request $request): array
'hasActiveSubscription' => $account ? $account->hasActiveSubscription() : false,
'subscriptionPastDue' => $account ? $account->isPastDue() : false,
],
'legal' => [
'terms' => (string) config('trypost.legal.terms_url'),
'privacy' => (string) config('trypost.legal.privacy_url'),
],
'usage' => $account && ! $isSelfHosted ? $account->usage() : null,
'features' => $account && ! $isSelfHosted ? $account->featureLimits() : null,
'onboardingProgress' => $this->onboardingProgress($request, $user),
Expand Down
16 changes: 16 additions & 0 deletions config/trypost.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@

'self_hosted' => env('SELF_HOSTED', true),

/*
|--------------------------------------------------------------------------
| Legal pages
|--------------------------------------------------------------------------
|
| Linked from the auth screens. Platform app reviews (TikTok explicitly)
| require Terms and Privacy links to be clearly visible; self-hosted
| installs point these at wherever they publish their own documents.
|
*/

'legal' => [
'terms_url' => env('LEGAL_TERMS_URL', 'https://trypost.it/terms'),
'privacy_url' => env('LEGAL_PRIVACY_URL', 'https://trypost.it/privacy'),
],

/*
|--------------------------------------------------------------------------
| Meta page walk budget
Expand Down
5 changes: 5 additions & 0 deletions lang/ar/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'الانتقال إلى الصفحة الرئيسية',
],

'footer' => [
'terms' => 'شروط الخدمة',
'privacy' => 'سياسة الخصوصية',
],

];
5 changes: 5 additions & 0 deletions lang/de/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,9 @@
'expired_action' => 'Zur Startseite',
],

'footer' => [
'terms' => 'Nutzungsbedingungen',
'privacy' => 'Datenschutzerklärung',
],

];
5 changes: 5 additions & 0 deletions lang/el/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Αρχική σελίδα',
],

'footer' => [
'terms' => 'Όροι χρήσης',
'privacy' => 'Πολιτική απορρήτου',
],

];
5 changes: 5 additions & 0 deletions lang/en/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Go to home',
],

'footer' => [
'terms' => 'Terms of Service',
'privacy' => 'Privacy Policy',
],

];
6 changes: 6 additions & 0 deletions lang/es/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,10 @@
'expired_description' => 'El workspace de esta invitación fue eliminado. Pide al propietario de la cuenta una nueva invitación si aún necesitas acceso.',
'expired_action' => 'Ir al inicio',
],

'footer' => [
'terms' => 'Términos del servicio',
'privacy' => 'Política de privacidad',
],

];
5 changes: 5 additions & 0 deletions lang/fr/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Retour à l’accueil',
],

'footer' => [
'terms' => 'Conditions d’utilisation',
'privacy' => 'Politique de confidentialité',
],

];
5 changes: 5 additions & 0 deletions lang/it/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Vai alla home',
],

'footer' => [
'terms' => 'Termini di servizio',
'privacy' => 'Informativa sulla privacy',
],

];
5 changes: 5 additions & 0 deletions lang/ja/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'ホームへ',
],

'footer' => [
'terms' => '利用規約',
'privacy' => 'プライバシーポリシー',
],

];
5 changes: 5 additions & 0 deletions lang/ko/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => '홈으로',
],

'footer' => [
'terms' => '서비스 약관',
'privacy' => '개인정보 처리방침',
],

];
5 changes: 5 additions & 0 deletions lang/nl/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Naar home',
],

'footer' => [
'terms' => 'Servicevoorwaarden',
'privacy' => 'Privacybeleid',
],

];
5 changes: 5 additions & 0 deletions lang/pl/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Przejdź do strony głównej',
],

'footer' => [
'terms' => 'Regulamin',
'privacy' => 'Polityka prywatności',
],

];
5 changes: 5 additions & 0 deletions lang/pt-BR/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'Ir para o início',
],

'footer' => [
'terms' => 'Termos de serviço',
'privacy' => 'Política de privacidade',
],

];
5 changes: 5 additions & 0 deletions lang/ru/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'На главную',
],

'footer' => [
'terms' => 'Условия использования',
'privacy' => 'Политика конфиденциальности',
],

];
5 changes: 5 additions & 0 deletions lang/tr/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,9 @@
'expired_action' => 'Ana sayfaya git',
],

'footer' => [
'terms' => 'Hizmet şartları',
'privacy' => 'Gizlilik politikası',
],

];
5 changes: 5 additions & 0 deletions lang/uk/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => 'На головну',
],

'footer' => [
'terms' => 'Умови використання',
'privacy' => 'Політика конфіденційності',
],

];
5 changes: 5 additions & 0 deletions lang/zh/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@
'expired_action' => '返回首页',
],

'footer' => [
'terms' => '服务条款',
'privacy' => '隐私政策',
],

];
11 changes: 11 additions & 0 deletions resources/js/layouts/auth/AuthSplitLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ import {
IconUsers,
IconVideo,
} from '@tabler/icons-vue';
import { usePage } from '@inertiajs/vue3';
import { trans } from 'laravel-vue-i18n';
import { onBeforeUnmount, onMounted, ref, computed } from 'vue';

const legal = computed(() => (usePage().props.legal ?? {}) as { terms?: string; privacy?: string });

defineProps<{
title?: string;
description?: string;
Expand Down Expand Up @@ -109,6 +112,14 @@ const platforms = [
</div>
</div>
</div>

<!-- Platform app reviews (TikTok explicitly) require Terms and
Privacy links visible to a logged-out visitor. -->
<footer class="flex items-center justify-center gap-4 text-xs text-muted-foreground">
<a :href="legal.terms" target="_blank" class="underline underline-offset-2 hover:text-foreground">{{ $t('auth.footer.terms') }}</a>
<span aria-hidden="true">·</span>
<a :href="legal.privacy" target="_blank" class="underline underline-offset-2 hover:text-foreground">{{ $t('auth.footer.privacy') }}</a>
</footer>
</div>

<div
Expand Down