mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: uypdate
This commit is contained in:
@@ -251,7 +251,9 @@ export const DockerMonitoring = ({
|
|||||||
</span>
|
</span>
|
||||||
<Progress
|
<Progress
|
||||||
value={
|
value={
|
||||||
|
// @ts-ignore
|
||||||
(convertMemoryToBytes(currentData.memory.value.used) /
|
(convertMemoryToBytes(currentData.memory.value.used) /
|
||||||
|
// @ts-ignore
|
||||||
convertMemoryToBytes(currentData.memory.value.total)) *
|
convertMemoryToBytes(currentData.memory.value.total)) *
|
||||||
100
|
100
|
||||||
}
|
}
|
||||||
@@ -260,6 +262,7 @@ export const DockerMonitoring = ({
|
|||||||
<DockerMemoryChart
|
<DockerMemoryChart
|
||||||
acummulativeData={acummulativeData.memory}
|
acummulativeData={acummulativeData.memory}
|
||||||
memoryLimitGB={
|
memoryLimitGB={
|
||||||
|
// @ts-ignore
|
||||||
convertMemoryToBytes(currentData.memory.value.total) /
|
convertMemoryToBytes(currentData.memory.value.total) /
|
||||||
1024 ** 3
|
1024 ** 3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ import { appRouter } from "@/server/api/root";
|
|||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
import { validateRequest } from "@dokploy/server";
|
import { validateRequest } from "@dokploy/server";
|
||||||
import { createServerSideHelpers } from "@trpc/react-query/server";
|
import { createServerSideHelpers } from "@trpc/react-query/server";
|
||||||
|
import copy from "copy-to-clipboard";
|
||||||
import { GlobeIcon, HelpCircle, ServerOff, Trash2 } from "lucide-react";
|
import { GlobeIcon, HelpCircle, ServerOff, Trash2 } from "lucide-react";
|
||||||
import type {
|
import type {
|
||||||
GetServerSidePropsContext,
|
GetServerSidePropsContext,
|
||||||
@@ -52,7 +53,6 @@ import { useRouter } from "next/router";
|
|||||||
import React, { useState, useEffect, type ReactElement } from "react";
|
import React, { useState, useEffect, type ReactElement } from "react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
import copy from 'copy-to-clipboard';
|
|
||||||
|
|
||||||
type TabState =
|
type TabState =
|
||||||
| "projects"
|
| "projects"
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import { appRouter } from "@/server/api/root";
|
|||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
import { validateRequest } from "@dokploy/server";
|
import { validateRequest } from "@dokploy/server";
|
||||||
import { createServerSideHelpers } from "@trpc/react-query/server";
|
import { createServerSideHelpers } from "@trpc/react-query/server";
|
||||||
|
import copy from "copy-to-clipboard";
|
||||||
import { CircuitBoard, ServerOff } from "lucide-react";
|
import { CircuitBoard, ServerOff } from "lucide-react";
|
||||||
import { HelpCircle } from "lucide-react";
|
import { HelpCircle } from "lucide-react";
|
||||||
import type {
|
import type {
|
||||||
@@ -43,9 +44,8 @@ import Head from "next/head";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import React, { useState, useEffect, type ReactElement } from "react";
|
import React, { useState, useEffect, type ReactElement } from "react";
|
||||||
import superjson from "superjson";
|
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import copy from 'copy-to-clipboard';
|
import superjson from "superjson";
|
||||||
|
|
||||||
type TabState =
|
type TabState =
|
||||||
| "projects"
|
| "projects"
|
||||||
|
|||||||
Reference in New Issue
Block a user