DunkinDeez
DunkinDeez
PD🧩 Plasmo Developers
Created by Thomato on 3/10/2024 in #👟framework
No styling for options.tsx
Import the tailwind css file that declares the tailwind rules into options.tsx
10 replies
PD🧩 Plasmo Developers
Created by Paddy on 2/8/2024 in #👟framework
Adding Supabase later instead of starting with it?
you should be able to add it in later. The --with examples are just quickstarts to get you going
6 replies
PD🧩 Plasmo Developers
Created by Paddy on 2/8/2024 in #👾extension
How to send API requests with messaging?
you don't need the extension id in the sendToBackground call
18 replies
PD🧩 Plasmo Developers
Created by Paddy on 2/8/2024 in #👾extension
How to send API requests with messaging?
either in the service worker or in the popup page
18 replies
PD🧩 Plasmo Developers
Created by Paddy on 2/8/2024 in #👾extension
How to send API requests with messaging?
if you console.log(req) in the handler you should see the object in the console
18 replies
PD🧩 Plasmo Developers
Created by Paddy on 2/8/2024 in #👾extension
How to send API requests with messaging?
to use the messaging api you would need to use the sendToBackground function from @plasmo/messaging in the jsx/tsx/content script. you need to create a message handler in background/messages/<handler_name>. The handler is where you would perform the api fetch request. Given your provided case I don't think any use of the messaging api is needed since the popup should be able to use the credentials as is
18 replies
PD🧩 Plasmo Developers
Created by mmoustik on 2/8/2024 in #🔰newbie
Is Vanilla JavaScript supported?
8 replies
PD🧩 Plasmo Developers
Created by mmoustik on 2/8/2024 in #🔰newbie
Is Vanilla JavaScript supported?
no it supports typescript and multiple frameworks too. I'd spend some time reading the documentation to get a complete picutre of plasmo framework capabilities.
8 replies
PD🧩 Plasmo Developers
Created by Yanzhihou on 1/31/2024 in #👟framework
Extension Network Question
Can you give more details? Is there a reason the messaging api wouldn't work? https://docs.plasmo.com/framework/messaging
4 replies
PD🧩 Plasmo Developers
Created by edmund on 1/30/2024 in #👟framework
CSUI Best practices question
it looks like that element is being rerendered or something so I would think you'd need to remount the button not 100% sure thats just a guess
16 replies
PD🧩 Plasmo Developers
Created by McMatt on 1/30/2024 in #👾extension
How to include JSON file referenced in manifest (Failed to resolve file.json)
specify the file in the web accessible resources maybe https://docs.plasmo.com/framework/assets
3 replies
PD🧩 Plasmo Developers
Created by edmund on 1/30/2024 in #👟framework
CSUI Best practices question
I think you need to export default TestButton
16 replies
PD🧩 Plasmo Developers
Created by DunkinDeez on 1/26/2024 in #👟framework
Is it possible to wrap page elements in the document root?
Figured out a workaround to this by using a useEffect and performing document operations based on the dependency value
4 replies