Fix hydration error; fix linter reports; fix t.me link

This commit is contained in:
VityaSchel
2023-10-02 20:25:03 +04:00
parent f0c1347bbd
commit 410b5acb29
7 changed files with 44 additions and 14 deletions

1
.eslintignore Normal file
View File

@@ -0,0 +1 @@
src/shadcn

View File

@@ -1,11 +1,11 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true, reactStrictMode: true,
redirects: { redirects: async () => ({
permanent: false, permanent: false,
destination: '/ps7', destination: '/ps7',
source: '/' source: '/'
} })
} }
module.exports = nextConfig module.exports = nextConfig

View File

@@ -1,9 +1,8 @@
import { Day } from '@/shared/model/day' import { Day } from '@/shared/model/day'
import { parsePage } from '@/app/parser/schedule' import { parsePage } from '@/app/parser/schedule'
import contentTypeParser from 'content-type' import contentTypeParser from 'content-type'
// import { parse } from 'node-html-parser'
import { JSDOM } from 'jsdom' import { JSDOM } from 'jsdom'
import { content as mockContent } from './mock' // import { content as mockContent } from './mock'
import { reportParserError } from '@/app/logger' import { reportParserError } from '@/app/logger'
// ПС-7: 146 // ПС-7: 146

File diff suppressed because one or more lines are too long

View File

@@ -50,7 +50,7 @@ function Popup({ open, onClose }: {
Для меня добавить вашу группу это даже не одна строка кода, а одно нажатие клавиши, но я хочу чтобы этот сайт был доступен только самым лучшим и избранным, достойных престижа <Image src={coolEmoji} width={14} height={14} alt='' className='inline align-text-bottom' /> Для меня добавить вашу группу это даже не одна строка кода, а одно нажатие клавиши, но я хочу чтобы этот сайт был доступен только самым лучшим и избранным, достойных престижа <Image src={coolEmoji} width={14} height={14} alt='' className='inline align-text-bottom' />
</DialogDescription> </DialogDescription>
<DialogFooter className='!justify-start !flex-row mt-3 gap-3'> <DialogFooter className='!justify-start !flex-row mt-3 gap-3'>
<Link href='https://t.me/hloth'> <Link href='https://t.me/hlothdev'>
<Button tabIndex={-1} className='gap-3'><BsTelegram /> Мой телеграм</Button> <Button tabIndex={-1} className='gap-3'><BsTelegram /> Мой телеграм</Button>
</Link> </Link>
<Link href='https://vk.com/hloth'> <Link href='https://vk.com/hloth'>

View File

@@ -1,5 +1,5 @@
import { type ClassValue, clsx } from "clsx" import { type ClassValue, clsx } from 'clsx'
import { twMerge } from "tailwind-merge" import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) { export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs)) return twMerge(clsx(inputs))

View File

@@ -60,7 +60,7 @@ export function Lesson({ lesson, width = 350 }: {
} }
return ( return (
<Card className={`w-full ${width === 450 ? `md:w-[450px] md:min-w-[450px] md:max-w-[450px]` : `md:w-[350px] md:min-w-[350px] md:max-w-[350px]`} flex flex-col relative overflow-hidden snap-start scroll-ml-16 shrink-0`}> <Card className={`w-full ${width === 450 ? 'md:w-[450px] md:min-w-[450px] md:max-w-[450px]' : 'md:w-[350px] md:min-w-[350px] md:max-w-[350px]'} flex flex-col relative overflow-hidden snap-start scroll-ml-16 shrink-0`}>
{lesson.isChange && <div className='absolute top-0 left-0 w-full h-full bg-gradient-to-br from-[#ffc60026] to-[#95620026] pointer-events-none'></div>} {lesson.isChange && <div className='absolute top-0 left-0 w-full h-full bg-gradient-to-br from-[#ffc60026] to-[#95620026] pointer-events-none'></div>}
<CardHeader> <CardHeader>
<div className='flex gap-4'> <div className='flex gap-4'>