hgil
hgil
PD🧩 Plasmo Developers
Created by hgil on 9/14/2024 in #🔰newbie
How do I install multiple examples e.g. -- --with-sidepanel --with-storage with-supabase
@Pallas Is it possible to do pnpm create plasmo --with-sidepanel --with-storage with-supabase ? It only takes the first or last one I think
6 replies
PD🧩 Plasmo Developers
Created by hgil on 9/14/2024 in #🔰newbie
How do I install multiple examples e.g. -- --with-sidepanel --with-storage with-supabase
@Pallas
6 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Thanks a ton for your help with this!!
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Gotcha ok. Yeah I have some ideas of how to do it. Maybe just fetch a config on start and store in memory
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Ok yeah I think this is the latter case :/ When I run it it logs "$SHOPADVISOR_ANCHOR_CLASSES is not a valid query selector"
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Hm actually just realized I need a map
{
"*://*.amazon.com/*": ".s-product-image-container, .a-dynamic-image, .product-image, .a-image-container, .a-dynamic-image-container",
"*://*.hivebrands.com/*": ".product-grid__image-container",
"*://*.getbezel.com/*": "a:has(img)",
"*://*.shortylove.com/*": ".feature-section"
}
{
"*://*.amazon.com/*": ".s-product-image-container, .a-dynamic-image, .product-image, .a-image-container, .a-dynamic-image-container",
"*://*.hivebrands.com/*": ".product-grid__image-container",
"*://*.getbezel.com/*": "a:has(img)",
"*://*.shortylove.com/*": ".feature-section"
}
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
@filthytone also what about in a content.css lol
SHOPADVISOR_ADD_THUMBNAIL_BUTTON_OFFSET="0px"
SHOPADVISOR_ADD_THUMBNAIL_BUTTON_OFFSET="0px"
.shopadvisor-addremove-button-overlay {
position: absolute;
top: "$SHOPADVISOR_ADD_THUMBNAIL_BUTTON_OFFSET";
right: "$SHOPADVISOR_ADD_THUMBNAIL_BUTTON_OFFSET";
}
.shopadvisor-addremove-button-overlay {
position: absolute;
top: "$SHOPADVISOR_ADD_THUMBNAIL_BUTTON_OFFSET";
right: "$SHOPADVISOR_ADD_THUMBNAIL_BUTTON_OFFSET";
}
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
So now one more question for you before I spend too much time trying to get this to work: I also need this to dynamically set class names in my getOverlayAnchorList()
export const getOverlayAnchorList: PlasmoGetOverlayAnchorList = async () => {
// TODO Map from JSON to class list
return document.querySelectorAll("$SHOPADVISOR_ANCHOR_CLASSES")
}
export const getOverlayAnchorList: PlasmoGetOverlayAnchorList = async () => {
// TODO Map from JSON to class list
return document.querySelectorAll("$SHOPADVISOR_ANCHOR_CLASSES")
}
Is that possible? Idk if I need to use process.env in that case
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Ok took me a bit to figure out but first I celebrated early when I said it worked. I actually had an empty list in matches. The fix was the code you just shared (I thought you meant there was a benign error). But in that code I I had to then add back the square brackets because previously i had
matches: ["$BLAH"]
matches: ["$BLAH"]
So now my .env matches what you had in the Github Issue
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Yeah figured about the documentation just wondering
38 replies
PD🧩 Plasmo Developers
Created by hgil on 9/19/2023 in #👟framework
Adding array of values in env
Oh you're sleekslush! Sweet man thanks a ton for implementing!!
38 replies