-
-
- {version}{' '}
-
-
-
-
- {seePrevious &&
- tail(Object.keys(releaseNotes).reverse()).map((key) => {
- return (
-
- );
- })}
-
+ return (
+
+ );
}
diff --git a/src/img/gloria.jpg b/src/img/gloria.jpg
new file mode 100644
index 00000000..2b5fcfa1
Binary files /dev/null and b/src/img/gloria.jpg differ
diff --git a/src/index.tsx b/src/index.tsx
index 183058aa..fd7c72d2 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -83,6 +83,7 @@ injectGlobal`
.mb-2 { margin-bottom: 0.5rem; }
.cursor-pointer { cursor: pointer; }
.inline-flex { display: inline-flex !important; }
+ .full-width { width: 100%; }
`;
diff --git a/src/parsers/worker.ts b/src/parsers/worker.ts
index 7bdece64..bcc8bb0c 100644
--- a/src/parsers/worker.ts
+++ b/src/parsers/worker.ts
@@ -36,6 +36,5 @@ self.onmessage = async ({ data: { save, selectedGame, boxMappings } }: MessageDa
result.pokemon = result.pokemon.filter((poke) => poke.species);
console.log('parser', result);
- // @ts-expect-error actually valid
self.postMessage(result);
};
diff --git a/src/utils/gameOfOriginToColor.ts b/src/utils/gameOfOriginToColor.ts
index f5f56d62..061865d8 100644
--- a/src/utils/gameOfOriginToColor.ts
+++ b/src/utils/gameOfOriginToColor.ts
@@ -35,12 +35,12 @@ export const gameOfOriginToColor = (game: Game) => {
'Ultra Moon': '#ac17ed',
Colosseum: '#dfe0d2',
'XD Gale of Darkness': '#39104f',
- // tslint:disable-next-line:quotemark
'Let\'s Go Eevee': '#d1b28c',
- // tslint:disable-next-line:quotemark
'Let\'s Go Pikachu': '#ede087',
Sword: '#48A9A6',
Shield: '#C1474D',
+ 'Brilliant Diamond': '#408ed6',
+ 'Shining Pearl': '#ed5880'
};
return gameToColor[game] || '';
diff --git a/src/utils/generateReleaseNotes.ts b/src/utils/generateReleaseNotes.ts
index d4dad4c1..0feb5275 100644
--- a/src/utils/generateReleaseNotes.ts
+++ b/src/utils/generateReleaseNotes.ts
@@ -837,4 +837,12 @@ Thank you!
## Known Issues
- Download Image may not always work. This will depend on the browser's policies for requesting images from a different domain inside of an HTML canvas.
`,
+ '1.9.1': `
+## Fixes
+- Fixed design of readonly inputs in Pokémon Editor
+- Fixed some incorrect nuzlocke data encoding in bug
+
+## Known Issues
+- Download Image may not always work. This will depend on the browser's policies for requesting images from a different domain inside of an HTML canvas.
+`
};
diff --git a/src/utils/getBadges.ts b/src/utils/getBadges.ts
index 0c8e0ffa..808533df 100644
--- a/src/utils/getBadges.ts
+++ b/src/utils/getBadges.ts
@@ -70,7 +70,7 @@ export function getBadges(name: Game): Badge[] {
];
}
- if (name === 'Diamond' || name === 'Pearl' || name === 'Platinum') {
+ if (name === 'Diamond' || name === 'Pearl' || name === 'Platinum' || name === 'Brilliant Diamond' || name === 'Shining Pearl') {
return [
{ name: 'Coal Badge', image: 'coal-badge' },
{ name: 'Forest Badge', image: 'forest-badge' },
diff --git a/src/utils/getGameGeneration.ts b/src/utils/getGameGeneration.ts
index 67766955..946cc21f 100644
--- a/src/utils/getGameGeneration.ts
+++ b/src/utils/getGameGeneration.ts
@@ -36,7 +36,7 @@ export const getGameGeneration = (game: Game): Generation => {
'Let\'s Go Eevee',
'Let\'s Go Pikachu',
];
- const Gen8: Game[] = ['Sword', 'Shield'];
+ const Gen8: Game[] = ['Sword', 'Shield', 'Brilliant Diamond', 'Shining Pearl'];
if (Gen1.includes(game)) return Generation.Gen1;
if (Gen2.includes(game)) return Generation.Gen2;
diff --git a/src/utils/getGameRegion.ts b/src/utils/getGameRegion.ts
index 40677b87..f33f569a 100644
--- a/src/utils/getGameRegion.ts
+++ b/src/utils/getGameRegion.ts
@@ -27,7 +27,7 @@ export const getGameRegion = (game: Game): Region => {
];
const johto: Game[] = ['Gold', 'Silver', 'Crystal', 'HeartGold', 'SoulSilver'];
const hoenn: Game[] = ['Ruby', 'Sapphire', 'OmegaRuby', 'AlphaSapphire', 'Emerald'];
- const sinnoh: Game[] = ['Diamond', 'Pearl', 'Platinum'];
+ const sinnoh: Game[] = ['Diamond', 'Pearl', 'Platinum', 'Brilliant Diamond', 'Shining Pearl'];
const unova: Game[] = ['Black', 'Black 2', 'White', 'White 2'];
const kalos: Game[] = ['X', 'Y'];
const alola: Game[] = ['Sun', 'Ultra Sun', 'Ultra Moon', 'Moon'];
diff --git a/src/utils/listOfGames.ts b/src/utils/listOfGames.ts
index 092f1e05..f9946527 100644
--- a/src/utils/listOfGames.ts
+++ b/src/utils/listOfGames.ts
@@ -34,7 +34,9 @@ export type Game =
| 'Let\'s Go Eevee'
| 'Let\'s Go Pikachu'
| 'Sword'
- | 'Shield';
+ | 'Shield'
+ | 'Brilliant Diamond'
+ | 'Shining Pearl';
export const listOfGames: Game[] = [
'None',
@@ -73,5 +75,7 @@ export const listOfGames: Game[] = [
'Let\'s Go Pikachu',
'Sword',
'Shield',
+ 'Brilliant Diamond',
+ 'Shining Pearl'
//'Custom...',
];
diff --git a/webpack.config.ts b/webpack.config.ts
index ea6a2f56..6ccb4026 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -5,7 +5,6 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const ReactLoadablePlugin = require('react-loadable/webpack').ReactLoadablePlugin;
const HTMLWebpackPlugin = require('html-webpack-plugin');
-// const WorkboxPlugin = require('workbox-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
@@ -15,9 +14,6 @@ const Dotenv = require('dotenv-webpack');
// @TODO: do not this lol
const isProduction = (process.env.NODE_ENV || 'development') === 'production';
-// console.log(path.resolve(__dirname, 'src/index.tsx'));
-
-// tslint:disable-next-line:no-default-export
module.exports = {
entry: path.resolve(__dirname, 'src/index.tsx'),
output: {
@@ -38,7 +34,6 @@ module.exports = {
},
devServer: {
contentBase: 'dist',
- // inline: true,
host: 'localhost',
port: 8080,
noInfo: true,
@@ -59,12 +54,6 @@ module.exports = {
splitChunks: {
chunks: 'all',
minSize: 10000,
- cacheGroups: {
- // extractPopupStyles: {
- // name: 'style',
- // chunks: chunk => chunk.name === 'popup',
- // },
- },
},
},
module: {
@@ -107,10 +96,6 @@ module.exports = {
module: false,
},
},
- // {
- // test: require.resolve('@blueprintjs/core'),
- // loader: 'imports-loader?this=>window,global=>{window: this}',
- // },
],
},
plugins: [
@@ -137,25 +122,8 @@ module.exports = {
}),
new Serve({ static: path.resolve(__dirname, 'dist'), host: 'localhost', port: 8080 })
-
- // new ReactLoadablePlugin({
- // filename: './dist/react-lodable.json',
- // }),
-
- // new WorkboxPlugin.GenerateSW({
- // clientsClaim: true,
- // skipWaiting: true,
- // }),
-
- // new OfflinePlugin({
- // excludes: ['**/*.js', '*.js']
- // })
],
externals: {
fs: {},
},
- // watch: true,
- // node: {
- // process: false,
- // }
};