Fix capitilisation of default maps and tokens names

This commit is contained in:
Mitchell McCaffrey 2020-05-22 18:11:45 +10:00
parent e188294aed
commit b6d6a16817
4 changed files with 12 additions and 2 deletions

View File

@ -8,6 +8,7 @@
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"case": "^1.6.3",
"dexie": "^2.0.4",
"fake-indexeddb": "^3.0.0",
"interactjs": "^1.9.7",

View File

@ -1,3 +1,5 @@
import Case from "case";
import blankImage from "./Blank Grid 22x22.jpg";
import grassImage from "./Grass Grid 22x22.jpg";
import sandImage from "./Sand Grid 22x22.jpg";
@ -18,7 +20,7 @@ export const mapSources = {
export const maps = Object.keys(mapSources).map((key) => ({
key,
name: key.charAt(0).toUpperCase() + key.slice(1),
name: Case.capital(key),
gridX: 22,
gridY: 22,
width: 1024,

View File

@ -1,3 +1,5 @@
import Case from "case";
import aberration from "./Aberration.png";
import artificer from "./Artificer.png";
import barbarian from "./Barbarian.png";
@ -80,7 +82,7 @@ function getDefaultTokenSize(key) {
export const tokens = Object.keys(tokenSources).map((key) => ({
key,
name: key.charAt(0).toUpperCase() + key.slice(1),
name: Case.capital(key),
type: "default",
defaultSize: getDefaultTokenSize(key),
}));

View File

@ -3089,6 +3089,11 @@ case-sensitive-paths-webpack-plugin@2.3.0:
resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.3.0.tgz#23ac613cc9a856e4f88ff8bb73bbb5e989825cf7"
integrity sha512-/4YgnZS8y1UXXmC02xD5rRrBEu6T5ub+mQHLNRj0fzTRbgdBYhsNo2V5EqwgqrExjxsjtF/OpAKAMkKsxbD5XQ==
case@^1.6.3:
version "1.6.3"
resolved "https://registry.yarnpkg.com/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9"
integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==
caseless@~0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"