work on next13

This commit is contained in:
ajnart
2023-01-23 01:34:36 +09:00
parent e47bbc966c
commit 9d566330be
20 changed files with 220 additions and 208 deletions

View File

@@ -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(

View File

@@ -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 '-';

View File

@@ -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';

View File

@@ -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()
);
};

View File

@@ -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);