This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
forked from MetaMask/metamask-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created a Metamask docs contributor list via github api (MetaMask#162)
* Reworded and simplified the Getting Started and Browser Detection verbage. * Adding metamask docs contributor list * pushing contributors page * moved fetch call to the created() * Use mounted instead of created Co-authored-by: Tim Woodson <[email protected]> Co-authored-by: unknown <[email protected]> Co-authored-by: Whymarrh Whitby <[email protected]>
- Loading branch information
1 parent
f1eeb86
commit b199383
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div> | ||
<div> | ||
<div v-for="contributor in metaMaskContributorList" class="card"> | ||
<img :src="contributor.avatar_url" width="100px" /> | ||
<h4> | ||
<a :href="contributor.html_url" target="_blank"> | ||
{{ contributor.login }} | ||
</a> | ||
</h4> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<style scoped> | ||
.card { | ||
display: inline-block; | ||
min-width: 175px; | ||
text-align: center; | ||
} | ||
h4 { | ||
margin-top: 0; | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
repoName: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
data() { | ||
return { | ||
metaMaskContributorList: [], | ||
}; | ||
}, | ||
mounted() { | ||
fetch(`https://api.github.com/repos/MetaMask/${this.repoName}/contributors`) | ||
.then((response) => response.json()) | ||
.then((data) => { | ||
this.metaMaskContributorList = data; | ||
}); | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Contributors | ||
|
||
## MetaMask Repositories | ||
:::: tabs :options="{ useUrlFragment: false }" | ||
|
||
::: tab Extension | ||
|
||
<GithubContributor | ||
repoName="metamask-extension" | ||
/> | ||
|
||
::: | ||
|
||
::: tab Mobile | ||
|
||
<GithubContributor | ||
repoName="metamask-mobile" | ||
/> | ||
|
||
::: | ||
|
||
::: tab Documentation | ||
|
||
<GithubContributor | ||
repoName="metamask-docs" | ||
/> | ||
|
||
::: | ||
|
||
:::: | ||
|