diff --git a/README.md b/README.md index e870625..f718b72 100644 --- a/README.md +++ b/README.md @@ -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 ` 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 diff --git a/lang/vi.json b/lang/vi.json index b85b02e..6193cb0 100644 --- a/lang/vi.json +++ b/lang/vi.json @@ -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", diff --git a/resources/views/components/privacy-layout.blade.php b/resources/views/components/privacy-layout.blade.php index 3a6286c..30bbeeb 100644 --- a/resources/views/components/privacy-layout.blade.php +++ b/resources/views/components/privacy-layout.blade.php @@ -24,6 +24,17 @@ @endforeach {{ $slot }} + + diff --git a/resources/views/privacy/en.blade.php b/resources/views/privacy/en.blade.php index c4d18fa..7a2b789 100644 --- a/resources/views/privacy/en.blade.php +++ b/resources/views/privacy/en.blade.php @@ -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 -

Last update: 20/11/2026.

+

Last update: 21/11/2026.

diff --git a/resources/views/privacy/vi.blade.php b/resources/views/privacy/vi.blade.php index cc006f0..e4317bf 100644 --- a/resources/views/privacy/vi.blade.php +++ b/resources/views/privacy/vi.blade.php @@ -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 -

Cập nhật lần cuối: 20/11/2026.

+

Cập nhật lần cuối: 21/11/2026.

diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index aab0ce3..cc3834e 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -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'));