Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
rpg-workshop
Commits
0371cbbb
Commit
0371cbbb
authored
Oct 16, 2021
by
Joe Ziemba
Browse files
cleanup
parent
2f83f42d
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/StatblockGenerator/FormSections/PropertiesForm.js
View file @
0371cbbb
...
...
@@ -3,7 +3,6 @@ import React, { useContext } from "react"
import
{
Typeahead
}
from
"
react-bootstrap-typeahead
"
import
"
react-bootstrap-typeahead/css/Typeahead.css
"
export
const
PropertyForm
=
()
=>
{
const
{
stats
,
updatePropertyList
}
=
useContext
(
StatblockContext
)
return
(
...
...
src/StatblockGenerator/StatBlockDisplay.js
View file @
0371cbbb
...
...
@@ -75,9 +75,7 @@ export class StatBlockDisplay extends React.Component {
<
span
className
=
"
statblock__property-name italic
"
>
{
action
.
title
}.{
"
"
}
<
/span
>
<
span
className
=
"
italic
"
>
{
action
.
type
}
Weapon
Attack
.{
"
"
}
<
/span
>
<
span
className
=
"
italic
"
>
{
action
.
type
}
Weapon
Attack
.
<
/span
>
{
`
${
toHit
>=
0
?
"
+
"
:
""
}${
toHit
}
`
}
to
Hit
.
&
ensp
;
{
action
.
type
===
"
Ranged
"
?
"
Range
"
:
"
Reach
"
}
{
reach
}
ft
.
&
ensp
;
...
...
src/components/pfcb/CharacterBasics.js
View file @
0371cbbb
import
React
,
{
useContext
,
useState
}
from
"
react
"
import
React
,
{
useContext
}
from
"
react
"
import
{
PF2CharacterContext
}
from
"
context
"
import
{
SaveRow
}
from
"
./SaveRow
"
import
Statbox
from
"
./Statbox
"
...
...
src/components/pfcb/FeatSelection.js
View file @
0371cbbb
import
React
,
{
useState
,
useEffect
,
useCallback
}
from
"
react
"
import
_
from
"
lodash
"
import
FEATS
from
"
_
data/feats/allFeats.json
"
import
FEATS
from
"
data/feats/allFeats.json
"
import
{
Modal
}
from
"
components
"
export
const
FeatSelection
=
({
...
...
src/components/sbg/AttackForm.js
View file @
0371cbbb
...
...
@@ -94,9 +94,7 @@ export const AttackForm = (props) => {
Dex
?
<
/label
>
<
div
className
=
{
`dex-check
${
props
.
action
.
dex
?
"
checked
"
:
""
}
`
}
className
=
{
`dex-check
${
props
.
action
.
dex
?
"
checked
"
:
""
}
`
}
name
=
{
"
dex-
"
+
props
.
action
.
id
}
value
=
{
!
props
.
action
.
dex
}
onClick
=
{()
=>
...
...
testing/main.spec.js
View file @
0371cbbb
/* eslint-disable jest/expect-expect */
/* eslint-disable jest/no-done-callback */
import
{
Selector
,
fixture
}
from
"
testcafe
"
import
{
Ancestries
}
from
"
../src/
_
data/ancestries
"
import
{
Ancestries
}
from
"
../src/data/ancestries
"
fixture
(
"
Assign Ancestries
"
).
page
(
"
http://localhost:3000/pf2/character-builder
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment