Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
10
CMyTapper/robucks-front/app/[id]/actions.ts
Normal file
10
CMyTapper/robucks-front/app/[id]/actions.ts
Normal 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());
|
||||
}
|
||||
11
CMyTapper/robucks-front/app/[id]/friends/page.tsx
Normal file
11
CMyTapper/robucks-front/app/[id]/friends/page.tsx
Normal 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;
|
||||
7
CMyTapper/robucks-front/app/[id]/home/page.tsx
Normal file
7
CMyTapper/robucks-front/app/[id]/home/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import HomeContainer from '@/components/home/HomeContainer';
|
||||
|
||||
const page = async () => {
|
||||
return <HomeContainer />;
|
||||
};
|
||||
|
||||
export default page;
|
||||
13
CMyTapper/robucks-front/app/[id]/layout.tsx
Normal file
13
CMyTapper/robucks-front/app/[id]/layout.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
5
CMyTapper/robucks-front/app/[id]/page.tsx
Normal file
5
CMyTapper/robucks-front/app/[id]/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
const page = async () => {
|
||||
return <>hello</>;
|
||||
};
|
||||
|
||||
export default page;
|
||||
7
CMyTapper/robucks-front/app/[id]/shop/page.tsx
Normal file
7
CMyTapper/robucks-front/app/[id]/shop/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import ShopContainer from '@/components/shop/ShopContainer';
|
||||
|
||||
const page = async () => {
|
||||
return <ShopContainer />;
|
||||
};
|
||||
|
||||
export default page;
|
||||
7
CMyTapper/robucks-front/app/[id]/tasks/page.tsx
Normal file
7
CMyTapper/robucks-front/app/[id]/tasks/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import TasksContainer from '@/components/tasks/TasksContainer';
|
||||
|
||||
const page = async () => {
|
||||
return <TasksContainer />;
|
||||
};
|
||||
|
||||
export default page;
|
||||
Reference in New Issue
Block a user