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
Emma
Emma17mo ago
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?
ネア・D・キャンベル
The one that stands out the most is NetworkContainer.tsx
Emma
Emma17mo ago
anything with api routes?
ネア・D・キャンベル
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 🥹
Emma
Emma17mo ago
sure, my name on sourcexchange is "dion den engelsen"
ネア・D・キャンベル
I can't find your username
No description
ネア・D・キャンベル
I have already added
Emma
Emma17mo ago
uhh weird try searching for prplwtf then
ネア・D・キャンベル
Could you please check?
Emma
Emma17mo ago
Well I see that you are kinda modifying createServerAllocation, which might make porting this extension over pretty difficult if not impossible.
ネア・D・キャンベル
Do you mean creating an independent one? Umm I could do it, I would have to experiment haha
Emma
Emma17mo ago
Maybe, you'd have to modify some parts or find how to completely create a new network tab.
ネア・D・キャンベル
Wouldn't it be simpler to create a component that handles a button and call it in NetworkContainer?
Emma
Emma17mo ago
Honestly yeah, you'd have to hide the original network container's button with css though.
ネア・D・キャンベル
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?
Emma
Emma17mo ago
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
ネア・D・キャンベル
Interesting, and what do you recommend I do?
Emma
Emma17mo ago
hide the current "create allocation" button and description with css and add your own through the Components.yml's AfterContent property
Emma
Emma17mo ago
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.

Did you find this page helpful?