Cleaned up project. Moved backend logic to FastAPI. Changed login/register routes to use FastAPI

This commit is contained in:
2024-10-12 22:12:08 +00:00
parent eddd1d8ef7
commit 97bce587d2
154 changed files with 1389 additions and 2658 deletions

16
node_modules/strip-ansi/index.js generated vendored
View File

@ -1,4 +1,14 @@
'use strict';
const ansiRegex = require('ansi-regex');
import ansiRegex from 'ansi-regex';
module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
const regex = ansiRegex();
export default function stripAnsi(string) {
if (typeof string !== 'string') {
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
}
// Even though the regex is global, we don't need to reset the `.lastIndex`
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
// and doing it manually has a performance penalty.
return string.replace(regex, '');
}