Skip to content

Commit 54a0508

Browse files
committed
chore: formatting of pictique.
1 parent 8ad350b commit 54a0508

File tree

3 files changed

+85
-85
lines changed

3 files changed

+85
-85
lines changed
Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,108 @@
1-
import type { SVGAttributes } from "svelte/elements";
1+
import type { SVGAttributes } from 'svelte/elements';
22

33
export interface ISvgProps extends SVGAttributes<SVGElement> {
4-
size?: number | string;
5-
color?: string;
4+
size?: number | string;
5+
color?: string;
66
}
77

88
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[];
1818
};
1919

2020
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+
};
3333
};
3434

3535
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+
}[];
5858
}
5959

6060
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[];
7070
};
7171

7272
export type Image = {
73-
url: string;
74-
alt: string;
73+
url: string;
74+
alt: string;
7575
};
7676

7777
export type GroupInfo = {
78-
id: string;
79-
name: string;
80-
avatar: string;
78+
id: string;
79+
name: string;
80+
avatar: string;
8181
};
8282

8383
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+
};
100100
};
101101

102102
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;
108108
};

platforms/pictique/src/routes/(protected)/group/[id]/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
</div>
153153

154154
<MessageInput
155-
class="sticky bottom-[-15px] start-0 w-full"
155+
class="sticky start-0 bottom-[-15px] w-full"
156156
variant="dm"
157157
src={group.avatar}
158158
bind:value={messageValue}
@@ -188,7 +188,7 @@
188188
/>
189189
<label
190190
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"
192192
>
193193
<HugeiconsIcon icon={Pen01FreeIcons} color="white" />
194194
</label>
@@ -212,7 +212,7 @@
212212
rows="2"
213213
maxlength="260"
214214
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"
216216
bind:value={groupDescription}
217217
/>
218218
{:else}

platforms/pictique/src/routes/(protected)/messages/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
{/if}
125125

126126
{#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>
128128
{#each groups as group}
129129
<Group
130130
name={group.name || 'New Group'}

0 commit comments

Comments
 (0)