A tool to help Granblue Fantasy players create and share teams and strategies.
Find a file
Justin Edmund 932dfe231f Update WeaponModal to incorporate latest changes
* Adds unsaved changes alert
* Updates to use refactored WeaponKeySelect
* Moves api code to parent via a updateWeapon prop
* Updates to use DialogHeader and DialogFooter
* Makes rendering functions into constants
2023-07-03 19:07:25 -07:00
.storybook
.vscode
components Update WeaponModal to incorporate latest changes 2023-07-03 19:07:25 -07:00
data
hooks
pages Extract createLocalId into a util 2023-07-02 02:40:51 -07:00
public Add unsaved changes localizations 2023-07-03 19:03:22 -07:00
styles Remove keyframes.scss from globals 2023-07-02 02:47:57 -07:00
types Move GridWeaponObject to types 2023-07-03 19:03:06 -07:00
utils Add permissive filter set 2023-07-02 02:41:07 -07:00
.env.sample
.eslintrc.json
.gitignore Deploy quality fixes (#328) 2023-06-21 03:44:43 -07:00
.prettierignore
.prettierrc
next-env.d.ts
next-i18next.config.js
next.config.js Modify next.js to re-enable CSS modules 2023-06-23 12:20:25 -07:00
package-lock.json Add lodash.isequal 2023-07-02 02:04:50 -07:00
package.json Add lodash.isequal 2023-07-02 02:04:50 -07:00
README.md Deploy quality fixes (#328) 2023-06-21 03:44:43 -07:00
README.png
tsconfig.json
tslint.json

Header image for hensei-web

hensei-web

hensei-web is the frontend for granblue.team, an app for saving and sharing teams for Granblue Fantasy.

Getting Started

First, you have to set up your environment file. You should start with .env.sample, but here are some gotchas:

App URLs

Don't add a trailing slash to these URLs! The API will run on port 3000 by default, but make sure to change these to match your instance of the API.

NEXT_PUBLIC_SIERO_API_URL='http://127.0.0.1:3000/api/v1'
NEXT_PUBLIC_SIERO_OAUTH_URL='http://127.0.0.1:3000/oauth'

Asset URLs

Next.js serves all assets out of the /public directory. In development we utilize this for all assets, but in production, you will want to host these images on a cloud storage provider like Amazon S3. Once you have that set up and you're running in a production environment, change this to the full bucket URL.

NEXT_PUBLIC_SIERO_IMG_URL='/images'

Dependencies

Once your .env is all set up, install all dependencies:

npm install
# or
yarn install

Then, run the development server with:

npm run dev
# or
yarn dev

Assets

The hensei-api repository has tasks that will help you get assets, although some were crafted or renamed by hand. The front-end expects this folder structure inside of the images folder:

root
├─ accessory-grid/
├─ accessory-square/
├─ awakening/
├─ ax/
├─ chara-main/
├─ chara-grid/
├─ chara-square/
├─ guidebooks/
├─ jobs/
├─ job-icons/
├─ job-portraits/
├─ job-skills/
├─ labels/
├─ mastery/
├─ placeholders/
├─ raids/
├─ summon-main/
├─ summon-grid/
├─ summon-square/
├─ updates/
├─ weapon-main/
├─ weapon-grid/
├─ weapon-keys/
├─ weapon-square/