Commit 6c8c28f
HugoFara
feat!: LWT v3 Merge Summary
Overview
This merge brings 395 commits representing a complete architectural overhaul of Learning with Texts. The changes span 1,997 files with a net reduction of ~114,000 lines of code through modernization and cleanup.
Breaking Changes
- Configuration: Replaced connect.php with .env file for database credentials
- Table Prefix: Removed $tbpref global and all table prefix functionality
- Build System: Frontend now uses Vite for bundling (requires npm run build:all)
- Deprecated Functions: Removed all previously deprecated PHP functions
- PHP Globals: Eliminated all superglobals and legacy global variables
Major Features
Multi-User Support
- User authentication system with login pages
- User-scoped data (words, texts, tags, languages)
- Session security with secure cookies
- Auth middleware for API protection
Architecture Overhaul
- Front controller pattern (index.php → Router → Controller → Service → View)
- Dependency injection container
- Repository pattern for data access
- 17 new Controllers, 36 new Services
- PSR-4 autoloading with Lwt\ namespace
Frontend Modernization
- Vite build system with HMR
- TypeScript throughout (strict mode)
- Alpine.js replacing jQuery for interactions
- Lucide SVG icons replacing PNG icons
- Bulma CSS framework
Database & Security
- All SQL queries converted to prepared statements
- Fluent query builder API
- Security middleware
- Session hardening with secure cookies
Changes by Category
| Type | Count |
|--------------------|-------|
| Features | 29 |
| Bug Fixes | 50 |
| Refactoring/Chores | 243 |
Files Changed by Type
| Type | Files | Insertions | Deletions |
|-------|-------|------------|-----------|
| PHP | 424 | +111,864 | -41,029 |
| JS/TS | 433 | +85,900 | -13,358 |
| CSS | 87 | +4,076 | -10,364 |
Migration Notes
1. Copy .env.example to .env and configure database credentials
2. Run composer install and npm install
3. Run npm run build:all to build frontend assets
4. Database migrations will run automatically on first access2,021 files changed
Lines changed: 234170 additions & 348623 deletions
File tree
- .psalm
- assets
- css
- images
- vite
- images
- js
- vite
- sounds
- themes
- Default_Mod
- Lingocracy_Dark
- Lingocracy
- Night_Mode
- White_Night
- chaosarium_light
- css
- images
- cypress
- e2e
- fixtures
- support
- db
- migrations
- schema
- seeds
- docs-src
- .vitepress
- theme
- developer
- guide
- troubleshooting
- legal
- public
- assets/images
- reference
- docs
- assets
- chunks
- images
- developer
- guide
- troubleshooting
- html
- search
- js
- fonts
- scripts
- prettify
- styles
- legal
- php
- classes
- css
- files
- graphs
- indices
- js
- namespaces
- packages
- reports
- reference
- icn
- inc
- classes
- iui
- js
- overlib
- resources/anki
- scripts
- src
- backend
- Api/V1
- Handlers
- Controllers
- Core
- Bootstrap
- Container
- Database
- Entity
- ValueObject
- Exception
- Http
- Integration
- Language
- Repository
- Utils
- Router
- Middleware
- Services
- Views
- Admin
- Auth
- Feed
- Home
- Language
- Tags
- Test
- TextPrint
- Text
- Word
- View/Helper
- css
- frontend
- css
- base
- themes
- Default_Mod
- Lingocracy_Dark
- Lingocracy
- Night_Mode
- White_Night
- chaosarium_light
- js
- admin
- api
- auth
- core
- feeds
- components
- services
- stores
- types
- utils
- forms
- home
- languages
- components
- stores
- media
- reading
- components
- stores
- tags
- terms
- testing
- components
- stores
- texts
- types
- ui
- words
- js
- third_party
- php
- themes
- Default_Mod
- Lingocracy_Dark
- Lingocracy
- Night_Mode
- White_Night
- chaosarium_light
- tools
- tests
- backend
- Api/V1
- Handlers
- Controllers
- Core
- Bootstrap
- Container
- Database
- Entity
- Exception
- Export
- Feed
- Http
- Repository
- Tag
- Text
- UI
- Utils
- Word
- Router
- Middleware
- Services
- frontend
- admin
- api
- core
- feeds
- services
- stores
- utils
- forms
- home
- languages
- media
- reading
- tags
- terms
- testing
- texts
- ui
- words
- inc
- classes
- tools
- themes
- Default_Mod
- Lingocracy_Dark
- Lingocracy
- Night_Mode
- White_Night
- chaosarium_light
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
47 | | - | |
| 52 | + | |
48 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments