-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
metadata.yml
84 lines (72 loc) · 2.5 KB
/
metadata.yml
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
name: 🌇 GitHub Skyline
category: github
description: |
This plugin displays the 3D commits calendar from [skyline.github.com](https://skyline.github.com/).
notes: |
> ⚠️ This plugin significantly increase file size, consider using it as standalone.
examples:
+GitHub Skyline: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.svg
GitHub City: https://github.com/lowlighter/metrics/blob/examples/metrics.plugin.skyline.city.svg
index: 27
supports:
- user
scopes: []
inputs:
plugin_skyline:
description: |
Enable skyline plugin
type: boolean
default: no
extras:
- metrics.cpu.overuse
- metrics.npm.optional.gifencoder
- metrics.run.puppeteer.scrapping
plugin_skyline_year:
description: |
Displayed year
type: number
default: current-year
min: 2008
plugin_skyline_frames:
description: |
Frames count
Use 120 for a full-loop and 60 for a half-loop.
A higher number of frames will increase file size.
type: number
default: 60
min: 1
max: 120
plugin_skyline_quality:
description: |
Image quality
A higher image quality will increase file size.
type: number
default: 0.5
min: 0.1
max: 1
plugin_skyline_compatibility:
description: |
Compatibility mode
This uses CSS animations rather than embedded GIF to support a wider range of browsers, like Firefox and Safari.
Using this mode significantly increase file size as each frame is encoded separately
type: boolean
default: no
plugin_skyline_settings:
description: |
Advanced settings
Can be configured to use alternate skyline websites different from [skyline.github.com](https://skyline.github.com), such as [honzaap's GitHub City](https://github.com/honzaap/GithubCity).
- `url`: Target URL (mandatory)
- `ready`: Readiness condition (A JS function that returns a boolean)
- `wait`: Time to wait after readiness condition is met (in seconds)
- `hide`: HTML elements to hide (A CSS selector)
For `url` and `ready` options, `${login}` and `${year}` will be respectively templated to user's login and specified year
type: json
default: |
{
"url": "https://skyline.github.com/${login}/${year}",
"ready": "[...document.querySelectorAll('span')].map(span => span.innerText).includes('Share on Twitter')",
"wait": 1,
"hide": "button, footer, a"
}
extras:
- metrics.run.puppeteer.user.js