Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Mỗi tài khoản đang hoạt động được đồng bộ khoảng một l

Chi tiết IMAP: `imap.gmail.com:993` qua SSL, có kiểm tra chứng chỉ. App tìm trong `[Gmail]/All Mail` (nếu không có thì dùng `INBOX`) với `FROM <địa chỉ ngân hàng> SINCE <ngày>` cho từng địa chỉ gửi. Email được tải bằng PEEK, nên không bao giờ bị đánh dấu đã đọc, di chuyển hay xóa.

Để thu hồi quyền truy cập, xóa mật khẩu ứng dụng trong Google, hoặc vào **Cài đặt → Ngắt kết nối** để xóa mật khẩu đã lưu.
Để thu hồi quyền truy cập, xóa mật khẩu ứng dụng trong Google, hoặc vào **Cài đặt → Gmail → Ngắt kết nối** để xóa mật khẩu đã lưu.

## Lệnh Artisan

Expand Down
1 change: 1 addition & 0 deletions lang/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"Language": "Ngôn ngữ",
"Last error": "Lỗi gần nhất",
"Last synced": "Đồng bộ lần cuối",
"Legal": "Pháp lý",
"Light": "Sáng",
"Log in": "Đăng nhập",
"Log Out": "Đăng xuất",
Expand Down
11 changes: 11 additions & 0 deletions resources/views/components/privacy-layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@
@endforeach

{{ $slot }}

<nav class="flex items-center justify-center gap-2 pt-2 text-sm text-slate-500" aria-label="{{ __('Legal') }}">
@foreach (['privacy' => __('Privacy'), 'terms' => __('Terms of use')] as $route => $label)
@if (! $loop->first)<span aria-hidden="true">·</span>@endif
@if (request()->routeIs($route))
<span class="inline-flex min-h-11 items-center font-medium text-slate-700" aria-current="page">{{ $label }}</span>
@else
<a href="{{ route($route) }}" class="inline-flex min-h-11 items-center underline hover:text-slate-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500">{{ $label }}</a>
@endif
@endforeach
</nav>
</main>
</body>
</html>
8 changes: 4 additions & 4 deletions resources/views/privacy/en.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
'We do not sell or share your data with anyone.',
],
'How to disconnect and delete data' => [
'Disconnect: Settings → Disconnect. The app password is deleted immediately; past transactions are kept.',
'Disconnect: Settings → Gmail → Disconnect. The app password is deleted immediately; past transactions are kept.',
'Revoke at Google: go to myaccount.google.com/apppasswords and delete the "SpendSync" password. The app loses read access immediately.',
'Delete data: Settings → Danger Zone → Delete data. Emails, transactions, categories, rules and the Gmail connection are permanently deleted; your login account is kept.',
'Delete account: Settings → Danger Zone → Delete Account. Your login account and all of its data are permanently deleted.',
'Delete data: Settings → Profile & password → Danger Zone → Delete data. Emails, transactions, categories, rules and the Gmail connection are permanently deleted; your login account is kept.',
'Delete account: Settings → Profile & password → Danger Zone → Delete Account. Your login account and all of its data are permanently deleted.',
],
];
@endphp

<x-privacy-layout title="Privacy" :sections="$sections">
<x-slot:intro>
<p class="text-slate-600 text-sm">Last update: 20/11/2026.</p>
<p class="text-slate-600 text-sm">Last update: 21/11/2026.</p>
</x-slot:intro>
</x-privacy-layout>
8 changes: 4 additions & 4 deletions resources/views/privacy/vi.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
'Chúng tôi không bán hay chia sẻ dữ liệu của bạn với ai.',
],
'Cách ngắt kết nối và xóa dữ liệu' => [
'Ngắt kết nối: Cài đặt → Ngắt kết nối. Mật khẩu ứng dụng bị xóa ngay, giao dịch cũ vẫn giữ.',
'Ngắt kết nối: Cài đặt → Gmail → Ngắt kết nối. Mật khẩu ứng dụng bị xóa ngay, giao dịch cũ vẫn giữ.',
'Thu hồi tại Google: vào myaccount.google.com/apppasswords và xóa mật khẩu "SpendSync". Ứng dụng sẽ mất quyền đọc ngay lập tức.',
'Xóa dữ liệu: Cài đặt → Vùng nguy hiểm → Xóa dữ liệu. Email, giao dịch, danh mục, quy tắc và kết nối Gmail bị xóa vĩnh viễn; tài khoản đăng nhập được giữ lại.',
'Xóa tài khoản: Cài đặt → Vùng nguy hiểm → Xóa tài khoản. Tài khoản đăng nhập cùng toàn bộ dữ liệu bị xóa vĩnh viễn.',
'Xóa dữ liệu: Cài đặt → Hồ sơ & mật khẩu → Vùng nguy hiểm → Xóa dữ liệu. Email, giao dịch, danh mục, quy tắc và kết nối Gmail bị xóa vĩnh viễn; tài khoản đăng nhập được giữ lại.',
'Xóa tài khoản: Cài đặt → Hồ sơ & mật khẩu → Vùng nguy hiểm → Xóa tài khoản. Tài khoản đăng nhập cùng toàn bộ dữ liệu bị xóa vĩnh viễn.',
],
];
@endphp

<x-privacy-layout title="Quyền riêng tư" :sections="$sections">
<x-slot:intro>
<p class="text-slate-600 text-sm">Cập nhật lần cuối: 20/11/2026.</p>
<p class="text-slate-600 text-sm">Cập nhật lần cuối: 21/11/2026.</p>
</x-slot:intro>
</x-privacy-layout>
5 changes: 5 additions & 0 deletions tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
$this->get('/register')->assertSee(route('terms'))->assertSee(route('privacy'));
});

test('the privacy and terms pages link to each other', function () {
$this->get('/privacy')->assertSee('href="'.route('terms').'"', false)->assertDontSee('href="'.route('privacy').'"', false);
$this->get('/terms')->assertSee('href="'.route('privacy').'"', false)->assertDontSee('href="'.route('terms').'"', false);
});

test('the home page switches language for guests and remembers it for signed-in users', function () {
$this->get('/')->assertSee('English')->assertSee(route('locale', 'en'));

Expand Down