Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
3e87ba0
refactor to use classes and menu
devingearing May 19, 2024
0e685cb
realtime delete for allies works now
devingearing May 19, 2024
5565b60
cleanup and showEnemies fix
devingearing May 19, 2024
865d836
abilities fix
devingearing May 19, 2024
a6ba524
rebasing p1
devingearing May 19, 2024
d93676b
fixed slider on chrome
devingearing May 19, 2024
54f9d60
tooltip fix
devingearing May 19, 2024
31b9123
added minified version & fusion names
devingearing May 20, 2024
15cc254
fusion sprite now work
devingearing May 20, 2024
db9425a
testing fireFox
devingearing May 20, 2024
7aa0c34
minor cleanup
devingearing May 20, 2024
a047b90
Implemented a sidebar that shows all pokemon cards.
Eruyome May 24, 2024
c9398e0
Implemented and fixed sidebar scaling (via options menu)
Eruyome May 24, 2024
ab48225
Added css animations for super-effective and super-resistand types in…
Eruyome May 24, 2024
69aef86
Reworked the sidebar html and added a bottom panel (shows weather, em…
Eruyome May 25, 2024
85eff04
Small css fixes.
Eruyome May 25, 2024
1131af3
Quick work-around for some variant pokemon causing issues (alola, gal…
Eruyome May 25, 2024
10bf91a
Small sidebar style changes.
Eruyome May 26, 2024
2134e7b
More sidebar improvements.
Eruyome May 26, 2024
91f6aa6
Added move set data to pokemon array; added some more information to …
Eruyome May 27, 2024
2712e7a
Small sidebar, bottom panel fixes, started adding movesets to the sid…
Eruyome May 27, 2024
832eeab
Merged ProSnows (devingearing) type effectiveness changes and fusion …
Eruyome May 27, 2024
fdc7108
Fixed a merging issue.
Eruyome May 27, 2024
558247e
Fixed the fixVariantPokemonNames() function.
Eruyome May 27, 2024
45f86b4
Added uiController util class, allows binding a function to mouseclic…
Eruyome May 28, 2024
db67f75
Finished sidebar button to switch between ally pokemon ivs and movesets.
Eruyome May 29, 2024
fd6f6f7
Ran most code through eslint and refactored/fixed accordingly.
Eruyome May 29, 2024
25f9c3a
Added yet another type effectiveness display for the side, a lot more…
Eruyome May 30, 2024
99ef3f5
Added compact type display as an option; fixed one of it's styling is…
Eruyome May 30, 2024
693719d
Restructured project, added linting, formatting and pre-commit hooks.
Eruyome May 30, 2024
a5d8ede
Added fallbacks for fetching pokemondata from pokeapi; needs a better…
Eruyome May 31, 2024
4d0e2fc
Added text fallback for missing poke icons; added battle modfiers inf…
Eruyome May 31, 2024
538d207
Added webpack, babel/preset-env, cody.webpack-plugin and rimraf to th…
Eruyome Jun 1, 2024
8d8e37b
Fixed some firefox support issues (still doesn't work). Added a devel…
Eruyome Jun 1, 2024
64b8ff5
Added a lazy fallback to get more succesful pokeapi calls; fixed some…
Eruyome Jun 1, 2024
9646a1f
Removed all pokeapi calls in favour of using included data files; add…
Eruyome Jun 2, 2024
658061c
Fixed some issues with matching pokemon to their corrects ids; added …
Eruyome Jun 3, 2024
c8e718d
small fixes
Eruyome Jun 3, 2024
e100f8b
Added lit-html to the project; reworked all sidebar and bottompanel h…
Eruyome Jun 6, 2024
4dbcf1d
Improved lit-html implementation (creating/updating sidebar, bottompa…
Eruyome Jun 6, 2024
dee9eb8
Fixed some issue with drawing pokemon icons; refactored the getPokemo…
Eruyome Jun 6, 2024
cafb8af
refactored the rest of the overlay code (pokemonc ards) to use lit-ht…
Eruyome Jun 8, 2024
26b3dad
Refactored the running-status to use lit-html; renamed it to extensio…
Eruyome Jun 8, 2024
f42ab7c
Merge branch 'feature-dev' into main.
Eruyome Jun 9, 2024
80e06c5
Merge pull request #3 from Eruyome/feature-dev
Eruyome Jun 9, 2024
4e3158b
Added super-dmg/super-resist animation to card types; more refactorin…
Eruyome Jun 9, 2024
5de1fd0
added and updated more jsdoc (documentation)
Eruyome Jun 9, 2024
a5ad936
fixed the pokemonlist fetch script and data file (fetched basepokemon…
Eruyome Jun 9, 2024
6b42287
added bottom panel scaling; added more jsdoc
Eruyome Jun 10, 2024
69173a5
added jsdoc to the project (npm), with a run script; output will be g…
Eruyome Jun 10, 2024
3e1ff80
fixed a newly introduced issue with pokemon name and basename being u…
Eruyome Jun 10, 2024
534c5d6
changed UtilsClass and how it's being initialized to make it work on …
Eruyome Jun 11, 2024
6d4a75c
fixed extension settings listener never being called
Eruyome Jun 11, 2024
a6d4161
fixed a font-issue (hopefully)
Eruyome Jun 11, 2024
b846266
fixed some firefox issues; added error handling, improved styling; ad…
Eruyome Jun 12, 2024
d650204
added breakpoint options to dynamically handle too many pokemon being…
Eruyome Jun 14, 2024
651c9ca
fixed pokemon cards not being shown/hidden when using the correspondi…
Eruyome Jun 17, 2024
2edf00d
added opactiy option to settings menu; removed the slider from the ca…
Eruyome Jun 17, 2024
07b5948
fixed an issue with fusion pokemon types; improved overlay card initi…
Eruyome Jun 19, 2024
734b437
updated fetch-script and pokemonList to fix variants (mostly regional…
Eruyome Jun 20, 2024
c90c609
addition to last commit
Eruyome Jun 20, 2024
ea79801
fixed an issue where some pokemon (regional) needed to convert their …
Eruyome Jun 22, 2024
7374967
fixed another pokemonlist data issue for regional variants; added IV …
Eruyome Jun 22, 2024
66a7c7c
fixed all kinds of eslint errors and warnings
Eruyome Jun 25, 2024
9eda760
improved drawing pokemon icons to canvas
Eruyome Jun 26, 2024
59fb948
changed some of the type icons; added foil/holo effects for rare poke…
Eruyome Jun 28, 2024
fa3eeea
remove the unused code for fetching pokemon infinite fusion images; i…
Eruyome Jun 29, 2024
bc66c81
changed pokemon fetch script/data to handle sprite urls differently a…
Eruyome Jun 30, 2024
3173494
added different holo foil effects for different rarities, added those…
Eruyome Jun 30, 2024
6c7caca
added pokemon info to sidebar + cards (gen, rarity, paradox, regional…
Eruyome Jul 2, 2024
4ea295e
fixed hisui pokemon having the wrong generation assigned
Eruyome Jul 3, 2024
bf906bf
reworked sizing and scaling of sidebar, bottompanel, pokemon cards.
Eruyome Jul 5, 2024
9ecef43
added pokemon nature details; reworked some of the sidebar styling; a…
Eruyome Jul 6, 2024
329841a
more style changes to make the sidebar and cards more cohesive; added…
Eruyome Jul 7, 2024
8ec1975
added a reminder icon (open settings menu); added an option to change…
Eruyome Jul 9, 2024
bf9da18
added optional type effectiveness display for the minified overlay card
Eruyome Jul 14, 2024
ce45612
fixed optional type effectiveness on minified cards not being shown o…
Eruyome Jul 15, 2024
491ac90
added overlay card position saving and loading (to and from local sto…
Eruyome Jul 16, 2024
e59520f
fixed some accidental scaling; added more scaling on game app resize;…
Eruyome Jul 16, 2024
249b583
fixed layout being broken by the new Terms and Conditions links; adde…
Eruyome Jul 30, 2024
6a5a3ce
Merge pull request #4 from Eruyome/feature-dev
Eruyome Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
manifest.json
*.log
*.orig
node_modules/*
jsdoc-out/*
fetch_scripts/node_modules/*
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# .husky/pre-commit
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

npm test
# npx lint-staged

# exit 1 # enable this line to purposely fail the commit (testing)
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
README.md
package.json
.gitignore
src/libs/*
22 changes: 22 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"bracketSameLine": false,
"printWidth": 80,
"proseWrap": "always",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": false,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
6 changes: 6 additions & 0 deletions .stylelint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('stylelint').Config} */
export default {
rules: {
"color-no-invalid-hex": true
}
};
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,25 @@ Rogue Dex is a browser extension that connects to Pokerogue and uses PokeAPI to
## Installation
- Clone this repository to your local machine.
- Load the extension in developer mode in your browser.
- `Load unpacked` -> select `src` folder of this repository if using development code, or `dist` if using distribution code (if available).
- Launch Pokerogue and start playing to see Pokemon data in action.

## Usage
- Start a new game or load a saved game in Pokerogue.
- The extension will display Pokemon information for each round.
- Use the data to strategize your gameplay effectively.

## Development
- After cloning the repository, run `npm install` in a console/terminal (after navigating to the repo directory).
- Husky will run pre-commit hooks if enabled, read more: https://typicode.github.io/husky/how-to.html, currently disabled.
- `Package.json` has a bunch of scripts to lint and format code, css and html files. These can be run by a pre-commit hook or manually, for example `npm run <script name>`.
- Eslint: for linting javascript code, config file in root dir.
- Stylelint: for linting stylesheets, config file in root dir.
- Prettier: for beautifying / formatting js, css and html, config file in root dir.
- Development files should be in `src` directory.
- Distribution code and zip files can be created with the `npm run package` script, output will be in the `dist` directory. This includes file minifying.
- `npm run build-test` can be used to build the dist files while skipping some processes (terser, babel).

## Contribution
Feel free to contribute to this project by forking the repository, making changes, and submitting pull requests.

Expand Down
Binary file removed RogueDex.png
Binary file not shown.
Loading