Closed vicb closed 4 months ago
The recent updates enhance the Progressive Web App (PWA) configuration and service worker scripts in the apps/fxc-front
directory. Notably, the PWA configuration now supports additional icon settings for a 3D view feature, while the service worker optimizes asset caching by including Google Fonts and refining asset cache functions.
Files | Change Summary |
---|---|
apps/fxc-front/pwa.config.ts |
Added icons configuration for 3D view feature. |
apps/fxc-front/src/sw.ts |
Updated asset cache strategy, added Google Fonts caching, renamed function to isCacheableAsset , and set default handler to NetworkOnly . |
sequenceDiagram
participant App as PWA App
participant browser as Browser
participant SW as Service Worker
participant GoogleFonts as Google Fonts Cache
Note over App, SW: Icon Configuration Update
App->>browser: PWA Configuration with 3D Icons
Note over SW: Google's Font Caching
browser->>SW: Fetch Google Fonts
SW->>GoogleFonts: Cache Fonts
GoogleFonts-->>SW: Fonts Cached
SW-->>browser: Serve Cached Fonts
Note over SW: Updated Cache Strategy
browser->>SW: Fetch Cacheable Asset
SW->>browser: Serve Cached Asset
browser->>SW: Fetch Network Only Asset
SW->>browser: Network Only
In the code where changes crawl,
Icons bloom with views in 3D thrall, 🎨
Google Fonts now swift in flight, 🚀
Cached with care, pristine and bright.
Code evolves in rhythmic flair,
Bugs beware, the rabbit’s there! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request introduces minor tweaks to the Progressive Web App (PWA) configuration and service worker script. The changes include adding caching for Google Fonts, renaming a function for clarity, and updating the PWA configuration to include new icons for the 3D view.
Files | Changes |
---|---|
apps/fxc-front/src/sw.ts apps/fxc-front/pwa.config.ts |
Enhanced PWA capabilities by caching Google Fonts and adding new icons for the 3D view. |
Latest commit: |
ee4d4eb
|
Status: | ✅ Deploy successful! |
Preview URL: | https://3a40241b.flyxc.pages.dev |
Branch Preview URL: | https://pwa-plus.flyxc.pages.dev |
Summary by Sourcery
This pull request includes minor tweaks to the Progressive Web App (PWA) configuration. It enhances the service worker script by renaming a function for clarity and adding caching for Google Fonts. Additionally, it updates the PWA configuration to include icons for the 3D view.
Summary by CodeRabbit
New Features
Improvements