Open pratyushtiwary opened 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?
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.
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.
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
.
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
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 addaccept: application/dns-json
in headers.