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