-
Notifications
You must be signed in to change notification settings - Fork 14
/
constants.ts
233 lines (224 loc) · 8.87 KB
/
constants.ts
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
import Welcome from '@vscode-marquee/widget-welcome'
import Github from '@vscode-marquee/widget-github'
import News from '@vscode-marquee/widget-news'
import Weather from '@vscode-marquee/widget-weather'
import Todo from '@vscode-marquee/widget-todo'
import Notes from '@vscode-marquee/widget-notes'
import NPMStats from '@vscode-marquee/widget-npm-stats'
import Markdown from '@vscode-marquee/widget-markdown'
import Snippets from '@vscode-marquee/widget-snippets'
import Projects from '@vscode-marquee/widget-projects'
import Dependencies from '@vscode-marquee/widget-dependencies'
import Runme from '@vscode-marquee/widget-runme'
import { WidgetConfig, Theme, State, Configuration, LayoutType } from './types'
export const DEFAULT_STATE: State = {
modeName: 'default',
modes: {}
}
export const DEFAULT_CONFIGURATION: Configuration = {}
export const widgetConfig: WidgetConfig[] = [
Welcome,
News,
Github,
Todo,
Weather,
Projects,
Snippets,
Notes,
NPMStats,
Markdown,
Dependencies,
Runme,
] as WidgetConfig[]
export const SENTRY_DNS = 'https://6e86226331e84bd9885554fdac788ce7@o481102.ingest.sentry.io/5543775'
export const themes: Theme[] = [
{
id: 1,
background: './1.jpg',
title: 'Stockholm, Sweden',
description: 'Midsummer',
author: 'Archibald Kingsley',
},
{
id: 2,
background: './2.jpg',
title: 'Seattle, WA',
description: 'The City of Flowers',
author: 'Felipe Galvan',
},
{
id: 3,
background: './3.jpg',
title: 'Boston, MA',
description: 'Featuring Fenway',
author: 'Todd Kent',
},
{
id: 4,
background: './4.jpg',
title: 'Lago di Garda, Italy',
description: 'Bellissima',
author: 'Jan Delay',
},
{
id: 5,
background: './5.jpg',
title: 'Dubrovnik, Croatia',
description: 'aka King\'s Landing',
author: 'Archibald Kingsley',
},
{
id: 6,
background: './6.jpg',
title: 'Tegernsee, Bavaria, Germany',
description: 'Schnappszeit',
author: 'Archibald Kingsley',
},
{
id: 7,
background: './7.jpg',
title: 'New York, NY',
description: 'Central Park',
author: 'Jermaine Ee',
},
{
id: 8,
background: './8.jpg',
title: 'Arizona, USA',
description: 'Desert Tranquility',
author: 'Jan Delay',
},
{
id: 9,
background: './9.jpg',
title: 'Golden Gate, San Francisco',
description: 'Purely iconic',
author: 'Archibald Kingsley',
},
{
id: 10,
background: './10.jpg',
title: 'Coffee, Canada',
description: 'The comfort of a cup of joe',
author: 'Archibald Kingsley',
},
{
id: 11,
background: './11.jpg',
title: 'The force',
description: 'May the code be with you',
author: 'Archibald Kingsley',
},
{
id: 12,
background: './12.jpg',
title: 'A snowy tree',
description: 'Winter magic',
author: 'Archibald Kingsley',
},
{
id: 13,
backgroundColor: '#000000',
title: 'Dark',
description: 'Simply dark',
author: 'Archibald Kingsley',
},
{
id: 14,
backgroundColor: '#FFFFFF',
title: 'Light',
description: 'Simply light',
author: 'Archibald Kingsley',
},
]
export const NO_BACKGROUND_STYLE = {
position: 'fixed' as 'fixed',
width: '100%',
height: '100%'
}
export const BACKGROUND_STYLE = {
...NO_BACKGROUND_STYLE,
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
}
export const defaultLayout: LayoutType = {
lg: [
{ minW: 3, minH: 12, w: 4, h: 12, x: 0, y: 0, i: 'welcome', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 8, y: 12, i: 'todo', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 8, y: 0, i: 'weather', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 4, y: 12, i: 'github', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 0, y: 12, i: 'news', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 0, y: 24, i: 'snippets', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 6, y: 24, i: 'notes', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 6, y: 24, i: 'npm-stats', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 6, y: 24, i: 'markdown', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 4, y: 0, i: 'projects', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 4, y: 0, i: 'runme', moved: false, static: false },
],
md: [
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 0, i: 'welcome', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 6, y: 12, i: 'todo', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 7, y: 0, i: 'weather', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 3, y: 12, i: 'github', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 12, i: 'news', moved: false, static: false },
{ minW: 3, minH: 12, w: 5, h: 12, x: 0, y: 24, i: 'snippets', moved: false, static: false },
{ minW: 3, minH: 12, w: 5, h: 13, x: 5, y: 24, i: 'notes', moved: false, static: false },
{ minW: 3, minH: 12, w: 5, h: 13, x: 5, y: 24, i: 'markdown', moved: false, static: false },
{ minW: 3, minH: 12, w: 5, h: 13, x: 5, y: 24, i: 'npm-stats', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 12, x: 3, y: 0, i: 'projects', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 12, x: 3, y: 0, i: 'runme', moved: false, static: false },
],
sm: [
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 0, i: 'welcome', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 3, y: 24, i: 'todo', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 3, y: 12, i: 'weather', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 24, i: 'github', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 12, i: 'news', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 0, y: 36, i: 'snippets', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 0, y: 49, i: 'notes', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 0, y: 49, i: 'npm-stats', moved: false, static: false },
{ minW: 3, minH: 12, w: 6, h: 13, x: 0, y: 49, i: 'markdown', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 3, y: 0, i: 'projects', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 3, y: 0, i: 'runme', moved: false, static: false },
],
xs: [
{ minW: 3, minH: 12, w: 2, h: 11, x: 0, y: 0, i: 'welcome', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 0, y: 23, i: 'todo', moved: false, static: false },
{ minW: 3, minH: 12, w: 2, h: 11, x: 2, y: 0, i: 'weather', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 0, y: 74, i: 'github', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 13, x: 0, y: 61, i: 'news', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 13, x: 0, y: 35, i: 'snippets', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 13, x: 0, y: 48, i: 'notes', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 13, x: 0, y: 48, i: 'markdown', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 13, x: 0, y: 48, i: 'npm-stats', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 0, y: 11, i: 'projects', moved: false, static: false },
{ minW: 3, minH: 12, w: 4, h: 12, x: 0, y: 11, i: 'runme', moved: false, static: false },
],
xxs: [
{ minW: 3, minH: 12, w: 3, h: 11, x: 0, y: 0, i: 'welcome', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 35, i: 'todo', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 11, i: 'weather', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 86, i: 'github', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 13, x: 0, y: 73, i: 'news', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 13, x: 0, y: 47, i: 'snippets', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 13, x: 0, y: 60, i: 'notes', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 13, x: 0, y: 60, i: 'markdown', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 13, x: 0, y: 60, i: 'npm-stats', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 23, i: 'projects', moved: false, static: false },
{ minW: 3, minH: 12, w: 3, h: 12, x: 0, y: 23, i: 'runme', moved: false, static: false },
],
}
export const defaultEnabledWidgets = {
news: true,
github: true,
todo: true,
weather: true,
notes: true,
'npm-stats': true,
markdown: true,
welcome: true,
snippets: true,
projects: true,
runme: true,
}
export const presetModes = ['default', 'work', 'play'] as string[]