Commit Graph

31 Commits

Author SHA1 Message Date
Ryderjj89
8dcf1ed1fa Updated Docker to use local ESV copy instead of external mdbible clone
- **ESV data source**: Switched from external mdbible GitHub repo to local ESV directory
- **Removed git clone**: No longer cloning from https://github.com/lguenth/mdbible.git
- **Local ESV copy**: Now COPY ESV /app/bible-data instead of external pull
- **Removed git dependency**: Cleaned up unnecessary git install in Dockerfile
- **Updated comments**: Backend now correctly marked ESV as 'local files'

Both ESV and NKJV now served from local repository files in Docker container!
2025-09-28 18:24:36 -04:00
Ryderjj89
78e4f7b3ae Fix logo loading and URL parameter persistence
Backend:
- Added static file serving for /logos directory
- Logos now accessible at /logos/path for Docker builds

Frontend:
- Updated all navigation to include version parameters (?version=esv|?version=nkjv)
- Book selection includes version in URL
- Breadcrumb navigation preserves version context
- URLs now work for bookmarking and sharing with version information

Complete fix for both logo display and navigation URL persistence.
2025-09-28 14:22:34 -04:00
Ryderjj89
1b1cadf260 Simplified BibleReader parsing - NKJV files now use standard mdbible format with numbered verses 2025-09-28 13:30:01 -04:00
Ryderjj89
2b3d753275 Add comprehensive encoding fixes for NKJV text corruption
- Detect UTF-8 replacement characters and fall back to Latin-1 encoding
- Add NKJV-specific cleanup to remove replacement chars and normalize line endings
- Strip UTF-8 BOM and handle Windows line endings properly
2025-09-28 13:14:43 -04:00
Ryderjj89
4721e8b5a5 Fix text encoding issues in NKJV files by removing UTF-8 BOM in readMarkdownFile 2025-09-28 12:53:28 -04:00
Ryderjj89
e432b21d67 Add detailed debugging logs to getBooks function to diagnose NKJV directory reading issue 2025-09-28 12:35:29 -04:00
Ryderjj89
35e5a260da Make search engine initialization more robust - handle missing ESV data directory gracefully and provide better error logging for NKJV 2025-09-28 12:35:00 -04:00
Ryderjj89
e7b98e0107 Fix NKJV directory path in backend - was looking in ../ instead of ../../ 2025-09-28 12:31:30 -04:00
Ryderjj89
ceeb465c8d Add multi-version Bible support with ESV and NKJV translations
- Rename project from 'ESV Bible' to 'The Bible'
- Implement version selection dropdown in homepage header
- Add support for multiple Bible versions:
  * ESV (English Standard Version) - from mdbible
  * NKJV (New King James Version) - from local NKJV/ directory
- Update all API endpoints to accept version parameter (?version=esv|?version=nkjv)
- Add version-aware favorites system that stores and displays Bible version (e.g., 'Genesis 1:1 (ESV)')
- Update database schema to include version column in favorites table
- Maintain backward compatibility with existing data
- Update Docker configuration and documentation
2025-09-28 12:13:37 -04:00
Ryderjj89
b2096c67ae Fix chapter loading issue caused by double padding
- Backend now properly handles chapter names that already include 'Chapter_' prefix
- Prevents double padding that was causing file not found errors
- Maintains backward compatibility for legacy chapter number requests
- Chapter loading should now work correctly alongside search functionality
2025-09-15 17:48:10 -04:00
Ryderjj89
5f22fb5bdc Fix search functionality for markdown bible data
- Update search engine to parse numbered list format (1. verse text)
- Fix chapter file path construction to use Chapter_XX.md format
- Add zero-padding for chapter numbers in API routes
- Skip empty lines and headers in markdown parsing
- Ensure compatibility with external bible data source structure
2025-09-15 17:40:37 -04:00
Ryderjj89
f5639af27f Add comprehensive Bible search feature
- Implement backend search engine with indexing and relevance scoring
- Add search API endpoints (/api/search and /api/search/suggestions)
- Create SearchComponent with modal and page views
- Add search button to header navigation
- Support real-time search with debouncing
- Include context verses and search term highlighting
- Add book filtering and mobile-responsive design
- Integrate with existing routing and navigation system
2025-09-15 17:30:00 -04:00
Ryderjj89
2c78f7c437 Fix database schema: allow NULL chapters for book-only favorites 2025-09-13 19:17:51 -04:00
Ryderjj89
8423784d8d Fix backend API to allow book-only favorites (chapter is now optional) 2025-09-13 18:31:38 -04:00
Ryderjj89
a616cb08c7 Fix OIDC callback parameter mapping - profile parameter is actually the callback function 2025-09-13 18:00:08 -04:00
Ryderjj89
173952d70d Add comprehensive parameter debugging to find actual callback function in OIDC strategy 2025-09-13 17:55:42 -04:00
Ryderjj89
5e6af9f5ad Store done callback in variable to prevent scope loss and add debugging to track callback availability 2025-09-13 17:53:51 -04:00
Ryderjj89
4c4bfaaf1d Remove return statement before done callback to fix scope issue 2025-09-13 17:48:43 -04:00
Ryderjj89
5434fa6dc0 Fix callback scope issue in database user creation - rename nested callback parameter to avoid conflict 2025-09-13 17:43:41 -04:00
Ryderjj89
53245ca662 Fix profile extraction - sub parameter contains the profile object, extract ID from sub.id 2025-09-13 17:38:45 -04:00
Ryderjj89
df761b3626 Fix profile parsing to use sub parameter directly and improve user data extraction 2025-09-13 17:33:43 -04:00
Ryderjj89
c369b5160f Add OIDC configuration debugging to identify issuer mismatch 2025-09-13 17:26:58 -04:00
Ryderjj89
a5ae6ed208 Add comprehensive debugging to OIDC authentication flow and fix callback handling 2025-09-13 17:22:42 -04:00
Ryderjj89
dbdb455772 Fix session cookie configuration and add debugging for authentication issues 2025-09-13 17:16:22 -04:00
Ryderjj89
7bf2a8a879 Fix database directory creation and add login/logout UI when authentication is configured 2025-09-13 17:03:22 -04:00
Ryderjj89
a804430536 Add OpenID Connect authentication and SQLite database with user preferences and favorites system 2025-09-13 16:50:26 -04:00
Ryderjj89
9bebd76d7c Fix chapter listing API and restore font size controls 2025-09-13 15:59:07 -04:00
Ryderjj89
eb81bdc9e6 Disable helmet security headers and use relative API URLs to fix HTTP access 2025-09-13 15:36:27 -04:00
Ryderjj89
a26047493a Fix frontend static file paths to point to correct Docker container location 2025-09-13 12:33:37 -04:00
Ryderjj89
cb3dbe8d5b Add static file serving and SPA routing support for React frontend 2025-09-13 12:28:59 -04:00
Ryderjj89
13c93879c0 Reorganize project structure with backend/ and frontend/ directories 2025-09-13 12:14:01 -04:00