File tree 8 files changed +11
-12
lines changed
8 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 266
266
<div class =" card-actions justify-end px-2 font-medium tracking-tight gap-1" >
267
267
<span class =" font-sans font-semibold text-xs" >#</span >
268
268
{#if bookmark .tags }
269
- {#each bookmark .tags as tag }
269
+ {#each bookmark .tags as tag ( tag . id ) }
270
270
<a href ={` /tags/${tag .name } ` } class ="link font-sans text-xs" >{tag .name }</a >
271
271
{/each }
272
272
{/if }
Original file line number Diff line number Diff line change 139
139
<div class =" flex w-full gap-1" >
140
140
<span class =" font-sans font-semibold text-xs" >#</span >
141
141
{#if bookmark .tags }
142
- {#each bookmark .tags as tag }
142
+ {#each bookmark .tags as tag ( tag . id ) }
143
143
<a
144
144
href ={` /tags/${tag .name } ` }
145
145
class =" link font-sans text-xs w-full whitespace-nowrap max-w-[8rem] hover:text-secondary"
Original file line number Diff line number Diff line change 13
13
{#if $page .data .bookmarks .length > 0 }
14
14
{#if $userSettingsStore .bookmarksView === ' grid' }
15
15
<div class =" w-full grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-6" >
16
- {#each bookmarks as bookmark }
16
+ {#each bookmarks as bookmark ( bookmark . id ) }
17
17
<BookmarkCard {bookmark } />
18
18
{/each }
19
19
</div >
20
20
{:else if $userSettingsStore .bookmarksView === ' list' }
21
21
<div class =" flex flex-col w-full gap-2" >
22
- {#each bookmarks as bookmark }
22
+ {#each bookmarks as bookmark ( bookmark . id ) }
23
23
<BookmarkListItem {bookmark } />
24
24
{/each }
25
25
</div >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { editCategoryStore } from ' $lib/stores/edit-category.store' ;
3
2
import Icon from ' $lib/components/Icon/Icon.svelte' ;
4
- import type { Category } from ' $lib/interfaces /Category.interface ' ;
3
+ import type { Category } from ' $lib/types /Category.type ' ;
5
4
6
5
export let categories: (Category & { children? : Category [] })[] | [] = [];
7
6
</script >
8
7
9
- {#each categories as category }
8
+ {#each categories as category ( category . id ) }
10
9
<div class =" flex flex-col" >
11
10
<div class =" flex items-center" >
12
11
{#if ! category .icon }
23
22
</div >
24
23
25
24
{#if category .children }
26
- {#each category .children as categoryChild }
25
+ {#each category .children as categoryChild ( categoryChild . id ) }
27
26
<div class =" flex items-center ml-4" >
28
27
{#if ! categoryChild .icon }
29
28
<div
Original file line number Diff line number Diff line change 63
63
<h3 class =" text-xl" >Tags</h3 >
64
64
<div class =" flex flex-wrap gap-2 m-1" >
65
65
{#if $bookmark .tags ?.length }
66
- {#each $bookmark .tags as tag }
66
+ {#each $bookmark .tags as tag ( tag . id ) }
67
67
<span class ="badge badge-outline badge-sm whitespace-nowrap" >{tag .name }</span >
68
68
{/each }
69
69
{:else }
Original file line number Diff line number Diff line change 155
155
<div >
156
156
<h3 class =" text-xl" >Tags</h3 >
157
157
<div class =" flex flex-wrap p-2" >
158
- {#each $page .data .tags as tag }
158
+ {#each $page .data .tags as tag ( tag . id ) }
159
159
{#if tag .bookmarks .length > 0 }
160
160
<a href ={` /tags/${tag .slug } ` } class =" link m-1 hover:text-secondary"
161
161
>#{tag .name }</a
Original file line number Diff line number Diff line change 67
67
</thead >
68
68
<!-- body -->
69
69
<tbody >
70
- {#each data .adminData .users as user }
70
+ {#each data .adminData .users as user ( user . id ) }
71
71
<tr >
72
72
<td >{user .id }</td >
73
73
<td >{user .name }</td >
Original file line number Diff line number Diff line change 82
82
<h2 class =" card-title" >Latest bookmarks</h2 >
83
83
{#if $page .data .bookmarks .length > 0 }
84
84
<div class =" flex flex-col w-full columns-sm gap-2" >
85
- {#each $page .data .bookmarks .slice (0 , 3 ) as bookmark }
85
+ {#each $page .data .bookmarks .slice (0 , 3 ) as bookmark ( bookmark . id ) }
86
86
<a
87
87
href ={bookmark .url }
88
88
title ={bookmark .url }
You can’t perform that action at this time.
0 commit comments