(favorite) save favorite repos

This commit is contained in:
2021-03-19 23:01:31 +01:00
parent 2faabb6c0e
commit 5fcf3c9df5
11 changed files with 308 additions and 44 deletions

26
src/components/GoBack.vue Normal file
View File

@@ -0,0 +1,26 @@
<template>
<button class="button is-primary go-back" @click="back">
<img src="@/assets/icons/left-arrow.svg" alt="back" />
</button>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { useRouter } from 'vue-router'
export default defineComponent({
name: 'GoBack',
setup() {
const { go } = useRouter()
return {
back: () => go(-1)
}
}
})
</script>
<style lang="scss" scoped>
.go-back {
}
</style>