mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
style: fixed as eslint
This commit is contained in:
parent
9f2fbc39fb
commit
48b0b08893
@ -1,8 +1,9 @@
|
||||
import { useState } from 'react'
|
||||
// import { useState } from 'react'
|
||||
|
||||
const Search = ({ query, result }: SearchProps): JSX.Element => {
|
||||
return (
|
||||
<div>
|
||||
{query} { result }
|
||||
<input />
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { NextPage } from 'next'
|
||||
import Container from '../components/Container'
|
||||
import Notice from '../components/Notice'
|
||||
import { ErrorText } from '../utils/Constants'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import Head from 'next/head'
|
||||
import type { AppProps } from 'next/app'
|
||||
import { ThemeProvider, useTheme } from 'next-themes'
|
||||
import { ThemeProvider } from 'next-themes'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
import Footer from '../components/Footer'
|
||||
@ -31,6 +31,7 @@ export default function App({ Component, pageProps }: AppProps): JSX.Element {
|
||||
'color: #ff0000; font-size: 20px; font-weight: bold;'
|
||||
)
|
||||
try {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
systemColor = window.matchMedia('(prefers-color-scheme: dark)')?.matches ? 'dark' : 'light'
|
||||
} catch (e) {
|
||||
systemColor = 'dark'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import fetch from 'node-fetch'
|
||||
import jwt from 'jsonwebtoken'
|
||||
import fs from 'fs'
|
||||
// import fetch from 'node-fetch'
|
||||
// import jwt from 'jsonwebtoken'
|
||||
// import fs from 'fs'
|
||||
import { TLRU } from 'tlru'
|
||||
|
||||
import { Bot, User, ListType, BotList } from '../types'
|
||||
@ -9,8 +9,8 @@ import { cats } from './Constants'
|
||||
import knex from './Knex'
|
||||
import DataLoader from 'dataloader'
|
||||
|
||||
const publicPem = fs.readFileSync('./public.pem')
|
||||
const privateKey = fs.readFileSync('./private.key')
|
||||
// const publicPem = fs.readFileSync('./public.pem')
|
||||
// const privateKey = fs.readFileSync('./private.key')
|
||||
|
||||
async function getBot(id: string, owners=true) {
|
||||
const res = await knex('bots')
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { ImageFormat, ImageOptions, ImageSize, UserPemissionFlags } from '../types'
|
||||
import { BASE_URLs, perms } from './Constants'
|
||||
import { ImageOptions, UserPemissionFlags } from '../types'
|
||||
import { perms } from './Constants'
|
||||
|
||||
export function formatNumber(value: number):string {
|
||||
const suffixes = ['', '만', '억', '조','해']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user