|
|
@ -2,6 +2,10 @@ |
|
|
|
import type { ProjectType } from 'nocodb-sdk' |
|
|
|
import type { ProjectType } from 'nocodb-sdk' |
|
|
|
import { navigateTo } from '#app' |
|
|
|
import { navigateTo } from '#app' |
|
|
|
import useColors from '~/composables/useColors' |
|
|
|
import useColors from '~/composables/useColors' |
|
|
|
|
|
|
|
import MdiStarOutline from '~icons/mdi/star-outline' |
|
|
|
|
|
|
|
import MdiMenuDown from '~icons/mdi/menu-down' |
|
|
|
|
|
|
|
import MdiDeleteOutline from '~icons/mdi/delete-outline' |
|
|
|
|
|
|
|
import MdiPlus from '~icons/mdi/plus' |
|
|
|
|
|
|
|
|
|
|
|
const { $api, $e } = useNuxtApp() |
|
|
|
const { $api, $e } = useNuxtApp() |
|
|
|
const { getColorByIndex } = useColors() |
|
|
|
const { getColorByIndex } = useColors() |
|
|
@ -105,17 +109,19 @@ const formatTitle = (title: string) => |
|
|
|
> |
|
|
|
> |
|
|
|
{{ formatTitle(project.title) }} |
|
|
|
{{ formatTitle(project.title) }} |
|
|
|
|
|
|
|
|
|
|
|
<v-icon class="nc-project-star-icon" small color="white" @click.stop> mdi-star-outline </v-icon> |
|
|
|
<MdiStarOutline class="nc-project-star-icon" @click.stop /> |
|
|
|
|
|
|
|
|
|
|
|
<v-menu bottom offset-y> |
|
|
|
<v-menu bottom offset-y> |
|
|
|
<template #activator="{ props }"> |
|
|
|
<template #activator="{ props }"> |
|
|
|
<v-icon class="nc-project-option-menu-icon" color="white" @click.stop="props.onClick"> mdi-menu-down </v-icon> |
|
|
|
<MdiMenuDown class="nc-project-option-menu-icon" @click.stop="props.onClick" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<v-list dense> |
|
|
|
<v-list dense> |
|
|
|
<v-list-item> |
|
|
|
<v-list-item> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon small color="red"> mdi-delete-outline </v-icon> |
|
|
|
<div class="d-flex align-center" @click.stop> |
|
|
|
|
|
|
|
<MdiDeleteOutline class="text-red mr-1" /> |
|
|
|
{{ $t('general.delete') }} |
|
|
|
{{ $t('general.delete') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
</v-list> |
|
|
|
</v-list> |
|
|
@ -128,7 +134,9 @@ const formatTitle = (title: string) => |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="pointer nc-project-item nc-project-item elevation-0 d-flex align-center justify-center flex-column"> |
|
|
|
<div class="pointer nc-project-item nc-project-item elevation-0 d-flex align-center justify-center flex-column"> |
|
|
|
<button>Button</button> |
|
|
|
<div class="nc-project-thumbnail nc-add-project text-uppercase d-flex align-center justify-center grey lighten-2"> |
|
|
|
|
|
|
|
<MdiPlus /> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="text-center pa-2 nc-project-title body-2 font-weight-medium">{{ $t('activity.createProject') }}</div> |
|
|
|
<div class="text-center pa-2 nc-project-title body-2 font-weight-medium">{{ $t('activity.createProject') }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -144,10 +152,12 @@ const formatTitle = (title: string) => |
|
|
|
flex-wrap: wrap; |
|
|
|
flex-wrap: wrap; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-item { |
|
|
|
.nc-project-item { |
|
|
|
width: 150px; |
|
|
|
width: 150px; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-thumbnail { |
|
|
|
.nc-project-thumbnail { |
|
|
|
height: 100px; |
|
|
|
height: 100px; |
|
|
|
width: 100px; |
|
|
|
width: 100px; |
|
|
@ -158,35 +168,50 @@ const formatTitle = (title: string) => |
|
|
|
margin-inside: auto; |
|
|
|
margin-inside: auto; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-option-menu-icon, |
|
|
|
.nc-project-option-menu-icon, |
|
|
|
.nc-project-star-icon { |
|
|
|
.nc-project-star-icon { |
|
|
|
|
|
|
|
width: auto; |
|
|
|
|
|
|
|
height: 1.5rem; |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
opacity: 0; |
|
|
|
opacity: 0; |
|
|
|
transition: 0.3s opacity; |
|
|
|
transition: 0.3s opacity; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-star-icon { |
|
|
|
.nc-project-star-icon { |
|
|
|
top: 8px; |
|
|
|
top: 5px; |
|
|
|
right: 10px; |
|
|
|
right: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-option-menu-icon { |
|
|
|
.nc-project-option-menu-icon { |
|
|
|
bottom: 5px; |
|
|
|
bottom: 5px; |
|
|
|
right: 5px; |
|
|
|
right: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-thumbnail:hover .nc-project-option-menu-icon, |
|
|
|
.nc-project-thumbnail:hover .nc-project-option-menu-icon, |
|
|
|
.nc-project-thumbnail:hover .nc-project-star-icon { |
|
|
|
.nc-project-thumbnail:hover .nc-project-star-icon { |
|
|
|
opacity: 1; |
|
|
|
opacity: 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-title { |
|
|
|
.nc-project-title { |
|
|
|
text-transform: capitalize; |
|
|
|
text-transform: capitalize; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-title.nc-add-project { |
|
|
|
.nc-project-title.nc-add-project { |
|
|
|
font-size: 60px; |
|
|
|
font-size: 60px; |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/ .v-navigation-drawer__border { |
|
|
|
|
|
|
|
|
|
|
|
:deep(.v-navigation-drawer__border) { |
|
|
|
background-color: transparent !important; |
|
|
|
background-color: transparent !important; |
|
|
|
} |
|
|
|
} |
|
|
|
.nc-project-thumbnail:hover { |
|
|
|
|
|
|
|
|
|
|
|
.nc-project-thumbnail { |
|
|
|
background-image: linear-gradient(#0002, #0002); |
|
|
|
background-image: linear-gradient(#0002, #0002); |
|
|
|
|
|
|
|
opacity: 0.5; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.nc-project-thumbnail:hover { |
|
|
|
|
|
|
|
opacity: 1; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|