mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
yarn lint
This commit is contained in:
parent
97ccac8231
commit
2bc9a34cd0
3 changed files with 15 additions and 13 deletions
|
|
@ -153,6 +153,7 @@ export default function Hackathons({ data, stars }) {
|
|||
color: 'white'
|
||||
}
|
||||
}}
|
||||
key={data.name}
|
||||
>
|
||||
{data.logo && (
|
||||
<Box
|
||||
|
|
@ -220,6 +221,7 @@ export default function Hackathons({ data, stars }) {
|
|||
color: 'white'
|
||||
}
|
||||
}}
|
||||
key={data.name}
|
||||
>
|
||||
{data.logo && (
|
||||
<Box
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export default function Secret({ reveal, ...props }) {
|
|||
|
||||
useEffect(() => {
|
||||
setImage('https://geta.dino.icu/dino.png')
|
||||
})
|
||||
},[])
|
||||
|
||||
return (
|
||||
<Box
|
||||
|
|
|
|||
|
|
@ -8,27 +8,27 @@ export default async function github(req, res) {
|
|||
let gitHubData = initialGitHubData.map(x => ({
|
||||
type: x.type,
|
||||
user:
|
||||
x.type == 'PushEvent'
|
||||
x.type === 'PushEvent'
|
||||
? x.actor.login
|
||||
: x.type == 'PullRequestEvent'
|
||||
: x.type === 'PullRequestEvent'
|
||||
? x.actor.login
|
||||
: x.type == 'WatchEvent'
|
||||
: x.type === 'WatchEvent'
|
||||
? x.actor.login
|
||||
: null,
|
||||
userImage:
|
||||
x.type == 'PushEvent'
|
||||
x.type === 'PushEvent'
|
||||
? x.actor.avatar_url
|
||||
: x.type == 'PullRequestEvent'
|
||||
: x.type === 'PullRequestEvent'
|
||||
? x.actor.avatar_url
|
||||
: x.type == 'WatchEvent'
|
||||
: x.type === 'WatchEvent'
|
||||
? x.actor.avatar_url
|
||||
: null,
|
||||
message:
|
||||
x.type == 'PushEvent'
|
||||
x.type === 'PushEvent'
|
||||
? x.payload.commits[0].message
|
||||
: x.type == 'PullRequestEvent'
|
||||
: x.type === 'PullRequestEvent'
|
||||
? x.payload.pull_request.title
|
||||
: x.type == 'WatchEvent'
|
||||
: x.type === 'WatchEvent'
|
||||
? `starred ${x.repo.name}`
|
||||
: null,
|
||||
time: x.created_at
|
||||
|
|
@ -36,9 +36,9 @@ export default async function github(req, res) {
|
|||
|
||||
gitHubData = gitHubData.filter(
|
||||
x =>
|
||||
x.type == 'PushEvent' ||
|
||||
x.type == 'PullRequestEvent' ||
|
||||
x.type == 'WatchEvent'
|
||||
x.type === 'PushEvent' ||
|
||||
x.type === 'PullRequestEvent' ||
|
||||
x.type === 'WatchEvent'
|
||||
)
|
||||
|
||||
res.json(gitHubData)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue