NM-25: Copy static assets from .NET project to Spring Boot resources#9
Open
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Copy all static assets from eShopPorted/wwwroot/ to eShopModernizedSpringSolution/src/main/resources/static/: - Content/: CSS files (bootstrap, custom, base, Site) - Scripts/: JavaScript files (jQuery, bootstrap, popper, etc.) - fonts/: Montserrat font files (eot, svg, ttf, woff, woff2) - Pics/: Product images (1-12, dummy) 91 files total. Spring Boot embedded Tomcat serves these at the root URL path (e.g. /Content/Site.css, /Pics/1.png).
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Summary
Copies all static assets from the legacy .NET project (
eShopPorted/wwwroot/) to the Spring Boot project ateShopModernizedSpringSolution/src/main/resources/static/, preserving the original directory structure.Assets copied (91 files total):
Content/— 15 CSS files (bootstrap, bootstrap-grid, bootstrap-reboot, custom, base, Site) including source mapsScripts/— 39 JavaScript files (jQuery 3.3.1, bootstrap, popper, modernizr, respond, jquery.validate) including ESM/UMD variants and source mapsfonts/— 10 Montserrat font files (Regular + Bold in eot, svg, ttf, woff, woff2 formats)Pics/— 14 product images (1-12, dummy.png)Spring Boot embedded Tomcat serves files from
src/main/resources/static/at the root URL path, so:/Content/Site.css→ CSS/Pics/1.png→ product imageJira: NM-25
Depends on: NM-22 (Story 0.1 — Spring Boot project init)
Review & Testing Checklist for Human
cd eShopModernizedSpringSolution && ./mvnw spring-boot:run) and verifyhttp://localhost:8080/Content/Site.cssreturns CSS withtext/cssMIME typehttp://localhost:8080/Pics/1.pngreturns the product image withimage/pngMIME typehttp://localhost:8080/Scripts/jquery-3.3.1.min.js) and fonts (e.g.http://localhost:8080/fonts/Montserrat-Regular.woff2)Notes
Site.css(capital S). The Jira AC referencessite.css(lowercase). Spring Boot is case-sensitive on Linux — the correct URL is/Content/Site.css. Future Thymeleaf templates (Story 1.x) will reference the correct case as the original .NET layout does (~/Content/Site.css).Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/5eb988247e7845edaa8fb3f23a4a483c