Skip to content
forked from tuchandra/rescue

Easy to input Pokémon Mystery Dungeon Rescue Team DX codes!

Notifications You must be signed in to change notification settings

ronikirla/rescue

 
 

Repository files navigation

Pokemon Mystery Dungeon Rescue Team: DX Password Tool

Simplified codes

This fork of the password generator is optimized to generate as easy to type codes as possible. This is accomplished by stabilizing the cipher and filling irrelevant data fields with bytes that turn into consecutive repeated characters in the end result. Currently, an active deployment can be found here. Original contents of readme are below.

Development

tl;dr: Clone the repo and run npm install. This should be enough, but this is my first time developing with NPM, so who knows. You'll also need to comment out the line <base href="/rescue/"> in index.html.

Details: the main complexity in development comes from this app using Tailwind CSS, which is a utility-based CSS framework that acts as a post-CSS processor. You'll notice in the HTML that most elements have a lot of inline classes. These are Tailwind utility classes that style everything consistently without me having to write a ton of CSS.

In index.html, you'll need to comment out the line <base href="/rescue/">. This, I believe, is due to Github Pages: when deployed, everything is relative to tusharc.dev/rescue, but locally, everything is just relative to the repo root. So, for instance, the relative links in css/tailwind.css will be broken if this isn't set correctly. (I'm still not totally sure if this is correct.)

Finally if you make changes to the HTML files, the page will automatically reload with the refreshed styles if you're using something like live-server (which I am). You don't have to do this; you can use python -m http.server if you want. Note that if you make changes to Tailwind config or utilities (i.e., anything in tailwind.config.js), you'll need to rebuild the generated Tailwind CSS file using npm run build.

Deployment

This is a static site deployed via Github Pages, hosted at tusharc.dev/rescue (where tusharc.dev is my normal Github Pages site hosted in the tuchandra.github.io repo).

For deployment, we want to strip out the unnecessary Tailwind classes (see docs). We have to build the CSS for production using npm run prod, which uses (under the hood) PurgeCSS to get rid of unused classes.

Credits

This app would not be possible without:

About

Easy to input Pokémon Mystery Dungeon Rescue Team DX codes!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 34.8%
  • Python 30.3%
  • CSS 18.6%
  • HTML 16.3%