mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: lint
This commit is contained in:
@@ -6,13 +6,13 @@ import {
|
|||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from "@/components/ui/select";
|
} from "@/components/ui/select";
|
||||||
|
import { api } from "@/utils/api";
|
||||||
import { Cpu, HardDrive, Loader2, MemoryStick, Network } from "lucide-react";
|
import { Cpu, HardDrive, Loader2, MemoryStick, Network } from "lucide-react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { ContainerBlockChart } from "./container-block-chart";
|
import { ContainerBlockChart } from "./container-block-chart";
|
||||||
import { ContainerCPUChart } from "./container-cpu-chart";
|
import { ContainerCPUChart } from "./container-cpu-chart";
|
||||||
import { ContainerMemoryChart } from "./container-memory-chart";
|
import { ContainerMemoryChart } from "./container-memory-chart";
|
||||||
import { ContainerNetworkChart } from "./container-network-chart";
|
import { ContainerNetworkChart } from "./container-network-chart";
|
||||||
import { api } from "@/utils/api";
|
|
||||||
|
|
||||||
const REFRESH_INTERVALS = {
|
const REFRESH_INTERVALS = {
|
||||||
"5000": "5 Seconds",
|
"5000": "5 Seconds",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {
|
|||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from "@/components/ui/select";
|
} from "@/components/ui/select";
|
||||||
|
import { api } from "@/utils/api";
|
||||||
import { Clock, Cpu, HardDrive, Loader2, MemoryStick } from "lucide-react";
|
import { Clock, Cpu, HardDrive, Loader2, MemoryStick } from "lucide-react";
|
||||||
import type React from "react";
|
import type React from "react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
@@ -12,7 +13,6 @@ import { CPUChart } from "./cpu-chart";
|
|||||||
import { DiskChart } from "./disk-chart";
|
import { DiskChart } from "./disk-chart";
|
||||||
import { MemoryChart } from "./memory-chart";
|
import { MemoryChart } from "./memory-chart";
|
||||||
import { NetworkChart } from "./network-chart";
|
import { NetworkChart } from "./network-chart";
|
||||||
import { api } from "@/utils/api";
|
|
||||||
|
|
||||||
const REFRESH_INTERVALS = {
|
const REFRESH_INTERVALS = {
|
||||||
"5000": "5 Seconds",
|
"5000": "5 Seconds",
|
||||||
|
|||||||
@@ -22,13 +22,13 @@ import {
|
|||||||
} from "@dokploy/server";
|
} from "@dokploy/server";
|
||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
|
import { z } from "zod";
|
||||||
import {
|
import {
|
||||||
adminProcedure,
|
adminProcedure,
|
||||||
createTRPCRouter,
|
createTRPCRouter,
|
||||||
protectedProcedure,
|
protectedProcedure,
|
||||||
publicProcedure,
|
publicProcedure,
|
||||||
} from "../trpc";
|
} from "../trpc";
|
||||||
import { z } from "zod";
|
|
||||||
|
|
||||||
export const adminRouter = createTRPCRouter({
|
export const adminRouter = createTRPCRouter({
|
||||||
one: adminProcedure.query(async ({ ctx }) => {
|
one: adminProcedure.query(async ({ ctx }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user