-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8427221
commit da96c97
Showing
15 changed files
with
689 additions
and
163 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
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
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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<template> | ||
<btn :class="followed ? 'btn-active':''" @click="$emit('toggleFollow', $target)"> | ||
{{ followed ? 'UnFollow' : 'Follow' }} | ||
</btn> | ||
<btn | ||
:class="followed ? 'btn-active' : ''" | ||
@click="$emit('toggleFollow', $target)" | ||
> | ||
{{ followed ? "UnFollow" : "Follow" }} | ||
</btn> | ||
</template> | ||
|
||
<script> | ||
import Btn from './Btn.vue' | ||
import Btn from "./Btn.vue"; | ||
export default { | ||
components: { | ||
Btn | ||
}, | ||
props : { | ||
followed: { | ||
default: false, | ||
type: Boolean | ||
} | ||
components: { | ||
Btn, | ||
}, | ||
props: { | ||
followed: { | ||
default: false, | ||
type: Boolean, | ||
}, | ||
emits: [ 'toggleFollow' ] | ||
} | ||
}, | ||
emits: ["toggleFollow"], | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.btn-active{ | ||
@apply bg-primary bg-opacity-10 border-none font-medium; | ||
.btn-active { | ||
@apply bg-primary bg-opacity-10 border-none font-medium; | ||
} | ||
</style> |
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,5 @@ | ||
export default function log({ next, to }) { | ||
console.log(to); | ||
|
||
return next(); | ||
} |
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
Oops, something went wrong.