From e0d40450d252576dfba993a19ee52666df2ea66a Mon Sep 17 00:00:00 2001
From: joker
Date: Sat, 25 Feb 2023 08:01:36 +0300
Subject: [PATCH] first commit
---
.eslintrc.json | 3 +
.gitignore | 39 +
.history/components/Head_20221008164656.tsx | 0
.history/components/Head_20221008164704.tsx | 45 +
.history/components/Layout_20221008164630.tsx | 0
.history/components/Layout_20221008165202.tsx | 45 +
.history/components/Layout_20221008170318.tsx | 45 +
.../components/Navigation_20221008164721.tsx | 0
.../components/Navigation_20221008165047.tsx | 108 +
.../components/Navigation_20221008165206.tsx | 108 +
.../components/Navigation_20221008171337.tsx | 105 +
.../components/Navigation_20221008171641.tsx | 105 +
.../components/ThemeSwitch_20221008165108.tsx | 0
.../components/ThemeSwitch_20221008165148.tsx | 102 +
.../components/ThemeSwitch_20221008170555.tsx | 101 +
.history/lib/api_20221008165345.ts | 0
.history/lib/api_20221008165401.ts | 45 +
.history/pages/index_20220923142922.tsx | 72 +
.history/pages/index_20221008165252.tsx | 67 +
.history/pages/index_20221008165408.tsx | 67 +
.history/pages/index_20221008170630.tsx | 51 +
.history/pages/index_20221008171754.tsx | 49 +
.history/pages/index_20221008171828.tsx | 49 +
.history/pages/index_20221008171836.tsx | 49 +
.history/pages/index_20221008171843.tsx | 49 +
.history/pages/index_20221008171943.tsx | 49 +
.history/pages/post/[slug]_20221008165303.tsx | 0
.history/pages/post/[slug]_20221008165312.tsx | 95 +
.history/posts/3dmodeling_20220821222032.mdx | 11 +
.history/posts/3dmodeling_20221008172554.mdx | 11 +
.history/posts/3dmodeling_20221008173028.mdx | 11 +
.history/posts/3dmodeling_20221008173030.mdx | 11 +
.history/posts/3dmodeling_20221008173143.mdx | 11 +
.../festival-schedule_20221008165635.mdx | 0
.../festival-schedule_20221008165641.mdx | 69 +
.../programming/lesson_1_20221008172425.mdx | 0
.../programming/lesson_1_20221008172434.mdx | 0
.../programming/lesson_1_20221008172452.mdx | 11 +
.../programming/lesson_1_20221008172629.mdx | 11 +
.history/posts/programming_20220613103431.mdx | 69 +
.history/posts/programming_20221008172651.mdx | 69 +
.history/posts/programming_20221008172840.mdx | 69 +
.history/posts/programming_20221008173020.mdx | 69 +
.history/posts/programming_20221008173034.mdx | 69 +
.history/posts/programming_20221008173140.mdx | 69 +
.history/posts/programming_20221008173354.mdx | 69 +
.history/posts/programming_20221008173422.mdx | 69 +
.history/posts/programming_20221008173543.mdx | 69 +
.history/posts/programming_20221008173601.mdx | 69 +
.history/posts/programming_20221008173620.mdx | 69 +
.history/posts/programming_20221008173634.mdx | 10 +
.history/posts/programming_20221008173742.mdx | 13 +
.history/posts/programming_20221008174112.mdx | 21 +
.history/posts/programming_20221008174153.mdx | 46 +
.history/posts/programming_20221008174237.mdx | 15 +
.history/posts/programming_20221008174350.mdx | 14 +
.history/posts/robotics_20221007202822.mdx | 298 +
.history/posts/robotics_20221008172711.mdx | 298 +
.history/posts/robotics_20221008173039.mdx | 298 +
.history/posts/robotics_20221008173137.mdx | 298 +
.history/posts/robotics_20221008174436.mdx | 43 +
.../public/post/[slug]_20221008164042.tsx | 0
.../public/post/[slug]_20221008165221.tsx | 95 +
.history/styles/globals_20220923142922.css | 26 +
.history/styles/globals_20221008170122.css | 119 +
.history/tailwind.config_20221008170457.js | 0
.history/tailwind.config_20221008170504.js | 75 +
.history/types/layout_20221008164334.ts | 0
.history/types/layout_20221008164340.ts | 9 +
.history/types/layout_20221008164414.ts | 9 +
.history/types/post_20221008164349.ts | 0
.history/types/post_20221008164356.ts | 7 +
.history/utils/mdxUtils_20221008164543.ts | 0
.history/utils/mdxUtils_20221008164550.ts | 11 +
README.md | 26 +
components/Head.tsx | 45 +
components/Layout.tsx | 46 +
components/Links.tsx | 18 +
components/LoadingTeamsForm.tsx | 53 +
components/Navigation.tsx | 91 +
components/RegistrationForm.tsx | 136 +
components/ThemeSwitch.tsx | 102 +
components/UX/Alert.tsx | 7 +
components/UX/Input.tsx | 27 +
components/UX/Link.tsx | 14 +
components/UX/Select.tsx | 40 +
components/UX/index.ts | 4 +
components/Video.tsx | 14 +
env.local | 6 +
jest.config.js | 17 +
lib/api.ts | 45 +
mysql/members.sql | 63 +
next.config.mjs | 17 +
package-lock.json | 28323 ++++++++++++++++
package.json | 79 +
pages/_app.tsx | 18 +
pages/_document.tsx | 30 +
pages/about.tsx | 20 +
pages/contacts.tsx | 23 +
pages/index.tsx | 52 +
pages/posts/[slug].tsx | 99 +
postcss.config.js | 8 +
posts/Creating tables.mdx | 34 +
posts/Text recognition tools.mdx | 27 +
posts/lists.mdx | 57 +
public/favicon.ico | Bin 0 -> 15086 bytes
public/images/bridge.jpg | Bin 0 -> 694138 bytes
public/images/pedistal.jpg | Bin 0 -> 178561 bytes
public/images/pedistal2.jpg | Bin 0 -> 290976 bytes
public/images/polegon.png | Bin 0 -> 461557 bytes
public/images/poligonBig.png | Bin 0 -> 944238 bytes
public/images/polrgonall_smal.png | Bin 0 -> 71022 bytes
public/images/reiing.png | Bin 0 -> 454048 bytes
public/images/robottop.png | Bin 0 -> 87530 bytes
public/images/site-preview.png | Bin 0 -> 14272 bytes
public/images/sizerobot.png | Bin 0 -> 116483 bytes
public/images/vistZal.jpg | Bin 0 -> 146180 bytes
public/images/vistzal2.jpg | Bin 0 -> 179172 bytes
public/images/zadanie.png | Bin 0 -> 741238 bytes
public/robots.txt | 6 +
public/sitemap.xml | 51 +
public/vercel.svg | 4 +
redux/store.ts | 15 +
redux/user/asyncActions.ts | 13 +
redux/user/index.ts | 4 +
redux/user/selectors.ts | 4 +
redux/user/slice.ts | 39 +
redux/user/types.ts | 21 +
server/db/connect.ts | 13 +
server/db/insert.ts | 15 +
server/db/select.ts | 13 +
styles/globals.css | 119 +
tailwind.config.js | 75 +
test/__mocks__/fileMock.js | 1 +
test/pages/__snapshots__/index.test.tsx.snap | 137 +
test/testUtils.ts | 24 +
tsconfig.json | 33 +
types/layout.ts | 9 +
types/post.ts | 7 +
utils/mdxUtils.ts | 11 +
yarn.lock | 7904 +++++
141 files changed, 42117 insertions(+)
create mode 100644 .eslintrc.json
create mode 100644 .gitignore
create mode 100644 .history/components/Head_20221008164656.tsx
create mode 100644 .history/components/Head_20221008164704.tsx
create mode 100644 .history/components/Layout_20221008164630.tsx
create mode 100644 .history/components/Layout_20221008165202.tsx
create mode 100644 .history/components/Layout_20221008170318.tsx
create mode 100644 .history/components/Navigation_20221008164721.tsx
create mode 100644 .history/components/Navigation_20221008165047.tsx
create mode 100644 .history/components/Navigation_20221008165206.tsx
create mode 100644 .history/components/Navigation_20221008171337.tsx
create mode 100644 .history/components/Navigation_20221008171641.tsx
create mode 100644 .history/components/ThemeSwitch_20221008165108.tsx
create mode 100644 .history/components/ThemeSwitch_20221008165148.tsx
create mode 100644 .history/components/ThemeSwitch_20221008170555.tsx
create mode 100644 .history/lib/api_20221008165345.ts
create mode 100644 .history/lib/api_20221008165401.ts
create mode 100644 .history/pages/index_20220923142922.tsx
create mode 100644 .history/pages/index_20221008165252.tsx
create mode 100644 .history/pages/index_20221008165408.tsx
create mode 100644 .history/pages/index_20221008170630.tsx
create mode 100644 .history/pages/index_20221008171754.tsx
create mode 100644 .history/pages/index_20221008171828.tsx
create mode 100644 .history/pages/index_20221008171836.tsx
create mode 100644 .history/pages/index_20221008171843.tsx
create mode 100644 .history/pages/index_20221008171943.tsx
create mode 100644 .history/pages/post/[slug]_20221008165303.tsx
create mode 100644 .history/pages/post/[slug]_20221008165312.tsx
create mode 100644 .history/posts/3dmodeling_20220821222032.mdx
create mode 100644 .history/posts/3dmodeling_20221008172554.mdx
create mode 100644 .history/posts/3dmodeling_20221008173028.mdx
create mode 100644 .history/posts/3dmodeling_20221008173030.mdx
create mode 100644 .history/posts/3dmodeling_20221008173143.mdx
create mode 100644 .history/posts/festival-schedule_20221008165635.mdx
create mode 100644 .history/posts/festival-schedule_20221008165641.mdx
create mode 100644 .history/posts/programming/lesson_1_20221008172425.mdx
create mode 100644 .history/posts/programming/lesson_1_20221008172434.mdx
create mode 100644 .history/posts/programming/lesson_1_20221008172452.mdx
create mode 100644 .history/posts/programming/lesson_1_20221008172629.mdx
create mode 100644 .history/posts/programming_20220613103431.mdx
create mode 100644 .history/posts/programming_20221008172651.mdx
create mode 100644 .history/posts/programming_20221008172840.mdx
create mode 100644 .history/posts/programming_20221008173020.mdx
create mode 100644 .history/posts/programming_20221008173034.mdx
create mode 100644 .history/posts/programming_20221008173140.mdx
create mode 100644 .history/posts/programming_20221008173354.mdx
create mode 100644 .history/posts/programming_20221008173422.mdx
create mode 100644 .history/posts/programming_20221008173543.mdx
create mode 100644 .history/posts/programming_20221008173601.mdx
create mode 100644 .history/posts/programming_20221008173620.mdx
create mode 100644 .history/posts/programming_20221008173634.mdx
create mode 100644 .history/posts/programming_20221008173742.mdx
create mode 100644 .history/posts/programming_20221008174112.mdx
create mode 100644 .history/posts/programming_20221008174153.mdx
create mode 100644 .history/posts/programming_20221008174237.mdx
create mode 100644 .history/posts/programming_20221008174350.mdx
create mode 100644 .history/posts/robotics_20221007202822.mdx
create mode 100644 .history/posts/robotics_20221008172711.mdx
create mode 100644 .history/posts/robotics_20221008173039.mdx
create mode 100644 .history/posts/robotics_20221008173137.mdx
create mode 100644 .history/posts/robotics_20221008174436.mdx
create mode 100644 .history/public/post/[slug]_20221008164042.tsx
create mode 100644 .history/public/post/[slug]_20221008165221.tsx
create mode 100644 .history/styles/globals_20220923142922.css
create mode 100644 .history/styles/globals_20221008170122.css
create mode 100644 .history/tailwind.config_20221008170457.js
create mode 100644 .history/tailwind.config_20221008170504.js
create mode 100644 .history/types/layout_20221008164334.ts
create mode 100644 .history/types/layout_20221008164340.ts
create mode 100644 .history/types/layout_20221008164414.ts
create mode 100644 .history/types/post_20221008164349.ts
create mode 100644 .history/types/post_20221008164356.ts
create mode 100644 .history/utils/mdxUtils_20221008164543.ts
create mode 100644 .history/utils/mdxUtils_20221008164550.ts
create mode 100644 README.md
create mode 100644 components/Head.tsx
create mode 100644 components/Layout.tsx
create mode 100644 components/Links.tsx
create mode 100644 components/LoadingTeamsForm.tsx
create mode 100644 components/Navigation.tsx
create mode 100644 components/RegistrationForm.tsx
create mode 100644 components/ThemeSwitch.tsx
create mode 100644 components/UX/Alert.tsx
create mode 100644 components/UX/Input.tsx
create mode 100644 components/UX/Link.tsx
create mode 100644 components/UX/Select.tsx
create mode 100644 components/UX/index.ts
create mode 100644 components/Video.tsx
create mode 100644 env.local
create mode 100644 jest.config.js
create mode 100644 lib/api.ts
create mode 100644 mysql/members.sql
create mode 100644 next.config.mjs
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 pages/_app.tsx
create mode 100644 pages/_document.tsx
create mode 100644 pages/about.tsx
create mode 100644 pages/contacts.tsx
create mode 100644 pages/index.tsx
create mode 100644 pages/posts/[slug].tsx
create mode 100644 postcss.config.js
create mode 100644 posts/Creating tables.mdx
create mode 100644 posts/Text recognition tools.mdx
create mode 100644 posts/lists.mdx
create mode 100644 public/favicon.ico
create mode 100644 public/images/bridge.jpg
create mode 100644 public/images/pedistal.jpg
create mode 100644 public/images/pedistal2.jpg
create mode 100644 public/images/polegon.png
create mode 100644 public/images/poligonBig.png
create mode 100644 public/images/polrgonall_smal.png
create mode 100644 public/images/reiing.png
create mode 100644 public/images/robottop.png
create mode 100644 public/images/site-preview.png
create mode 100644 public/images/sizerobot.png
create mode 100644 public/images/vistZal.jpg
create mode 100644 public/images/vistzal2.jpg
create mode 100644 public/images/zadanie.png
create mode 100644 public/robots.txt
create mode 100644 public/sitemap.xml
create mode 100644 public/vercel.svg
create mode 100644 redux/store.ts
create mode 100644 redux/user/asyncActions.ts
create mode 100644 redux/user/index.ts
create mode 100644 redux/user/selectors.ts
create mode 100644 redux/user/slice.ts
create mode 100644 redux/user/types.ts
create mode 100644 server/db/connect.ts
create mode 100644 server/db/insert.ts
create mode 100644 server/db/select.ts
create mode 100644 styles/globals.css
create mode 100644 tailwind.config.js
create mode 100644 test/__mocks__/fileMock.js
create mode 100644 test/pages/__snapshots__/index.test.tsx.snap
create mode 100644 test/testUtils.ts
create mode 100644 tsconfig.json
create mode 100644 types/layout.ts
create mode 100644 types/post.ts
create mode 100644 utils/mdxUtils.ts
create mode 100644 yarn.lock
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..bffb357
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "next/core-web-vitals"
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ee1c92b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# local env files
+.env*.local
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
+
+#sourse
+/public/informatica
\ No newline at end of file
diff --git a/.history/components/Head_20221008164656.tsx b/.history/components/Head_20221008164656.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/.history/components/Head_20221008164704.tsx b/.history/components/Head_20221008164704.tsx
new file mode 100644
index 0000000..288da04
--- /dev/null
+++ b/.history/components/Head_20221008164704.tsx
@@ -0,0 +1,45 @@
+import NextHead from 'next/head';
+import { useRouter } from 'next/router';
+import React from 'react';
+import { MetaProps } from '../types/layout';
+
+export type WithYandexMetrikaProps = {
+ children: React.ReactNode;
+}
+
+export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro';
+
+const Head = ({ customMeta }: { customMeta?: MetaProps }): JSX.Element => {
+ const router = useRouter();
+ const meta: MetaProps = {
+ title: 'РоботТоп - робототехнический фестиваль',
+ description:
+ 'РоботТОП – это робототехнические соревнования, в которых могут принять участие молодые любители робототехники, объединившись в команды.',
+ image: `${WEBSITE_HOST_URL}/images/site-preview.png`,
+ type: 'website',
+ ...customMeta,
+ };
+
+ return (
+
+ {meta.title}
+
+
+
+
+
+
+
+
+
+
+
+
+ {meta.date && (
+
+ )}
+
+ );
+};
+
+export default Head;
diff --git a/.history/components/Layout_20221008164630.tsx b/.history/components/Layout_20221008164630.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/.history/components/Layout_20221008165202.tsx b/.history/components/Layout_20221008165202.tsx
new file mode 100644
index 0000000..302824b
--- /dev/null
+++ b/.history/components/Layout_20221008165202.tsx
@@ -0,0 +1,45 @@
+import React from 'react';
+import { MetaProps } from '../types/layout';
+import Head from './Head';
+import Navigation from './Navigation';
+import ThemeSwitch from './ThemeSwitch';
+type LayoutProps = {
+ children: React.ReactNode;
+ customMeta?: MetaProps;
+};
+
+export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro/';
+
+const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
+ return (
+ <>
+
+
+
+
+ {children}
+
+
+
+ >
+ );
+};
+
+export default Layout;
diff --git a/.history/components/Layout_20221008170318.tsx b/.history/components/Layout_20221008170318.tsx
new file mode 100644
index 0000000..302824b
--- /dev/null
+++ b/.history/components/Layout_20221008170318.tsx
@@ -0,0 +1,45 @@
+import React from 'react';
+import { MetaProps } from '../types/layout';
+import Head from './Head';
+import Navigation from './Navigation';
+import ThemeSwitch from './ThemeSwitch';
+type LayoutProps = {
+ children: React.ReactNode;
+ customMeta?: MetaProps;
+};
+
+export const WEBSITE_HOST_URL = 'https://robotop.krasnikov.pro/';
+
+const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
+ return (
+ <>
+