-
Notifications
You must be signed in to change notification settings - Fork 1
/
library.ftd
555 lines (389 loc) · 9.78 KB
/
library.ftd
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
-- import: fpm
-- import: templates-ftd/custom-typo as font
-- import: templates-ftd/config as config
-- boolean open-vaa: false
-- string selected-repo-name: selected-repo
$processor$: get-data
-- boolean open-1: false
-- optional string code-repo-txt:
$processor$: get-data
null
-- optional string doc-repo-txt:
$processor$: get-data
null
-- ftd.font-size octicon-fs:
line-height: 16
size: 16
letter-spacing: 0
-- ftd.type octicon:
font: $assets.fonts.Octicon
desktop: $octicon-fs
mobile: $octicon-fs
xl: $octicon-fs
weight: 700
-- ftd.row header:
optional ftd.image-src site-logo: $assets.files.assets.images.logo-fifthtry-dark.svg
optional ftd.image-src icon-github: $assets.files.assets.images.icon-github.svg
string site-url: /
width:fill
ftd.color background: $fpm.color.main.background.base
background-color: $background
padding-horizontal:32
--- ftd.column:
width:fill
padding-vertical:24
--- ftd.image:
src:$site-logo
--- container: ftd.main
--- ftd.column:
padding-vertical:28
spacing:32
--- ftd.image:
src:$icon-github
-- ftd.row logo-with-text:
width:fill
optional ftd.image-src logo:
optional string logo-text:
spacing: 10
--- ftd.image:
padding-top: $fpm.space.space-2
src: $logo
height: 24
width: auto
--- ftd.text: $logo-text
color: $fpm.color.main.text-strong
role: $fpm.type.heading-small
-- ftd.input search-btn:search
caption title:
cursor: pointer
width:fill
color: $fpm.color.main.text
border-radius: 8
padding-vertical: 14
padding-horizontal: 28
border-width: 1
align:left
placeholder: $title
background-color: $fpm.color.main.background.base
border-color: $fpm.color.main.text
-- ftd.row mapping-loop:
optional ftd.image-src button-name:
optional ftd.image-src doc-logo:
optional ftd.image-src code-logo:
width: fill
border-bottom: 1
border-color: $fpm.color.main.text
padding-horizontal:30
padding-vertical: 20
config.code-repo-data code-repo:
config.code-repo-data documentation-repo:
--- ftd.column:
width: fill
id: left-side
--- ftd.row:
spacing: 4
padding-top: 4
--- ftd.image:
padding-top: 8
src: $assets.files.assets.images.lower-rectangle.png
--- ftd.image:
padding-top: 4
src: $assets.files.assets.images.icon9.png
--- ftd.text: $code-repo.repo-full-name
link: $code-repo.get-url
color: $fpm.color.main.text
role: $fpm.type.label-small
--- container: left-side
--- ftd.row:
spacing: 4
padding-top: 4
--- ftd.image:
padding-top: 8
src: $assets.files.assets.images.lower-rect.png
--- ftd.image:
padding-top: 4
src: $assets.files.assets.images.rectangle-white.png
--- ftd.text: $documentation-repo.repo-full-name
link: $documentation-repo.get-url
color: $fpm.color.main.text
role: $fpm.type.label-small
--- container: ftd.main
--- ftd.text :˃
role: $octicon
link: /pull/
border-radius: 8
padding-horizontal: $fpm.space.space-4
padding-vertical: $fpm.space.space-2
background-color: $fpm.color.main.cta-primary.base
-- ftd.row available-loop:
optional ftd.image-src button-name:
ftd.image-src doc-logo: $assets.files.assets.images.orgname.png
width: fill
border-bottom: 1
border-color: $fpm.color.main.text
padding-horizontal:30
padding-vertical: 20
string repo-full-name:
integer index:
--- ftd.row:
width: fill
margin-top: 8
spacing: 4
--- ftd.image:
src: $doc-logo
--- ftd.text: $repo-full-name
link: $repo-full-name
color: $fpm.color.main.text
role: $fpm.type.label-small
--- container: ftd.main
--- ftd.row:
--- overview: Connect
anchor: window
outlines: $fpm.color.main.cta-primary.base
repo-full-name: $repo-full-name
repo-text: This Repo is a:
--- both-button:
repo-name: $repo-full-name
title-right: code-repo
title-left: documentation-repo
about-repo-left: Code Repository:
about-repo-right: Documentation Repository:
heading-name-right: Attach Documentation repository
heading-name-left: Attach Code repository
-- ftd.row both-button:
width: fill
caption title-right:
caption title-left:
string about-repo-right:
string about-repo-left:
caption heading-name-right:
caption heading-name-left:
string repo-name:
spacing: 8
--- code-repo: $title-right
about-repo: $about-repo-right
repo-name: $repo-name
heading-name: $heading-name-left
--- container: ftd.main
--- code-repo: $title-left
about-repo: $about-repo-left
repo-name: $repo-name
heading-name: $heading-name-right
-- ftd.column overview:
caption button-name:
string anchor:
boolean open-1: false
optional string repo-full-name:
optional string repo-text:
optional string repo-name:
optional ftd.color outlines:
integer border-wi: 0
string text-align: left
ftd.image-src cross-logo: $assets.files.assets.images.Union.png
open: true
append-at: col-id
--- ftd.text: $button-name
role: $font.button
background-color: $fpm.color.main.cta-primary.base
color: $fpm.color.main.background.base
background-color if $MOUSE-IN: $font.cta_hover
color if $MOUSE-IN: $fpm.color.main.error.base
border-radius: 8
padding-vertical: 12
padding-horizontal: 16
border-width: 1
border-color: $fpm.color.main.border-strong
$on-click$: $open-1 = true
--- ftd.column:
if: $open-1
z-index: 100
anchor: $anchor
width: percent 100
height: percent 100
background-color: $font.backkk
--- ftd.column:
background-color: $fpm.color.main.background.base
move-right: 500
move-down: 200
border-width: 1
width: 614
padding-top: $fpm.space.space-3
padding-bottom: $fpm.space.space-8
padding-horizontal: $fpm.space.space-7
boolean mouse-in: false
border-color: $fpm.color.main.cta-primary.base
shadow-offset-x: 3
shadow-offset-y: 4
shadow-blur: 2
border-top: 1
border-radius: 8
border-color: $outlines
shadow-color: $outlines
id: model-content
--- ftd.row:
width: fill
--- ftd.text: $repo-full-name
text-align: $text-align
role: $fpm.type.heading-medium
color: $fpm.color.main.text-strong
width: fill
--- ftd.image:
padding-top: $fpm.space.space-4
src: $cross-logo
$on-click$: $open-1 = false
--- container: model-content
--- ftd.text: $repo-name
if: $repo-name is not null
role: $fpm.type.copy-relaxed
color: $fpm.color.main.text
width: fill
--- container: model-content
--- ftd.row:
width: fill
padding-top: $fpm.space.space-6
id: col-id
-- ftd.text button:
caption title:
text: $title
align: center
role: $font.button
ftd.color button-bg: $fpm.color.main.background.base
ftd.color button-color: $fpm.color.main.error.base
background-color:$button-bg
color: $fpm.color.main.background.base
background-color if $MOUSE-IN: $font.cta_hover
color if $MOUSE-IN: $fpm.color.main.error.base
border-radius: 8
padding-vertical: 12
padding-horizontal: 16
border-width: 1
border-color: $fpm.color.main.border-strong
-- ftd.row select-repo:
config.available-repos-for-mapping-data list available-repos-for-mapping: $config.available-repos-for-mapping
caption title:
boolean open: false
$on-click$: toggle $open
$on-click-outside$: $open= false
open: true
width: fill
append-at: selected-repo
--- ftd.input: $selected-repo-name
cursor: pointer
width:fill
height: 34
color: $fpm.color.main.text
border-radius: 8
padding-vertical: 14
padding-horizontal: 28
border-width: 1
placeholder: $selected-repo-name
background-color: $fpm.color.main.background.base
border-color: $fpm.color.main.text
--- ftd.text: ﹀
if: $available-repos-for-mapping is not empty
color: $fpm.color.main.text
position: center
move-right: -20
--- container: ftd.main
--- ftd.column:
width: percent 94
anchor: parent
z-index: 4
top: 30
background-color: $fpm.color.main.text-strong
left: 0
--- show-children:
if: $open
if: $available-repos-for-mapping is not empty
index: $obj.id
children: $obj.repo-full-name
$loop$: $available-repos-for-mapping as $obj
-- ftd.row show-children:
width: fill
id: selected-repo
integer index:
background-color if $MOUSE-IN:$fpm.color.main.cta-secondary.base
string children:
--- ftd.text: $children
padding-left: 12
$on-click$: $selected-repo-name = $children
role: $fpm.type.copy-tight
color: $fpm.color.main.text-strong
white-space: nowrap
width: fill
-- ftd.column code-repo:
caption button-name:
string about-repo:
string heading-name:
string repo-name:
boolean open-2: false
optional integer border-wi: 0
optional ftd.image-src cross-logo: $assets.files.assets.images.Union.png
open: true
append-at: col-id
--- ftd.text: $button-name
role: $font.button
ftd.color button-bg: $fpm.color.main.background.base
ftd.color button-color: $fpm.color.main.error.base
background-color: $font.cta_primary_base
color: $fpm.color.main.background.base
background-color if $MOUSE-IN: $font.cta_hover
color if $MOUSE-IN: $fpm.color.main.error.base
border-radius: 8
padding-vertical: 12
padding-horizontal: 16
border-width: 1
border-color: $fpm.color.main.cta-primary.base
$on-click$: $open-2 = true
--- ftd.column:
anchor: window
background-color: $fpm.color.main.cta-primary.base
if: $open-2
--- ftd.column:
background-color: $fpm.color.main.background.base
width: 614
border-width: 1
padding-vertical: 12
padding-left: $fpm.space.space-8
border-color: $fpm.color.main.cta-primary.base
id: col-id
shadow-offset-x: 3
shadow-offset-y: 4
border-top: $border-wi
border-radius: 8
shadow-color: $fpm.color.main.cta-primary.base
spacing: 12
--- ftd.row:
width:fill
padding-right: 13
--- ftd.text: $heading-name
role: $fpm.type.heading-medium
color: $fpm.color.main.text-strong
width: fill
--- ftd.image:
padding-top: $fpm.space.space-2
src: $assets.files.assets.images.Union.png
/$on-click-outside$: $open-1 = true
$on-click$: $open-2 = false
--- container: col-id
--- ftd.text: $repo-name
role: $fpm.type.copy-relaxed
color: $fpm.color.main.text
width: fill
--- container: col-id
--- ftd.row:
width: fill
padding-top: $fpm.space.space-7
--- ftd.text: $about-repo
role: $fpm.type.copy-relaxed
color: $fpm.color.main.text
width: fill
--- select-repo: search
available-repos-for-mapping: $config.available-repos-for-mapping
--- container: col-id
--- ftd.row:
align: center
padding-top: $fpm.space.space-8
padding-bottom: $fpm.space.space-8
--- button: Attach
button-bg: $fpm.color.main.cta-primary.base