Files
bmi.neuroinf.jp/src/config.ts
T
orrisroot 03d003bfc1 feat: merge the portal and the XooNIps site into one Vite app
bmi.neuroinf.jp was two Create React App projects: bmi-front at the
document root and bmi-researchers under /researchers. Serve both from a
single Vite 8, React 19 and Biome app, with the data moved out of the
bundle into static-contents/.

- load only the half of the site the URL belongs to, since the two
  themes style the same selectors
- base the /researchers half on the visiome v2 database and credits
  code, with its data under /researchers/modules/
- port the portal pages to function components and replace
  react-overlays with a small portal-based modal
- restate content-box theme sizes as border-box totals and the h1/hr
  values normalize.css used to override
- redirect the XooNIps download and v1 file URLs to the new layout
- track page views with GA4
2026-09-14 14:52:59 +09:00

28 lines
1.0 KiB
TypeScript

const SITE_TITLE = '[en]BMI Platform[/en][ja]BMIプラットフォーム[/ja]';
const SITE_SLOGAN = 'Neuroinformatics Platform';
// Replaces the Universal Analytics property (UA-2787315-1), shut down in 2023.
const GOOGLE_ANALYTICS_TRACKING_ID = 'G-QE6ZWVQYBJ';
const XOONIPS_ITEMTYPES = ['data', 'model', 'presentation', 'tool', 'paper', 'book', 'url', 'files'];
// Vite's BASE_URL always carries a trailing slash ('/' when the app is served
// from the document root). Strip it so it can be concatenated the same way
// CRA's Config.BASE_URL was.
const BASE_URL = import.meta.env.BASE_URL.replace(/\/$/, '');
// The former XooNIps installation lived under /researchers. It is rendered by
// the same app, with its own router basename, layout and data directory.
const RESEARCHERS_URL = `${BASE_URL}/researchers`;
export type MultiLang = 'en' | 'ja';
const Config = {
SITE_TITLE,
SITE_SLOGAN,
GOOGLE_ANALYTICS_TRACKING_ID,
XOONIPS_ITEMTYPES,
BASE_URL,
RESEARCHERS_URL,
};
export default Config;