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