From 9c1d9412e0c8d677e8a73c0f4580216ad024a2ef Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:06:35 +0900 Subject: [PATCH 1/8] docs: add romaindequidt as a contributor for doc (#311) Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 1864dc6b7..081570bd3 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -302,6 +302,15 @@ "contributions": [ "doc" ] + }, + { + "login": "romaindequidt", + "name": "Romain Dequidt", + "avatar_url": "https://avatars.githubusercontent.com/u/521473?v=4", + "profile": "http://www.iotercom.com", + "contributions": [ + "doc" + ] } ] } diff --git a/README.md b/README.md index 4c83fac5e..92d991d5d 100755 --- a/README.md +++ b/README.md @@ -471,6 +471,7 @@ manifest.json Rasul
Rasul

📖 gavinhow
gavinhow

🐛 Anand D.
Anand D.

📖 + Romain Dequidt
Romain Dequidt

📖 From 6144c6834b47b8572055b76a5ad3369fb61ccc8a Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Sat, 2 Dec 2023 14:06:59 +0100 Subject: [PATCH 2/8] docs: fixed code block quotes in README.md (#309) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 92d991d5d..af99c19ac 100755 --- a/README.md +++ b/README.md @@ -169,13 +169,13 @@ root.render();
src/pages/content/ui/index.tsx -"""tsx +```tsx import { attachTwindStyle } from '@src/shared/style/twind'; ... attachTwindStyle(rootIntoShadow, shadowRoot); createRoot(rootIntoShadow).render(); -""" +```
[See more examples](https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/pull/244/) From b8f206a2118dd5d673a0378f6423585541f872c0 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:07:21 +0900 Subject: [PATCH 3/8] docs: add jguddas as a contributor for doc (#312) Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: JongHak Seo --- .all-contributorsrc | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 081570bd3..cd6057d68 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -311,6 +311,15 @@ "contributions": [ "doc" ] + }, + { + "login": "jguddas", + "name": "Jakob Guddas", + "avatar_url": "https://avatars.githubusercontent.com/u/25524993?v=4", + "profile": "http://linkedin.com/in/jguddas", + "contributions": [ + "doc" + ] } ] } diff --git a/README.md b/README.md index af99c19ac..f71a3c0b5 100755 --- a/README.md +++ b/README.md @@ -472,6 +472,7 @@ manifest.json gavinhow
gavinhow

🐛 Anand D.
Anand D.

📖 Romain Dequidt
Romain Dequidt

📖 + Jakob Guddas
Jakob Guddas

📖 From ee37997b438c1ffd734c5eef3bc270c35e0f7498 Mon Sep 17 00:00:00 2001 From: JongHak Seo Date: Sat, 2 Dec 2023 22:23:09 +0900 Subject: [PATCH 4/8] fix: pnpm run dev:firefox issue (#314) --- utils/plugins/custom-dynamic-import.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/plugins/custom-dynamic-import.ts b/utils/plugins/custom-dynamic-import.ts index 6717fd1aa..52090076a 100644 --- a/utils/plugins/custom-dynamic-import.ts +++ b/utils/plugins/custom-dynamic-import.ts @@ -6,8 +6,12 @@ export default function customDynamicImport(): PluginOption { renderDynamicImport({ moduleId }) { if (!moduleId.includes('node_modules') && process.env.__FIREFOX__) { return { - left: `import(browser.runtime.getURL('./') + `, - right: ".split('../').join(''));", + left: ` + { + const dynamicImport = (path) => import(path); + dynamicImport(browser.runtime.getURL('./') + + `, + right: ".split('../').join(''))}", }; } return { From fe7025fb9782c7471379214fa7f6356916f82d36 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:24:41 +0900 Subject: [PATCH 5/8] docs: add jguddas as a contributor for bug (#315) Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index cd6057d68..41ebcd5d9 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -318,7 +318,8 @@ "avatar_url": "https://avatars.githubusercontent.com/u/25524993?v=4", "profile": "http://linkedin.com/in/jguddas", "contributions": [ - "doc" + "doc", + "bug" ] } ] diff --git a/README.md b/README.md index f71a3c0b5..b7e455958 100755 --- a/README.md +++ b/README.md @@ -472,7 +472,7 @@ manifest.json gavinhow
gavinhow

🐛 Anand D.
Anand D.

📖 Romain Dequidt
Romain Dequidt

📖 - Jakob Guddas
Jakob Guddas

📖 + Jakob Guddas
Jakob Guddas

📖 🐛 From f170068aedec88d237a2d3d20dfa11ea9a53957a Mon Sep 17 00:00:00 2001 From: Jonghakseo Date: Sat, 2 Dec 2023 22:50:30 +0900 Subject: [PATCH 6/8] fix: make-manifest assignment operators --- utils/plugins/make-manifest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/plugins/make-manifest.ts b/utils/plugins/make-manifest.ts index f5aa2a288..afc354499 100644 --- a/utils/plugins/make-manifest.ts +++ b/utils/plugins/make-manifest.ts @@ -33,7 +33,7 @@ export default function makeManifest(config?: { getCacheInvalidationKey?: () => if (cacheKey) { // Naming change for cache invalidation manifest.content_scripts.forEach(script => { - script.css = script.css.map(css => css.replace('', cacheKey)); + script.css &&= script.css.map(css => css.replace('', cacheKey)); }); } From 7aca5c666d7587bbf4f1efeee054055ca1b71e41 Mon Sep 17 00:00:00 2001 From: JongHak Seo Date: Sat, 2 Dec 2023 22:50:44 +0900 Subject: [PATCH 7/8] Enhance: add a css insertion case to shadow dom (#313) --- src/pages/content/ui/index.tsx | 6 ++++++ src/pages/content/ui/injected.css | 0 2 files changed, 6 insertions(+) create mode 100644 src/pages/content/ui/injected.css diff --git a/src/pages/content/ui/index.tsx b/src/pages/content/ui/index.tsx index 3e623be07..90898f6fa 100644 --- a/src/pages/content/ui/index.tsx +++ b/src/pages/content/ui/index.tsx @@ -1,6 +1,7 @@ import { createRoot } from 'react-dom/client'; import App from '@pages/content/ui/app'; import refreshOnUpdate from 'virtual:reload-on-update-in-view'; +import injectedStyle from './injected.css?inline'; refreshOnUpdate('pages/content'); @@ -15,6 +16,11 @@ rootIntoShadow.id = 'shadow-root'; const shadowRoot = root.attachShadow({ mode: 'open' }); shadowRoot.appendChild(rootIntoShadow); +/** Inject styles into shadow dom */ +const styleElement = document.createElement('style'); +styleElement.innerHTML = injectedStyle; +shadowRoot.appendChild(styleElement); + /** * https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/pull/174 * diff --git a/src/pages/content/ui/injected.css b/src/pages/content/ui/injected.css new file mode 100644 index 000000000..e69de29bb From ce3ad686ba2bebfa0b236c2b696aa139c3a73570 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 23:02:04 +0900 Subject: [PATCH 8/8] docs: add D1no as a contributor for code (#316) Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 41ebcd5d9..181b9200e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -321,6 +321,15 @@ "doc", "bug" ] + }, + { + "login": "D1no", + "name": "Dino Scheidt", + "avatar_url": "https://avatars.githubusercontent.com/u/2397125?v=4", + "profile": "http://din.ooo", + "contributions": [ + "code" + ] } ] } diff --git a/README.md b/README.md index b7e455958..9ba40ef4c 100755 --- a/README.md +++ b/README.md @@ -473,6 +473,7 @@ manifest.json Anand D.
Anand D.

📖 Romain Dequidt
Romain Dequidt

📖 Jakob Guddas
Jakob Guddas

📖 🐛 + Dino Scheidt
Dino Scheidt

💻