File tree Expand file tree Collapse file tree 3 files changed +85
-85
lines changed Expand file tree Collapse file tree 3 files changed +85
-85
lines changed Original file line number Diff line number Diff line change 1
- import type { SVGAttributes } from " svelte/elements" ;
1
+ import type { SVGAttributes } from ' svelte/elements' ;
2
2
3
3
export interface ISvgProps extends SVGAttributes < SVGElement > {
4
- size ?: number | string ;
5
- color ?: string ;
4
+ size ?: number | string ;
5
+ color ?: string ;
6
6
}
7
7
8
8
export type CommentType = {
9
- commentId : string ;
10
- name : string ;
11
- userImgSrc : string ;
12
- comment : string ;
13
- isUpVoted : boolean ;
14
- isDownVoted : boolean ;
15
- upVotes : number ;
16
- time : string ;
17
- replies : CommentType [ ] ;
9
+ commentId : string ;
10
+ name : string ;
11
+ userImgSrc : string ;
12
+ comment : string ;
13
+ isUpVoted : boolean ;
14
+ isDownVoted : boolean ;
15
+ upVotes : number ;
16
+ time : string ;
17
+ replies : CommentType [ ] ;
18
18
} ;
19
19
20
20
export type PostData = {
21
- createdAt : string | number | Date ;
22
- id : string ;
23
- avatar : string ;
24
- userId : string ;
25
- handle : string ;
26
- imgUris : string [ ] ;
27
- caption : string ;
28
- time : string ;
29
- count : {
30
- likes : number ;
31
- comments : number ;
32
- } ;
21
+ createdAt : string | number | Date ;
22
+ id : string ;
23
+ avatar : string ;
24
+ userId : string ;
25
+ handle : string ;
26
+ imgUris : string [ ] ;
27
+ caption : string ;
28
+ time : string ;
29
+ count : {
30
+ likes : number ;
31
+ comments : number ;
32
+ } ;
33
33
} ;
34
34
35
35
export interface Post {
36
- id : string ;
37
- text : string ;
38
- images : string [ ] ;
39
- author : {
40
- id : string ;
41
- handle : string ;
42
- name : string ;
43
- avatarUrl : string ;
44
- } ;
45
- createdAt : string ;
46
- likedBy : userProfile [ ] ;
47
- comments : {
48
- id : string ;
49
- text : string ;
50
- author : {
51
- id : string ;
52
- handle : string ;
53
- name : string ;
54
- avatarUrl : string ;
55
- } ;
56
- createdAt : string ;
57
- } [ ] ;
36
+ id : string ;
37
+ text : string ;
38
+ images : string [ ] ;
39
+ author : {
40
+ id : string ;
41
+ handle : string ;
42
+ name : string ;
43
+ avatarUrl : string ;
44
+ } ;
45
+ createdAt : string ;
46
+ likedBy : userProfile [ ] ;
47
+ comments : {
48
+ id : string ;
49
+ text : string ;
50
+ author : {
51
+ id : string ;
52
+ handle : string ;
53
+ name : string ;
54
+ avatarUrl : string ;
55
+ } ;
56
+ createdAt : string ;
57
+ } [ ] ;
58
58
}
59
59
60
60
export type userProfile = {
61
- id : string ;
62
- handle : string ;
63
- name : string ;
64
- description : string ;
65
- avatarUrl : string ;
66
- totalPosts : number ;
67
- followers : number ;
68
- following : number ;
69
- posts : PostData [ ] ;
61
+ id : string ;
62
+ handle : string ;
63
+ name : string ;
64
+ description : string ;
65
+ avatarUrl : string ;
66
+ totalPosts : number ;
67
+ followers : number ;
68
+ following : number ;
69
+ posts : PostData [ ] ;
70
70
} ;
71
71
72
72
export type Image = {
73
- url : string ;
74
- alt : string ;
73
+ url : string ;
74
+ alt : string ;
75
75
} ;
76
76
77
77
export type GroupInfo = {
78
- id : string ;
79
- name : string ;
80
- avatar : string ;
78
+ id : string ;
79
+ name : string ;
80
+ avatar : string ;
81
81
} ;
82
82
83
83
export type Chat = {
84
- id : string ;
85
- avatar : string ;
86
- handle : string ;
87
- unread : boolean ;
88
- text : string ;
89
- participants : {
90
- id : string ;
91
- name ?: string ;
92
- handle ?: string ;
93
- ename ?: string ;
94
- avatarUrl : string ;
95
- } [ ] ;
96
- latestMessage : {
97
- text : string ;
98
- isRead : boolean ;
99
- } ;
84
+ id : string ;
85
+ avatar : string ;
86
+ handle : string ;
87
+ unread : boolean ;
88
+ text : string ;
89
+ participants : {
90
+ id : string ;
91
+ name ?: string ;
92
+ handle ?: string ;
93
+ ename ?: string ;
94
+ avatarUrl : string ;
95
+ } [ ] ;
96
+ latestMessage : {
97
+ text : string ;
98
+ isRead : boolean ;
99
+ } ;
100
100
} ;
101
101
102
102
export type MessageType = {
103
- id : string ;
104
- avatar : string ;
105
- handle : string ;
106
- unread : boolean ;
107
- text : string ;
103
+ id : string ;
104
+ avatar : string ;
105
+ handle : string ;
106
+ unread : boolean ;
107
+ text : string ;
108
108
} ;
Original file line number Diff line number Diff line change 152
152
</div >
153
153
154
154
<MessageInput
155
- class =" sticky bottom-[-15px] start-0 w-full"
155
+ class =" sticky start-0 bottom-[-15px] w-full"
156
156
variant =" dm"
157
157
src ={group .avatar }
158
158
bind:value ={messageValue }
188
188
/>
189
189
<label
190
190
for =" group-avatar-input"
191
- class =" bg-brand-burnt-orange border-brand-burnt-orange absolute bottom -0 right -0 cursor-pointer rounded-full border p-1 shadow"
191
+ class =" bg-brand-burnt-orange border-brand-burnt-orange absolute right -0 bottom -0 cursor-pointer rounded-full border p-1 shadow"
192
192
>
193
193
<HugeiconsIcon icon ={Pen01FreeIcons } color =" white" />
194
194
</label >
212
212
rows =" 2"
213
213
maxlength =" 260"
214
214
placeholder =" Edit group description"
215
- class =" bg-grey text-black-800 font-geist placeholder:text-black-600 invalid:border-red invalid:text-red focus:invalid:text-black-800 rounded-4xl w-full border border-transparent px-6 py-3.5 text-[15px] font-normal outline-0 focus:invalid:border-transparent"
215
+ class =" bg-grey text-black-800 font-geist placeholder:text-black-600 invalid:border-red invalid:text-red focus:invalid:text-black-800 w-full rounded-4xl border border-transparent px-6 py-3.5 text-[15px] font-normal outline-0 focus:invalid:border-transparent"
216
216
bind:value ={groupDescription }
217
217
/>
218
218
{:else }
Original file line number Diff line number Diff line change 124
124
{/if }
125
125
126
126
{#if groups .length > 0 }
127
- <h3 class =" text-md mb-2 mt-6 font-semibold text-gray-700" >Groups</h3 >
127
+ <h3 class =" text-md mt-6 mb-2 font-semibold text-gray-700" >Groups</h3 >
128
128
{#each groups as group }
129
129
<Group
130
130
name ={group .name || ' New Group' }
You can’t perform that action at this time.
0 commit comments