Initial commit: Tapalka monorepo (bot, front, strapi)

This commit is contained in:
2026-05-21 11:54:44 +07:00
commit 9ec9485940
208 changed files with 58314 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
'use server';
import { cookies } from 'next/headers';
export async function setNewToken(token: string) {
cookies().set('token', token);
}
export async function setNowDate() {
cookies().set('dateLifetimeJwt', new Date().toDateString());
}

View File

@@ -0,0 +1,11 @@
import FriendsContainer from '@/components/friends/FriendsContiner';
import { ConfigBotApi } from '@/api/config-bot.api';
const page = async () => {
const configBotApi = ConfigBotApi.getInstance();
const botLink = await configBotApi.getBotLink();
return <FriendsContainer botLink={botLink.link} />;
};
export default page;

View File

@@ -0,0 +1,7 @@
import HomeContainer from '@/components/home/HomeContainer';
const page = async () => {
return <HomeContainer />;
};
export default page;

View File

@@ -0,0 +1,13 @@
import Wrapper from '@/components/ui/wrapper/Wrapper';
import { Providers } from '@/components/providers/Providers';
import { PropsWithChildren } from 'react';
import { Params } from 'next/dist/shared/lib/router/utils/route-matcher';
export default function RootLayout({ children, params }: PropsWithChildren & { params: Params }) {
const id = decodeURI(params.id);
return (
<Wrapper>
<Providers id={id}>{children}</Providers>
</Wrapper>
);
}

View File

@@ -0,0 +1,5 @@
const page = async () => {
return <>hello</>;
};
export default page;

View File

@@ -0,0 +1,7 @@
import ShopContainer from '@/components/shop/ShopContainer';
const page = async () => {
return <ShopContainer />;
};
export default page;

View File

@@ -0,0 +1,7 @@
import TasksContainer from '@/components/tasks/TasksContainer';
const page = async () => {
return <TasksContainer />;
};
export default page;