Skip to content

Commit

Permalink
Merge branch 'feat/favorites-add-draggable' into gitmotion/main
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmotion committed Oct 25, 2024
2 parents 0d3ce53 + 2e181cf commit 67c26a8
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ home:
newestTools: Neueste Tools
favoriteTools: Deine Lieblingstools
allTools: Alle Tools
favoritesDndToolTip: 'Ziehen und Ablegen, um Favoriten neu zu ordnen'
subtitle: Praktische Tools für Entwickler
toggleMenu: Menü umschalten
home: Startseite
Expand Down
1 change: 1 addition & 0 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: Newest tools
favoriteTools: 'Your favorite tools'
allTools: 'All the tools'
favoritesDndToolTip: 'Drag and drop to reorder favorites'
subtitle: 'Handy tools for developers'
toggleMenu: 'Toggle menu'
home: Home
Expand Down
1 change: 1 addition & 0 deletions locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: Nuevas herramientas
favoriteTools: 'Tus herramientas favoritas'
allTools: 'Todas las herramientas'
favoritesDndToolTip: 'Arrastra y suelta para reordenar favoritos'
subtitle: 'Herramientas practicas para desarrolladores'
toggleMenu: 'Toggle menu'
home: Home
Expand Down
1 change: 1 addition & 0 deletions locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: 'Les nouveaux outils'
favoriteTools: 'Vos outils favoris'
allTools: 'Tous les outils'
favoritesDndToolTip: 'Faites glisser et déposez pour réordonner vos favoris'
subtitle: 'Outils pour les développeurs'
toggleMenu: 'Menu'
home: Accueil
Expand Down
1 change: 1 addition & 0 deletions locales/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: Nyeste verktøy
favoriteTools: 'Dine favoritt verktøy'
allTools: 'Alle verktøyene'
favoritesDndToolTip: 'Dra og slipp for å omordne favoritter'
subtitle: 'Nyttige verktøy for utviklere'
toggleMenu: 'Vekslemenmy'
home: Hjem
Expand Down
1 change: 1 addition & 0 deletions locales/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: 'Novas ferramentas'
favoriteTools: 'Suas ferramentas favoritas'
allTools: 'Todas as ferramentas'
favoritesDndToolTip: 'Arraste e solte para reordenar favoritos'
subtitle: 'Ferraentas úteis para desenvolvedores'
toggleMenu: 'Menu'
home: 'Início'
Expand Down
1 change: 1 addition & 0 deletions locales/uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: Найновіші інструменти
favoriteTools: 'Ваші улюблені інструменти'
allTools: 'Усі інструменти'
favoritesDndToolTip: 'Перетягніть і відпустіть, щоб змінити порядок улюблених'
subtitle: 'Зручні інструменти для розробників'
toggleMenu: 'Перемикання меню'
home: Головна
Expand Down
1 change: 1 addition & 0 deletions locales/vi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: Công cụ mới nhất
favoriteTools: 'Công cụ yêu thích của bạn'
allTools: 'Tất cả công cụ'
favoritesDndToolTip: 'Kéo thả để sắp xếp lại yêu thích'
subtitle: 'Công cụ cho nhà phát triển.'
toggleMenu: 'Chuyển đổi menu'
home: Trang chủ
Expand Down
1 change: 1 addition & 0 deletions locales/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ home:
newestTools: '最新工具'
favoriteTools: '我的收藏'
allTools: '全部工具'
favoritesDndToolTip: '拖放重新排列收藏夹'
subtitle: '助力开发人员和 IT 工作者'
toggleMenu: '切换菜单'
home: '主页'
Expand Down
9 changes: 8 additions & 1 deletion src/pages/Home.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,14 @@ function onUpdateFavoriteTools() {
<div v-if="toolStore.favoriteTools.length > 0">
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
{{ $t('home.categories.favoriteTools') }}
<c-tooltip tooltip="Drag and drop to reorder favorites">
<c-tooltip :tooltip="$t('home.categories.favoritesDndToolTip')">
<n-icon :component="DragDrop" size="18" />
</c-tooltip>
</h3>
<Draggable
:list="favoriteTools"
class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4"
ghost-class="ghost-favorites-draggable"
item-key="name"
@end="onUpdateFavoriteTools"
>
Expand Down Expand Up @@ -126,4 +127,10 @@ function onUpdateFavoriteTools() {
opacity: 0;
margin-bottom: 0;
}
.ghost-favorites-draggable {
opacity: 0.5;
background-color: #ccc;
border: 2px dashed #666;
}
</style>

0 comments on commit 67c26a8

Please sign in to comment.