chore: format whole repository with new configs

This commit is contained in:
Krzysztof Durek
2024-07-15 01:08:18 +02:00
parent 7a5c71cda3
commit 906e8de13b
349 changed files with 3565 additions and 3549 deletions

View File

@@ -1,7 +1,7 @@
import type http from "node:http";
import { spawn } from "node-pty";
import { WebSocketServer } from "ws";
import { validateWebSocketRequest } from "../auth/auth";
import { spawn } from "node-pty";
import { getShell } from "./utils";
export const setupDockerContainerLogsWebSocketServer = (

View File

@@ -1,7 +1,7 @@
import type http from "node:http";
import { spawn } from "node-pty";
import { WebSocketServer } from "ws";
import { validateWebSocketRequest } from "../auth/auth";
import { spawn } from "node-pty";
import { getShell } from "./utils";
export const setupDockerContainerTerminalWebSocketServer = (

View File

@@ -1,11 +1,11 @@
import type http from "node:http";
import { WebSocketServer } from "ws";
import { validateWebSocketRequest } from "../auth/auth";
import { docker } from "../constants";
import {
getLastAdvancedStatsFile,
recordAdvancedStats,
} from "../monitoring/utilts";
import { docker } from "../constants";
export const setupDockerStatsMonitoringSocketServer = (
server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>,

View File

@@ -1,7 +1,7 @@
import { spawn } from "node:child_process";
import type http from "node:http";
import { WebSocketServer } from "ws";
import { validateWebSocketRequest } from "../auth/auth";
import { spawn } from "node:child_process";
export const setupDeploymentLogsWebSocketServer = (
server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>,

View File

@@ -1,12 +1,12 @@
import { writeFileSync } from "node:fs";
import type http from "node:http";
import { WebSocketServer } from "ws";
import { validateWebSocketRequest } from "../auth/auth";
import { spawn } from "node-pty";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { writeFileSync } from "node:fs";
import { spawn } from "node-pty";
import { publicIpv4, publicIpv6 } from "public-ip";
import { WebSocketServer } from "ws";
import { findAdmin } from "../api/services/admin";
import { validateWebSocketRequest } from "../auth/auth";
export const getPublicIpWithFallback = async () => {
// @ts-ignore

View File

@@ -1,12 +1,12 @@
import os from "node:os";
export const getShell = () => {
switch (os.platform()) {
case "win32":
return "powershell.exe";
case "darwin":
return "zsh";
default:
return "bash";
}
switch (os.platform()) {
case "win32":
return "powershell.exe";
case "darwin":
return "zsh";
default:
return "bash";
}
};