Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 4x 4x 4x 4x | /**
* fe-public's own constants: the app name, contact addresses, and every route
* this site serves.
*
* Deliberately local, mirroring `modules/fe/core/src/routes/const.tsx`. Both
* apps own their own table so each can shape its URLs without negotiating
* with the other — these constants are not a contract between the apps, they
* are each app's private description of itself. The two tables differ already
* in ways that make sharing them wrong: `APP_PREFIXES.HOME` is `""` here
* because fe-public *is* the site at the root, while in fe-core it is
* `VITE_APP_DOMAIN`, because fe-core links out to this site across a vhost.
*
* These lived in `chainr-frontend-shared` and drifted — a stale copy of the
* logged-in routes sat beside them for months, describing resources fe-core
* had long since renamed. Route tables are exactly the thing that should not
* be shared. `chainr-frontend-shared` is for components and theme.
*/
export const APP_NAME = "CHAIN-R";
export const APP_EMAILS = {
help: "help@datachainr.com",
sales: "sales@datachainr.com",
press: "press@datachainr.com",
partnerships: "partnerships@datachainr.com",
};
export const APP_PREFIXES = {
/** fe-public is served at the root, so its pages carry no prefix. */
HOME: "",
LEGAL: "/legal",
};
export const APP_ROUTES = {
HOME: {
home: `${APP_PREFIXES.HOME}/`,
services: `${APP_PREFIXES.HOME}/services`,
docs: `${APP_PREFIXES.HOME}/docs`,
pricing: `${APP_PREFIXES.HOME}/pricing`,
help: `${APP_PREFIXES.HOME}/help`,
contact: `${APP_PREFIXES.HOME}/contact`,
login: `${APP_PREFIXES.HOME}/login`,
signup: `${APP_PREFIXES.HOME}/signup`,
forgot_password: `${APP_PREFIXES.HOME}/forgot-password`,
},
LEGAL: {
legal_docs: `${APP_PREFIXES.LEGAL}/`,
privacy_policy: `${APP_PREFIXES.LEGAL}/privacy-policy`,
terms_of_service: `${APP_PREFIXES.LEGAL}/terms-of-service`,
},
_util: {
notfound: "*",
},
};
|