6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
const borderedText = (text: string) => {
|
|
const lines = text.split('\n');
|
|
const width = Math.max(...lines.map((l) => l.length));
|
|
const res = [`┌${'─'.repeat(width + 2)}┐`];
|
|
for (const line of lines) {
|
|
res.push(`│ ${line.padEnd(width)} │`);
|
|
}
|
|
res.push(`└${'─'.repeat(width + 2)}┘`);
|
|
return res.join('\n');
|
|
};
|
|
|
|
export default borderedText;
|