Fix capitilisation of default maps and tokens names
This commit is contained in:
parent
e188294aed
commit
b6d6a16817
@ -8,6 +8,7 @@
|
|||||||
"@testing-library/jest-dom": "^4.2.4",
|
"@testing-library/jest-dom": "^4.2.4",
|
||||||
"@testing-library/react": "^9.3.2",
|
"@testing-library/react": "^9.3.2",
|
||||||
"@testing-library/user-event": "^7.1.2",
|
"@testing-library/user-event": "^7.1.2",
|
||||||
|
"case": "^1.6.3",
|
||||||
"dexie": "^2.0.4",
|
"dexie": "^2.0.4",
|
||||||
"fake-indexeddb": "^3.0.0",
|
"fake-indexeddb": "^3.0.0",
|
||||||
"interactjs": "^1.9.7",
|
"interactjs": "^1.9.7",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import Case from "case";
|
||||||
|
|
||||||
import blankImage from "./Blank Grid 22x22.jpg";
|
import blankImage from "./Blank Grid 22x22.jpg";
|
||||||
import grassImage from "./Grass Grid 22x22.jpg";
|
import grassImage from "./Grass Grid 22x22.jpg";
|
||||||
import sandImage from "./Sand 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) => ({
|
export const maps = Object.keys(mapSources).map((key) => ({
|
||||||
key,
|
key,
|
||||||
name: key.charAt(0).toUpperCase() + key.slice(1),
|
name: Case.capital(key),
|
||||||
gridX: 22,
|
gridX: 22,
|
||||||
gridY: 22,
|
gridY: 22,
|
||||||
width: 1024,
|
width: 1024,
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import Case from "case";
|
||||||
|
|
||||||
import aberration from "./Aberration.png";
|
import aberration from "./Aberration.png";
|
||||||
import artificer from "./Artificer.png";
|
import artificer from "./Artificer.png";
|
||||||
import barbarian from "./Barbarian.png";
|
import barbarian from "./Barbarian.png";
|
||||||
@ -80,7 +82,7 @@ function getDefaultTokenSize(key) {
|
|||||||
|
|
||||||
export const tokens = Object.keys(tokenSources).map((key) => ({
|
export const tokens = Object.keys(tokenSources).map((key) => ({
|
||||||
key,
|
key,
|
||||||
name: key.charAt(0).toUpperCase() + key.slice(1),
|
name: Case.capital(key),
|
||||||
type: "default",
|
type: "default",
|
||||||
defaultSize: getDefaultTokenSize(key),
|
defaultSize: getDefaultTokenSize(key),
|
||||||
}));
|
}));
|
||||||
|
@ -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"
|
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==
|
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:
|
caseless@~0.12.0:
|
||||||
version "0.12.0"
|
version "0.12.0"
|
||||||
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
|
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user