✌️
This commit is contained in:
@ -13,6 +13,9 @@
|
||||
<li @click="drive">
|
||||
<p>%fa:cloud%<span>%i18n:@drive%</span>%fa:angle-right%</p>
|
||||
</li>
|
||||
<li>
|
||||
<router-link to="/i/favorites">%fa:star%<span>%i18n:@favorites%</span>%fa:angle-right%</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>
|
||||
@ -24,7 +27,7 @@
|
||||
</ul>
|
||||
<ul>
|
||||
<li @click="signout">
|
||||
<p>%fa:power-off%<span>%i18n:@signout%</span></p>
|
||||
<p class="signout">%fa:power-off%<span>%i18n:@signout%</span></p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
@ -209,7 +212,7 @@ root(isDark)
|
||||
pointer-events none
|
||||
|
||||
> span:first-child
|
||||
padding-left 16px
|
||||
padding-left 22px
|
||||
|
||||
> [data-fa]:first-child
|
||||
margin-right 6px
|
||||
@ -233,6 +236,16 @@ root(isDark)
|
||||
&:active
|
||||
background darken($theme-color, 10%)
|
||||
|
||||
&.signout
|
||||
$color = #e64137
|
||||
|
||||
&:hover, &:active
|
||||
background $color
|
||||
color #fff
|
||||
|
||||
&:active
|
||||
background darken($color, 10%)
|
||||
|
||||
.zoom-in-top-enter-active,
|
||||
.zoom-in-top-leave-active {
|
||||
transform-origin: center -16px;
|
||||
|
@ -2,6 +2,7 @@ import * as mongo from 'mongodb';
|
||||
import db from '../db/mongodb';
|
||||
|
||||
const Favorite = db.get<IFavorite>('favorites');
|
||||
Favorite.createIndex(['userId', 'noteId'], { unique: true });
|
||||
export default Favorite;
|
||||
|
||||
export type IFavorite = {
|
||||
|
Reference in New Issue
Block a user