add scripts to auto-install

This commit is contained in:
kilyabin
2025-11-18 03:57:22 +04:00
parent f7a8cc622f
commit b82d4e5085
12 changed files with 715 additions and 275 deletions

View File

@@ -43,15 +43,13 @@ function Popup({ open, onClose }: {
Если вы хотите добавить свою группу на сайт, скиньтесь всей группой и задонатьте мне 500
</DialogDescription>
<DialogDescription>
На сайте не только появится ваше расписание, но оно будет обновляться каждую неделю. А если во время парсинга произойдет ошибка я сразу получу об этом уведомление в телеграм, потому что у меня настроен бот.
Для меня это будет очень хорошая поддержка🥺🥺🥺
</DialogDescription>
<DialogDescription>
{/* eslint-disable-next-line @next/next/no-img-element */}
Для меня добавить вашу группу это даже не одна строка кода, а одно нажатие клавиши, но я хочу чтобы этот сайт был доступен только самым лучшим и избранным, достойных престижа <img src={'/1925.png'} width={14} height={14} alt='' className='inline align-text-bottom' />
</DialogDescription>
<DialogFooter className='!justify-start !flex-row mt-3 gap-3'>
<Link href='https://t.me/ilyakm'>
<Button tabIndex={-1} className='gap-3'><BsTelegram /> Мой телеграм</Button>
<Button tabIndex={-1} className='gap-3'><BsTelegram /> Мой Telegram</Button>
</Link>
</DialogFooter>
</DialogContent>

View File

@@ -1,11 +1,15 @@
import { GetServerSidePropsResult } from 'next'
import { groups } from '@/shared/data/groups'
export default function HomePage() { }
export async function getServerSideProps(): Promise<GetServerSidePropsResult<Record<string, never>>> {
// Получаем первую группу из списка
const firstGroupId = Object.keys(groups)[0]
return {
redirect: {
destination: '/ps7',
destination: `/${firstGroupId}`,
permanent: true
}
}

View File

@@ -51,7 +51,7 @@ export function NavBar({ cacheAvailableFor }: {
<AddGroupButton />
</ul>
<div className='flex gap-1 min-[500px]:gap-2'>
<Link href='https://github.com/VityaSchel/kspguti-schedule' target='_blank' rel='nofollower noreferrer'>
<Link href='https://github.com/kilyabin/kspguti-schedule' target='_blank' rel='nofollower noreferrer'>
<Button variant='outline' size='icon' tabIndex={-1}>
<FaGithub />
</Button>