feat(right-click-restorer): add unsupported page detection

- Detect and block chrome://, chrome-extension://, about://, edge://, brave:// pages
- Show 'Unsupported' badge with warning icon and disabled button
- Add 'unsupported' and 'unsupportedDesc' i18n keys (zh/en)
- Update useRightClickRestorer hook with isUnsupported state
- Add unit tests for unsupported page behavior
- Update page UI to render conditional unsupported layout
This commit is contained in:
雨霖铃
2026-05-23 12:46:20 +08:00
parent 4c08e17b19
commit 6bac88fbc4
6 changed files with 103 additions and 18 deletions
@@ -9,6 +9,7 @@ vi.mock('../useRightClickRestorer', () => ({
domain: 'example.com',
isLoading: false,
isUnlocked: false,
isUnsupported: false,
unlock: mockUnlock,
}),
}));