work on next13
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Dockerode from 'dockerode';
|
||||
import { Config, MatchingImages, ServiceType, tryMatchPort } from './types';
|
||||
import { MatchingImages, ServiceType, tryMatchPort } from './types';
|
||||
|
||||
async function MatchIcon(name: string) {
|
||||
const res = await fetch(
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
/* eslint-disable no-plusplus */
|
||||
/* eslint-disable consistent-return */
|
||||
export const bytes = {
|
||||
toPerSecondString: (bytes?: number) => {
|
||||
if (!bytes) return '-';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { showNotification } from '@mantine/notifications';
|
||||
import { IconCheck, IconX } from '@tabler/icons';
|
||||
import { IconX } from '@tabler/icons';
|
||||
import { useMutation } from '@tanstack/react-query';
|
||||
import { useTranslation } from 'next-i18next';
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@ export const isToday = (date: Date) => {
|
||||
return (
|
||||
today.getDate() === date.getDate() &&
|
||||
today.getMonth() === date.getMonth() &&
|
||||
date.getFullYear() === date.getFullYear()
|
||||
today.getFullYear() === date.getFullYear()
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export const percentage = (partialValue: number, totalValue: number) => {
|
||||
return ((100 * partialValue) / totalValue).toFixed(1);
|
||||
};
|
||||
export const percentage = (partialValue: number, totalValue: number) =>
|
||||
((100 * partialValue) / totalValue).toFixed(1);
|
||||
|
||||
Reference in New Issue
Block a user