devmode extension brainstorm
25 Replies
want to know what sort of benefits this has over the current 'just console log it'
hmm i don't know if its the same but I did the chrome extension demo 🤓 ... just that hahah
List all World Documents, kind of souped up version of "print to console" could be useful
A flag editor/document editor which manually
update
s things?I mentioned hooks as a half joke but it would be nice. very level-0 shit, a toggle to log hooks or not
yeah but devmode already does that
yeah but it could replace it 😛
agreed, it would have a place in this
localization shit ? I don't know how accessible it might be
debug tools has access to like the profiler and shit I think
wonder how a 'custom foundry profiler' might look
i know react devtools has stuff like that
but been able to see maybe the tree of translations could be handy, for like when you are translating a module/system onto another module, so you could double check where each localized text is coming from
oh yeah this uses a manifest too, it looks rather similar too, seems to be using service workers on a similar fashion but registering different parts of the API
Chrome Developers
Getting started - Chrome Developers
Step-by-step instructions on how to create a Chrome Extension.
DF Flag Editor already exists btw
sure, but I mean, it's totally a module/system dev tool, we could work on integrating it into this devmode or do something similar
while im all in for smaller.. more.. emm.. modular? modules in general usage terms, as one game might not require what other does, or one system from another, or even users might prefer other module for doing this or that thingy, the fvtt development space does feel like the right spot to amalgamate these modules into more comprehensive tools.
more interested from the perspective of "a chrome extension might work even if the foundry UI fails to initialize"
didn't even consider that point, also love it
How often will the UI fail to that degree, but still load module scripts?
It's never happened to me that the UI is broken and scripts still load
I think the goal is that this will not be a module, so it would not go through the same flow
^
as a chrome extension it wouldn't be a module at all yeah
Ah 🤔
@arcanist this would be implemented using something similar to the PWA thingy you did, uses a similar manifest and shit
Oh, yeah. You realize that means that users must manually copy the service worker into their
Data
folder since modules can't download JavaScript there
I originally tried putting the service worker in the module folder, but that doesn't work because it's scoped to sub-directorieshmm
Does it require a service worker?
as far as I understand (with like a five minute investment of time two days ago) yes
Chrome Developers
chrome.devtools.panels - Chrome Developers
Build the next generation of web experiences.