diff --git a/backend/.env.example b/backend/.env.example new file mode 100644 index 0000000..fd6c658 --- /dev/null +++ b/backend/.env.example @@ -0,0 +1,55 @@ +########################### +# APPLICATION INFORMATION # +########################### +APP_DEBUG=true +APP_LOG_SQL=true +APP_PORT=8001 +APP_HOST=localhost +APP_CORS_ALLOW=true +APP_KEY= + +FRONTEND_URI=http://localhost:8000 + +################# +# MISC SETTINGS # +################# +SESSION_COOKIE_NAME=vatger_tc_session +FILE_STORAGE_LOCATION=./storage/uploads/ +FILE_TMP_LOCATION=./storage/tmp/ + +########################## +# API ENDPOINT BASE URIs # +########################## +VATSIM_API_BASE=https://api.vatsim.net/api/v2 +VATEUD_API_BASE=https://core.vateud.net/api +VATEUD_API_KEY= +VATGER_API_BASE=https://vatsim-germany.org/api +MOODLE_API_BASE=https://api.moodle.vatsim-germany.org + +######################### +# VATSIM CONNECT CONFIG # +######################### +CONNECT_BASE=https://auth-dev.vatsim.net +CONNECT_REDIRECT_URI=http://localhost:8000/login/callback +CONNECT_SCOPE=full_name,vatsim_details,email,country +CONNECT_CLIENT_ID= +CONNECT_SECRET= + +######################## +# DATABASE INFORMATION # +######################## +DB_DIALECT=mysql +DB_HOST=localhost +DB_PORT=3306 +DB_DATABASE_NAME=trainingcenter +DB_USERNAME= +DB_PASSWORD= + +#################### +# MAIL INFORMATION # +#################### +SMTP_HOST= +SMTP_PORT= +SMTP_USERNAME= +SMTP_PASSWORD= +DEBUG_EMAIL= \ No newline at end of file diff --git a/frontend/src/pages/authenticated/course/_partials/CGeneralInformation.partial.tsx b/frontend/src/pages/authenticated/course/_partials/CGeneralInformation.partial.tsx index 47fefe5..4c4bdd3 100644 --- a/frontend/src/pages/authenticated/course/_partials/CGeneralInformation.partial.tsx +++ b/frontend/src/pages/authenticated/course/_partials/CGeneralInformation.partial.tsx @@ -26,11 +26,13 @@ export function CGeneralInformationPartial({ course, showDescription = false, showDuration = false, + showEnrolDate = true }: { loading: boolean; course?: CourseModel; showDescription?: boolean; showDuration?: boolean; + showEnrolDate?: boolean; }) { return (
} labelSmall label={"Kurs Name"} disabled value={course?.name} /> - } - label={"Eingeschrieben am"} - labelSmall - disabled - value={dayjs.utc(course?.UsersBelongsToCourses?.createdAt).format(Config.DATETIME_FORMAT)} + } + label={"Eingeschrieben am"} + labelSmall + disabled + value={dayjs.utc(course?.UsersBelongsToCourses?.createdAt).format(Config.DATETIME_FORMAT)} + /> + } /> } diff --git a/frontend/src/pages/authenticated/course/course-view/Course.view.tsx b/frontend/src/pages/authenticated/course/course-view/Course.view.tsx index b9ad46e..badb18d 100644 --- a/frontend/src/pages/authenticated/course/course-view/Course.view.tsx +++ b/frontend/src/pages/authenticated/course/course-view/Course.view.tsx @@ -11,7 +11,7 @@ import { Card } from "@/components/ui/Card/Card"; import React from "react"; import useApi from "@/utils/hooks/useApi"; import { CourseModel } from "@/models/CourseModel"; -import { TLanguage, useSettingsSelector } from "@/app/features/settingsSlice"; +import { useSettingsSelector } from "@/app/features/settingsSlice"; import { ButtonRow } from "@/components/ui/Button/ButtonRow"; import { CGeneralInformationPartial } from "@/pages/authenticated/course/_partials/CGeneralInformation.partial"; @@ -52,12 +52,12 @@ export function CourseView() { elementFalse={ <> Nicht eingeschrieben}> - + - - - } - /> - - - + } + elementFalse={

- Die Selbsteinschreibung ist derzeit nicht aktiv. Kontaktiere einen Mentor um dich in den Kurs einschreiben zu lassen. + Die Selbsteinschreibung ist derzeit nicht aktiv. + Kontaktiere einen Mentor um dich in den Kurs einschreiben zu lassen.

} />