import { execSync } from 'child_process'; import { Template } from '@/mission-control'; import { GEMINI } from '~/constants'; import { timeAgo } from '~/util/time'; import Header from './Header'; const bootTime = Date.now(); const version = execSync("git log --pretty=format:'%as-%h' -n 1") .toString() .replaceAll('-', ''); const InfoPage: Template = ({ include, t }) => ` ${include(Header)} ## What is ${GEMINI}ch? ${GEMINI}ch (or IIch) is a simple text-based bulletin board modeled after 2ch. It aims to be slim and minimal, even for a Gemini capsule. It's still being actively developed so any ideas or suggestions are welcome. ## Usage ### Posting You can anonymously create new threads on boards and reply to existing threads by using the links at the bottoms of their pages. Image threads can be created only on /img/. ### Verified posting If you provide a client certificate to this capsule you will be able sign your posts with a randomly generated identity. Your identity is a hash based on your certificate's fingerprint and is shown to you in the link before you post. You can add a tag to the identity and change it from the home page. ### Subscribing You can curate a feed of recent posts here: => /recent Subscribe to specific boards ## Server Information Last reboot ${timeAgo(t, bootTime)} ago Last commit ${version} `; export default InfoPage;