diff --git a/trivia-forge/frontend/package-lock.json b/trivia-forge/frontend/package-lock.json index 0b28825e..6d389c95 100644 --- a/trivia-forge/frontend/package-lock.json +++ b/trivia-forge/frontend/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "axios": "^1.6.8", "bootstrap": "^5.3.3", + "node-datetime": "^2.1.2", "openai": "^4.38.3", "react": "^18.2.0", "react-bootstrap": "^2.10.2", @@ -3513,6 +3514,11 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "node_modules/node-datetime": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/node-datetime/-/node-datetime-2.1.2.tgz", + "integrity": "sha512-eev1F0IPKSu3zvASMtH8ic4znGpfXdq9yc8yc/EVx6bk57u7bS2iZKVZ8ll1ZeH/IEQ3qFb04FB70PCNXSIp4w==" + }, "node_modules/node-domexception": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", @@ -7217,6 +7223,11 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, + "node-datetime": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/node-datetime/-/node-datetime-2.1.2.tgz", + "integrity": "sha512-eev1F0IPKSu3zvASMtH8ic4znGpfXdq9yc8yc/EVx6bk57u7bS2iZKVZ8ll1ZeH/IEQ3qFb04FB70PCNXSIp4w==" + }, "node-domexception": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", diff --git a/trivia-forge/frontend/package.json b/trivia-forge/frontend/package.json index e3c539bd..6ea5e672 100644 --- a/trivia-forge/frontend/package.json +++ b/trivia-forge/frontend/package.json @@ -12,6 +12,7 @@ "dependencies": { "axios": "^1.6.8", "bootstrap": "^5.3.3", + "node-datetime": "^2.1.2", "openai": "^4.38.3", "react": "^18.2.0", "react-bootstrap": "^2.10.2", diff --git a/trivia-forge/frontend/src/Components/Questions.jsx b/trivia-forge/frontend/src/Components/Questions.jsx index 3daaf5cf..014e8da3 100644 --- a/trivia-forge/frontend/src/Components/Questions.jsx +++ b/trivia-forge/frontend/src/Components/Questions.jsx @@ -2,7 +2,7 @@ import React from "react"; import Choices from "../Components/Choices"; import { Card } from "react-bootstrap"; -import { Question } from "../Model/Question"; +import { Question } from "../Models/Question"; function Questions({ data }) { let choices = data.choices; diff --git a/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx b/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx index dbb96fb0..218bf66a 100644 --- a/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx +++ b/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx @@ -1,10 +1,10 @@ import React, { useState } from "react"; // variables that cause the component to re-render when they change import OpenAI from "openai"; -import { Game } from "../Model/Game"; +import { Game } from "../Models/Game"; import { useNavigate } from "react-router-dom"; -import { Question } from "../Model/Question"; -import { Choice } from "../Model/Choice"; -import { Category } from "../Model/Category"; +import { Question } from "../Models/Question"; +import { Choice } from "../Models/Choice"; +import { Category } from "../Models/Category"; import { Card } from "react-bootstrap"; diff --git a/trivia-forge/frontend/src/Services/TF-db_services.jsx b/trivia-forge/frontend/src/Services/TF-db_services.jsx index 9e938777..e650a8d1 100644 --- a/trivia-forge/frontend/src/Services/TF-db_services.jsx +++ b/trivia-forge/frontend/src/Services/TF-db_services.jsx @@ -1,7 +1,7 @@ import axios from 'axios'; -import User from '../Models/User'; -import Game from '../Models/Game'; -import Question from '../Models/Question'; +import {User} from '../Models/User'; +import {Game} from '../Models/Game'; +import {Question} from '../Models/Question'; const API_URL = 'http://localhost:5000';