Use prefix notation for component names
Start component names with the kind of element it creates on the page (button, input, table, card, etc), then follow it with an hierarchy like set of parts describing what part of the system it operates on. This makes related components stick together in the directory listing of components and auto-complete work better.
This commit is contained in:
parent
f4f23e6c18
commit
7a95d6c3c4
11 changed files with 8 additions and 8 deletions
|
@ -19,7 +19,7 @@
|
|||
(s:{{ sessionStore.id }} a:{{ accountStore.id }}{{ sessionStore.push ? " push" : null }})
|
||||
{{ accountStore.type }}
|
||||
<NuxtLink to="/account/settings">Settings</NuxtLink>
|
||||
<LogOutButton v-if="accountStore.type !== 'anonymous'"/>
|
||||
<ButtonLogOut v-if="accountStore.type !== 'anonymous'"/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<NuxtLink to="/login">Log In</NuxtLink>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue