mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
918 B
43 lines
918 B
3 years ago
|
<template>
|
||
|
<div>
|
||
2 years ago
|
<gh-btns-star icon="mark-github" slug="nocodb/nocodb" show-count :class="{ dark: isDark }">
|
||
3 years ago
|
{{ ghStarText }}
|
||
|
</gh-btns-star>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'GithubStarBtn',
|
||
|
data: () => ({ ghStarText: 'Star' }),
|
||
|
mounted() {
|
||
2 years ago
|
setInterval(() => (this.ghStarText = this.ghStarText === 'Star' ? 'Fork' : 'Star'), 60000);
|
||
|
},
|
||
|
};
|
||
3 years ago
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
2 years ago
|
/deep/ .gh-button-container {
|
||
3 years ago
|
background: #fff2;
|
||
|
border-radius: 4px;
|
||
2 years ago
|
margin: 0;
|
||
3 years ago
|
}
|
||
|
/deep/ .gh-button-container:not(.dark) > a {
|
||
|
background: transparent !important;
|
||
|
color: #cdcdcd !important;
|
||
|
}
|
||
2 years ago
|
/deep/ .gh-button-container > a:first-child {
|
||
3 years ago
|
border-left-color: transparent;
|
||
|
border-top-color: transparent;
|
||
|
border-bottom-color: transparent;
|
||
|
}
|
||
2 years ago
|
/deep/ .gh-button-container > a:last-child {
|
||
3 years ago
|
border-color: transparent;
|
||
|
}
|
||
|
|
||
2 years ago
|
/deep/ .gh-button,
|
||
|
/deep/ .social-count {
|
||
|
padding: 1px 5px;
|
||
3 years ago
|
}
|
||
|
</style>
|