|
|
c66da87401
|
Migrate from legacy config to new AppConfig singleton system
Remove dual config system and migrate all code to use appConfigInstance.
**Phase 1: Update VR Controller Code**
- snapAll.ts: Replace getAppConfig() with appConfigInstance.current
- Use `rotateSnap > 0` instead of rotationSnapEnabled flag
- Use `locationSnap > 0` instead of locationSnapEnabled flag
- Remove parseFloat() calls (values already numbers)
- groundMeshObserver.ts: Direct property replacement
- flyModeEnabled → flyMode
- snapTurnSnap → turnSnap (remove parseFloat)
- customPhysics.ts: Add enabled checks and update
- Add `> 0` checks (was applying unconditionally)
- Use locationSnap and rotateSnap directly
**Phase 2: Remove Legacy Config Bridge**
- vrConfigPanel.ts: Remove syncLegacyConfig() method and all calls
- configModal.tsx: Remove legacy localStorage 'config' writes
**Phase 3: Cleanup**
- appConfig.ts: Remove legacy code (ConfigType, getAppConfig(), setAppConfig())
- Remove unused log import
**Benefits:**
- Eliminates dual config system confusion
- Fixes precision error from string "0" values
- Single source of truth via appConfigInstance
- Reactive updates via Observable pattern
- Cleaner, simpler codebase
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-18 13:20:18 -06:00 |
|
|
|
f2b9e78e45
|
Updated config page.
|
2024-08-30 12:43:19 -05:00 |
|
|
|
1de6270f79
|
updated encryption to only encrypt when password is set.
|
2024-07-17 15:29:57 -05:00 |
|
|
|
72bdbf3ffa
|
Removed some unused code. Optimized export bundle. Started building diagram selector menu.
|
2023-11-10 13:19:28 -06:00 |
|
|
|
f44b2129c8
|
decomposed functions.
|
2023-08-23 14:15:44 -05:00 |
|
|
|
88668c3d64
|
Fixed code inspections.
|
2023-08-23 08:04:49 -05:00 |
|
|
|
26c8fb664f
|
fixed custom physics and simplified diasounds.ts
|
2023-08-22 15:50:44 -05:00 |
|
|
|
3954619d60
|
Fixed up config and color change events.
|
2023-08-22 14:38:09 -05:00 |
|
|
|
00dac7f4ec
|
Added voice manager, integrated cloud function capability.
|
2023-08-10 11:56:10 -05:00 |
|
|
|
81627853e4
|
Fixed snapping with physics enabled.
|
2023-08-08 12:18:18 -05:00 |
|
|
|
abbf9d594e
|
refactor out custom app initialization.
|
2023-08-06 08:14:43 -05:00 |
|