pratyushtiwary / devty

Developer Utilities & Tools
https://devty.vercel.app
MIT License
9 stars 6 forks source link

[Module Addition] DNS Lookup #35

Open pratyushtiwary opened 1 year ago

pratyushtiwary commented 1 year ago

The module should be able to perform DNS lookup for selected type. Please use BlamUI's Card Component to display the results.

Resources:

Note: When using fetch make sure to add accept: application/dns-json in headers.

sricharanandra commented 1 year ago

Hey! I've set up a new folder for this and added the config.json and DnsLookup.vue. How does it get added to the All Modules section in the website? Do I add the route to router/index.ts and use import from at the top of the file to display the new module?

pratyushtiwary commented 1 year ago

It automatically gets added you don't have to do anything, there is a vite plugin that does that, try running npm run dev and you'll see your module if everything's done correctly. If you are unable to see your module look at the terminal, the plugin might have reported why it didn't add your module.

sricharanandra commented 1 year ago

Module is being displayed but there seems to be an issue in the input sections. (See second image). I need help with the taking input part of the code as I don't understand the import from components completely. Help in continuing and refactoring my current code to meld with the input parameters to finish this module would be appreciated or if anyone would like to continue from where I left off. I'm at a loss. image image

pratyushtiwary commented 1 year ago

You can check this module out for reference HashGenerator

Also can you please share the GitHub link to the repo where you've pushed these changes?

I won't be able to help today but tomorrow I can try running it locally and let you know where you went wrong.

Feel free to message me on discord, username: pratyushtiwary

Also in the import statements, the @ part is an alias for src and since components are inside src it turns out to be @/components.

sricharanandra commented 1 year ago

I've managed to get a text box in. Chances are I've left out some very obvious stuff in the code.

https://github.com/sricharanandra/devty/tree/feat/adding-DNS-Lookup-Module