feat(client): add edge name generator

This commit is contained in:
2025-07-10 18:52:11 +05:00
parent 943f4ded2d
commit 51171377e2

8
client/src/utils/edge.ts Normal file
View File

@@ -0,0 +1,8 @@
function edgeTitleGenerator(counter: number) {
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const num = Math.ceil(counter / chars.length);
const letterIndex = (counter - 1) % chars.length;
return `${chars[letterIndex]}${num}`;
}
export { edgeTitleGenerator };