From b7e811d0f2bd9aa6315f09ae3382d66b05149dbe Mon Sep 17 00:00:00 2001 From: clacina Date: Wed, 29 Apr 2026 06:00:06 -0700 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20calendar/colors?= =?UTF-8?q?=20categories=20and=20improve=20video=20playback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expand vocabulary coverage with dedicated Calendar/Date & Time and Colors categories. Replace iframe with ReactPlayer for native controls and error feedback, and add signbsl.com fallback URL lookup so terms without explicit video codes can still surface a video. Co-Authored-By: Claude Sonnet 4.6 --- package.json | 2 + src/App.jsx | 2 + src/components/FlashcardSession.jsx | 21 +- src/components/TermInput.jsx | 6 +- src/data/calendar-terms.json | 32 +++ src/data/colors.json | 10 + src/data/questions.json | 1 - src/data/terms.json | 199 +++++++------- src/data/terms2.json | 38 +-- vite.config.js | 11 +- yarn.lock | 388 +++++++++++++++++++++++++++- 11 files changed, 574 insertions(+), 136 deletions(-) create mode 100644 src/data/calendar-terms.json create mode 100644 src/data/colors.json diff --git a/package.json b/package.json index 333f6a7..cf2f733 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "axios": "^1.15.0", "react": "^19.2.4", "react-dom": "^19.2.4", + "react-hot-toast": "^2.6.0", + "react-player": "^3.4.0", "tippy.js": "^6.3.7" }, "devDependencies": { diff --git a/src/App.jsx b/src/App.jsx index 56d9035..8a4c743 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -4,6 +4,7 @@ import { LandingPage } from './components/LandingPage' import { FlashcardSession } from './components/FlashcardSession' import { Footer } from './components/Footer' import './App.css' +import {Toaster} from "react-hot-toast"; function App() { const [view, setView] = useState('input') @@ -34,6 +35,7 @@ function App() { )}