mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 17:03:00 +10:00
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:
@@ -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 {
|
||||
|
||||
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user