Commit Graph
32 Commits
Author SHA1 Message Date
orrisroot e8a044950b refactor: load the generated JSON at runtime
The dumps were imported into the bundle, which tied a data refresh to a
rebuild and put generated content in the source tree. They now sit in
static-contents/ with the rest of the site data, as on
bsi-ni.brain.riken.jp.

- add siteData.ts, which fetches the six files in parallel
- hand them to the singletons from main.tsx before the first render, so
  components still read them synchronously
- type the four ranking lists, which have three different shapes
2026-09-11 17:15:41 +09:00
orrisroot 62bdc2876a refactor: replace the withRouter shim with router hooks
react-router removed withRouter in v6, and the shim that replaced it
kept nineteen components tied to injected router props. They now read
the state directly, matching how bsi-ni.brain.riken.jp is written.

- convert the remaining class components to function components
- call useLocation, useNavigate and useParams in place of the props
- drop src/common/lib/withRouter.tsx
2026-09-11 17:10:58 +09:00
orrisroot a312a420ae fix: remove the stray td elements from the center column
They are left over from the XOOPS table layout, render nothing, and
make React report invalid nesting under a div.
2026-09-11 17:02:05 +09:00
orrisroot 9808d6692c build: keep static-contents out of the build output
writeBundle copied all 10 GB of it into dist/ on every build, although
the web server maps the directory in directly.

- drop the copy, which takes dist from 10 GB to 4.8 MB
- mount the directory on the preview server too, so that previewing a
  build still behaves like production
2026-09-11 17:02:05 +09:00
orrisroot f6bf706372 chore: move static-contents next to the repository
The generated site data is not part of the source tree, so it now sits
beside the checkout, matching the bsi-ni.brain.riken.jp layout.

- resolve the directory from config.root rather than the process cwd
- drop the ignore rule, which no longer matches anything
2026-09-11 17:02:03 +09:00
orrisroot d240bbae03 feat: migrate from Create React App to Vite
The CRA toolchain was several major versions behind and no longer
maintained, so the whole build, lint and runtime stack is replaced.

- replace react-scripts with Vite 8 and TypeScript 7
- upgrade to React 19 and react-router 8
- swap unmaintained libraries: react-html-parser, axios, react-ga,
  react-image-lightbox, react-helmet, moment, react-spinner-material
- replace ESLint with Biome for linting and formatting
- switch the package manager from yarn to npm
- serve static-contents/ with sirv in dev and copy it into the bundle
- keep a withRouter shim so the class components can stay as they are
  for now
2026-09-11 16:48:14 +09:00
orrisroot 270011cfe5 ignore .eslintcache from git v1.0.0 2021-05-28 13:56:05 +09:00
orrisroot cd11927719 update required libraries 2021-05-28 13:48:36 +09:00
orrisroot 7c7f57ef1c update required libraries 2021-01-19 15:06:37 +09:00
orrisroot cc480e67ea update required libraries 2020-07-27 19:19:15 +09:00
orrisroot 4ffe223488 update required libraries 2020-05-23 14:43:22 +09:00
orrisroot 637443bda2 add rule for index.html 2020-05-23 13:40:10 +09:00
Yoshihiro OKUMURA 9ed4b34df9 add script to generate rss 2020-04-30 14:36:58 +09:00
Yoshihiro OKUMURA 9b5dd3e274 update required libraries 2020-04-29 19:41:47 +09:00
Yoshihiro OKUMURA 2cc53fe2cb update required libraries 2020-02-18 01:22:43 +09:00
Yoshihiro OKUMURA 269abc439d update required libraries 2019-12-23 11:26:21 +09:00
Yoshihiro OKUMURA 230bc9e35b update required libraries 2019-11-25 18:04:26 +09:00
Yoshihiro OKUMURA 215ea71695 update required libraries. 2019-11-06 19:59:42 +09:00
Yoshihiro OKUMURA 8feeb8f2b9 dont use table page layout. 2019-07-12 17:50:56 +09:00
Yoshihiro OKUMURA f0637c1791 apply changes and minor bug fixes from cerebellum sources. 2019-07-12 16:44:03 +09:00
Yoshihiro OKUMURA a6f4848bc3 removed unused forum module. 2019-06-27 19:25:27 +09:00
Yoshihiro OKUMURA af8539999c fixed bug to show book title. 2019-06-27 14:39:20 +09:00
Yoshihiro OKUMURA e9052e7f30 removed data json. 2019-06-27 13:59:49 +09:00
Yoshihiro OKUMURA dd384f0c1c use ForumUtils to get title. 2019-06-27 13:45:51 +09:00
Yoshihiro OKUMURA 6260d9e754 update libraries. 2019-06-27 11:14:39 +09:00
Yoshihiro OKUMURA f49100aac5 use react-ga only in AppRoot class. 2019-06-27 11:13:56 +09:00
Yoshihiro OKUMURA cbc22c5546 fixed bug to select preview images. 2019-06-27 10:35:08 +09:00
Yoshihiro OKUMURA adc9a8e5ed fixed bug for null doi field. 2019-06-25 18:52:51 +09:00
Yoshihiro OKUMURA 5a96a37e91 fixed bug for mod redirect rule. 2019-06-25 11:33:41 +09:00
Yoshihiro OKUMURA 9a7b3a57d9 add google analytics code. 2019-06-25 10:37:05 +09:00
Yoshihiro OKUMURA bc8ae06329 add source code of visiome. 2019-06-25 10:11:07 +09:00
Yoshihiro OKUMURA 4dcbb1d4e2 Initial commit from Create React App 2019-06-17 16:13:09 +09:00