Series of small fixes (#346)

* migrate bufbuild config to v2

* fix localdir lookup

* fix old oidc redirect path

* rework twemoji path stuff

* fix torrential cmd

* fix broken lock file

* align dev server port with nginx

* bump pnpm

* bump nuxt

* make translations lazy loaded

* format numbers via i18n

* fix prisma breaking if extension already exists
This commit is contained in:
Husky
2026-02-09 11:27:31 -05:00
committed by GitHub
parent ca845467e1
commit f8447808dd
12 changed files with 1183 additions and 2957 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ export class TorrentialService extends Service<unknown> {
"torrential",
() => {
const localDir = fs.readdirSync(".");
if ("torrential" in localDir) {
if (localDir.includes("torrential")) {
const stat = fs.statSync("./torrential");
if (stat.isDirectory()) {
// in dev and we have the submodule
@@ -58,8 +58,8 @@ export class TorrentialService extends Service<unknown> {
"torrential detected in development mode - building from source",
);
return spawn(
"cargo run --manifest-path ./torrential/Cargo.toml",
[],
"cargo",
["run", "--manifest-path", "./torrential/Cargo.toml"],
{},
);
} else {
+2
View File
@@ -31,6 +31,8 @@ export function getFolderSize(folderPath: string): number {
}
export function formatBytes(bytes: number): string {
// TODO: use i18n formatting https://vue-i18n.intlify.dev/guide/essentials/number.html
if (bytes < 1024) {
return `${bytes} B`;
}