mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
update maskKey function to enhance key visibility handling
This commit is contained in:
@@ -733,8 +733,8 @@ export default function APIPageClient({ machineId }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const maskKey = (fullKey) => {
|
const maskKey = (fullKey) => {
|
||||||
if (!fullKey) return "";
|
if (!fullKey || fullKey.length <= 10) return fullKey || "";
|
||||||
return fullKey.length > 8 ? fullKey.slice(0, 8) + "..." : fullKey;
|
return fullKey.slice(0, 6) + "•".repeat(fullKey.length - 10) + fullKey.slice(-4);
|
||||||
};
|
};
|
||||||
|
|
||||||
const toggleKeyVisibility = (keyId) => {
|
const toggleKeyVisibility = (keyId) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user