Skip to content

Commit

Permalink
Prepare gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alephtwo committed Mar 13, 2024
1 parent 2e4a9e7 commit 97d96f0
Show file tree
Hide file tree
Showing 13 changed files with 224 additions and 1 deletion.
Binary file added 10part-06e0d3a3f12dadd618dd096b2bc9a173.webp
Binary file not shown.
129 changes: 129 additions & 0 deletions app-4adc4531785193305547.js

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions app-4adc4531785193305547.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions app-4adc4531785193305547.js.map

Large diffs are not rendered by default.

Binary file added backdrop-d3eee711b6f668326160068b55bbcdad.webp
Binary file not shown.
19 changes: 19 additions & 0 deletions build-gh-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /usr/bin/env bash

remove=(
app-*.js
app-*.js.LICENSE.txt
app-*.js.map
index.html
10part-*.webp
backdrop-*.webp
crystal-*.webp
sparks-*.webp
ticket-*.webp
)

rm "${remove[@]}"
rm -rf locales

npm run build
mv public/* .
Binary file added crystal-84e3c4f9d03f7648428bd2f018d87a63.webp
Binary file not shown.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="initial-scale=1,width=device-width"/><title>Sparky</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/><script defer="defer" src="app-4adc4531785193305547.js"></script></head><body><div id="app"></div></body></html>
7 changes: 7 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"page-title": "Sparky",
"crystals": "Crystals",
"tickets": "Draw Tickets",
"ten-part-tickets": "Ten Part Draw Tickets",
"sparks": "Cerulean Sparks"
}
7 changes: 7 additions & 0 deletions locales/jp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"page-title": "Sparky",
"crystals": "宝晶石",
"tickets": "ガチャチケ",
"ten-part-tickets": "10連チケ",
"sparks": "蒼光の御印"
}
Binary file added sparks-1dbed2f9fe81246b7f06a4c4b072e4f9.webp
Binary file not shown.
3 changes: 2 additions & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ i18n
supportedLngs: SupportedLanguages,
fallbackLng: "en",
backend: {
loadPath: "/locales/{{lng}}.json",
// need to set th is for github pages
loadPath: "locales/{{lng}}.json",
},
})
.catch((e) => console.error(e));
Expand Down
Binary file added ticket-59000bf7bb1128cce39c35110dbc3644.webp
Binary file not shown.

0 comments on commit 97d96f0

Please sign in to comment.