Skip to content

Add router#16

Merged
tweakch merged 11 commits intomainfrom
feature/use-index-as-router
Sep 26, 2025
Merged

Add router#16
tweakch merged 11 commits intomainfrom
feature/use-index-as-router

Conversation

@tweakch
Copy link
Owner

@tweakch tweakch commented Sep 26, 2025

No description provided.

tweakch and others added 11 commits September 26, 2025 17:41
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 62344ab4-5b9b-4995-a2da-46a470e7bb5d
Replit-Commit-Checkpoint-Type: full_checkpoint
Introduces a new `api/index.php` file acting as a front controller for a minimal API, currently exposing a `/api/health` endpoint that returns service status, timestamp, and PHP version.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 62344ab4-5b9b-4995-a2da-46a470e7bb5d
Replit-Commit-Checkpoint-Type: full_checkpoint
Update the CSS source map file with the latest mappings and source roots.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 62344ab4-5b9b-4995-a2da-46a470e7bb5d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9b120d07-e012-4771-ba70-9203193911a7/62344ab4-5b9b-4995-a2da-46a470e7bb5d/QOkKQPD
No changes were made.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 62344ab4-5b9b-4995-a2da-46a470e7bb5d
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9b120d07-e012-4771-ba70-9203193911a7/62344ab4-5b9b-4995-a2da-46a470e7bb5d/QOkKQPD
Document the project's modern PHP architecture, including its Twig template system, file-based content management, internationalization, and security approach.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 62344ab4-5b9b-4995-a2da-46a470e7bb5d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9b120d07-e012-4771-ba70-9203193911a7/62344ab4-5b9b-4995-a2da-46a470e7bb5d/QOkKQPD
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b0359988-0b08-4e64-8d74-d1f4e02c4455
Replit-Commit-Checkpoint-Type: full_checkpoint
Refactor index.php to implement a modern routing system and move the original homepage content to home.php.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b0359988-0b08-4e64-8d74-d1f4e02c4455
Replit-Commit-Checkpoint-Type: full_checkpoint
Fixes an issue where the `nav_active` function would not correctly identify the active navigation item when using the router. This change modifies how `$_SERVER['SCRIPT_NAME']` is handled during route inclusion to ensure the `nav_active` function receives the correct value. Additionally, the 404 page handling has been simplified to avoid unnecessary inclusion of the config file.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b0359988-0b08-4e64-8d74-d1f4e02c4455
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9b120d07-e012-4771-ba70-9203193911a7/b0359988-0b08-4e64-8d74-d1f4e02c4455/ZEXKeE8
Add new methods to the Router class to handle static asset requests, including MIME type detection and caching.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b0359988-0b08-4e64-8d74-d1f4e02c4455
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9b120d07-e012-4771-ba70-9203193911a7/b0359988-0b08-4e64-8d74-d1f4e02c4455/hUsnp5c
…, GitHub presence, tweak-consist, and tweak-web

- Created markdown documentation for Cardano Developer Portal contributions, focusing on improving navigation, tutorial quality, and CI processes.
- Added DesignCraft platform documentation detailing a modular SaaS for designers, highlighting architecture, key contributions, and performance metrics.
- Documented the Enesance corporate website project, emphasizing a content-focused approach with improved performance and accessibility.
- Established a curated GitHub presence showcasing open source contributions and tooling experiments, including CI/CD templates and modular PHP starter.
- Introduced tweak-consist, an automated workflow consistency auditor for GitHub organizations, detailing its architecture, objectives, and impact metrics.
- Developed the tweak-web platform, a progressive refactor of an HTML5 UP template into a modular PHP + Twig content platform, with a focus on markdown-driven content and internationalization.
- Updated routing and service paths in home.php, portfolio.php, and various service classes to reflect new directory structure.
- Enhanced logging capabilities in the router for better request tracking and debugging.
- Refactored blog and portfolio links in templates to align with new routing structure.
… new ci.yml and deploy.yml for CI/CD processes
@tweakch tweakch marked this pull request as ready for review September 26, 2025 20:56
@tweakch tweakch merged commit 676e5a9 into main Sep 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant