Skip to content

Commit 60a4953

Browse files
committed
run prettier
1 parent 8571299 commit 60a4953

File tree

16 files changed

+149
-149
lines changed

16 files changed

+149
-149
lines changed

scripts/installation-count.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ fetch('https://api.github.com/app', {
66
headers: {
77
accept: 'application/vnd.github.machine-man-preview+json',
88
'user-agent': 'octokit.js/16.28.1 Node.js/10.16.0 (macOS Mojave; x64)',
9-
authorization: `Bearer ${t}`
10-
}
9+
authorization: `Bearer ${t}`,
10+
},
1111
})
12-
.then(res => res.json())
13-
.then(d => d.installations_count)
12+
.then((res) => res.json())
13+
.then((d) => d.installations_count)
1414
.then(console.log)

site/lib/zoom.min.js

+50-50
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
* Copyright (c) 2013 @fat
1717
* The MIT License. Copyright © 2016 Nishanth Shanmugham.
1818
*/
19-
!(function() {
19+
!(function () {
2020
'use strict'
2121
function t(t, e) {
2222
if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function')
2323
}
24-
var e = (function() {
24+
var e = (function () {
2525
function t(t, e) {
2626
for (var n = 0; n < e.length; n++) {
2727
var i = e[n]
@@ -31,11 +31,11 @@
3131
Object.defineProperty(t, i.key, i)
3232
}
3333
}
34-
return function(e, n, i) {
34+
return function (e, n, i) {
3535
return n && t(e.prototype, n), i && t(e, i), e
3636
}
3737
})()
38-
!(function(t) {
38+
!(function (t) {
3939
function e(i) {
4040
if (n[i]) return n[i].exports
4141
var o = (n[i] = { i: i, l: !1, exports: {} })
@@ -45,79 +45,79 @@
4545
return (
4646
(e.m = t),
4747
(e.c = n),
48-
(e.i = function(t) {
48+
(e.i = function (t) {
4949
return t
5050
}),
51-
(e.d = function(t, n, i) {
51+
(e.d = function (t, n, i) {
5252
e.o(t, n) || Object.defineProperty(t, n, { configurable: !1, enumerable: !0, get: i })
5353
}),
54-
(e.n = function(t) {
54+
(e.n = function (t) {
5555
var n =
5656
t && t.__esModule
57-
? function() {
57+
? function () {
5858
return t.default
5959
}
60-
: function() {
60+
: function () {
6161
return t
6262
}
6363
return e.d(n, 'a', n), n
6464
}),
65-
(e.o = function(t, e) {
65+
(e.o = function (t, e) {
6666
return Object.prototype.hasOwnProperty.call(t, e)
6767
}),
6868
(e.p = ''),
6969
e((e.s = 3))
7070
)
7171
})([
72-
function(t, e, n) {
73-
n.d(e, 'a', function() {
72+
function (t, e, n) {
73+
n.d(e, 'a', function () {
7474
return i
7575
}),
76-
n.d(e, 'b', function() {
76+
n.d(e, 'b', function () {
7777
return o
7878
}),
79-
n.d(e, 'c', function() {
79+
n.d(e, 'c', function () {
8080
return r
8181
}),
82-
n.d(e, 'd', function() {
82+
n.d(e, 'd', function () {
8383
return a
8484
})
85-
var i = function() {
85+
var i = function () {
8686
return document.documentElement.clientWidth
8787
},
88-
o = function() {
88+
o = function () {
8989
return document.documentElement.clientHeight
9090
},
91-
r = function(t) {
91+
r = function (t) {
9292
var e = t.getBoundingClientRect(),
9393
n = document.documentElement,
9494
i = window
9595
return {
9696
top: e.top + i.pageYOffset - n.clientTop,
97-
left: e.left + i.pageXOffset - n.clientLeft
97+
left: e.left + i.pageXOffset - n.clientLeft,
9898
}
9999
},
100-
a = function(t, e, n) {
100+
a = function (t, e, n) {
101101
var i = function t(i) {
102102
i.target.removeEventListener(e, t), n()
103103
}
104104
t.addEventListener(e, i)
105105
}
106106
},
107-
function(t, e, n) {
107+
function (t, e, n) {
108108
var i = n(2),
109109
o = n(0)
110-
n.d(e, 'a', function() {
110+
n.d(e, 'a', function () {
111111
return w
112112
})
113113
var r = null,
114114
a = 80,
115115
s = -1,
116116
u = -1,
117-
c = function(t) {
117+
c = function (t) {
118118
t.addEventListener('click', l)
119119
},
120-
l = function(t) {
120+
l = function (t) {
121121
return document.body.classList.contains('zoom-overlay-open')
122122
? void 0
123123
: t.metaKey || t.ctrlKey
@@ -127,30 +127,30 @@
127127
(d(!0), (r = new i.a(t.target, a)), r.zoom(), m())
128128
)
129129
},
130-
d = function(t) {
130+
d = function (t) {
131131
null != r && (t ? r.dispose() : r.close(), f(), (r = null))
132132
},
133-
m = function() {
133+
m = function () {
134134
document.addEventListener('scroll', h),
135135
document.addEventListener('keyup', v),
136136
document.addEventListener('touchstart', p),
137137
document.addEventListener('click', y, !0)
138138
},
139-
f = function() {
139+
f = function () {
140140
document.removeEventListener('scroll', h),
141141
document.removeEventListener('keyup', v),
142142
document.removeEventListener('touchstart', p),
143143
document.removeEventListener('click', y, !0)
144144
},
145-
h = function() {
145+
h = function () {
146146
;-1 == s && (s = window.pageYOffset)
147147
var t = Math.abs(s - window.pageYOffset)
148148
t >= 40 && d()
149149
},
150-
v = function(t) {
150+
v = function (t) {
151151
27 == t.keyCode && d()
152152
},
153-
p = function(t) {
153+
p = function (t) {
154154
var e = t.touches[0]
155155
null != e && ((u = e.pageY), t.target.addEventListener('touchmove', g))
156156
},
@@ -160,18 +160,18 @@
160160
Math.abs(n.pageY - u) > 10 &&
161161
(d(), e.target.removeEventListener('touchmove', t))
162162
},
163-
y = function() {
163+
y = function () {
164164
d()
165165
},
166166
w = Object.create(null)
167167
w.setup = c
168168
},
169-
function(n, i, o) {
169+
function (n, i, o) {
170170
var r = o(0),
171171
a = function e(n, i) {
172172
t(this, e), (this.w = n), (this.h = i)
173173
},
174-
s = (function() {
174+
s = (function () {
175175
function n(e, i) {
176176
t(this, n),
177177
(this.img = e),
@@ -184,13 +184,13 @@
184184
e(n, [
185185
{
186186
key: 'forceRepaint',
187-
value: function() {
187+
value: function () {
188188
this.img.offsetWidth
189-
}
189+
},
190190
},
191191
{
192192
key: 'zoom',
193-
value: function() {
193+
value: function () {
194194
var t = new a(this.img.naturalWidth, this.img.naturalHeight)
195195
;(this.wrap = document.createElement('div')),
196196
this.wrap.classList.add('zoom-img-wrap'),
@@ -206,22 +206,22 @@
206206
this.forceRepaint(),
207207
this.animate(e),
208208
document.body.classList.add('zoom-overlay-open')
209-
}
209+
},
210210
},
211211
{
212212
key: 'calculateScale',
213-
value: function(t) {
213+
value: function (t) {
214214
var e = t.w / this.img.width,
215215
n = o.i(r.a)() - this.offset,
216216
i = o.i(r.b)() - this.offset,
217217
a = t.w / t.h,
218218
s = n / i
219219
return t.w < n && t.h < i ? e : s > a ? (i / t.h) * e : (n / t.w) * e
220-
}
220+
},
221221
},
222222
{
223223
key: 'animate',
224-
value: function(t) {
224+
value: function (t) {
225225
var e = o.i(r.c)(this.img),
226226
n = window.pageYOffset,
227227
i = o.i(r.a)() / 2,
@@ -234,11 +234,11 @@
234234
m = 'scale(' + t + ')',
235235
f = 'translate3d(' + c + 'px, ' + l + 'px, ' + d + 'px)'
236236
;(this.img.style.transform = m), (this.wrap.style.transform = f)
237-
}
237+
},
238238
},
239239
{
240240
key: 'dispose',
241-
value: function() {
241+
value: function () {
242242
null != this.wrap &&
243243
null != this.wrap.parentNode &&
244244
(this.img.classList.remove('zoom-img'),
@@ -247,34 +247,34 @@
247247
this.wrap.parentNode.removeChild(this.wrap),
248248
document.body.removeChild(this.overlay),
249249
document.body.classList.remove('zoom-overlay-transitioning'))
250-
}
250+
},
251251
},
252252
{
253253
key: 'close',
254-
value: function() {
254+
value: function () {
255255
var t = this
256256
document.body.classList.add('zoom-overlay-transitioning'),
257257
(this.img.style.transform = this.preservedTransform),
258258
0 === this.img.style.length && this.img.removeAttribute('style'),
259259
(this.wrap.style.transform = 'none'),
260-
o.i(r.d)(this.img, 'transitionend', function() {
260+
o.i(r.d)(this.img, 'transitionend', function () {
261261
t.dispose(), document.body.classList.remove('zoom-overlay-open')
262262
})
263-
}
264-
}
263+
},
264+
},
265265
]),
266266
n
267267
)
268268
})()
269269
i.a = s
270270
},
271-
function(t, e, n) {
271+
function (t, e, n) {
272272
Object.defineProperty(e, '__esModule', { value: !0 })
273273
var i = n(1)
274-
document.addEventListener('DOMContentLoaded', function() {
274+
document.addEventListener('DOMContentLoaded', function () {
275275
for (var t = document.querySelectorAll("img[data-action='zoom']"), e = 0; e < t.length; e++)
276276
i.a.setup(t[e])
277277
})
278-
}
278+
},
279279
])
280280
})()

src/analytics.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ if (
77
let analytics = new Windsor(process.env.WINDSOR_KEY)
88
module.exports = {
99
identify: analytics.user.bind(analytics),
10-
track: x => {
10+
track: (x) => {
1111
try {
1212
return analytics.event.call(analytics, typeof x === 'function' ? x() : x)
1313
} catch (error) {
1414
console.error(error)
1515
}
16-
}
16+
},
1717
}
1818
} else {
1919
module.exports = {
2020
track: () => {},
2121
identify: () => {},
22-
dev: true
22+
dev: true,
2323
}
2424
}

src/comment/created.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function parseRegex(string) {
2020
return /$^/
2121
}
2222

23-
module.exports = () => async context => {
23+
module.exports = () => async (context) => {
2424
const config = await getConfig(context)
2525

2626
const { author_association, body, id: comment_id } = context.payload.comment

src/comment/deleted.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { CLOSE, MERGE, APP_USER_ID } = require('../constants')
22
const getId = require('../get-job-id')
33

4-
module.exports = queue => context => {
4+
module.exports = (queue) => (context) => {
55
if (context.payload.comment.user.id === APP_USER_ID) {
66
queue.removeJob(getId(context, { action: CLOSE }))
77
queue.removeJob(getId(context, { action: MERGE }))

0 commit comments

Comments
 (0)