Skip to content

Commit

Permalink
Update to 7.35 (#48)
Browse files Browse the repository at this point in the history
* feat: Update to 7.35

* fix: Fix breaking msw changes
  • Loading branch information
dricholm authored Dec 30, 2023
1 parent e1bface commit e5277af
Show file tree
Hide file tree
Showing 24 changed files with 9,662 additions and 9,015 deletions.
6 changes: 1 addition & 5 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import { withReactQuery } from './decorators/react-query';
initialize();

const preview: Preview = {
decorators: [
// @ts-expect-error External dependency error
mswDecorator,
withReactQuery,
],
decorators: [mswDecorator, withReactQuery],
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
Expand Down
56 changes: 37 additions & 19 deletions app/items/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ const ITEMS = [
215, // Shadow amulet
37, // Ghost scepter
1, // Blink dagger
56, // Ring of health
57, // Void stone
],
title: 'Miscellaneous',
},
{
ids: [
56, // Ring of health
57, // Void stone
279, // Ring of tarrasque
1802, // Tiara of Selemene
1125, // Cornucopia
59, // Energy booster
61, // Vitality booster
Expand Down Expand Up @@ -130,7 +132,6 @@ const ITEMS = [
164, // Helm of the Dominator
48, // Travel
247, // Moon shard
635, // Helm of the Overlord
],
title: 'Accessories',
},
Expand All @@ -143,7 +144,7 @@ const ITEMS = [
214, // Tranquil
187, // Medallion
1128, // Pavise
180, // Arcane
180, // Arcane Boots
185, // Drum
79, // Mekansm
269, // Holy locket
Expand All @@ -152,6 +153,7 @@ const ITEMS = [
90, // Pipe
231, // Greaves
931, // Boots of Bearing
1806, // Parasma
],
title: 'Support',
},
Expand Down Expand Up @@ -182,7 +184,6 @@ const ITEMS = [
127, // Blade mail
256, // Aeon
129, // Soul booster
692, // Eternal shroud
242, // Crimson guard
226, // Lotus orb
116, // BKB
Expand All @@ -193,6 +194,8 @@ const ITEMS = [
114, // Heart
112, // AC
121, // Bloodstone
635, // Helm of the Overlord
692, // Eternal shroud
],
title: 'Armor',
},
Expand All @@ -217,6 +220,7 @@ const ITEMS = [
208, // Abyssal
911, // Revenant's Brooch
1097, // Disperser
1808, // Khanda
],
title: 'Weapons',
},
Expand Down Expand Up @@ -251,21 +255,22 @@ const ITEMS = [
349, // Arcane ring
589, // Fairy's trinket
838, // Pig Pole
840, // Tumbler's Toy
1157, // Safety bubble
945, // Seeds of serenity
946, // Lance of pursuit
947, // Occult bracelet
2097, // Duelist gloves
355, // Broom handle
305, // Royal jelly
375, // Faded Broach
1124, // Spark of courage
],
title: 'Neutral tier 1',
},
{
ids: [
212, // Aquila
358, // Dragon scale
1158, // Whisper of the dread
306, // Pupil's gift
331, // Vambrace
288, // Grove bow
Expand All @@ -276,39 +281,42 @@ const ITEMS = [
990, // Eye of the Vizier
297, // Vampire fangs
2193, // Gossamer cape
1167, // Light collector
],
title: 'Neutral tier 2',
},
{
ids: [
289, // Quickening charm
950, // Defiant shell
376, // Paladin sword
1159, // Nemesis curse
2096, // Vindicator's axe
2190, // Dandelion amulet
381, // Titan Sliver
298, // Craggy coat
361, // Enchanted quiver
573, // Elven tunic
574, // Cloak of flames
676, // Ceremonial robe
675, // Psychic headband
949, // Ogre Seal Totem
1803, // Doubloon
],
title: 'Neutral tier 3',
},
{
ids: [
300, // Timeless relic
311, // Spell prism
825, // Ascetic's Cap
825, // Ascetic's cap
1160, // Aviana's feather
362, // Ninja gear
336, // Telescope
571, // Trickster
585, // Stormcrafter
638, // Penta-edged sword
1156, // Ancient guardian
364, // Havoc hammer
309, // Mind breaker
2192, // Martyr's plate
1168, // Rattlecage
],
title: 'Neutral tier 4',
},
Expand All @@ -320,17 +328,23 @@ const ITEMS = [
301, // Mirror shield
366, // Apex
370, // Book of the dead
371, // Fallen sky
829, // Arcanist's Armor
372, // Pirate hat
374, // Ex machina
678, // Giant's ring
1161, // Unwavering condition
677, // Book of shadows
365, // Magic lamp
],
title: 'Neutral tier 5',
},
{
ids: [117, 33, 260, 271],
ids: [
117,
33,
260,
271,
1804, // Roshan's banner
],
title: 'Roshan',
},
{
Expand All @@ -340,20 +354,20 @@ const ITEMS = [
106, // Necro
131, // Hood
182, // Stout shield
212, // Aquila
239, // Iron talon
257, // Tome
279, // Ring of tarrasque
286, // Flyinc courier
287, // Keen Optic
289, // Quickening charm
293, // Phoenix ash
298, // Craggy coat
299, // Greater faerie fire
302, // Elixir
304, // Ironwood Tree
305, // Royal jelly
307, // Tome of aghanim
308, // Repair kit
310, // Third eye
311, // Spell prism
313, // Fusion rune
325, // Prince's knife
326, // Spider legs
Expand All @@ -367,19 +381,23 @@ const ITEMS = [
359, // Essence Ring
360, // Clumsy net
363, // Illusionist's Cape
365, // Magic lamp
367, // Ballista
368, // Woodland striders
369, // Trident
371, // Fallen sky
374, // Ex machina
377, // Minotaur Horn
379, // Leveller
381, // Titan Sliver
565, // Chipped Vest
577, // Possessed mask
638, // Penta-edged sword
686, // Quicksilver Amulet
828, // Brigand's Blade
834, // Blast Rig
837, // Witchbane
835, // Fae Grenade
840, // Tumbler's Toy
908, // Wraith Pact
1077, // Dagger of Ristul
],
Expand Down
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FC, ReactNode } from 'react';
import Footer from 'src/components/atoms/Footer/Footer';
import Header from 'src/components/atoms/Header/Header';
import 'styles/globals.scss';
import { SpeedInsights } from '@vercel/speed-insights/next';

const RootLayout: FC<{ children: ReactNode }> = ({ children }) => (
<html lang="en">
Expand All @@ -10,6 +11,7 @@ const RootLayout: FC<{ children: ReactNode }> = ({ children }) => (
<main>{children}</main>
<Footer />
<div className="absolute" id="modal" />
<SpeedInsights />
</body>
</html>
);
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/heroes.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('heroes', () => {
cy.findByText(/strength/i);
cy.findByText(/agility/i);
cy.findByText(/intelligence/i);
cy.findByText(/universal/i);

const heroes = Object.values(heroesJson);

Expand Down
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ const path = require('path');

/** @type {import('next').NextConfig} */
module.exports = {
experimental: {
appDir: true,
},
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
Expand Down
Loading

1 comment on commit e5277af

@vercel
Copy link

@vercel vercel bot commented on e5277af Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.