Import my Addon
@Emma Excuse me for my mention, I am really new to what blueprint is, currently I have my addon (https://www.sourcexchange.net/products/custom-allocations) and I would like to import it to blueprint, maybe you could guide me since from what I see the documentation is unfinished
20 Replies
For this kind of add-on, it might be harder to move to Blueprint because it modifies existing pages. Could you tell me what files it modifies?
The one that stands out the most is NetworkContainer.tsx
anything with api routes?
In the routers I do not modify the Controllers and the API that is in resource, do you think I can add the product to your account and confirm if it is possible to make it compatible with blueprint 🥹
sure, my name on sourcexchange is "dion den engelsen"
I can't find your username

I have already added
uhh weird
try searching for prplwtf then

Could you please check?
Well I see that you are kinda modifying
createServerAllocation
, which might make porting this extension over pretty difficult if not impossible.Do you mean creating an independent one?
Umm I could do it, I would have to experiment haha
Maybe, you'd have to modify some parts or find how to completely create a new network tab.
Wouldn't it be simpler to create a component that handles a button and call it in NetworkContainer?
Honestly yeah, you'd have to hide the original network container's button with css though.
and a question when blueprint installs an addon when editing the router.ts, is there a way to delete the original NetworkContainer and replace it?
not really at the moment, as it might add conflicts
just a quick note: routes that have their name field empty in Blueprint don't get shown in the subnav
Interesting, and what do you recommend I do?
hide the current "create allocation" button and description with css and add your own through the Components.yml's AfterContent property
it's documentation is visible on https://blueprint.zip/docs
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.