GithubHelp home page GithubHelp logo

diiiazote / next-route-visualizer Goto Github PK

View Code? Open in Web Editor NEW
474.0 2.0 15.0 265 KB

Home Page: https://next-route-visualizer.vercel.app

License: Other

JavaScript 0.31% TypeScript 89.53% CSS 10.16%

next-route-visualizer's People

Contributors

diiiazote avatar rauchg avatar tlarnold10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

next-route-visualizer's Issues

Get the running pathname to get the right application port

Hi @DiiiaZoTe, nice job for this good package to visualize app structure.

There is a small bug about the "Link" field, it always shows port 3000.
If the application launches on another port and the user has not overridden the default value of "baseURL" in the "" component, it will also have port 3000.
In this example, we can see that my application is running on port 3001.
Screenshot 2023-03-13 at 11 38 43

I tried to look around a bit, unfortunately, Next 13 does not allow access to the "pathname" on the server side. So maybe "" component which is client side could retrieve the pathname if "baseURL" is not set.

Supporting Next.js 12 Routes

Hi, I think this project is very cool! Is there any reason why you're not supporting the visualizer for pages/ directory? I think this feature can be very beneficial for projects that haven't migrated to the latest version yet.

Hide component files

Nice project ๐ŸŽ‰

One thing though is that there should be a checkbox or something like that to hide folder/files that are not route relevant.

As you can see here, i have a folder named fonts which is just a file with some const. Right now it shows up in the visualizer as a route, which i guess it should not?
image

Edit: Just saw that you don't intent to resolve issues. Fully understand that. I will let this issue stay here, maybe someone will resolve it.

Create a contributing guide

Would be great if there were a contribution guide of some kind. Not sure if that is needed at this point, but it might get more people interested in contributing as well. Just a through, and I would be open to assisting if you need it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.