A tool to help Granblue Fantasy players create and share teams and strategies.
Find a file
Justin Edmund 835cdfff6f
Implement Edit team modal (#312)
* Small refactor to CharLimitedFieldset

Some methods were renamed for clarity. <input> props are actually put on the input properly.

* Add tabindex to Popover trigger

* Add tabindex to Switch and SwitchTableField

* Add tabindex to DurationInput

* Add new properties

* Added guidebooks to RaidGroup
* Added auto_summon to Party

* Conditionally render description in TableField

* Improve SwitchTableField

* Add support for passing in classes
* Add support for passing a disabled prop
* Pass description to TableField
* Right-align switch
* Add support for Extra color switch

* Align SliderTableField input to right

* Align SelectTableField input to right

* Update placeholder styles

* Fix empty state on DurationInput

* Remove tabindex from DurationInput

* Update InputTableField

Allow for passing down input properties and remove fixed width

* Fix dialog footer styles

* Update dialog and overlay z-index

* Add styles to TableField

Added styles for numeric inputs, disabled inputs, and generally cleaning things up

* Add guidebooks to RaidCombobox + styles

* Added guidebooks to the dummy raid group
* Fix background color
* Make less tall

* Implement EditPartyModal

EditPartyModal takes functionality that was in PartyHeader and puts it in a modal dialog. This lets us add fields and reduces the complexity of other components. Translations were also added.

* Remove edit functionality

* Add darker shadow to Select

* Properly send raid ID to server

* Show Extra grids based on selected raid

* Fix EX badge colors

* Use child as value in normal textarea

* Remove toggle ability from Extra grids

* Remove edit functionality from PartyDetails
2023-06-18 01:29:53 -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 Implement Edit team modal (#312) 2023-06-18 01:29:53 -07:00
data Push 2023/03 updates to main (#292) 2023-03-31 12:03:47 -07:00
hooks February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
pages Implement raid combobox (#311) 2023-06-16 19:00:57 -07:00
public Implement Edit team modal (#312) 2023-06-18 01:29:53 -07:00
styles Implement raid combobox (#311) 2023-06-16 19:00:57 -07:00
types Implement Edit team modal (#312) 2023-06-18 01:29:53 -07:00
utils Implement raid combobox (#311) 2023-06-16 19:00:57 -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 Implement raid combobox (#311) 2023-06-16 19:00:57 -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 February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
package-lock.json Implement raid combobox (#311) 2023-06-16 19:00:57 -07:00
package.json Implement raid combobox (#311) 2023-06-16 19:00:57 -07:00
README.md February 2023 Update (#158) 2023-02-04 23:46:24 -08: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
yarn.lock Deploy organization and bug fixes (#299) 2023-04-12 06:37:41 -07: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/
├─ jobs/
├─ job-icons/
├─ job-skills/
├─ mastery/
├─ summon-main/
├─ summon-grid/
├─ summon-square/
├─ updates/
├─ weapon-main/
├─ weapon-grid/
├─ weapon-square/