✌️
This commit is contained in:
parent
8ed30d1ff3
commit
2105e4964b
5 changed files with 19 additions and 2 deletions
|
@ -367,6 +367,7 @@ desktop/views/components/settings.profile.vue:
|
||||||
desktop/views/components/ui.header.account.vue:
|
desktop/views/components/ui.header.account.vue:
|
||||||
profile: "Your profile"
|
profile: "Your profile"
|
||||||
drive: "Drive"
|
drive: "Drive"
|
||||||
|
favorites: "Favorites"
|
||||||
customize: "Customize"
|
customize: "Customize"
|
||||||
settings: "Settings"
|
settings: "Settings"
|
||||||
signout: "Sign out"
|
signout: "Sign out"
|
||||||
|
|
|
@ -367,6 +367,7 @@ desktop/views/components/settings.profile.vue:
|
||||||
desktop/views/components/ui.header.account.vue:
|
desktop/views/components/ui.header.account.vue:
|
||||||
profile: "Votre profil"
|
profile: "Votre profil"
|
||||||
drive: "Drive"
|
drive: "Drive"
|
||||||
|
favorites: "Favorites"
|
||||||
customize: "Modifications"
|
customize: "Modifications"
|
||||||
settings: "Réglages"
|
settings: "Réglages"
|
||||||
signout: "Déconnexion"
|
signout: "Déconnexion"
|
||||||
|
|
|
@ -367,6 +367,7 @@ desktop/views/components/settings.profile.vue:
|
||||||
desktop/views/components/ui.header.account.vue:
|
desktop/views/components/ui.header.account.vue:
|
||||||
profile: "プロフィール"
|
profile: "プロフィール"
|
||||||
drive: "ドライブ"
|
drive: "ドライブ"
|
||||||
|
favorites: "お気に入り"
|
||||||
customize: "カスタマイズ"
|
customize: "カスタマイズ"
|
||||||
settings: "設定"
|
settings: "設定"
|
||||||
signout: "サインアウト"
|
signout: "サインアウト"
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
<li @click="drive">
|
<li @click="drive">
|
||||||
<p>%fa:cloud%<span>%i18n:@drive%</span>%fa:angle-right%</p>
|
<p>%fa:cloud%<span>%i18n:@drive%</span>%fa:angle-right%</p>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<router-link to="/i/favorites">%fa:star%<span>%i18n:@favorites%</span>%fa:angle-right%</router-link>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -24,7 +27,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li @click="signout">
|
<li @click="signout">
|
||||||
<p>%fa:power-off%<span>%i18n:@signout%</span></p>
|
<p class="signout">%fa:power-off%<span>%i18n:@signout%</span></p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -209,7 +212,7 @@ root(isDark)
|
||||||
pointer-events none
|
pointer-events none
|
||||||
|
|
||||||
> span:first-child
|
> span:first-child
|
||||||
padding-left 16px
|
padding-left 22px
|
||||||
|
|
||||||
> [data-fa]:first-child
|
> [data-fa]:first-child
|
||||||
margin-right 6px
|
margin-right 6px
|
||||||
|
@ -233,6 +236,16 @@ root(isDark)
|
||||||
&:active
|
&:active
|
||||||
background darken($theme-color, 10%)
|
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-enter-active,
|
||||||
.zoom-in-top-leave-active {
|
.zoom-in-top-leave-active {
|
||||||
transform-origin: center -16px;
|
transform-origin: center -16px;
|
||||||
|
|
|
@ -2,6 +2,7 @@ import * as mongo from 'mongodb';
|
||||||
import db from '../db/mongodb';
|
import db from '../db/mongodb';
|
||||||
|
|
||||||
const Favorite = db.get<IFavorite>('favorites');
|
const Favorite = db.get<IFavorite>('favorites');
|
||||||
|
Favorite.createIndex(['userId', 'noteId'], { unique: true });
|
||||||
export default Favorite;
|
export default Favorite;
|
||||||
|
|
||||||
export type IFavorite = {
|
export type IFavorite = {
|
||||||
|
|
Loading…
Reference in a new issue