-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mjs
More file actions
78 lines (73 loc) · 1.61 KB
/
config.mjs
File metadata and controls
78 lines (73 loc) · 1.61 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
export function template({ left, right, top, bottom, ascii, title, underline, info, list, text, blank, raw }, data) {
left()
blank()
ascii(import.meta.url, './ascii')
blank()
right()
title(data.username)
underline()
if (data.bio) text(data.bio)
blank()
info('Repos', data.repositories)
info('Followers', data.followers)
info('Orgs', data.organizations)
info('Stars', data.stars)
blank()
list('Languages', ['TypeScript', 'Python'])
}
export function templateDefault(t, data) {
t.left()
.ascii(import.meta.url, './ascii')
.right()
.title(data.username)
.underline()
if (data.bio) t.text(data.bio)
t.blank()
.info('repos', data.repositories)
.info('followers', data.followers)
}
export const symbols = {
underline: '-',
infoSeparator: ':',
listMarker: '-',
columnSeparator: ' ',
}
export const colors = {
primary: 'greenBright',
secondary: 'white',
tertiary: 'gray',
alternate: 'whiteBright',
}
export const meta = {
paddingLeft: 0,
paddingTop: 0,
paddingBottom: 0,
maxWidth: 40,
}
export const svgOptions = {
colors: {
backgroundColor: '#18181b',
foregroundColor: '#fcfcfc',
black: '#232627',
red: '#ef4444',
green: '#22c55e',
yellow: '#eab308',
blue: '#3b82f6',
magenta: '#d946ef',
cyan: '#06b6d4',
white: '#f5f5f5',
blackBright: '#7f8c8d',
redBright: '#f87171',
greenBright: '#4ade80',
yellowBright: '#fde047',
blueBright: '#60a5fa',
magentaBright: '#e879f9',
cyanBright: '#22d3ee',
whiteBright: '#ffffff',
},
rows: 12,
cols: 50,
paddingX: 20,
paddingY: 15,
radius: 12,
}