forked from loic-sharma/BaGet
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Summary
Replace the legacy Bootstrap 3.4.1 + jQuery + Office UI Fabric frontend with Tailwind CSS.
Current Stack (to remove)
- Bootstrap 3.4.1
- jQuery 3.5.1
- Office UI Fabric Core 11.0.0
New Stack
- Tailwind CSS (via standalone CLI - no npm required)
- Alpine.js 3.x (upgrade from 2.8.1)
- Lucide icons (replace Office UI Fabric icons)
Tasks
- Set up Tailwind CSS standalone CLI build
- Create
tailwind.config.js - Create
Styles/input.csswith Tailwind directives - Migrate
_Layout.cshtmlto Tailwind classes - Migrate
Index.cshtml(package search page) - Migrate
Package.cshtml(package details page) - Migrate
Upload.cshtml(upload instructions) - Replace Office UI Fabric icons with Lucide
- Update
libman.jsonto remove old libraries - Delete old
wwwroot/css/site.css - Modernize
wwwroot/js/site.js(remove IE detection) - Upgrade Alpine.js to 3.x
Component Migration
| Bootstrap | Tailwind |
|---|---|
.navbar-inverse |
bg-slate-900 text-white |
.btn .btn-default |
px-4 py-2 bg-white border rounded |
.container |
max-w-7xl mx-auto px-4 |
.form-control |
w-full px-3 py-2 border rounded-md |
Files to Modify
src/BaGet.Web/libman.jsonsrc/BaGet.Web/Pages/Shared/_Layout.cshtmlsrc/BaGet.Web/Pages/Index.cshtmlsrc/BaGet.Web/Pages/Package.cshtmlsrc/BaGet.Web/Pages/Upload.cshtmlsrc/BaGet.Web/wwwroot/css/site.csssrc/BaGet.Web/wwwroot/js/site.js
Dependencies
- Depends on .NET 9 upgrade
Reactions are currently unavailable