add github stars

This commit is contained in:
Philipp Kühn
2020-04-19 11:56:50 +02:00
parent 7d5b8fd4dd
commit 5e18e0960a
3 changed files with 21 additions and 6 deletions

View File

@@ -17,7 +17,8 @@
"raw-loader": "^4.0.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"typescript": "^3.8.3"
"typescript": "^3.8.3",
"vue-github-button": "^1.1.2"
},
"devDependencies": {
"@babel/preset-react": "^7.9.4",

View File

@@ -4,9 +4,11 @@
<g-link class="app__logo" to="/">
{{ $static.metadata.siteName }}
</g-link>
<g-link to="https://github.com/scrumpy/tiptap">
<icon name="github" />
</g-link>
<github-button
href="https://github.com/scrumpy/tiptap"
data-show-count="true"
aria-label="Star scrumpy/tiptap on GitHub"
/>
</header>
<div class="app__content">
<nav class="app__sidebar">
@@ -41,13 +43,13 @@ query {
<script>
import linkGroups from '@/data/links.yaml'
import Icon from '@/components/Icon'
import PageNavigation from '@/components/PageNavigation'
import GithubButton from 'vue-github-button'
export default {
components: {
Icon,
PageNavigation,
GithubButton,
},
data() {

View File

@@ -6295,6 +6295,11 @@ gitconfiglocal@^1.0.0:
dependencies:
ini "^1.3.2"
github-buttons@^2.3.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.7.0.tgz#ce481388a39a8ed91a8073b6d3f1802f0068d52d"
integrity sha512-NGW6U6ZgLVTat6E6ZobWa9lwHsrthRo8NJ8GxlOAcrfeURg0k9qTrs1gG6Vzjjxt8jg/Wd2Or7RSGjKOrT5mFA==
github-from-package@0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce"
@@ -13866,6 +13871,13 @@ vm-browserify@^1.0.1:
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
vue-github-button@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vue-github-button/-/vue-github-button-1.1.2.tgz#318518c3a31d0fbd278ebcc80fbc5f88d68836e6"
integrity sha512-VukmgRy1wU0Ec8L8Qti4OOojQSfLRunf/In8bMqEJMXCZAz9BEgF4P+loAMBDoUqLYfyak4VJ2O7NTsZH2GLvQ==
dependencies:
github-buttons "^2.3.0"
vue-hot-reload-api@^2.3.0:
version "2.3.4"
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"