A tool to help Granblue Fantasy players create and share teams and strategies.
Find a file
Justin Edmund a820e5ad5f
(Hotfix) Fixes some minor bugs (#337)
* Properly set and call raidGroups from state

Does this fix our bug? We'll find out!

* Fix EditPartyModal confirmation on new teams

EditPartyModal was popping a confirmation alert on teams that had no data in them when exiting details

* Add themed placeholder colors for raids

We don't have images for a lot of the new raid images. Here, we create themed placeholder colors and use those instead of images. The images can't react to the users theme as easily, so this is a better solution for now.

* Fix RaidCombobox not switching to raid's section

The RaidCombobox should always open to the section that contains the current raid, or the middle section if there is no raid selected. There was some spaghetti code, but this should fix it.
2023-07-04 01:53:51 -07:00
.storybook Deploy organization and bug fixes (#299) 2023-04-12 06:37:41 -07:00
.vscode First commit 2020-09-11 06:44:42 -07:00
components (Hotfix) Fixes some minor bugs (#337) 2023-07-04 01:53:51 -07:00
data June 2023 Update (#316) 2023-06-19 03:54:03 -07:00
hooks February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
pages (Hotfix) Fixes some minor bugs (#337) 2023-07-04 01:53:51 -07:00
public Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
styles (Hotfix) Fixes some minor bugs (#337) 2023-07-04 01:53:51 -07:00
types Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
utils Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
.env.sample February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
.eslintrc.json Deploy organization and bug fixes (#299) 2023-04-12 06:37:41 -07:00
.gitignore Deploy quality fixes (#328) 2023-06-21 03:44:43 -07:00
.prettierignore Add prettierignore 2022-12-04 07:18:59 -08:00
.prettierrc Remove trailing semicolons 2022-12-05 17:54:46 -08:00
next-env.d.ts Create next-env.d.ts 2022-01-24 18:44:11 -08:00
next-i18next.config.js Update next-i18next.config.js 2022-03-05 02:29:50 -08:00
next.config.js Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
package-lock.json Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
package.json Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
README.md Deploy quality fixes (#328) 2023-06-21 03:44:43 -07:00
README.png February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
tsconfig.json Migrate to Next.js 2022-01-24 21:54:50 -08:00
tslint.json Create tslint.json 2022-01-28 23:19:31 -08:00

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/