forked from OSSPhilippines/covid19-tracker-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblessedConfig.ts
More file actions
115 lines (112 loc) · 2.68 KB
/
blessedConfig.ts
File metadata and controls
115 lines (112 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { DashboardSize } from "../../types/types";
interface BlessedSizeConfiguration {
// MOCKSTDOUT
// Touching the arguments here will mess up with the screenshot function
// Generally, making the numbers bigger will affect the response string because the output will take up more space
// However, making the numbers smaller is just going to add invisible padding on the bottom and the right
mockStdout: number[];
screenshot: number[];
// position: number[]
// grid.set(a, b, c, d);
// a = starting position across the y axis
// b = starting position across the x axis
// c = span across the y axis
// d = span across the x axis
header: {
position: number[];
};
map: {
position: number[];
};
table: {
position: number[];
tableXOffset: number;
};
bar: {
position: number[];
barXOffset: number;
};
donut: {
position: number[];
};
line: {
position: number[];
};
}
// To the future person who has to touch this, may god have mercy on your soul
export const blessedConfig: {
[key in DashboardSize]: BlessedSizeConfiguration;
} = {
sm: {
mockStdout: [180, 44],
screenshot: [90, 40],
header: {
position: [0, 0, 4, 4],
},
map: {
position: [0, 4, 4, 5],
},
table: {
position: [4, 0, 4, 9],
tableXOffset: 15,
},
bar: {
position: [8, 0, 5, 5],
barXOffset: 1,
},
donut: {
position: [8, 5, 5, 4],
},
line: {
position: [13, 0, 5, 9],
},
},
md: {
mockStdout: [340, 50],
screenshot: [180, 34],
header: {
position: [0, 0, 4, 3],
},
map: {
position: [4, 0, 5, 3],
},
table: {
position: [0, 3, 4, 6],
tableXOffset: 28,
},
bar: {
position: [4, 3, 5, 3],
barXOffset: 4,
},
donut: {
position: [4, 6, 5, 3],
},
line: {
position: [9, 0, 5, 9],
},
},
lg: {
mockStdout: [360, 50],
screenshot: [180, 40],
header: {
position: [0, 0, 2, 9],
},
map: {
position: [6, 0, 5, 3],
},
table: {
position: [2, 0, 4, 9],
tableXOffset: 60,
},
bar: {
position: [6, 3, 5, 3],
barXOffset: 5,
},
donut: {
position: [6, 6, 5, 3],
},
line: {
position: [11, 0, 5, 9],
},
},
};