fix: patch security vulnerabilities, optimize Three.js lifecycle, and refactor architecture#1
Open
davishkar wants to merge 2 commits into
Open
fix: patch security vulnerabilities, optimize Three.js lifecycle, and refactor architecture#1davishkar wants to merge 2 commits into
davishkar wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DevRealm — Fixes & Architecture Updates
This document provides a comprehensive summary of all the bugs fixed, security vulnerabilities patched, and architectural improvements made to the DevRealm project.
1. Security & Vulnerability Patches
buildRepos()andbuildAnalytics(). Previously, untrusted data from the GitHub API was injected directly into the DOM viainnerHTML. This was completely refactored to use safe DOM API methods (document.createElementandtextContent).window.openexternal link calls by appendingnoopener, noreferrerto prevent malicious pages from hijacking the origin tab.2. Memory Leaks & Performance Optimization
destroyCity()function now actively traverses the Three.js scene to correctly.dispose()of all geometries, materials, and the renderer instance.resizeevent listeners by explicitly removing the handler when a user navigates back to the landing page.3. UI/UX Resiliency
4. Architecture Refactor (Monolith to Node.js)
index.htmlinto a modern application structure:public/index.html(Markup)public/css/style.css(Styling)public/js/app.js(Logic)package.jsonand established a lightweight Express backend (server.js) to serve the static frontend. This sets the foundation for a future backend proxy (to bypass GitHub API rate limits).5. Internationalization (i18n) Engine
public/js/i18n.js).en) and Spanish (es) translations.index.htmlto utilizedata-i18nattributes for all static text.t('key')function.onLanguageChangeobserver to instantly re-render active dashboard modules when the user toggles their language preference.