Compare commits
No commits in common. 'master' and 'gh-pages' have entirely different histories.
@ -1,58 +0,0 @@ |
||||
name: Build & deploy |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
pull_request: |
||||
branches: |
||||
- master |
||||
|
||||
jobs: |
||||
build: |
||||
name: Build |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v2 |
||||
|
||||
- name: Install Node.js |
||||
uses: actions/setup-node@v1 |
||||
with: |
||||
node-version: 13.x |
||||
|
||||
- name: Install NPM packages |
||||
run: npm ci |
||||
|
||||
- name: Build project |
||||
run: npm run build |
||||
|
||||
- name: Run tests |
||||
run: npm run test |
||||
|
||||
- name: Upload production-ready build files |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: production-files |
||||
path: ./build |
||||
|
||||
deploy: |
||||
name: Deploy |
||||
needs: build |
||||
runs-on: ubuntu-latest |
||||
if: github.ref == 'refs/heads/master' |
||||
|
||||
steps: |
||||
- name: Download artifact |
||||
uses: actions/download-artifact@v2 |
||||
with: |
||||
name: production-files |
||||
path: ./build |
||||
|
||||
- name: Deploy to gh-pages |
||||
uses: peaceiris/actions-gh-pages@v3 |
||||
with: |
||||
github_token: ${{ secrets.GITHUB_TOKEN }} |
||||
publish_dir: ./build |
||||
cname: ngsplanner.com |
@ -1,28 +0,0 @@ |
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. |
||||
|
||||
# dependencies |
||||
/node_modules |
||||
/.pnp |
||||
.pnp.js |
||||
|
||||
# testing |
||||
/coverage |
||||
|
||||
# production |
||||
/build |
||||
|
||||
# misc |
||||
.DS_Store |
||||
.env.local |
||||
.env.development.local |
||||
.env.test.local |
||||
.env.production.local |
||||
.env |
||||
|
||||
# Dudley's crap |
||||
/public/test.html |
||||
|
||||
npm-debug.log* |
||||
yarn-debug.log* |
||||
yarn-error.log* |
||||
.vscode/settings.json |
@ -1,14 +0,0 @@ |
||||
The backend can be run for local testing by loading a |
||||
new docker-compose workspace provided by the projectdivar |
||||
git repository. |
||||
|
||||
once loaded, you can seed the database using the seed files |
||||
from the ngsplanner_backend repository. You can use the locally |
||||
created .docker_terminal command to access the terminal of the |
||||
projectdivar_postgres_1 instance. Finally, you need to |
||||
add a .env file for your environment that includes: |
||||
|
||||
REACT_APP_BACKEND_URL=https://4501-scarlet-echidna-bpwfvar6.ws-us11.gitpod.io/ngsplanner |
||||
|
||||
Replacing the URL with the URL that points to the /server docker |
||||
hosted backend. |
@ -1,19 +0,0 @@ |
||||
# NGS Planner |
||||
|
||||
![](https://ngsplanner.com/spinner.gif "") |
||||
|
||||
This tool was created for Phantasy Star Online 2: New Genesis. It is used to therorycraft builds and share them with other players! |
||||
|
||||
The goal of NGS Planner is be accurate, accessible, and shareable. |
||||
|
||||
### Contributors |
||||
|
||||
- Developer, Database Designer - [sigonasr2](https://twitter.com/sigonasr2) |
||||
- UI & Game Consultant - [Dudley](https://twitter.com/dudleyc_) |
||||
- Clutch Code Revision - [Mira](https://twitter.com/MiraWaNeko) |
||||
- Background Artwork - [Patata-tan](https://twitter.com/PatataTan) |
||||
|
||||
### Resources Used: |
||||
|
||||
- [NGS Verification Data Storage](https://docs.google.com/spreadsheets/d/1_OgubzM5QFe4rua4Xu0GSMAI8Idoq8r2yI8Ioyec6oY/edit#gid=661779228) created by [ものさし](https://twitter.com/flowerint1034) & [Theuberelite](https://twitter.com/TheuberClips) |
||||
- [Arks-Visiphone](https://pso2na.arks-visiphone.com/wiki/Portal:New_Genesis) |
@ -0,0 +1,26 @@ |
||||
{ |
||||
"files": { |
||||
"main.css": "/static/css/main.db622843.chunk.css", |
||||
"main.js": "/static/js/main.25745d1f.chunk.js", |
||||
"main.js.map": "/static/js/main.25745d1f.chunk.js.map", |
||||
"runtime-main.js": "/static/js/runtime-main.149b9349.js", |
||||
"runtime-main.js.map": "/static/js/runtime-main.149b9349.js.map", |
||||
"static/css/2.324513a4.chunk.css": "/static/css/2.324513a4.chunk.css", |
||||
"static/js/2.089a168d.chunk.js": "/static/js/2.089a168d.chunk.js", |
||||
"static/js/2.089a168d.chunk.js.map": "/static/js/2.089a168d.chunk.js.map", |
||||
"static/js/3.2e231d4e.chunk.js": "/static/js/3.2e231d4e.chunk.js", |
||||
"static/js/3.2e231d4e.chunk.js.map": "/static/js/3.2e231d4e.chunk.js.map", |
||||
"index.html": "/index.html", |
||||
"static/css/2.324513a4.chunk.css.map": "/static/css/2.324513a4.chunk.css.map", |
||||
"static/css/main.db622843.chunk.css.map": "/static/css/main.db622843.chunk.css.map", |
||||
"static/js/2.089a168d.chunk.js.LICENSE.txt": "/static/js/2.089a168d.chunk.js.LICENSE.txt", |
||||
"static/media/style.css": "/static/media/skilltree_div_overlay.6d142e79.png" |
||||
}, |
||||
"entrypoints": [ |
||||
"static/js/runtime-main.149b9349.js", |
||||
"static/css/2.324513a4.chunk.css", |
||||
"static/js/2.089a168d.chunk.js", |
||||
"static/css/main.db622843.chunk.css", |
||||
"static/js/main.25745d1f.chunk.js" |
||||
] |
||||
} |
@ -1,51 +0,0 @@ |
||||
function ClassSelectorWindow(p) { |
||||
return <SelectorWindow title={(p.editClass)?"Select Sub Class":"Select Main Class"} modalOpen={p.modalOpen} setModalOpen={p.setModalOpen} GetData={p.GetData} |
||||
dataFunction={() => { |
||||
var dat1 = p.GetData("class") |
||||
return Object.keys(dat1) |
||||
} |
||||
} |
||||
displayFunction={(key) => { |
||||
return <li className="classSelect" onClick={() => { if (p.editClass===0){p.setClassName(key)}else{p.setSubClassName(key)}; p.setModalOpen(false) }}><img alt="" src={DisplayIcon(p.GetData("class", key, "icon"))} /> {p.GetData("class", key, "name")}</li> |
||||
}} |
||||
/> |
||||
} |
||||
|
||||
<ClassSelectorWindow setClassName={setClassName} editClass={classNameSetter} setSubClassName={setSubClassName} modalOpen={classSelectWindowOpen} setModalOpen={setClassSelectWindowOpen} GetData={p.GetData}/> |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div className="box treeSelectBox"> |
||||
<div className="boxTitleBar"> |
||||
<h1>Class Skill Tree</h1> |
||||
<div className="boxExit" onClick={() => { setClassSkillTreeWindowOpen(false) }}></div> |
||||
</div> |
||||
<div className="treeListContainer customScrollbar"> |
||||
<ul className="treeList"> |
||||
{Object.keys(p.GetData("class")).map((cl)=><li className={className===cl?"treeListMain":subclassName===cl?"treeListSub":""}><img alt="" src={p.GetData("class")[cl].icon} />{cl}</li>)} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function ClassSelector(p){ |
||||
const CLASSES = p.GetData("class") |
||||
const wrapperRef = useRef(null); |
||||
useOutsideAlerter(wrapperRef,p.setEdit); |
||||
return <><div className="popup2" ref={wrapperRef}> |
||||
Class Selector<hr/> |
||||
<div className="popup"> |
||||
{Object.keys(CLASSES).map((cl,i)=>{ |
||||
return <button id={i} className="rounded" onClick={()=>{p.setClassName(cl);p.setEdit(false)}}><img alt="" src={process.env.PUBLIC_URL+CLASSES[cl].icon}/><br/>{CLASSES[cl].name}</button> |
||||
})} |
||||
</div> |
||||
</div> |
||||
</> |
||||
} |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 281 B |
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 116 B After Width: | Height: | Size: 116 B |
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 394 B |
Before Width: | Height: | Size: 658 B After Width: | Height: | Size: 658 B |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 281 B |
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 116 B After Width: | Height: | Size: 116 B |
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 753 B After Width: | Height: | Size: 753 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 418 KiB After Width: | Height: | Size: 418 KiB |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |