From 428c3aab052f49c302ef2e938cc1104813687d5d Mon Sep 17 00:00:00 2001 From: Yosuke Mizutani Date: Mon, 30 Dec 2024 00:11:01 -0700 Subject: [PATCH 1/3] Implement color conversion filters for reducing file size --- package-lock.json | 4 +- package.json | 2 +- public/assets/img/fei-small-back.png | Bin 0 -> 808 bytes public/assets/img/fei-small-front.png | Bin 0 -> 5596 bytes src/App.tsx | 4 +- src/components/sections/OBSSettings.tsx | 4 +- src/models/CSSBuilder.tsx | 174 +++++++++++++++--------- src/models/FeignImageCSS.tsx | 50 +++++-- src/models/ViewSettings.tsx | 8 +- 9 files changed, 151 insertions(+), 95 deletions(-) create mode 100644 public/assets/img/fei-small-back.png create mode 100644 public/assets/img/fei-small-front.png diff --git a/package-lock.json b/package-lock.json index 0787df7..ed995fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "feign-discord", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "feign-discord", - "version": "0.0.4", + "version": "0.0.5", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/free-brands-svg-icons": "^6.7.2", diff --git a/package.json b/package.json index 6148780..2d07b87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "feign-discord", - "version": "0.0.4", + "version": "0.0.5", "private": true, "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", diff --git a/public/assets/img/fei-small-back.png b/public/assets/img/fei-small-back.png new file mode 100644 index 0000000000000000000000000000000000000000..d604d9856b6a03c9a3e6e9eca545326dc09262bf GIT binary patch literal 808 zcmeAS@N?(olHy`uVBq!ia0vp^Z9sg2gAGXPYR~KiQk(@Ik;M!Q+`=Ht$S`Y;1Oo%p zEl(H6kcwMx?_SJXY#`upQR3#gg#5~Vd*SsWI{C8!CUR?swH5PF!@5W(WX$kZ1p&TzEJf=i%bPi2sX*zv%I zhQ}`_J8l&0V`7!@pUcw4TPULOK%%xl!|Y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