aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/shared.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/shared.ts')
-rw-r--r--src/routes/shared.ts43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/routes/shared.ts b/src/routes/shared.ts
index 0d198bf..e4a3e6d 100644
--- a/src/routes/shared.ts
+++ b/src/routes/shared.ts
@@ -37,37 +37,37 @@ export type RenderBlock = {
italic?: boolean;
underlined?: boolean;
url?:
- | `newtab:${string}`
- | `currenttab:${string}`
- | ((textObj: TTYText & { kind: 'text' }) => void);
+ | `newtab:${string}`
+ | `currenttab:${string}`
+ | ((textObj: TTYText & { kind: 'text' }) => void);
bg?: string;
raw?: boolean;
dl?: string;
};
export type TTYText =
| {
- kind: 'text';
- renderrestriction?: 'everywhere' | 'js-only' | 'noscript';
- value: RenderBlock[];
- id: string;
- classes: string[];
- }
+ kind: 'text';
+ renderrestriction?: 'everywhere' | 'js-only' | 'noscript';
+ value: RenderBlock[];
+ id: string;
+ classes: string[];
+ }
| {
- kind: 'removeNode';
- removedId: string;
- removedItemClassList: string[];
- }
+ kind: 'removeNode';
+ removedId: string;
+ removedItemClassList: string[];
+ }
| {
- kind: 'time';
- delay: number;
- }
+ kind: 'time';
+ delay: number;
+ }
| {
- kind: 'cursorVisibility';
- visible: boolean;
- }
+ kind: 'cursorVisibility';
+ visible: boolean;
+ }
| {
- kind: 'clear';
- };
+ kind: 'clear';
+ };
export type Only<Obj, Keys extends keyof Obj> = {
[k in Keys]: Obj[k];
};
@@ -231,6 +231,7 @@ export const ttyLines: TTYText[] = (() => {
'overhead: "I don\'t consent" "hey thats my line"',
'uwu',
'i regret making this hellhole of a codebase',
+ `${(parseInt('0x' + (0x1312 + 0o1312).toString(16)) - 0x96cf).toString(16)}`,
]),
{
colour: '#777777',