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
2f83f42d
Commit
2f83f42d
authored
Oct 16, 2021
by
Joe Ziemba
Browse files
refactoring
parent
d6bca695
Changes
26
Hide whitespace changes
Inline
Side-by-side
src/_assets/css/check.css
deleted
100644 → 0
View file @
d6bca695
/*# sourceMappingURL=check.css.map */
\ No newline at end of file
src/_assets/css/check.css.map
deleted
100644 → 0
View file @
d6bca695
{
"version": 3,
"file": "check.css",
"sources": [
"../scss/pf/check.scss"
],
"names": [],
"mappings": ""
}
\ No newline at end of file
src/_assets/css/modal-button-row.css
deleted
100644 → 0
View file @
d6bca695
/*# sourceMappingURL=modal-button-row.css.map */
\ No newline at end of file
src/_assets/css/modal-button-row.css.map
deleted
100644 → 0
View file @
d6bca695
{
"version": 3,
"file": "modal-button-row.css",
"sources": [
"../scss/modal-button-row.scss"
],
"names": [],
"mappings": ""
}
\ No newline at end of file
src/_assets/css/pf-feat-selection.css
deleted
100644 → 0
View file @
d6bca695
.c-feat-selection
{
text-align
:
left
!important
;
border-collapse
:
collapse
;
font-size
:
0.9rem
;
width
:
100%
;
overflow-y
:
scroll
}
.c-feat-selection__row
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
text-align
:
left
!important
;
padding
:
0.75rem
0
;
border-bottom
:
1px
solid
#dedede
}
.c-feat-selection__add-button
{
border
:
1px
solid
#505050
;
color
:
#505050
;
background-color
:
transparent
;
padding
:
0.5rem
;
line-height
:
0
}
.c-feat-selection
th
,
.c-feat-selection
td
{
padding
:
0.5rem
0.25rem
}
.c-feat-selection
tr
:nth-child
(
even
)
{
background
:
#eee
}
.c-feat-selection
p
{
margin-bottom
:
0.5rem
}
/*# sourceMappingURL=pf-feat-selection.css.map */
\ No newline at end of file
src/_assets/css/pf-feat-selection.css.map
deleted
100644 → 0
View file @
d6bca695
{
"version": 3,
"file": "pf-feat-selection.css",
"sources": [
"../scss/pf/pf-feat-selection.scss"
],
"names": [],
"mappings": "AAAA,AAAA,iBAAiB,AAAC,CAChB,UAAU,CAAE,eAAe,CAC3B,eAAe,CAAE,QAAQ,CACzB,SAAS,CAAE,MAAM,CACjB,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,MAAM,CA+BnB,AA7BE,AAAD,sBAAM,AAAC,CACL,OAAO,CAAE,IAAI,CACb,WAAW,CAAE,MAAM,CACnB,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,eAAe,CAC3B,OAAO,CAAE,SAAS,CAClB,aAAa,CAAE,iBAAiB,CACjC,AAEA,AAAD,6BAAa,AAAC,CACZ,MAAM,CAAE,iBAAiB,CACzB,KAAK,CAAE,OAAO,CACd,gBAAgB,CAAE,WAAW,CAC7B,OAAO,CAAE,MAAM,CACf,WAAW,CAAE,CAAC,CACf,AAtBH,AAwBE,iBAxBe,CAwBb,EAAE,CAxBN,iBAAiB,CAyBf,EAAE,AAAC,CACD,OAAO,CAAE,cAAc,CACxB,AA3BH,AA6BE,iBA7Be,CA6Bb,EAAE,AAAA,UAAW,CAAA,IAAI,CAAE,CACnB,UAAU,CAAE,IAAI,CACjB,AA/BH,AAiCE,iBAjCe,CAiCb,CAAC,AAAC,CACF,aAAa,CAAE,MAAM,CACtB"
}
\ No newline at end of file
src/_assets/css/pf-input.css
deleted
100644 → 0
View file @
d6bca695
/*# sourceMappingURL=pf-input.css.map */
\ No newline at end of file
src/_assets/css/pf-input.css.map
deleted
100644 → 0
View file @
d6bca695
{
"version": 3,
"file": "pf-input.css",
"sources": [
"../scss/pf/pf-input.scss"
],
"names": [],
"mappings": ""
}
\ No newline at end of file
src/_assets/css/pf-section.css
deleted
100644 → 0
View file @
d6bca695
/*# sourceMappingURL=pf-section.css.map */
\ No newline at end of file
src/_assets/css/pf-section.css.map
deleted
100644 → 0
View file @
d6bca695
{
"version": 3,
"file": "pf-section.css",
"sources": [
"../scss/pf/pf-section.scss"
],
"names": [],
"mappings": ""
}
\ No newline at end of file
src/_docs/pf2-changelog.md
deleted
100644 → 0
View file @
d6bca695
# Changelog
All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [1.1.0] - 2021-8-22
### Added
-
Advanced Players Guide Classes
-
Investigator
-
Oracle
-
Swashbuckler
-
Witch
-
All published Core and APG Class Feats
-
All published Skill and General Feats
### Changed
-
Improvements to feat selection modal
-
UI changes to stat boxes, proficiency indicators and feat selection
src/components/common/Modal.js
View file @
2f83f42d
...
...
@@ -5,7 +5,7 @@ import cn from "classnames"
export
const
Modal
=
({
show
,
large
,
color
=
"
bg-slate-
5
00
"
,
color
=
"
bg-slate-
8
00
"
,
closeFunction
,
title
,
children
,
...
...
@@ -26,8 +26,8 @@ export const Modal = ({
}
const
overlayClasses
=
cn
(
"
bg-
s
la
te-900
"
,
"
bg-opacity-
8
0
"
,
"
bg-
b
la
ck
"
,
"
bg-opacity-
5
0
"
,
"
rounded-md
"
,
"
fixed
"
,
"
inset-0
"
,
...
...
src/components/pfcb/AbilityScoresSection.js
View file @
2f83f42d
import
React
from
"
react
"
import
_
from
"
lodash
"
import
{
Abilities
}
from
"
_
data/abilities
"
import
{
Abilities
}
from
"
data/abilities
"
import
{
Card
}
from
"
./Card
"
import
{
Select
}
from
"
./Select
"
import
{
SubHeading
}
from
"
./SubHeading
"
...
...
src/components/pfcb/CharacterBasics.js
View file @
2f83f42d
...
...
@@ -77,7 +77,7 @@ export const CharacterBasics = ({
aria
-
label
=
"
Class
"
isDefault
=
{
!
character
.
class
.
name
}
>
<
option
value
=
"
FREE
"
>
Choose
Class
<
/option
>
<
option
value
=
""
>
Choose
Class
<
/option
>
{
Object
.
keys
(
Classes
).
map
((
class_name
)
=>
(
<
option
value
=
{
class_name
}
key
=
{
class_name
}
>
{
class_name
}
...
...
src/components/pfcb/FreeSkillBoosts.js
View file @
2f83f42d
import
React
,
{
useContext
}
from
"
react
"
import
{
PF2CharacterContext
}
from
"
context
"
import
{
Skills
}
from
"
_
data/skills
"
import
{
Skills
}
from
"
data/skills
"
import
{
Select
}
from
"
./Select
"
export
const
FreeSkillBoosts
=
({
boostSource
,
boostLevel
})
=>
{
...
...
src/components/pfcb/SkillsTable2.js
View file @
2f83f42d
import
React
,
{
useContext
}
from
"
react
"
import
Statbox
from
"
./Statbox
"
import
{
Abilities
}
from
"
_
data/abilities
"
import
{
Abilities
}
from
"
data/abilities
"
import
TEMLbuttons
from
"
./TEMLbuttons
"
import
{
Card
}
from
"
./Card
"
import
{
FreeSkillBoosts
}
from
"
./FreeSkillBoosts
"
...
...
src/components/pfcb/_modals/RedesignAnnounceModal.js
View file @
2f83f42d
...
...
@@ -47,10 +47,10 @@ export const RedesignAnnounceModal = () => {
className
=
{
"
w-full md:w-auto text-center order-0
"
+
"
rounded-sm inline-block
"
+
"
border-2 border-slate-
5
00
"
+
"
border-2 border-slate-
9
00
"
+
"
font-bold text-white
"
+
"
bg-slate-
5
00
"
+
"
hover:bg-slate-
8
00 hover:border-slate-
8
00 transition-all
"
+
"
bg-slate-
9
00
"
+
"
hover:bg-slate-
7
00 hover:border-slate-
7
00 transition-all
"
+
"
py-2 md:py-1 px-4
"
}
>
...
...
src/context.js
View file @
2f83f42d
import
React
from
"
react
"
import
Classes
from
"
./
_
data/classes
"
import
{
Ancestries
}
from
"
./
_
data/ancestries
"
import
{
Backgrounds
}
from
"
./
_
data/backgrounds
"
import
Classes
from
"
./data/classes
"
import
{
Ancestries
}
from
"
./data/ancestries
"
import
{
Backgrounds
}
from
"
./data/backgrounds
"
export
const
UserContext
=
React
.
createContext
({})
...
...
src/index.css
View file @
2f83f42d
...
...
@@ -4,7 +4,7 @@
@import
url("//fonts.googleapis.com/css?family=Lato:100,200,300,400,500,600,700,800,900|Vollkorn:400,600,700")
;
@import
"_assets/css/main.css"
;
@import
"./
_
styles/animations.css"
;
@import
"./styles/animations.css"
;
html
,
body
,
...
...
src/migrations.js
View file @
2f83f42d
import
CLASSES
from
"
./
_
data/classes
"
import
{
Backgrounds
}
from
"
./
_
data/backgrounds
"
import
FEATS
from
"
./
_
data/feats/allFeats.json
"
import
{
getBlankCharacter
}
from
"
./
_
data/classTemplate
"
import
CLASSES
from
"
./data/classes
"
import
{
Backgrounds
}
from
"
./data/backgrounds
"
import
FEATS
from
"
./data/feats/allFeats.json
"
import
{
getBlankCharacter
}
from
"
./data/classTemplate
"
import
{
cloneDeep
}
from
"
lodash
"
export
function
v1_0_1
(
character
)
{
...
...
Prev
1
2
Next
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