Cotton code
25 lines · 1.3 KB · TypeScriptRaw
/** * The pages themselves are rendered by src/site/pages.ts from apps.json; each * is a finished HTML file served at its own name (`privacy.html` at /privacy). *//** * What a link on a page may point at. The site's own pages; /delete, which * the Worker on cottondb.com serves itself (with its sign-in); the one * address people write to; and the few outside pages a reader is sent to: * Google's data policy, where to withdraw Google's access, and the stores. */import { CONTACT } from "../site/contact.ts";export const OWN_PATHS = ["/", "/yours", "/privacy", "/terms", "/support", "/days", "/words", "/story", "/comms", "/delete"] as const;export const OUTSIDE = [  `mailto:${CONTACT}`,  "https://developers.google.com/terms/api-services-user-data-policy",  "https://myaccount.google.com/connections",  "https://mukeshmanda.com",  "https://tinfactory.co",] as const;/** A store link. */export const STORE = /^https:\/\/(apps\.apple\.com\/app\/[\w-]+\/id\d+|apps\.apple\.com\/app\/id\d+|play\.google\.com\/store\/apps\/details\?id=com\.cottondb\.\w+)$/;/** A test link: TestFlight, or the Play Console's internal testing. They open only for invited testers. */export const TEST = /^https:\/\/(testflight\.apple\.com\/v1\/app\/\d+|play\.google\.com\/apps\/internaltest\/\d+)$/;