-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.0.0] Initial Full Release and Typescript Move (#16)
# [1.0.0] Initial Full Release and Typescript Move ## Additions - Added `Undo` action to delete Unit / Profile - Added `Rerun` button to `Simulations` screen ## UI - Changed primary colour in the `light theme` to better match the `dark theme` one - Renamed `Advanced Stats` -> `Simulations` to better reflect that they are sample probabilities - Added Return button and # simulations to `Simulations` Screen - Added an info dialog to the `Simulations` screen explaining the 3 tabs - Renamed `Single` tab -> `Discrete` - Renamed `Tables` tab -> `Metrics` - Added `Info` page that gives a small brief on the tools goal - Added `Stats` and `Info` to the Bottom Navigation on Apps - Added AppBar to PDF page - Lighten info notification in `dark mode` for better contrast ## Fixes - Fix table scrolling in `Simulations` screen when on mobile ## Architecture - Moved the entire codebase from `Javascript` over to `Typescript`
- Loading branch information
Showing
415 changed files
with
8,539 additions
and
8,031 deletions.
There are no files selected for viewing
This file contains 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 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,3 @@ | ||
**/node_modules/** | ||
**/build/** | ||
**/serviceWorker.ts |
This file contains 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 |
---|---|---|
@@ -1,32 +1,76 @@ | ||
module.exports = { | ||
extends: 'airbnb', | ||
plugins: [ | ||
"react-hooks" | ||
], | ||
extends: ['airbnb', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
root: true, | ||
rules: { | ||
'react/jsx-props-no-spreading': ['off'], | ||
'react/jsx-filename-extension': [1, { | ||
extensions: ['.js', '.jsx'] | ||
}], | ||
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }], | ||
'react/jsx-wrap-multilines': ['off'], | ||
'jsx-a11y/label-has-associated-control': ['off'], | ||
'camelcase': ['off'], | ||
'no-shadow': ['off'], | ||
'function-paren-newline': ['error', 'consistent'], | ||
'react/jsx-props-no-spreading': ['off'], | ||
'@typescript-eslint/no-empty-interface': ['off'], | ||
'jsx-a11y/click-events-have-key-events': ['off'], | ||
'jsx-a11y/interactive-supports-focus': ['off'], | ||
'react-hooks/exhaustive-deps': [2], | ||
'react/prop-types': ['off'], | ||
'react/jsx-fragments': ['off'], | ||
'prettier/prettier': 'warn', | ||
'react/static-property-placement': ['off'], | ||
'import/prefer-default-export': ['off'], | ||
'no-shadow': ['off'], | ||
'class-methods-use-this': ['off'], | ||
'react/prop-types': ['off'] | ||
'import/no-cycle': ['off'], | ||
'lines-between-class-members': ['off'], | ||
'import/extensions': ['off'], | ||
'@typescript-eslint/interface-name-prefix': ['off'], | ||
'@typescript-eslint/ban-ts-ignore': ['off'], | ||
'@typescript-eslint/camelcase': ['off'], | ||
'@typescript-eslint/no-explicit-any': ['off'], | ||
'@typescript-eslint/explicit-function-return-type': ['off'], | ||
'no-underscore-dangle': ['off'], | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: ['.storybook/**', '**/*.stories.*', '**/*.story.*'], | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['server.ts'], | ||
rules: { | ||
'no-console': ['off'], | ||
}, | ||
}, | ||
{ | ||
files: ['**/store/**'], | ||
rules: { | ||
'no-param-reassign': ['off'], | ||
}, | ||
}, | ||
], | ||
settings: { | ||
"import/resolver": { | ||
"node": { | ||
"moduleDirectory": ["node_modules", "src/"] | ||
} | ||
} | ||
react: { version: 'latest' }, | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}, | ||
typescript: { | ||
directory: ['./tsconfig.json', './client/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: true, | ||
mocha: true, | ||
jest: true, | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
} | ||
} | ||
}; |
This file contains 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 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,9 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"printWidth": 110, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"parser": "typescript" | ||
} |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,18 @@ | ||
export enum Characteristic { | ||
ATTACKS = 'attacks', | ||
TO_HIT = 'to_hit', | ||
TO_WOUND = 'to_wound', | ||
REND = 'rend', | ||
DAMAGE = 'damage', | ||
SAVE = 'save', | ||
} | ||
|
||
export const getCharacteristic = (val: string): Characteristic => { | ||
const k = Object.keys(Characteristic).find(key => Characteristic[key] === val); | ||
if (k) { | ||
return Characteristic[k]; | ||
} | ||
return null; | ||
}; | ||
|
||
export const SAVES = [2, 3, 4, 5, 6, 0]; |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains 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,20 @@ | ||
import { MODIFIERS } from '../models/modifiers'; | ||
import { TARGET_MODIFIERS } from '../models/targetModifiers'; | ||
|
||
/** | ||
* Get the list of modifiers | ||
*/ | ||
export const getModifiers = () => | ||
Object.keys(MODIFIERS).map(key => ({ | ||
id: key, | ||
...MODIFIERS[key].metadata, | ||
})); | ||
|
||
/** | ||
* Get the list of target modifiers | ||
*/ | ||
export const getTargetModifiers = () => | ||
Object.keys(TARGET_MODIFIERS).map(key => ({ | ||
id: key, | ||
...TARGET_MODIFIERS[key].metadata, | ||
})); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.