bump version
This commit is contained in:
parent
852c38f41e
commit
c658d5492c
2 changed files with 29 additions and 4 deletions
|
@ -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<string, string>
|
||||
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)
|
||||
|
|
16
package.json
16
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue