Compare commits
10 Commits
0df3612c08
...
v2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 997f463c08 | |||
| 00488de460 | |||
| 032cdaaa12 | |||
| c68cea7fa6 | |||
| e30974acb7 | |||
| 8b1ecdced5 | |||
| 67eb7e1dbc | |||
| aba65f4266 | |||
| cf32ba103e | |||
| 0f796fd9bc |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -9,6 +9,8 @@ pids
|
|||||||
*.pid
|
*.pid
|
||||||
*.seed
|
*.seed
|
||||||
|
|
||||||
|
*prom.json
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
lib-cov
|
lib-cov
|
||||||
|
|
||||||
|
|||||||
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -8,7 +8,6 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('install') {
|
stage('install') {
|
||||||
steps {
|
steps {
|
||||||
sh 'ls -a'
|
|
||||||
sh 'node -v'
|
sh 'node -v'
|
||||||
sh 'npm -v'
|
sh 'npm -v'
|
||||||
sh 'npm ci'
|
sh 'npm ci'
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "1.2.0",
|
"version": "2.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "1.2.0",
|
"version": "2.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/icons": "^2.1.1",
|
"@chakra-ui/icons": "^2.1.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "journal.pl",
|
"name": "journal.pl",
|
||||||
"version": "1.2.0",
|
"version": "2.0.0",
|
||||||
"description": "inno-js platform journal ui repo",
|
"description": "inno-js platform journal ui repo",
|
||||||
"main": "./src/index.tsx",
|
"main": "./src/index.tsx",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,80 +1,112 @@
|
|||||||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
|
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
|
||||||
import { getConfigValue } from "@ijl/cli";
|
import { getConfigValue } from '@ijl/cli'
|
||||||
|
|
||||||
import { keycloak } from "../kc";
|
import { keycloak } from '../kc'
|
||||||
import { AccessCode, BaseResponse, Course, Lesson, User, UserData } from "../model";
|
import {
|
||||||
|
AccessCode,
|
||||||
|
BaseResponse,
|
||||||
|
Course,
|
||||||
|
Lesson,
|
||||||
|
User,
|
||||||
|
UserData,
|
||||||
|
} from '../model'
|
||||||
|
|
||||||
export const api = createApi({
|
export const api = createApi({
|
||||||
reducerPath: "auth",
|
reducerPath: 'auth',
|
||||||
baseQuery: fetchBaseQuery({
|
baseQuery: fetchBaseQuery({
|
||||||
baseUrl: getConfigValue("journal.back.url"),
|
baseUrl: getConfigValue('journal.back.url'),
|
||||||
fetchFn: async (input: RequestInfo | URL, init?: RequestInit | undefined) => {
|
fetchFn: async (
|
||||||
const response = await fetch(input, init);
|
input: RequestInfo | URL,
|
||||||
|
init?: RequestInit | undefined,
|
||||||
|
) => {
|
||||||
|
const response = await fetch(input, init)
|
||||||
|
|
||||||
if (response.status === 403) keycloak.login()
|
if (response.status === 403) keycloak.login()
|
||||||
|
|
||||||
return response;
|
return response
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json;charset=utf-8",
|
'Content-Type': 'application/json;charset=utf-8',
|
||||||
},
|
},
|
||||||
prepareHeaders: (headers) => {
|
prepareHeaders: (headers) => {
|
||||||
headers.set('Authorization', `Bearer ${keycloak.token}`)
|
headers.set('Authorization', `Bearer ${keycloak.token}`)
|
||||||
}
|
},
|
||||||
}),
|
}),
|
||||||
tagTypes: ['LessonList', 'CourseList'],
|
tagTypes: ['LessonList', 'CourseList'],
|
||||||
endpoints: (builder) => ({
|
endpoints: (builder) => ({
|
||||||
coursesList: builder.query<BaseResponse<Course[]>, void>({
|
coursesList: builder.query<BaseResponse<Course[]>, void>({
|
||||||
query: () => '/course/list',
|
query: () => '/course/list',
|
||||||
providesTags: ['CourseList']
|
providesTags: ['CourseList'],
|
||||||
}),
|
}),
|
||||||
createUpdateCourse: builder.mutation<BaseResponse<Course>, Partial<Course> & Pick<Course, 'name'>>({
|
createUpdateCourse: builder.mutation<
|
||||||
|
BaseResponse<Course>,
|
||||||
|
Partial<Course> & Pick<Course, 'name'>
|
||||||
|
>({
|
||||||
query: (course) => ({
|
query: (course) => ({
|
||||||
url: '/course',
|
url: '/course',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: course,
|
body: course,
|
||||||
}),
|
}),
|
||||||
invalidatesTags: ['CourseList']
|
invalidatesTags: ['CourseList'],
|
||||||
}),
|
}),
|
||||||
courseAllStudents: builder.query<BaseResponse<User[]>, string>({
|
courseAllStudents: builder.query<BaseResponse<User[]>, string>({
|
||||||
query: (courseId) => `/course/students/${courseId}`
|
query: (courseId) => `/course/students/${courseId}`,
|
||||||
}),
|
}),
|
||||||
manualAddStudent: builder.mutation<BaseResponse<void>, { lessonId: string, user: User }>({
|
manualAddStudent: builder.mutation<
|
||||||
query: ({lessonId, user}) => ({
|
BaseResponse<void>,
|
||||||
|
{ lessonId: string; user: User }
|
||||||
|
>({
|
||||||
|
query: ({ lessonId, user }) => ({
|
||||||
url: `/lesson/add-student/${lessonId}`,
|
url: `/lesson/add-student/${lessonId}`,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: user
|
body: user,
|
||||||
})
|
}),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
lessonList: builder.query<BaseResponse<Lesson[]>, string>({
|
lessonList: builder.query<BaseResponse<Lesson[]>, string>({
|
||||||
query: (courseId) => `/lesson/list/${courseId}`,
|
query: (courseId) => `/lesson/list/${courseId}`,
|
||||||
providesTags: ['LessonList']
|
providesTags: ['LessonList'],
|
||||||
}),
|
}),
|
||||||
createLesson: builder.mutation<BaseResponse<Lesson>, Pick<Lesson, 'name'> & { courseId: string }>({
|
createLesson: builder.mutation<
|
||||||
query: ({ name, courseId }) => ({
|
BaseResponse<Lesson>,
|
||||||
|
Partial<Lesson> & Pick<Lesson, 'name' | 'date'> & { courseId: string }
|
||||||
|
>({
|
||||||
|
query: (data) => ({
|
||||||
url: '/lesson',
|
url: '/lesson',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: { name, courseId },
|
body: data,
|
||||||
}),
|
}),
|
||||||
invalidatesTags: ['LessonList']
|
invalidatesTags: ['LessonList'],
|
||||||
|
}),
|
||||||
|
deleteLesson: builder.mutation<null, string>({
|
||||||
|
query: (lessonId) => ({
|
||||||
|
url: `/lesson/${lessonId}`,
|
||||||
|
method: 'DELETE',
|
||||||
|
}),
|
||||||
|
invalidatesTags: ['LessonList'],
|
||||||
}),
|
}),
|
||||||
lessonById: builder.query<BaseResponse<Lesson>, string>({
|
lessonById: builder.query<BaseResponse<Lesson>, string>({
|
||||||
query: (lessonId: string) => `/lesson/${lessonId}`
|
query: (lessonId: string) => `/lesson/${lessonId}`,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
createAccessCode: builder.query<BaseResponse<AccessCode>, { lessonId: string }>({
|
createAccessCode: builder.query<
|
||||||
|
BaseResponse<AccessCode>,
|
||||||
|
{ lessonId: string }
|
||||||
|
>({
|
||||||
query: ({ lessonId }) => ({
|
query: ({ lessonId }) => ({
|
||||||
url: '/lesson/access-code',
|
url: '/lesson/access-code',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: { lessonId },
|
body: { lessonId },
|
||||||
})
|
}),
|
||||||
}),
|
}),
|
||||||
getAccess: builder.query<BaseResponse<{ user: UserData, accessCode: AccessCode }>, { accessCode: string }>({
|
getAccess: builder.query<
|
||||||
|
BaseResponse<{ user: UserData; accessCode: AccessCode }>,
|
||||||
|
{ accessCode: string }
|
||||||
|
>({
|
||||||
query: ({ accessCode }) => ({
|
query: ({ accessCode }) => ({
|
||||||
url: `/lesson/access-code/${accessCode}`,
|
url: `/lesson/access-code/${accessCode}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
})
|
}),
|
||||||
})
|
}),
|
||||||
}),
|
}),
|
||||||
});
|
})
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ import { useAppSelector } from '../__data__/store'
|
|||||||
import { api } from '../__data__/api/api'
|
import { api } from '../__data__/api/api'
|
||||||
import { isTeacher } from '../utils/user'
|
import { isTeacher } from '../utils/user'
|
||||||
import { AddIcon, ArrowDownIcon, ArrowUpIcon, LinkIcon } from '@chakra-ui/icons'
|
import { AddIcon, ArrowDownIcon, ArrowUpIcon, LinkIcon } from '@chakra-ui/icons'
|
||||||
|
import { Course } from '../__data__/model'
|
||||||
|
|
||||||
interface NewCourseForm {
|
interface NewCourseForm {
|
||||||
startDt: string
|
startDt: string
|
||||||
@@ -226,7 +227,15 @@ const CoursesList = () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const CourseCard = ({ course, isOpened, openDetails }) => {
|
const CourseCard = ({
|
||||||
|
course,
|
||||||
|
isOpened,
|
||||||
|
openDetails,
|
||||||
|
}: {
|
||||||
|
course: Course
|
||||||
|
isOpened: boolean
|
||||||
|
openDetails: () => void
|
||||||
|
}) => {
|
||||||
const [getLessonList, lessonList] = api.useLazyLessonListQuery()
|
const [getLessonList, lessonList] = api.useLazyLessonListQuery()
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isOpened) {
|
if (isOpened) {
|
||||||
@@ -262,6 +271,7 @@ const CourseCard = ({ course, isOpened, openDetails }) => {
|
|||||||
{lessonList.data?.body?.map((lesson) => (
|
{lessonList.data?.body?.map((lesson) => (
|
||||||
<Link
|
<Link
|
||||||
as={ConnectedLink}
|
as={ConnectedLink}
|
||||||
|
key={lesson._id}
|
||||||
to={
|
to={
|
||||||
isTeacher(user)
|
isTeacher(user)
|
||||||
? `${getNavigationsValue('journal.main')}/lesson/${course._id}/${lesson._id}`
|
? `${getNavigationsValue('journal.main')}/lesson/${course._id}/${lesson._id}`
|
||||||
|
|||||||
@@ -3,17 +3,24 @@ import { useParams, Link } from 'react-router-dom'
|
|||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import QRCode from 'qrcode'
|
import QRCode from 'qrcode'
|
||||||
import { getConfigValue, getNavigationsValue } from '@ijl/cli'
|
import { getConfigValue, getNavigationsValue } from '@ijl/cli'
|
||||||
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink } from '@chakra-ui/react'
|
import {
|
||||||
|
Box,
|
||||||
|
Breadcrumb,
|
||||||
|
BreadcrumbItem,
|
||||||
|
BreadcrumbLink,
|
||||||
|
Container,
|
||||||
|
HStack,
|
||||||
|
VStack,
|
||||||
|
Heading,
|
||||||
|
} from '@chakra-ui/react'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
MainWrapper,
|
|
||||||
StartWrapper,
|
|
||||||
QRCanvas,
|
QRCanvas,
|
||||||
LessonItem,
|
LessonItem,
|
||||||
Lessonname,
|
Lessonname,
|
||||||
AddMissedButton,
|
AddMissedButton,
|
||||||
Wrapper,
|
|
||||||
UnorderList,
|
UnorderList,
|
||||||
|
BreadcrumbsWrapper,
|
||||||
} from './style'
|
} from './style'
|
||||||
import { api } from '../__data__/api/api'
|
import { api } from '../__data__/api/api'
|
||||||
import { User } from '../__data__/model'
|
import { User } from '../__data__/model'
|
||||||
@@ -80,8 +87,8 @@ const LessonDetail = () => {
|
|||||||
}, [accessCode?.body, AllStudents.data])
|
}, [accessCode?.body, AllStudents.data])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MainWrapper>
|
<>
|
||||||
<StartWrapper>
|
<BreadcrumbsWrapper>
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<BreadcrumbItem>
|
<BreadcrumbItem>
|
||||||
<BreadcrumbLink as={Link} to={getNavigationsValue('journal.main')}>
|
<BreadcrumbLink as={Link} to={getNavigationsValue('journal.main')}>
|
||||||
@@ -102,17 +109,23 @@ const LessonDetail = () => {
|
|||||||
<BreadcrumbLink href="#">Лекция</BreadcrumbLink>
|
<BreadcrumbLink href="#">Лекция</BreadcrumbLink>
|
||||||
</BreadcrumbItem>
|
</BreadcrumbItem>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
|
</BreadcrumbsWrapper>
|
||||||
<h1 style={{ width: '70%' }}>
|
<Container maxW="container.xl" centerContent px="200">
|
||||||
Тема занятия - {accessCode?.body?.lesson?.name}
|
<VStack align="left">
|
||||||
</h1>
|
<Heading as="h3" mt="4" mb="3">
|
||||||
<span style={{ display: 'flex' }}>
|
Тема занятия:
|
||||||
{dayjs(accessCode?.body?.lesson?.date).format('DD MMMM YYYYг.')}{' '}
|
</Heading>
|
||||||
Отмечено - {accessCode?.body?.lesson?.students?.length}{' '}
|
<Box as="span">{accessCode?.body?.lesson?.name}</Box>
|
||||||
{AllStudents.isSuccess ? `/ ${AllStudents?.data?.body?.length}` : ''}{' '}
|
<Box as="span">
|
||||||
человек
|
{dayjs(accessCode?.body?.lesson?.date).format('DD MMMM YYYYг.')}{' '}
|
||||||
</span>
|
Отмечено - {accessCode?.body?.lesson?.students?.length}{' '}
|
||||||
<Wrapper>
|
{AllStudents.isSuccess
|
||||||
|
? `/ ${AllStudents?.data?.body?.length}`
|
||||||
|
: ''}{' '}
|
||||||
|
человек
|
||||||
|
</Box>
|
||||||
|
</VStack>
|
||||||
|
<HStack spacing="8">
|
||||||
<a href={userUrl}>
|
<a href={userUrl}>
|
||||||
<QRCanvas ref={canvRef} />
|
<QRCanvas ref={canvRef} />
|
||||||
</a>
|
</a>
|
||||||
@@ -132,9 +145,9 @@ const LessonDetail = () => {
|
|||||||
</LessonItem>
|
</LessonItem>
|
||||||
))}
|
))}
|
||||||
</UnorderList>
|
</UnorderList>
|
||||||
</Wrapper>
|
</HStack>
|
||||||
</StartWrapper>
|
</Container>
|
||||||
</MainWrapper>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,130 +2,375 @@ import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { Link, useParams } from 'react-router-dom'
|
import { Link, useParams } from 'react-router-dom'
|
||||||
import { getNavigationsValue } from '@ijl/cli'
|
import { getNavigationsValue } from '@ijl/cli'
|
||||||
|
import { useForm, Controller } from 'react-hook-form'
|
||||||
import {
|
import {
|
||||||
Breadcrumb,
|
Breadcrumb,
|
||||||
BreadcrumbItem,
|
BreadcrumbItem,
|
||||||
BreadcrumbLink,
|
BreadcrumbLink,
|
||||||
|
Container,
|
||||||
|
Box,
|
||||||
|
Card,
|
||||||
|
CardBody,
|
||||||
|
CardHeader,
|
||||||
|
Heading,
|
||||||
|
Button,
|
||||||
|
CloseButton,
|
||||||
|
useToast,
|
||||||
|
VStack,
|
||||||
|
FormControl,
|
||||||
|
FormLabel,
|
||||||
|
Toast,
|
||||||
|
FormHelperText,
|
||||||
|
FormErrorMessage,
|
||||||
|
Input,
|
||||||
|
TableContainer,
|
||||||
|
Table,
|
||||||
|
Thead,
|
||||||
|
Tr,
|
||||||
|
Th,
|
||||||
|
Tbody,
|
||||||
|
Td,
|
||||||
|
Menu,
|
||||||
|
MenuButton,
|
||||||
|
MenuItem,
|
||||||
|
Text,
|
||||||
|
MenuList,
|
||||||
|
Center,
|
||||||
|
Spinner,
|
||||||
|
AlertDialog,
|
||||||
|
AlertDialogBody,
|
||||||
|
AlertDialogContent,
|
||||||
|
AlertDialogFooter,
|
||||||
|
AlertDialogHeader,
|
||||||
|
AlertDialogOverlay,
|
||||||
} from '@chakra-ui/react'
|
} from '@chakra-ui/react'
|
||||||
|
import { AddIcon, EditIcon } from '@chakra-ui/icons'
|
||||||
|
|
||||||
import {
|
import { ErrorSpan, BreadcrumbsWrapper } from './style'
|
||||||
ArrowImg,
|
|
||||||
IconButton,
|
|
||||||
InputElement,
|
|
||||||
InputLabel,
|
|
||||||
InputWrapper,
|
|
||||||
StartWrapper,
|
|
||||||
LessonItem,
|
|
||||||
Lessonname,
|
|
||||||
Papper,
|
|
||||||
ErrorSpan,
|
|
||||||
Cross,
|
|
||||||
AddButton,
|
|
||||||
MainWrapper,
|
|
||||||
} from './style'
|
|
||||||
|
|
||||||
import arrow from '../assets/36-arrow-right.svg'
|
|
||||||
import { keycloak } from '../__data__/kc'
|
|
||||||
import { useAppSelector } from '../__data__/store'
|
import { useAppSelector } from '../__data__/store'
|
||||||
import { api } from '../__data__/api/api'
|
import { api } from '../__data__/api/api'
|
||||||
import { isTeacher } from '../utils/user'
|
import { isTeacher } from '../utils/user'
|
||||||
|
import { qrCode } from '../assets'
|
||||||
|
import { Lesson } from '../__data__/model'
|
||||||
|
|
||||||
|
interface NewLessonForm {
|
||||||
|
name: string
|
||||||
|
date: string
|
||||||
|
}
|
||||||
|
|
||||||
const LessonList = () => {
|
const LessonList = () => {
|
||||||
const { courseId } = useParams()
|
const { courseId } = useParams()
|
||||||
const user = useAppSelector((s) => s.user)
|
const user = useAppSelector((s) => s.user)
|
||||||
const { data, isLoading, error } = api.useLessonListQuery(courseId)
|
const { data, isLoading, error } = api.useLessonListQuery(courseId)
|
||||||
const [createLesson, crLQuery] = api.useCreateLessonMutation()
|
const [createLesson, crLQuery] = api.useCreateLessonMutation()
|
||||||
const [value, setValue] = useState('')
|
const [deleteLesson, deletingRqst] = api.useDeleteLessonMutation()
|
||||||
const [showForm, setShowForm] = useState(false)
|
const [showForm, setShowForm] = useState(false)
|
||||||
|
const [lessonToDelete, setlessonToDelete] = useState<Lesson>(null)
|
||||||
|
const cancelRef = React.useRef()
|
||||||
|
const {
|
||||||
|
control,
|
||||||
|
handleSubmit,
|
||||||
|
reset,
|
||||||
|
formState: { errors },
|
||||||
|
getValues,
|
||||||
|
} = useForm<NewLessonForm>({
|
||||||
|
defaultValues: {
|
||||||
|
name: '',
|
||||||
|
date: '',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
const toast = useToast()
|
||||||
|
const toastRef = useRef(null)
|
||||||
|
|
||||||
const handleChange = useCallback(
|
const onSubmit = ({ name, date }) => {
|
||||||
(event) => {
|
toastRef.current = toast({
|
||||||
setValue(event.target.value.toUpperCase())
|
title: 'Отправляем',
|
||||||
},
|
status: 'loading',
|
||||||
[setValue],
|
duration: 9000,
|
||||||
)
|
})
|
||||||
const handleSubmit = useCallback(
|
createLesson({ name, courseId, date })
|
||||||
(event) => {
|
}
|
||||||
event.preventDefault()
|
|
||||||
createLesson({ name: value, courseId })
|
useEffect(() => {
|
||||||
},
|
if (deletingRqst.isError) {
|
||||||
[value],
|
toast({
|
||||||
)
|
title: (deletingRqst.error as any)?.error,
|
||||||
|
status: 'error',
|
||||||
|
duration: 3000,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (deletingRqst.isSuccess) {
|
||||||
|
const lesson = { ...lessonToDelete }
|
||||||
|
toast({
|
||||||
|
status: 'warning',
|
||||||
|
duration: 9000,
|
||||||
|
render(props) {
|
||||||
|
return (
|
||||||
|
<Toast
|
||||||
|
{...props}
|
||||||
|
title={
|
||||||
|
<>
|
||||||
|
<Box pb={3}>
|
||||||
|
<Text fontSize="xl">{`Удалена лекция ${lesson.name}`}</Text>
|
||||||
|
</Box>
|
||||||
|
<Button
|
||||||
|
onClick={() =>
|
||||||
|
createLesson({ courseId, ...lesson })
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Восстановить
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
},
|
||||||
|
})
|
||||||
|
setlessonToDelete(null)
|
||||||
|
}
|
||||||
|
}, [deletingRqst.isLoading, deletingRqst.isSuccess, deletingRqst.isError])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (crLQuery.isSuccess) {
|
if (crLQuery.isSuccess) {
|
||||||
setValue('')
|
const values = getValues()
|
||||||
|
if (toastRef.current) {
|
||||||
|
toast.update(toastRef.current, {
|
||||||
|
title: 'Лекция создана',
|
||||||
|
description: `Лекция ${values.name} успешно создана`,
|
||||||
|
status: 'success',
|
||||||
|
duration: 9000,
|
||||||
|
isClosable: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
reset()
|
||||||
}
|
}
|
||||||
}, [crLQuery.isSuccess])
|
}, [crLQuery.isSuccess])
|
||||||
|
|
||||||
|
if (isLoading) {
|
||||||
|
return (
|
||||||
|
<Container maxW="container.xl">
|
||||||
|
<Center h="300px">
|
||||||
|
<Spinner
|
||||||
|
thickness="4px"
|
||||||
|
speed="0.65s"
|
||||||
|
emptyColor="gray.200"
|
||||||
|
color="blue.500"
|
||||||
|
size="xl"
|
||||||
|
/>
|
||||||
|
</Center>
|
||||||
|
</Container>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MainWrapper>
|
<>
|
||||||
<StartWrapper>
|
<AlertDialog
|
||||||
|
isOpen={Boolean(lessonToDelete)}
|
||||||
|
leastDestructiveRef={cancelRef}
|
||||||
|
onClose={() => setlessonToDelete(null)}
|
||||||
|
>
|
||||||
|
<AlertDialogOverlay>
|
||||||
|
<AlertDialogContent>
|
||||||
|
<AlertDialogHeader fontSize="lg" fontWeight="bold">
|
||||||
|
Удалить занятие от{' '}
|
||||||
|
{dayjs(lessonToDelete?.date).format('DD.MM.YY')}?
|
||||||
|
</AlertDialogHeader>
|
||||||
|
|
||||||
|
<AlertDialogBody>
|
||||||
|
Все данные о посещении данного занятия будут удалены
|
||||||
|
</AlertDialogBody>
|
||||||
|
|
||||||
|
<AlertDialogFooter>
|
||||||
|
<Button
|
||||||
|
isDisabled={deletingRqst.isLoading}
|
||||||
|
ref={cancelRef}
|
||||||
|
onClick={() => setlessonToDelete(null)}
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
colorScheme="red"
|
||||||
|
loadingText=""
|
||||||
|
isLoading={deletingRqst.isLoading}
|
||||||
|
onClick={() => deleteLesson(lessonToDelete._id)}
|
||||||
|
ml={3}
|
||||||
|
>
|
||||||
|
Delete
|
||||||
|
</Button>
|
||||||
|
</AlertDialogFooter>
|
||||||
|
</AlertDialogContent>
|
||||||
|
</AlertDialogOverlay>
|
||||||
|
</AlertDialog>
|
||||||
|
<BreadcrumbsWrapper>
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<BreadcrumbItem>
|
<BreadcrumbItem>
|
||||||
<BreadcrumbLink as={Link} to={getNavigationsValue('journal.main')}>Журнал</BreadcrumbLink>
|
<BreadcrumbLink as={Link} to={getNavigationsValue('journal.main')}>
|
||||||
|
Журнал
|
||||||
|
</BreadcrumbLink>
|
||||||
</BreadcrumbItem>
|
</BreadcrumbItem>
|
||||||
|
|
||||||
<BreadcrumbItem isCurrentPage>
|
<BreadcrumbItem isCurrentPage>
|
||||||
<BreadcrumbLink href="#">Курс</BreadcrumbLink>
|
<BreadcrumbLink href="#">Курс</BreadcrumbLink>
|
||||||
</BreadcrumbItem>
|
</BreadcrumbItem>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
|
</BreadcrumbsWrapper>
|
||||||
|
<Container maxW="container.xl">
|
||||||
{isTeacher(user) && (
|
{isTeacher(user) && (
|
||||||
<>
|
<Box mt="15" mb="15">
|
||||||
{showForm ? (
|
{showForm ? (
|
||||||
<Papper>
|
<Card align="left">
|
||||||
<Cross role="button" onClick={() => setShowForm(false)}>
|
<CardHeader display="flex">
|
||||||
X
|
<Heading as="h2" mt="0">
|
||||||
</Cross>
|
Создание лекции
|
||||||
<form onSubmit={handleSubmit}>
|
</Heading>
|
||||||
<InputWrapper>
|
<CloseButton ml="auto" onClick={() => setShowForm(false)} />
|
||||||
<InputLabel htmlFor="input">
|
</CardHeader>
|
||||||
Название новой лекции:
|
<CardBody>
|
||||||
</InputLabel>
|
<form onSubmit={handleSubmit(onSubmit)}>
|
||||||
<InputElement
|
<VStack spacing="10" align="left">
|
||||||
value={value}
|
<Controller
|
||||||
onChange={handleChange}
|
control={control}
|
||||||
id="input"
|
name="date"
|
||||||
type="text"
|
rules={{ required: 'Обязательное поле' }}
|
||||||
autoComplete="off"
|
render={({ field }) => (
|
||||||
/>
|
<FormControl>
|
||||||
<IconButton type="submit">
|
<FormLabel>Дата</FormLabel>
|
||||||
<ArrowImg src={arrow} />
|
<Input
|
||||||
</IconButton>
|
{...field}
|
||||||
</InputWrapper>
|
required={false}
|
||||||
{crLQuery.error && (
|
placeholder="Укажите дату лекции"
|
||||||
<ErrorSpan>{(crLQuery.error as any).error}</ErrorSpan>
|
size="md"
|
||||||
)}
|
type="datetime-local"
|
||||||
</form>
|
/>
|
||||||
</Papper>
|
{errors.date ? (
|
||||||
|
<FormErrorMessage>
|
||||||
|
{errors.date?.message}
|
||||||
|
</FormErrorMessage>
|
||||||
|
) : (
|
||||||
|
<FormHelperText>
|
||||||
|
Укажите дату и время лекции
|
||||||
|
</FormHelperText>
|
||||||
|
)}
|
||||||
|
</FormControl>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Controller
|
||||||
|
control={control}
|
||||||
|
name="name"
|
||||||
|
rules={{ required: 'Обязательное поле' }}
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormControl
|
||||||
|
isRequired
|
||||||
|
isInvalid={Boolean(errors.name)}
|
||||||
|
>
|
||||||
|
<FormLabel>Название новой лекции:</FormLabel>
|
||||||
|
<Input
|
||||||
|
{...field}
|
||||||
|
required={false}
|
||||||
|
placeholder="Название лекции"
|
||||||
|
size="md"
|
||||||
|
/>
|
||||||
|
{errors.name && (
|
||||||
|
<FormErrorMessage>
|
||||||
|
{errors.name.message}
|
||||||
|
</FormErrorMessage>
|
||||||
|
)}
|
||||||
|
</FormControl>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
<Box mt="10">
|
||||||
|
<Button
|
||||||
|
size="lg"
|
||||||
|
type="submit"
|
||||||
|
leftIcon={<AddIcon />}
|
||||||
|
colorScheme="blue"
|
||||||
|
>
|
||||||
|
Создать
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
</VStack>
|
||||||
|
|
||||||
|
{crLQuery.error && (
|
||||||
|
<ErrorSpan>{(crLQuery.error as any).error}</ErrorSpan>
|
||||||
|
)}
|
||||||
|
</form>
|
||||||
|
</CardBody>
|
||||||
|
</Card>
|
||||||
) : (
|
) : (
|
||||||
<AddButton onClick={() => setShowForm(true)}>Добавить</AddButton>
|
<Box p="2" m="2">
|
||||||
|
<Button
|
||||||
|
leftIcon={<AddIcon />}
|
||||||
|
colorScheme="green"
|
||||||
|
onClick={() => setShowForm(true)}
|
||||||
|
>
|
||||||
|
Добавить
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
)}
|
)}
|
||||||
</>
|
</Box>
|
||||||
)}
|
)}
|
||||||
<ul style={{ paddingLeft: 0 }}>
|
<TableContainer whiteSpace="wrap">
|
||||||
{data?.body?.map((lesson) => (
|
<Table variant="striped" colorScheme="cyan">
|
||||||
<LessonItem key={lesson._id}>
|
<Thead>
|
||||||
<Link
|
<Tr>
|
||||||
to={
|
{isTeacher(user) && (
|
||||||
isTeacher(user)
|
<Th align="center" width={1}>
|
||||||
? `${getNavigationsValue('journal.main')}/lesson/${courseId}/${lesson._id}`
|
ссылка
|
||||||
: ''
|
</Th>
|
||||||
}
|
)}
|
||||||
style={{ display: 'flex' }}
|
<Th textAlign="center" width={1}>
|
||||||
>
|
Дата
|
||||||
<Lessonname>{lesson.name}</Lessonname>
|
</Th>
|
||||||
<span>{dayjs(lesson.date).format('DD MMMM YYYYг.')}</span>
|
<Th>Название</Th>
|
||||||
<span style={{ marginLeft: 'auto' }}>
|
<Th>action</Th>
|
||||||
Участников - {lesson.students.length}
|
<Th isNumeric>Отмечено</Th>
|
||||||
</span>
|
</Tr>
|
||||||
</Link>
|
</Thead>
|
||||||
</LessonItem>
|
<Tbody>
|
||||||
))}
|
{data?.body?.map((lesson) => (
|
||||||
</ul>
|
<Tr key={lesson._id}>
|
||||||
</StartWrapper>
|
{isTeacher(user) && (
|
||||||
</MainWrapper>
|
<Td>
|
||||||
|
<Link
|
||||||
|
to={`${getNavigationsValue('journal.main')}/lesson/${courseId}/${lesson._id}`}
|
||||||
|
style={{ display: 'flex' }}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
width={24}
|
||||||
|
src={qrCode}
|
||||||
|
style={{ margin: '0 auto' }}
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
</Td>
|
||||||
|
)}
|
||||||
|
<Td textAlign="center">
|
||||||
|
{dayjs(lesson.date).format('H:mm DD.MM.YY')}
|
||||||
|
</Td>
|
||||||
|
<Td>{lesson.name}</Td>
|
||||||
|
<Td>
|
||||||
|
<Menu>
|
||||||
|
<MenuButton as={Button}>
|
||||||
|
<EditIcon />
|
||||||
|
</MenuButton>
|
||||||
|
<MenuList>
|
||||||
|
<MenuItem isDisabled>Edit</MenuItem>
|
||||||
|
<MenuItem onClick={() => setlessonToDelete(lesson)}>
|
||||||
|
Delete
|
||||||
|
</MenuItem>
|
||||||
|
</MenuList>
|
||||||
|
</Menu>
|
||||||
|
</Td>
|
||||||
|
<Td isNumeric>{lesson.students.length}</Td>
|
||||||
|
</Tr>
|
||||||
|
))}
|
||||||
|
</Tbody>
|
||||||
|
</Table>
|
||||||
|
</TableContainer>
|
||||||
|
</Container>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ import {
|
|||||||
Card
|
Card
|
||||||
} from '@chakra-ui/react'
|
} from '@chakra-ui/react'
|
||||||
|
|
||||||
|
export const BreadcrumbsWrapper = styled.div`
|
||||||
|
padding: 12px;
|
||||||
|
`;
|
||||||
|
|
||||||
export const MainWrapper = styled.main`
|
export const MainWrapper = styled.main`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"expires": "2024-03-01T07:52:16.374Z",
|
"expires": "2024-03-01T07:52:16.374Z",
|
||||||
"lesson": {
|
"lesson": {
|
||||||
"_id": "65df996c584b172772d69706",
|
"_id": "65df996c584b172772d69706",
|
||||||
"name": "ВВЕДЕНИЕ В ВЕБ-РАЗРАБОТКУ. ИНСТРУМЕНТАРИЙ, ОБЗОР ВЕБ-ТЕХНОЛОГИЙ",
|
"name": "ВВОДНАЯ ПО JS.ПРИМЕНЕНИЕ И СПОСОБЫ ПОДКЛЮЧЕНИЯ НА СТРАНИЦЕ. LET, CONST. БАЗОВЫЕ ТИПЫ ДАННЫХ, ПРИВЕДЕНИЕ ТИПОВ. ПЕРЕМЕННЫЕ, ОБЛАСТЬ ВИДИМОСТИ ПЕРЕМЕННЫХ",
|
||||||
"students": [
|
"students": [
|
||||||
{
|
{
|
||||||
"sub": "f62905b1-e223-40ca-910f-c8d84c6137c1",
|
"sub": "f62905b1-e223-40ca-910f-c8d84c6137c1",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"expires": "2024-03-01T07:52:09.233Z",
|
"expires": "2024-03-01T07:52:09.233Z",
|
||||||
"lesson": {
|
"lesson": {
|
||||||
"_id": "65df996c584b172772d69706",
|
"_id": "65df996c584b172772d69706",
|
||||||
"name": "ВВЕДЕНИЕ В ВЕБ-РАЗРАБОТКУ. ИНСТРУМЕНТАРИЙ, ОБЗОР ВЕБ-ТЕХНОЛОГИЙ",
|
"name": "ВВОДНАЯ ПО JS.ПРИМЕНЕНИЕ И СПОСОБЫ ПОДКЛЮЧЕНИЯ НА СТРАНИЦЕ. LET, CONST. БАЗОВЫЕ ТИПЫ ДАННЫХ, ПРИВЕДЕНИЕ ТИПОВ. ПЕРЕМЕННЫЕ, ОБЛАСТЬ ВИДИМОСТИ ПЕРЕМЕННЫХ",
|
||||||
"students": [],
|
"students": [],
|
||||||
"date": "2024-02-28T20:37:00.057Z",
|
"date": "2024-02-28T20:37:00.057Z",
|
||||||
"created": "2024-02-28T20:37:00.057Z",
|
"created": "2024-02-28T20:37:00.057Z",
|
||||||
|
|||||||
@@ -592,10 +592,160 @@
|
|||||||
"email": "sharova@mail.ru"
|
"email": "sharova@mail.ru"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
],
|
||||||
|
"date": "2024-03-08T21:18:07.033Z",
|
||||||
|
"created": "2024-03-05T21:18:07.033Z",
|
||||||
|
"__v": 22
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"_id": "65e78c0fced789d2f6791tt5",
|
||||||
|
"name": "ВВОДНАЯ ПО JS.ПРИМЕНЕНИЕ И СПОСОБЫ ПОДКЛЮЧЕНИЯ НА СТРАНИЦЕ. LET, CONST. БАЗОВЫЕ ТИПЫ ДАННЫХ, ПРИВЕДЕНИЕ ТИПОВ. ПЕРЕМЕННЫЕ, ОБЛАСТЬ ВИДИМОСТИ ПЕРЕМЕННЫХ",
|
||||||
|
"students": [
|
||||||
|
{
|
||||||
|
"sub": "fcde3f22-d9ba-412a-a572-c59e515a290f",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Мария Капитанова",
|
||||||
|
"preferred_username": "maryaKapitan@gmail.com",
|
||||||
|
"given_name": "Мария",
|
||||||
|
"family_name": "Капитанова",
|
||||||
|
"email": "maryaKapitan@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJgIjjOFD2YUSyRF5kH4jaysE6X5p-kq0Cg0CFncfMi=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "5b072deb-33ee-443e-9718-3b5720a3dfb7",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Евгений Кореной",
|
||||||
|
"preferred_username": "koren@gmail.com",
|
||||||
|
"given_name": "Кореной",
|
||||||
|
"family_name": "Евгений",
|
||||||
|
"email": "koren@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJpVhDeG-Rpjjm2Un6r8ACz_s_injuIFKpzXf3qmyCn3Cg=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "7adf0cd1-cf07-4079-88d8-1a5c9b8f42c2",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Ирина Игнатьева",
|
||||||
|
"preferred_username": "irign@gmailcom",
|
||||||
|
"given_name": "Ирина",
|
||||||
|
"family_name": "Игнатьева",
|
||||||
|
"email": "irign@gmailcom",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocL45E4Gt8D5oyIl3ipkcGsv4ShWGs3bdlwEMA_1rzGZ=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "95ccc005-95b9-4305-9447-364a32033911",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Иван Петров",
|
||||||
|
"preferred_username": "petrov@mail.ru",
|
||||||
|
"given_name": "Иван",
|
||||||
|
"family_name": "Петров",
|
||||||
|
"email": "petrov@mail.ru",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocIgQn5mfDAh2djx-3ofG9z1Em26ZyuUgVPd-6rDOl6z=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "ede1ef2c-6ecf-484a-8fb8-282a77e1caa1",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Константин Тимуров",
|
||||||
|
"preferred_username": "konstantK@gmail.com",
|
||||||
|
"given_name": "Константин",
|
||||||
|
"family_name": "Тимуров",
|
||||||
|
"email": "konstantK@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJjnOfqaoAU_D4STrJPN9fPOeJ8tv60WbWVZu2ZWcHs=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "92cc6a15-805c-4439-b592-b23f32d6d208",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Александра Питерская",
|
||||||
|
"preferred_username": "piteralex@gmail.com",
|
||||||
|
"given_name": "Александра",
|
||||||
|
"family_name": "Питерская",
|
||||||
|
"email": "piteralex@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocKhbCbWvBBc_m7bjU5sLCE-dQ-KygBk-aUCSR8XaYtq=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "4a3ba8b8-4120-4877-a160-be9ba4d5b3e3",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Анастасия Светлых",
|
||||||
|
"preferred_username": "anastasya@gmail.ocm",
|
||||||
|
"given_name": "Анастасия",
|
||||||
|
"family_name": "Светлых",
|
||||||
|
"email": "anastasya@gmail.ocm",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJnsM8UGhbH806yLVgWZ17g3-gJFVcG0Uz5kvqT7dvC=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "b4634921-00b3-4082-9284-8ac47f269394",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Эмилия Снежко",
|
||||||
|
"preferred_username": "emi@mail.ru",
|
||||||
|
"given_name": "Эмилия",
|
||||||
|
"family_name": "Снежко",
|
||||||
|
"email": "emi@mail.ru",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocI98dzSFQDPr2LXMPFEUX8KLY6bY2m08O_aAj2B5KVNKg=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "bf1a95aa-39a2-4528-9b8d-319409995df5",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Юлия Бобова",
|
||||||
|
"preferred_username": "bobova@gmail.com",
|
||||||
|
"given_name": "Юлия",
|
||||||
|
"family_name": "Бобова",
|
||||||
|
"email": "bobova@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJ_Ud4iI-jgqcJ3QJcWpESbRLX_C1BnB8_7uTTC-4Dn=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "c273a3e3-f7ba-4057-8c57-a1f43b6174a5",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Анна Самоварова",
|
||||||
|
"preferred_username": "samovar@gmail.com",
|
||||||
|
"given_name": "Анна",
|
||||||
|
"family_name": "Самоварова",
|
||||||
|
"email": "samovar@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJOhIMdQkXPd55wTMgTTkUCnqbsu4EncgEPm67iz_mK=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "8555885b-715c-4dee-a7c5-9563a6a05211",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Евгения Жужова",
|
||||||
|
"preferred_username": "zhuzhova@gmail.com",
|
||||||
|
"given_name": "Евгения",
|
||||||
|
"family_name": "Жужова",
|
||||||
|
"email": "zhuzhova@gmail.com",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJUtJBAVBm642AxoGpMDDMV8CPu3MEoLjU3hmO7oisG=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "12dee54f-64e9-4be3-9cb0-02ff07ab24fe",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Эдгар Петренко",
|
||||||
|
"preferred_username": "petrenk@mail.ru",
|
||||||
|
"given_name": "Эдгар",
|
||||||
|
"family_name": "Петренко",
|
||||||
|
"email": "petrenk@mail.ru",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocLgKAZag32kpGVHMVbh_GsU-rX_MAtmeVIPoov0ZPBYIA=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "4082b72a-4730-4841-ad68-06a0e19263df",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Елена Вавилон",
|
||||||
|
"preferred_username": "elenvavil@mail.ru",
|
||||||
|
"given_name": "Елена",
|
||||||
|
"family_name": "Вавилон",
|
||||||
|
"email": "elenvavil@mail.ru",
|
||||||
|
"picture": "https://lh3.googleusercontent.com/a/ACg8ocKXcmzcqRch2--j2Ge2m9e8MIOZ8y1MjsQ0cSEoXOmW=s96-c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sub": "9e8a08d8-d76a-4f26-99c5-9a1d3c067104",
|
||||||
|
"email_verified": true,
|
||||||
|
"name": "Ольга Шарова",
|
||||||
|
"preferred_username": "julyashap",
|
||||||
|
"given_name": "Ольга",
|
||||||
|
"family_name": "Шарова",
|
||||||
|
"email": "sharova@mail.ru"
|
||||||
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
"date": "2024-03-08T21:18:07.033Z",
|
"date": "2024-03-08T21:18:07.033Z",
|
||||||
"created": "2024-03-05T21:18:07.033Z",
|
"created": "2024-03-05T21:18:07.033Z",
|
||||||
"__v": 22
|
"__v": 22
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user