@webinex/chatify 1.0.0-rc3 → 1.0.2-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/core/action.d.ts +10 -4
- package/dist/esm/types/core/state.d.ts +2 -1
- package/dist/esm/types/core/useGetAccountsQuery.d.ts +3 -1
- package/dist/esm/types/core/useGetChatListQuery.d.ts +3 -1
- package/dist/esm/types/core/useGetChatQuery.d.ts +3 -1
- package/dist/esm/types/ui/Icon.d.ts +8 -8
- package/dist/index.d.ts +21 -14
- package/package.json +92 -92
- package/src/ChatifyContext.tsx +41 -41
- package/src/core/action.tsx +421 -405
- package/src/core/client.ts +143 -143
- package/src/core/index.ts +17 -17
- package/src/core/models.tsx +82 -82
- package/src/core/reducer.tsx +87 -87
- package/src/core/state.ts +93 -92
- package/src/core/useAddChatMutation.tsx +22 -22
- package/src/core/useAddMemberMutation.tsx +25 -25
- package/src/core/useFetchNextMutation.tsx +28 -28
- package/src/core/useGetAccountsQuery.tsx +30 -33
- package/src/core/useGetChatListQuery.tsx +30 -33
- package/src/core/useGetChatQuery.tsx +31 -34
- package/src/core/useGetMessagesQuery.tsx +35 -35
- package/src/core/useReadMonitor.tsx +32 -32
- package/src/core/useRemoveMemberMutation.tsx +23 -23
- package/src/core/useSendMutation.tsx +24 -24
- package/src/core/useSignalRMonitor.tsx +66 -66
- package/src/core/useUpdateChatNameMutation.tsx +23 -23
- package/src/index.ts +3 -3
- package/src/styles/aside.scss +94 -94
- package/src/styles/chat.scss +222 -222
- package/src/styles/index.scss +79 -79
- package/src/styles/keyframes.scss +14 -14
- package/src/styles/mixins.scss +20 -20
- package/src/styles/settings.scss +5 -5
- package/src/styles/variables.scss +10 -10
- package/src/ui/AddChatButton.tsx +15 -15
- package/src/ui/Avatar.tsx +18 -18
- package/src/ui/ChatList/ChatList.tsx +42 -42
- package/src/ui/ChatList/ChatListItemBox.tsx +22 -22
- package/src/ui/ChatList/ChatListItemLastMessage.tsx +13 -13
- package/src/ui/ChatList/ChatListItemLastMessageAuthor.tsx +20 -20
- package/src/ui/ChatList/ChatListItemLastMessageContent.tsx +21 -21
- package/src/ui/ChatList/ChatListItemName.tsx +13 -13
- package/src/ui/ChatList/ChatListItemUnreadCount.tsx +12 -12
- package/src/ui/ChatList/index.ts +7 -7
- package/src/ui/ChatName.tsx +10 -10
- package/src/ui/ChatPanel/ChatBody.tsx +44 -44
- package/src/ui/ChatPanel/ChatHeader.tsx +33 -33
- package/src/ui/ChatPanel/ChatHeaderMembers.tsx +26 -26
- package/src/ui/ChatPanel/ChatHeaderName.tsx +67 -67
- package/src/ui/ChatPanel/ChatMembersButton.tsx +21 -21
- package/src/ui/ChatPanel/ChatMembersPanel.tsx +117 -117
- package/src/ui/ChatPanel/ChatPanel.tsx +27 -27
- package/src/ui/ChatPanel/index.ts +6 -6
- package/src/ui/Chatify.tsx +148 -148
- package/src/ui/CreateChatPanel/CreateChatForm.tsx +36 -36
- package/src/ui/CreateChatPanel/CreateChatMemberInput.tsx +66 -66
- package/src/ui/CreateChatPanel/CreateChatNameInput.tsx +25 -25
- package/src/ui/CreateChatPanel/CreateChatPanel.tsx +33 -33
- package/src/ui/CreateChatPanel/index.ts +4 -4
- package/src/ui/Icon.tsx +33 -33
- package/src/ui/InputBox/InputBox.tsx +38 -38
- package/src/ui/InputBox/InputFilesBox.tsx +9 -9
- package/src/ui/InputBox/InputSubmitButtonBox.tsx +17 -17
- package/src/ui/InputBox/InputTextBox.tsx +50 -50
- package/src/ui/InputBox/index.ts +4 -4
- package/src/ui/Layout/Aside.tsx +10 -10
- package/src/ui/Layout/Body.tsx +10 -10
- package/src/ui/Layout/Footer.tsx +3 -3
- package/src/ui/Layout/Header.tsx +10 -10
- package/src/ui/Layout/Main.tsx +15 -15
- package/src/ui/Layout/index.ts +5 -5
- package/src/ui/Message/MessageAuthor.tsx +13 -13
- package/src/ui/Message/MessageBox.tsx +20 -20
- package/src/ui/Message/MessageContent.tsx +13 -13
- package/src/ui/Message/MessageInfoBox.tsx +25 -25
- package/src/ui/Message/MessageRow.tsx +24 -24
- package/src/ui/Message/MessageText.tsx +7 -7
- package/src/ui/Message/index.ts +6 -6
- package/src/ui/MessageReadObserver.tsx +45 -45
- package/src/ui/MessageSkeleton.tsx +19 -19
- package/src/ui/Next.tsx +48 -48
- package/src/ui/SendingMessage/SendingMessageBox.tsx +16 -16
- package/src/ui/SendingMessage/SendingMessageContent.tsx +13 -13
- package/src/ui/SendingMessage/SendingMessageInfoBox.tsx +13 -13
- package/src/ui/SendingMessage/SendingMessageText.tsx +7 -7
- package/src/ui/SendingMessage/index.ts +4 -4
- package/src/ui/SystemMessage/SystemMessageBox.tsx +20 -20
- package/src/ui/SystemMessage/SystemMessageRow.tsx +43 -43
- package/src/ui/SystemMessage/index.ts +2 -2
- package/src/ui/customize.tsx +45 -45
- package/src/ui/index.ts +11 -11
- package/src/ui/localizer.tsx +80 -80
- package/src/util/index.ts +2 -2
- package/src/util/uniqBy.tsx +17 -17
- package/src/util/uniqId.tsx +3 -3
package/src/styles/chat.scss
CHANGED
|
@@ -1,222 +1,222 @@
|
|
|
1
|
-
.wxchtf-chatify {
|
|
2
|
-
.wxchtf-chat-panel {
|
|
3
|
-
flex: auto;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-flow: row nowrap;
|
|
6
|
-
|
|
7
|
-
.wxchtf-chat-main {
|
|
8
|
-
flex: 1;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-flow: column nowrap;
|
|
11
|
-
|
|
12
|
-
.wxchtf-chat-header {
|
|
13
|
-
border-bottom: $border;
|
|
14
|
-
padding: 0.5rem 1rem;
|
|
15
|
-
|
|
16
|
-
.wxchtf-chat-name {
|
|
17
|
-
font-weight: 600;
|
|
18
|
-
flex: none;
|
|
19
|
-
|
|
20
|
-
&.--editable {
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.wxchtf-chat-body {
|
|
27
|
-
flex: 1 1 auto;
|
|
28
|
-
height: 100px;
|
|
29
|
-
overflow-y: auto;
|
|
30
|
-
background: $chatBodyBackground;
|
|
31
|
-
padding: 2rem 1rem;
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-flow: column-reverse nowrap;
|
|
34
|
-
|
|
35
|
-
@include scrollbar();
|
|
36
|
-
|
|
37
|
-
@media only screen and (min-width: 1120px) {
|
|
38
|
-
padding-right: 30%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.wxchtf-message,
|
|
42
|
-
.wxchtf-sending-message {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-flow: row nowrap;
|
|
45
|
-
width: 100%;
|
|
46
|
-
align-items: flex-end;
|
|
47
|
-
|
|
48
|
-
&.--my {
|
|
49
|
-
direction: rtl;
|
|
50
|
-
justify-content: flex-start;
|
|
51
|
-
|
|
52
|
-
.wxchtf-message-author {
|
|
53
|
-
margin-right: 0;
|
|
54
|
-
margin-left: 15px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.wxchtf-message-content,
|
|
58
|
-
.wxchtf-sending-message-content {
|
|
59
|
-
direction: ltr;
|
|
60
|
-
border-bottom-left-radius: 10px;
|
|
61
|
-
border-bottom-right-radius: 0;
|
|
62
|
-
background-color: $myMessageBackground;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.wxchtf-message-author {
|
|
67
|
-
margin-right: 15px;
|
|
68
|
-
|
|
69
|
-
.ant-avatar {
|
|
70
|
-
@include avatarSize($avatarSize);
|
|
71
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.wxchtf-message-content,
|
|
76
|
-
.wxchtf-sending-message-content {
|
|
77
|
-
min-width: 300px;
|
|
78
|
-
max-width: 70%;
|
|
79
|
-
border-radius: $messageBorderRadius;
|
|
80
|
-
padding: 0.75rem 1rem;
|
|
81
|
-
background: white;
|
|
82
|
-
border-bottom-left-radius: 0;
|
|
83
|
-
background-color: $messageBackground;
|
|
84
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
85
|
-
display: block;
|
|
86
|
-
white-space: pre-wrap;
|
|
87
|
-
overflow-wrap: break-word;
|
|
88
|
-
|
|
89
|
-
.wxchtf-message-info-box,
|
|
90
|
-
.wxchtf-sending-message-info-box {
|
|
91
|
-
text-align: right;
|
|
92
|
-
|
|
93
|
-
.wxchtf-message-sent-at,
|
|
94
|
-
.wxchtf-message-read-box,
|
|
95
|
-
.wxchtf-sending-message-sending-box {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
font-style: italic;
|
|
98
|
-
font-size: 0.75em;
|
|
99
|
-
margin-top: 0.5rem;
|
|
100
|
-
opacity: 0.5;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.wxchtf-message-read-box,
|
|
104
|
-
.wxchtf-sending-message-sending-box {
|
|
105
|
-
margin-left: 5px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.wxchtf-system-message {
|
|
112
|
-
font-style: italic;
|
|
113
|
-
position: relative;
|
|
114
|
-
text-align: center;
|
|
115
|
-
|
|
116
|
-
.wxchtf-text,
|
|
117
|
-
.wxchtf-timestamp {
|
|
118
|
-
display: inline-block;
|
|
119
|
-
opacity: 0.9;
|
|
120
|
-
font-size: 0.85em;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.wxchtf-timestamp {
|
|
124
|
-
margin-left: 1rem;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.wxchtf-message,
|
|
129
|
-
.wxchtf-sending-message,
|
|
130
|
-
.wxchtf-system-message,
|
|
131
|
-
.wxchtf-message-skeleton {
|
|
132
|
-
margin-bottom: 2rem;
|
|
133
|
-
|
|
134
|
-
&:first-child {
|
|
135
|
-
margin-bottom: 0;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.wxchtf-message-skeleton {
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-flow: row nowrap;
|
|
142
|
-
align-items: flex-end;
|
|
143
|
-
|
|
144
|
-
.wxchtf-avatar {
|
|
145
|
-
margin-right: 15px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.wxchtf-avatar .ant-skeleton-avatar {
|
|
149
|
-
width: $avatarSize;
|
|
150
|
-
height: $avatarSize;
|
|
151
|
-
line-height: $avatarSize;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.wxchtf-content {
|
|
155
|
-
width: 300px;
|
|
156
|
-
height: 100px;
|
|
157
|
-
border-radius: $messageBorderRadius;
|
|
158
|
-
border-bottom-left-radius: 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.wxchtf-input-form {
|
|
164
|
-
flex: none;
|
|
165
|
-
max-height: 300px;
|
|
166
|
-
display: flex;
|
|
167
|
-
flex-flow: column nowrap;
|
|
168
|
-
|
|
169
|
-
.wxchtf-input-box {
|
|
170
|
-
flex: none;
|
|
171
|
-
display: flex;
|
|
172
|
-
flex-flow: row nowrap;
|
|
173
|
-
padding: 1rem 0;
|
|
174
|
-
border-top: $border;
|
|
175
|
-
|
|
176
|
-
@mixin iconBtn {
|
|
177
|
-
flex: none;
|
|
178
|
-
display: flex;
|
|
179
|
-
padding: 0 1rem;
|
|
180
|
-
align-items: flex-end;
|
|
181
|
-
|
|
182
|
-
.ant-btn.ant-btn-icon-only .anticon {
|
|
183
|
-
font-size: 1.5rem;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.wxchtf-add-files-box {
|
|
188
|
-
@include iconBtn();
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.wxchtf-text-input-box {
|
|
192
|
-
flex: auto;
|
|
193
|
-
|
|
194
|
-
textarea {
|
|
195
|
-
resize: none;
|
|
196
|
-
border: none;
|
|
197
|
-
outline: none;
|
|
198
|
-
box-shadow: none;
|
|
199
|
-
|
|
200
|
-
@include scrollbar();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.wxchtf-submit-btn-box {
|
|
205
|
-
@include iconBtn();
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.wxchtf-chat-members-panel {
|
|
212
|
-
min-width: 300px;
|
|
213
|
-
border-left: $border;
|
|
214
|
-
|
|
215
|
-
.wxchtf-chat-members-list {
|
|
216
|
-
.wxchtf-chat-members-list-item {
|
|
217
|
-
padding-inline: 1rem;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
1
|
+
.wxchtf-chatify {
|
|
2
|
+
.wxchtf-chat-panel {
|
|
3
|
+
flex: auto;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: row nowrap;
|
|
6
|
+
|
|
7
|
+
.wxchtf-chat-main {
|
|
8
|
+
flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-flow: column nowrap;
|
|
11
|
+
|
|
12
|
+
.wxchtf-chat-header {
|
|
13
|
+
border-bottom: $border;
|
|
14
|
+
padding: 0.5rem 1rem;
|
|
15
|
+
|
|
16
|
+
.wxchtf-chat-name {
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
flex: none;
|
|
19
|
+
|
|
20
|
+
&.--editable {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.wxchtf-chat-body {
|
|
27
|
+
flex: 1 1 auto;
|
|
28
|
+
height: 100px;
|
|
29
|
+
overflow-y: auto;
|
|
30
|
+
background: $chatBodyBackground;
|
|
31
|
+
padding: 2rem 1rem;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-flow: column-reverse nowrap;
|
|
34
|
+
|
|
35
|
+
@include scrollbar();
|
|
36
|
+
|
|
37
|
+
@media only screen and (min-width: 1120px) {
|
|
38
|
+
padding-right: 30%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wxchtf-message,
|
|
42
|
+
.wxchtf-sending-message {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-flow: row nowrap;
|
|
45
|
+
width: 100%;
|
|
46
|
+
align-items: flex-end;
|
|
47
|
+
|
|
48
|
+
&.--my {
|
|
49
|
+
direction: rtl;
|
|
50
|
+
justify-content: flex-start;
|
|
51
|
+
|
|
52
|
+
.wxchtf-message-author {
|
|
53
|
+
margin-right: 0;
|
|
54
|
+
margin-left: 15px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.wxchtf-message-content,
|
|
58
|
+
.wxchtf-sending-message-content {
|
|
59
|
+
direction: ltr;
|
|
60
|
+
border-bottom-left-radius: 10px;
|
|
61
|
+
border-bottom-right-radius: 0;
|
|
62
|
+
background-color: $myMessageBackground;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.wxchtf-message-author {
|
|
67
|
+
margin-right: 15px;
|
|
68
|
+
|
|
69
|
+
.ant-avatar {
|
|
70
|
+
@include avatarSize($avatarSize);
|
|
71
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.wxchtf-message-content,
|
|
76
|
+
.wxchtf-sending-message-content {
|
|
77
|
+
min-width: 300px;
|
|
78
|
+
max-width: 70%;
|
|
79
|
+
border-radius: $messageBorderRadius;
|
|
80
|
+
padding: 0.75rem 1rem;
|
|
81
|
+
background: white;
|
|
82
|
+
border-bottom-left-radius: 0;
|
|
83
|
+
background-color: $messageBackground;
|
|
84
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
85
|
+
display: block;
|
|
86
|
+
white-space: pre-wrap;
|
|
87
|
+
overflow-wrap: break-word;
|
|
88
|
+
|
|
89
|
+
.wxchtf-message-info-box,
|
|
90
|
+
.wxchtf-sending-message-info-box {
|
|
91
|
+
text-align: right;
|
|
92
|
+
|
|
93
|
+
.wxchtf-message-sent-at,
|
|
94
|
+
.wxchtf-message-read-box,
|
|
95
|
+
.wxchtf-sending-message-sending-box {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
font-style: italic;
|
|
98
|
+
font-size: 0.75em;
|
|
99
|
+
margin-top: 0.5rem;
|
|
100
|
+
opacity: 0.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.wxchtf-message-read-box,
|
|
104
|
+
.wxchtf-sending-message-sending-box {
|
|
105
|
+
margin-left: 5px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.wxchtf-system-message {
|
|
112
|
+
font-style: italic;
|
|
113
|
+
position: relative;
|
|
114
|
+
text-align: center;
|
|
115
|
+
|
|
116
|
+
.wxchtf-text,
|
|
117
|
+
.wxchtf-timestamp {
|
|
118
|
+
display: inline-block;
|
|
119
|
+
opacity: 0.9;
|
|
120
|
+
font-size: 0.85em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.wxchtf-timestamp {
|
|
124
|
+
margin-left: 1rem;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.wxchtf-message,
|
|
129
|
+
.wxchtf-sending-message,
|
|
130
|
+
.wxchtf-system-message,
|
|
131
|
+
.wxchtf-message-skeleton {
|
|
132
|
+
margin-bottom: 2rem;
|
|
133
|
+
|
|
134
|
+
&:first-child {
|
|
135
|
+
margin-bottom: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.wxchtf-message-skeleton {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-flow: row nowrap;
|
|
142
|
+
align-items: flex-end;
|
|
143
|
+
|
|
144
|
+
.wxchtf-avatar {
|
|
145
|
+
margin-right: 15px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.wxchtf-avatar .ant-skeleton-avatar {
|
|
149
|
+
width: $avatarSize;
|
|
150
|
+
height: $avatarSize;
|
|
151
|
+
line-height: $avatarSize;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.wxchtf-content {
|
|
155
|
+
width: 300px;
|
|
156
|
+
height: 100px;
|
|
157
|
+
border-radius: $messageBorderRadius;
|
|
158
|
+
border-bottom-left-radius: 0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.wxchtf-input-form {
|
|
164
|
+
flex: none;
|
|
165
|
+
max-height: 300px;
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-flow: column nowrap;
|
|
168
|
+
|
|
169
|
+
.wxchtf-input-box {
|
|
170
|
+
flex: none;
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-flow: row nowrap;
|
|
173
|
+
padding: 1rem 0;
|
|
174
|
+
border-top: $border;
|
|
175
|
+
|
|
176
|
+
@mixin iconBtn {
|
|
177
|
+
flex: none;
|
|
178
|
+
display: flex;
|
|
179
|
+
padding: 0 1rem;
|
|
180
|
+
align-items: flex-end;
|
|
181
|
+
|
|
182
|
+
.ant-btn.ant-btn-icon-only .anticon {
|
|
183
|
+
font-size: 1.5rem;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.wxchtf-add-files-box {
|
|
188
|
+
@include iconBtn();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.wxchtf-text-input-box {
|
|
192
|
+
flex: auto;
|
|
193
|
+
|
|
194
|
+
textarea {
|
|
195
|
+
resize: none;
|
|
196
|
+
border: none;
|
|
197
|
+
outline: none;
|
|
198
|
+
box-shadow: none;
|
|
199
|
+
|
|
200
|
+
@include scrollbar();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.wxchtf-submit-btn-box {
|
|
205
|
+
@include iconBtn();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.wxchtf-chat-members-panel {
|
|
212
|
+
min-width: 300px;
|
|
213
|
+
border-left: $border;
|
|
214
|
+
|
|
215
|
+
.wxchtf-chat-members-list {
|
|
216
|
+
.wxchtf-chat-members-list-item {
|
|
217
|
+
padding-inline: 1rem;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
package/src/styles/index.scss
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
@import './variables.scss';
|
|
2
|
-
@import './mixins.scss';
|
|
3
|
-
@import './keyframes.scss';
|
|
4
|
-
@import './aside.scss';
|
|
5
|
-
@import './settings.scss';
|
|
6
|
-
@import './chat.scss';
|
|
7
|
-
|
|
8
|
-
.wxchtf-chatify {
|
|
9
|
-
border: $border;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-flow: column nowrap;
|
|
12
|
-
background: $background;
|
|
13
|
-
border-radius: $radius;
|
|
14
|
-
|
|
15
|
-
.wxchtf-header {
|
|
16
|
-
min-height: 2rem;
|
|
17
|
-
border-bottom: $border;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.wxchtf-body {
|
|
21
|
-
flex: 1 0;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-flow: row nowrap;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.wxchtf-footer {
|
|
27
|
-
min-height: 2rem;
|
|
28
|
-
border-top: $border;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.wxchtf-main {
|
|
33
|
-
flex: auto;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-flow: column nowrap;
|
|
36
|
-
|
|
37
|
-
.wxchtf-create-chat {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-flow: column nowrap;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
align-items: center;
|
|
42
|
-
height: 100%;
|
|
43
|
-
|
|
44
|
-
form {
|
|
45
|
-
padding: 2rem;
|
|
46
|
-
max-width: 700px;
|
|
47
|
-
width: 100%;
|
|
48
|
-
|
|
49
|
-
.wxchtf-create-chat-member-input-list {
|
|
50
|
-
max-height: 15rem;
|
|
51
|
-
overflow-y: auto;
|
|
52
|
-
|
|
53
|
-
.ant-list-item {
|
|
54
|
-
padding-inline: 0.5rem;
|
|
55
|
-
|
|
56
|
-
&.--selected {
|
|
57
|
-
background-color: #e6f4ff;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ant-checkbox-wrapper {
|
|
61
|
-
width: 100%;
|
|
62
|
-
|
|
63
|
-
& > span:last-child {
|
|
64
|
-
flex: 1;
|
|
65
|
-
|
|
66
|
-
.ant-list-item-meta {
|
|
67
|
-
align-items: center;
|
|
68
|
-
|
|
69
|
-
.ant-list-item-meta-content h4 {
|
|
70
|
-
margin-bottom: 0;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import './mixins.scss';
|
|
3
|
+
@import './keyframes.scss';
|
|
4
|
+
@import './aside.scss';
|
|
5
|
+
@import './settings.scss';
|
|
6
|
+
@import './chat.scss';
|
|
7
|
+
|
|
8
|
+
.wxchtf-chatify {
|
|
9
|
+
border: $border;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-flow: column nowrap;
|
|
12
|
+
background: $background;
|
|
13
|
+
border-radius: $radius;
|
|
14
|
+
|
|
15
|
+
.wxchtf-header {
|
|
16
|
+
min-height: 2rem;
|
|
17
|
+
border-bottom: $border;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.wxchtf-body {
|
|
21
|
+
flex: 1 0;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-flow: row nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.wxchtf-footer {
|
|
27
|
+
min-height: 2rem;
|
|
28
|
+
border-top: $border;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.wxchtf-main {
|
|
33
|
+
flex: auto;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-flow: column nowrap;
|
|
36
|
+
|
|
37
|
+
.wxchtf-create-chat {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-flow: column nowrap;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
height: 100%;
|
|
43
|
+
|
|
44
|
+
form {
|
|
45
|
+
padding: 2rem;
|
|
46
|
+
max-width: 700px;
|
|
47
|
+
width: 100%;
|
|
48
|
+
|
|
49
|
+
.wxchtf-create-chat-member-input-list {
|
|
50
|
+
max-height: 15rem;
|
|
51
|
+
overflow-y: auto;
|
|
52
|
+
|
|
53
|
+
.ant-list-item {
|
|
54
|
+
padding-inline: 0.5rem;
|
|
55
|
+
|
|
56
|
+
&.--selected {
|
|
57
|
+
background-color: #e6f4ff;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ant-checkbox-wrapper {
|
|
61
|
+
width: 100%;
|
|
62
|
+
|
|
63
|
+
& > span:last-child {
|
|
64
|
+
flex: 1;
|
|
65
|
+
|
|
66
|
+
.ant-list-item-meta {
|
|
67
|
+
align-items: center;
|
|
68
|
+
|
|
69
|
+
.ant-list-item-meta-content h4 {
|
|
70
|
+
margin-bottom: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@keyframes fadeInFromNone {
|
|
2
|
-
0% {
|
|
3
|
-
display: none;
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
1% {
|
|
8
|
-
opacity: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
100% {
|
|
12
|
-
opacity: 1;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
@keyframes fadeInFromNone {
|
|
2
|
+
0% {
|
|
3
|
+
display: none;
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
1% {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
100% {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/src/styles/mixins.scss
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@mixin scrollbar() {
|
|
2
|
-
&::-webkit-scrollbar {
|
|
3
|
-
width: 8px;
|
|
4
|
-
height: 8px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
&::-webkit-scrollbar-track {
|
|
8
|
-
background-color: #f1f1f1;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&::-webkit-scrollbar-thumb {
|
|
12
|
-
background-color: #dfdfdf;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin avatarSize($size) {
|
|
17
|
-
width: $size;
|
|
18
|
-
height: $size;
|
|
19
|
-
line-height: $size - 2px;
|
|
20
|
-
}
|
|
1
|
+
@mixin scrollbar() {
|
|
2
|
+
&::-webkit-scrollbar {
|
|
3
|
+
width: 8px;
|
|
4
|
+
height: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&::-webkit-scrollbar-track {
|
|
8
|
+
background-color: #f1f1f1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&::-webkit-scrollbar-thumb {
|
|
12
|
+
background-color: #dfdfdf;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin avatarSize($size) {
|
|
17
|
+
width: $size;
|
|
18
|
+
height: $size;
|
|
19
|
+
line-height: $size - 2px;
|
|
20
|
+
}
|
package/src/styles/settings.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.wxchtf-chatify {
|
|
2
|
-
.wxchtf-chat-settings {
|
|
3
|
-
padding-inline: 1rem;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
.wxchtf-chatify {
|
|
2
|
+
.wxchtf-chat-settings {
|
|
3
|
+
padding-inline: 1rem;
|
|
4
|
+
}
|
|
5
|
+
}
|