-
Notifications
You must be signed in to change notification settings - Fork 2
added HeroDevelopmentPage and HeroMenuAsDropdown #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
cf20711
added HeroDevelopmentPage and HeroMenuAsDropdown
juhaj77 168d0ce
BarChart stories and test and HeroDevelopmentPage index error fixed
juhaj77 4d9c526
added title
juhaj77 255655f
HeroMenu in sidebar
juhaj77 a387ec5
green HeroMenu border
juhaj77 5da9f2f
group name color to --inverted-primary-color as in dropdown
juhaj77 f9f1d8b
fixed invalid rarity class value
juhaj77 39c0a17
added collapse/expand animation
juhaj77 fc73870
LayoutWithSidebar collapse
juhaj77 e0b0cb7
bug fixed
juhaj77 ace1c1b
Remove unnecessary x-scrollbar in collapsed state
juhaj77 00a1283
Merge branch 'dev' into juha/feature/280-add-hero-development-page
leolabdev f4a32f6
Merge branch 'dev' into juha/feature/280-add-hero-development-page
leolabdev 92857b1
set active color and cursor pointer
juhaj77 1c5ccf2
better dropdown width setting
juhaj77 71886e3
padding for header
juhaj77 a9304db
arrow color and menu width adjusting
juhaj77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
262 changes: 262 additions & 0 deletions
262
frontend-next-migration/src/entities/Hero/model/stats/statsDataV2.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,262 @@ | ||
| import { Stat } from '../../types/hero'; | ||
|
|
||
| export const color = { | ||
| resistance: 'rgb(153,0,255)', | ||
| hp: 'rgb(0,255,0)', | ||
| size: 'rgb(224,102,102)', | ||
| impactForce: 'rgb(255,153,0)', | ||
| speed: 'rgb(0,255,255)', | ||
| }; | ||
| export const statValue = { | ||
| resistance: [ | ||
| 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, | ||
| 525, 550, 575, 600, 625, | ||
| ], | ||
| hp: [ | ||
| 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, | ||
| 525, 550, 575, 600, 625, | ||
| ], | ||
| size: [4, 4, 4, 6, 6, 6, 8, 8, 8, 8, 10, 10, 10, 10, 12, 12, 12, 12, 14, 14, 14, 16, 16, 16], | ||
| impactForce: [ | ||
| 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, | ||
| 200, 210, 220, 230, | ||
| ], | ||
| speed: [4, 4, 4, 6, 6, 6, 8, 8, 8, 8, 10, 10, 10, 10, 12, 12, 12, 12, 14, 14, 14, 16, 16, 16], | ||
| }; | ||
|
|
||
| type RarityClass = { | ||
| [key: number]: string; | ||
| }; | ||
|
|
||
| export const rarityClassNames: RarityClass = { | ||
| 1: 'veryStrongSkill', | ||
| 3: 'strongSkill', | ||
| 5: 'fairlyStrongSkill', | ||
| 6: 'intermediate', | ||
| 7: 'ratherWeakSkill', | ||
| 8: 'weakSkill', | ||
| 10: 'veryWeakSkill', | ||
| }; | ||
|
|
||
| type NamedStatArray = { | ||
| [key: string]: Stat[]; | ||
| }; | ||
|
|
||
| export const statData: NamedStatArray = { | ||
| HANNU_HODARI: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 5, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 2, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 12, | ||
| rarityClass: 1, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 8, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 8, | ||
| rarityClass: 3, | ||
| }, | ||
| ], | ||
| PIRATE: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 8, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 1, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 10, | ||
| rarityClass: 1, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 9, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 8, | ||
| rarityClass: 3, | ||
| }, | ||
| ], | ||
| SOUL_SISTERS: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 11, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 2, | ||
| rarityClass: 8, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 12, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 2, | ||
| rarityClass: 10, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 2, | ||
| rarityClass: 10, | ||
| }, | ||
| ], | ||
| SLEEPER: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 12, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 3, | ||
| rarityClass: 8, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 10, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 1, | ||
| rarityClass: 10, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 4, | ||
| rarityClass: 10, | ||
| }, | ||
| ], | ||
| GRAFFITI_ARTIST: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 10, | ||
| rarityClass: 5, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 3, | ||
| rarityClass: 7, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 8, | ||
| rarityClass: 7, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 7, | ||
| rarityClass: 7, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 4, | ||
| rarityClass: 5, | ||
| }, | ||
| ], | ||
| RESEARCHER: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 3, | ||
| rarityClass: 7, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 8, | ||
| rarityClass: 5, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 8, | ||
| rarityClass: 8, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 10, | ||
| rarityClass: 10, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 6, | ||
| rarityClass: 7, | ||
| }, | ||
| ], | ||
| CONMAN: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 5, | ||
| rarityClass: 8, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 2, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 6, | ||
| rarityClass: 4, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 7, | ||
| rarityClass: 7, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 10, | ||
| rarityClass: 8, | ||
| }, | ||
| ], | ||
| FATE_PRIEST: [ | ||
| { | ||
| name: 'resistance', | ||
| defaultLevel: 10, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'hp', | ||
| defaultLevel: 10, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'size', | ||
| defaultLevel: 10, | ||
| rarityClass: 1, | ||
| }, | ||
| { | ||
| name: 'impactForce', | ||
| defaultLevel: 10, | ||
| rarityClass: 3, | ||
| }, | ||
| { | ||
| name: 'speed', | ||
| defaultLevel: 10, | ||
| rarityClass: 3, | ||
| }, | ||
| ], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be "@/entities/Hero" according to https://feature-sliced.design/