A tool to help Granblue Fantasy players create and share teams and strategies.
Find a file
Justin Edmund 0e5960f6d5 Reinstantiate editor on changes
We can't dynamically update the content, so we have to recreate the Editor whenever something changes (page loads and updates)
2023-07-06 00:42:37 -07:00
.storybook Deploy organization and bug fixes (#299) 2023-04-12 06:37:41 -07:00
.vscode
components Reinstantiate editor on changes 2023-07-06 00:42:37 -07:00
data June 2023 Update (#316) 2023-06-19 03:54:03 -07:00
extensions/CustomMention Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
hooks
pages (Hotfix) (Temporary) nuclear option for raid population (#339) 2023-07-04 02:20:48 -07:00
public Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
styles Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
types Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
utils Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
.env.sample
.eslintrc.json Deploy organization and bug fixes (#299) 2023-04-12 06:37:41 -07:00
.gitignore Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
.prettierignore
.prettierrc
next-env.d.ts
next-i18next.config.js
next.config.js Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
package-lock.json Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
package.json Override peer dependencies for tiptap mentions 2023-07-05 21:43:03 -07:00
README.md Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -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/
├─ character-main/
├─ character-grid/
├─ character-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/