mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 03:26:59 +00:00
feat: Add image generation for SVG logos and improve clipboard functionality
- Added @resvg/resvg-js dependency for SVG to PNG/JPG conversion. - Implemented pregeneration of PNG and JPG images from SVG files in the scanLogos script. - Enhanced copy URL functionality in App.svelte to support modern clipboard API with fallbacks. - Removed unnecessary onCopy prop from LogoActions component and handled copy actions locally. - Introduced notification system for copy actions with success/error feedback. - Updated styles for action buttons and notifications for better user experience. - Cleaned up unused code and improved overall structure for clarity.
This commit is contained in:
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
@@ -25,6 +25,9 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install sharp
|
||||
run: npm install sharp
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
@@ -39,6 +42,7 @@ jobs:
|
||||
cp public/global.css ./gh-pages-artifact/
|
||||
cp -r public/data ./gh-pages-artifact/
|
||||
cp -r public/logos ./gh-pages-artifact/
|
||||
cp -r public/logos_gen ./gh-pages-artifact/
|
||||
if [ -f public/CNAME ]; then
|
||||
cp public/CNAME ./gh-pages-artifact/CNAME
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user