diff --git a/.vitepress/theme/useTerminal.ts b/.vitepress/theme/useTerminal.ts index 33c8f04..0cfc845 100644 --- a/.vitepress/theme/useTerminal.ts +++ b/.vitepress/theme/useTerminal.ts @@ -2,6 +2,13 @@ import { ref } from 'vue' import type { SimpleCommand, Uri } from './Config' import { useRouter } from 'vitepress' +const SHELL = 'k0rSH' +const VERSION = '0.5' +const AUTHOR = 'k0r' +const DESCRIPTION = 'the k0r SHell' +const URL = 'https://git.k0r.in/n/k0r.386' +const ISSUES = 'https://git.k0r.in/n/k0r.386/issues' + type VitePressPage = { frontmatter: Record src: string @@ -47,8 +54,7 @@ export default function useTerminal(inputEl: HTMLTextAreaElement, commands: Simp type SYS_OUT = 'NOT_FOUND' | 'USAGE' | 'INFO' | '404' - const SHELL = 'k0rSH' - const INFO = 'k0rSH v0.1: the k0r SHell, fiddled together by k0r -- https://k0r.in' + const INFO = `${SHELL} v${VERSION}: ${DESCRIPTION}, fiddled together by ${AUTHOR} -- ${URL}` const PAD = 16 const USAGE = [ ...commands.map(cmd => { @@ -74,7 +80,12 @@ export default function useTerminal(inputEl: HTMLTextAreaElement, commands: Simp break case 'INFO': console.log('explaining myself') - addLine(`${SHELL}: ${INFO}`) + addLine(INFO) + setFooter([{ + label: 'source code', uri: URL + }, { + label: 'issue tracker', uri: ISSUES + }]) break case '404': console.log('page not found', arg) diff --git a/package.json b/package.json index 2b96577..5a0286b 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,18 @@ { + "name": "k0r.386", + "version": "0.5.0", + "description": "Vitepress based interactive, retro-terminal style homepage", + "packageManager": "pnpm@8.11.0", + "repository": { + "type": "git", + "url": "git+https://git.k0r.in/n/k0r.386" + }, + "author": "Norman Köhring", + "license": "MIT", + "homepage": "https://koehr.ing", + "bugs": { + "url": "https://git.k0r.in/n/k0r.386/issues" + }, "scripts": { "docs:dev": "vitepress dev", "docs:build": "vitepress build", @@ -12,4 +26,4 @@ "@figlet-ts/lib": "^0.5.0", "@fontsource/vt323": "^5.0.8" } -} \ No newline at end of file +}