@myun/gimi-chat 0.9.28 → 0.9.30
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/client/components/history-list/index.module.css +6 -6
- package/dist/client/components/new-main/index.css +1 -1
- package/dist/client/components/slider/index.css +7 -7
- package/dist/components/ai-chat-dialogue/index.module copy.css +7 -7
- package/dist/components/ai-chat-dialogue/index.module.css +9 -9
- package/dist/components/ai-loading/index.module.css +1 -1
- package/dist/components/answer-item/index.module.css +9 -9
- package/dist/components/ask-card/index.js +6 -4
- package/dist/components/ask-card/index.module.css +10 -10
- package/dist/components/chat-input/extension/title-slot/index.less +3 -2
- package/dist/components/chat-input/index.js +14 -9
- package/dist/components/chat-input/index.module.css +11 -7
- package/dist/components/chat-voice/VoiceCommunication.js +5 -8
- package/dist/components/chat-voice/VoiceRecord.js +5 -8
- package/dist/components/dots-loading/index.module.css +1 -1
- package/dist/components/empty/index.module.css +1 -1
- package/dist/components/excel-components/index.module.css +15 -15
- package/dist/components/excel-components/styles.module.css +2 -2
- package/dist/components/file-card/index.js +5 -4
- package/dist/components/file-card/index.module.css +7 -7
- package/dist/components/file-preview/index.module.css +6 -6
- package/dist/components/iconfont-com/index.js +1 -1
- package/dist/components/knowledge-trace/KnowledgeIconComponent.js +1 -1
- package/dist/components/knowledge-trace/index.module.css +12 -12
- package/dist/components/message-actions/CopyButton.js +5 -9
- package/dist/components/message-actions/LikeButton.js +7 -11
- package/dist/components/message-actions/RegenerateButton.js +2 -1
- package/dist/components/message-actions/UnLikeButton.js +7 -11
- package/dist/components/message-actions/VoicePlay.js +5 -10
- package/dist/components/message-list/index.module.css +9 -9
- package/dist/components/product-tag/index.module.css +3 -3
- package/dist/components/quoted-content/index.js +5 -6
- package/dist/components/quoted-content/index.module.css +33 -8
- package/dist/components/reasoning-content/index.module.css +5 -5
- package/dist/components/reference-content/index.module.css +5 -5
- package/dist/components/search-course-list/index.module.css +4 -4
- package/dist/components/search-result/index.module.css +12 -12
- package/dist/components/templates/index.module.css +1 -1
- package/dist/components/upload-list/CustomFile.js +7 -10
- package/dist/components/upload-list/ImageFile.js +1 -1
- package/dist/components/upload-list/customFile.module.css +6 -6
- package/dist/components/upload-list/imageFile.module.css +3 -3
- package/dist/components/upload-list/index.module.css +1 -1
- package/dist/components/voice-bars/index.js +1 -1
- package/dist/components/work-flow-content/index.module.css +1 -1
- package/dist/umd/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
.excelSucess {
|
|
3
3
|
flex-shrink: 0;
|
|
4
4
|
border-radius: 12px;
|
|
5
|
-
border: 1px solid var(
|
|
6
|
-
background: var(
|
|
5
|
+
border: 1px solid var(--theme-lightNeutral, #E9EBF2);
|
|
6
|
+
background: var(--theme-paleNeutral, #F2F3F7);
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
gap: 12px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.excelSucess .left .iconName .nameSize .type {
|
|
46
46
|
width: fit-content;
|
|
47
47
|
text-align: center;
|
|
48
|
-
color: var(
|
|
48
|
+
color: var(--theme-dustyNeutral, #717F94);
|
|
49
49
|
font-family: "PingFang SC";
|
|
50
50
|
font-size: 14px;
|
|
51
51
|
font-style: normal;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
.excelSucess .left .iconName .nameSize .name {
|
|
59
59
|
flex: 1;
|
|
60
|
-
color: var(
|
|
60
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
61
61
|
font-family: "PingFang SC";
|
|
62
62
|
font-size: 16px;
|
|
63
63
|
width: 190px;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
margin-right: 12px;
|
|
89
89
|
}
|
|
90
90
|
.excelSucess .left .typeSize .size {
|
|
91
|
-
color: var(
|
|
91
|
+
color: var(--theme-dustyNeutral, #717F94);
|
|
92
92
|
font-family: "PingFang SC";
|
|
93
93
|
font-size: 14px;
|
|
94
94
|
font-style: normal;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
flex-shrink: 0;
|
|
104
104
|
}
|
|
105
105
|
.excelSucess .right .text {
|
|
106
|
-
color: var(
|
|
106
|
+
color: var(--theme-primary, #4086FF);
|
|
107
107
|
text-align: right;
|
|
108
108
|
font-family: "PingFang SC";
|
|
109
109
|
font-size: 16px;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.failText {
|
|
116
|
-
color: #
|
|
116
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
117
117
|
font-family: "PingFang SC";
|
|
118
118
|
font-size: 16px;
|
|
119
119
|
font-style: normal;
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.excelFail .failText {
|
|
128
|
-
color: #
|
|
128
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
129
129
|
font-family: "PingFang SC";
|
|
130
130
|
font-size: 16px;
|
|
131
131
|
font-style: normal;
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
height: 44px;
|
|
144
144
|
flex-shrink: 0;
|
|
145
145
|
border-radius: 22px;
|
|
146
|
-
border: 1px solid var(
|
|
146
|
+
border: 1px solid var(--theme-softNeutral, #D9DCE5);
|
|
147
147
|
background: #fff;
|
|
148
|
-
color: #
|
|
148
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
149
149
|
font-family: "PingFang SC";
|
|
150
150
|
font-size: 14px;
|
|
151
151
|
font-style: normal;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
.excelFail .disablebox {
|
|
156
156
|
border-radius: 22px;
|
|
157
|
-
border: 1px solid var(
|
|
157
|
+
border: 1px solid var(--theme-softNeutral, #D9DCE5);
|
|
158
158
|
background: #fff;
|
|
159
159
|
color: #ced3d9;
|
|
160
160
|
font-family: "PingFang SC";
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
}
|
|
168
168
|
.excelFail .selectbox {
|
|
169
169
|
border-radius: 22px;
|
|
170
|
-
background: var(
|
|
170
|
+
background: var(--theme-deepNeutral, #2E394C);
|
|
171
171
|
color: #fff;
|
|
172
172
|
font-family: "PingFang SC";
|
|
173
173
|
font-size: 14px;
|
|
@@ -179,8 +179,8 @@
|
|
|
179
179
|
}
|
|
180
180
|
.excelFail .Retry:hover {
|
|
181
181
|
border-radius: 22px;
|
|
182
|
-
border: 1px solid var(
|
|
183
|
-
background: #
|
|
182
|
+
border: 1px solid var(--theme-softNeutral, #D9DCE5);
|
|
183
|
+
background: var(--theme-subtleNeutral, #F5F7FA);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.excelRunning {
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
object-fit: cover;
|
|
198
198
|
}
|
|
199
199
|
.excelRunning .running .runningText {
|
|
200
|
-
color: #
|
|
200
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
201
201
|
font-family: "PingFang SC";
|
|
202
202
|
font-size: 16px;
|
|
203
203
|
font-style: normal;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.aiLoadingSteps {
|
|
6
|
-
background: linear-gradient(180deg, #
|
|
6
|
+
background: linear-gradient(180deg, var(--theme-primary-pale, #F0F8FF) 0%, #FFFFFF 100%);
|
|
7
7
|
border-radius: 16px;
|
|
8
8
|
padding: 16px;
|
|
9
9
|
width: clamp(360px, 90%, 680px);
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
.titleIcon {
|
|
33
33
|
font-size: 16px;
|
|
34
|
-
color: #
|
|
34
|
+
color: var(--theme-primary, #4086FF);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.description {
|
|
@@ -7,6 +7,7 @@ import { useAppDispatch } from "../../store/hooks";
|
|
|
7
7
|
import { setFilePreviewState, openSidebar } from "../../store/slices/gimiMenuSlice";
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { IconChevronRightStroked } from '@douyinfe/semi-icons';
|
|
10
|
+
import IconFontCom from "../iconfont-com";
|
|
10
11
|
export var FileCard = function FileCard(_ref) {
|
|
11
12
|
var fileName = _ref.fileName,
|
|
12
13
|
downloadUrl = _ref.downloadUrl,
|
|
@@ -70,10 +71,10 @@ export var FileCard = function FileCard(_ref) {
|
|
|
70
71
|
className: styles.text
|
|
71
72
|
}, downloadText), /*#__PURE__*/React.createElement(Tooltip, {
|
|
72
73
|
content: t('file.download')
|
|
73
|
-
}, /*#__PURE__*/React.createElement(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
}, /*#__PURE__*/React.createElement(IconFontCom, {
|
|
75
|
+
type: "icon-xiazai2",
|
|
76
|
+
size: 20,
|
|
77
|
+
color: "var(--theme-deepNeutral, #2E394C)"
|
|
77
78
|
})))));
|
|
78
79
|
};
|
|
79
80
|
export var MultipleFileCard = function MultipleFileCard(_ref2) {
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.card {
|
|
29
|
-
|
|
30
|
-
background: rgb(255, 255, 255) !important;
|
|
29
|
+
background: var(--theme-subtleNeutral, #F5F7FA) !important;
|
|
31
30
|
}
|
|
32
31
|
.card:hover {
|
|
33
|
-
background:
|
|
32
|
+
background: var(--theme-paleNeutral, #F2F3F7) !important;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
.file_main {
|
|
36
|
+
max-width: 380px;
|
|
37
37
|
flex-shrink: 0;
|
|
38
38
|
border-radius: 12px;
|
|
39
|
-
border: 1px solid
|
|
39
|
+
border: 1px solid var(--theme-lightNeutral, #EDEDEB);
|
|
40
40
|
background: linear-gradient(90deg, #EAF2FF 0%, #FFFFFF 100%);
|
|
41
41
|
display: flex;
|
|
42
42
|
box-sizing: content-box;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
.file_main .left .iconName .nameSize .type {
|
|
82
82
|
width: fit-content;
|
|
83
83
|
text-align: center;
|
|
84
|
-
color: var(
|
|
84
|
+
color: var(--theme-neutral, #626262);
|
|
85
85
|
font-family: "PingFang SC";
|
|
86
86
|
font-size: 14px;
|
|
87
87
|
font-style: normal;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
.file_main .left .iconName .nameSize .name {
|
|
95
95
|
flex: 1;
|
|
96
|
-
color: var(
|
|
96
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
97
97
|
font-family: "PingFang SC";
|
|
98
98
|
font-size: 16px;
|
|
99
99
|
width: fit-content;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
flex-shrink: 0;
|
|
115
115
|
}
|
|
116
116
|
.file_main .right .text {
|
|
117
|
-
color:
|
|
117
|
+
color: var(--theme-deepNeutral, #221713);
|
|
118
118
|
text-align: right;
|
|
119
119
|
font-family: "PingFang SC";
|
|
120
120
|
font-size: 16px;
|
|
@@ -55,21 +55,21 @@
|
|
|
55
55
|
font-family: "PingFang SC", sans-serif;
|
|
56
56
|
font-size: 16px;
|
|
57
57
|
font-weight: 600;
|
|
58
|
-
color: #
|
|
58
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
59
59
|
line-height: 22px;
|
|
60
60
|
}
|
|
61
61
|
.header :global(.ant-btn) {
|
|
62
62
|
color: #8c8c8c;
|
|
63
63
|
}
|
|
64
64
|
.header :global(.ant-btn):hover {
|
|
65
|
-
color: #
|
|
65
|
+
color: var(--theme-primary, #4086FF);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.iframeContainer {
|
|
69
69
|
flex: 1;
|
|
70
70
|
overflow: hidden;
|
|
71
71
|
position: relative;
|
|
72
|
-
background: #
|
|
72
|
+
background: var(--theme-subtleNeutral, #F5F7FA);
|
|
73
73
|
}
|
|
74
74
|
.iframeContainer iframe {
|
|
75
75
|
width: 100%;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
width: 122px;
|
|
90
90
|
}
|
|
91
91
|
.iframeContainer .empty p {
|
|
92
|
-
color: #
|
|
92
|
+
color: var(--theme-mediumNeutral, #9AA7B7);
|
|
93
93
|
}
|
|
94
94
|
.iframeContainer .empty .retryButton {
|
|
95
95
|
display: flex;
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
background-color: #ffffff;
|
|
102
102
|
padding: 10px 20px;
|
|
103
103
|
font-size: 14px;
|
|
104
|
-
border: #
|
|
104
|
+
border: var(--theme-lightNeutral, #E9EBF2) 1px solid;
|
|
105
105
|
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.0588235294);
|
|
106
106
|
}
|
|
107
107
|
.iframeContainer .empty .retryButton .replayIcon {
|
|
108
108
|
padding: 2px;
|
|
109
109
|
}
|
|
110
110
|
.iframeContainer .empty .retryButton:hover {
|
|
111
|
-
color: #
|
|
111
|
+
color: var(--theme-primary, #4086FF);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.mainHidden {
|
|
@@ -12,7 +12,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import Icon from '@douyinfe/semi-icons';
|
|
15
|
-
var scriptUrl = '//at.alicdn.com/t/c/
|
|
15
|
+
var scriptUrl = '//at.alicdn.com/t/c/font_3429456_unwbslgsra.js';
|
|
16
16
|
|
|
17
17
|
// Load iconfont script
|
|
18
18
|
if (typeof document !== 'undefined' && scriptUrl) {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
font-size: 14px;
|
|
64
64
|
line-height: 150%;
|
|
65
65
|
letter-spacing: 0px;
|
|
66
|
-
color: #
|
|
66
|
+
color: var(--theme-neutral, #4C5A70);
|
|
67
67
|
}
|
|
68
68
|
.knowledgeList .resource_deactive {
|
|
69
69
|
cursor: not-allowed !important;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
z-index: 2;
|
|
79
79
|
}
|
|
80
80
|
.knowledgeList .knowledge {
|
|
81
|
-
background-color: #
|
|
81
|
+
background-color: var(--theme-subtleNeutral, #F5F7FA);
|
|
82
82
|
border-radius: 12px;
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
font-size: 14px;
|
|
131
131
|
line-height: 150%;
|
|
132
132
|
letter-spacing: 0px;
|
|
133
|
-
color: #
|
|
133
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
134
134
|
}
|
|
135
135
|
.knowledgeList .knowledge .description .timeTrace {
|
|
136
136
|
text-overflow: ellipsis;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
-webkit-line-clamp: 2;
|
|
139
139
|
-webkit-box-orient: vertical;
|
|
140
140
|
overflow: hidden;
|
|
141
|
-
color: #
|
|
141
|
+
color: var(--theme-dustyNeutral, #717F94);
|
|
142
142
|
width: 200px;
|
|
143
143
|
font-family: "PingFang SC";
|
|
144
144
|
font-weight: 400;
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
border-radius: 4px;
|
|
196
196
|
float: left;
|
|
197
197
|
margin-right: 5px;
|
|
198
|
-
background-color: #
|
|
198
|
+
background-color: var(--theme-neutral, #4C5A70);
|
|
199
199
|
color: #ffffff;
|
|
200
200
|
}
|
|
201
201
|
.knowledgeList .knowledge .class_description .text {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
font-size: 14px;
|
|
213
213
|
line-height: 150%;
|
|
214
214
|
letter-spacing: 0px;
|
|
215
|
-
color: #
|
|
215
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
216
216
|
}
|
|
217
217
|
.knowledgeList .knowledge .class_description .timeTrace {
|
|
218
218
|
text-overflow: ellipsis;
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
-webkit-line-clamp: 2;
|
|
221
221
|
-webkit-box-orient: vertical;
|
|
222
222
|
overflow: hidden;
|
|
223
|
-
color: #
|
|
223
|
+
color: var(--theme-dustyNeutral, #717F94);
|
|
224
224
|
width: 150px;
|
|
225
225
|
font-family: "PingFang SC";
|
|
226
226
|
font-weight: 400;
|
|
@@ -242,8 +242,8 @@
|
|
|
242
242
|
justify-content: center;
|
|
243
243
|
border-radius: 4px;
|
|
244
244
|
gap: 5px;
|
|
245
|
-
border:
|
|
246
|
-
background-color: #
|
|
245
|
+
border: 1px solid var(--theme-softNeutral, #D9DCE5);
|
|
246
|
+
background-color: var(--theme-subtleNeutral, #F5F7FA);
|
|
247
247
|
cursor: pointer;
|
|
248
248
|
}
|
|
249
249
|
.icon_btn span {
|
|
@@ -251,11 +251,11 @@
|
|
|
251
251
|
}
|
|
252
252
|
.icon_btn:hover {
|
|
253
253
|
background-color: #FFFFFF;
|
|
254
|
-
color: #4086FF;
|
|
254
|
+
color: var(--theme-primary, #4086FF);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
.icon_btn_active {
|
|
258
|
-
background-color: #
|
|
258
|
+
background-color: var(--theme-primary, #4086FF);
|
|
259
259
|
color: #ffffff;
|
|
260
260
|
}
|
|
261
261
|
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
max-height: 388px;
|
|
267
267
|
padding: 16px 12px 0px 12px;
|
|
268
268
|
border-radius: 16px;
|
|
269
|
-
border: 1px solid #E9EBF2;
|
|
269
|
+
border: 1px solid var(--theme-lightNeutral, #E9EBF2);
|
|
270
270
|
background: #FFF;
|
|
271
271
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
|
|
272
272
|
z-index: 2;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Tooltip } from '@douyinfe/semi-ui';
|
|
4
4
|
import { usePureChatActions } from "../../hooks/useChatActions";
|
|
5
|
-
import
|
|
5
|
+
import IconFontCom from "../iconfont-com";
|
|
6
6
|
var CopyButton = function CopyButton(_ref) {
|
|
7
7
|
var item = _ref.item,
|
|
8
8
|
onCopyCallback = _ref.onCopyCallback;
|
|
@@ -19,14 +19,10 @@ var CopyButton = function CopyButton(_ref) {
|
|
|
19
19
|
justifyContent: 'center',
|
|
20
20
|
cursor: 'pointer'
|
|
21
21
|
}
|
|
22
|
-
}, /*#__PURE__*/React.createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
display: 'flex',
|
|
27
|
-
alignItems: 'center'
|
|
28
|
-
},
|
|
29
|
-
src: copyIcon,
|
|
22
|
+
}, /*#__PURE__*/React.createElement(IconFontCom, {
|
|
23
|
+
type: "icon-duihua-fuzhi",
|
|
24
|
+
size: 18,
|
|
25
|
+
color: "var(--theme-neutral, #4C5A70)",
|
|
30
26
|
onClick: function onClick() {
|
|
31
27
|
copyToClipboard(item);
|
|
32
28
|
onCopyCallback === null || onCopyCallback === void 0 || onCopyCallback();
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { usePureChatActions } from "../../hooks/useChatActions";
|
|
2
|
-
import likeIcon from "../../assets/image/like_active.png";
|
|
3
|
-
import love from "../../assets/image/love.png";
|
|
4
2
|
import { Tooltip } from '@douyinfe/semi-ui';
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import IconFontCom from "../iconfont-com";
|
|
7
6
|
var LikeButton = function LikeButton(_ref) {
|
|
8
7
|
var item = _ref.item,
|
|
9
8
|
onLikeCallback = _ref.onLikeCallback;
|
|
@@ -11,8 +10,9 @@ var LikeButton = function LikeButton(_ref) {
|
|
|
11
10
|
t = _useTranslation.t;
|
|
12
11
|
var _usePureChatActions = usePureChatActions(),
|
|
13
12
|
handleUnlove = _usePureChatActions.handleUnlove;
|
|
13
|
+
var isLiked = item.mark === 2;
|
|
14
14
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
15
|
-
content: "".concat(
|
|
15
|
+
content: "".concat(isLiked ? t('messageAction.likeDone') : t('messageAction.like'))
|
|
16
16
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17
17
|
style: {
|
|
18
18
|
display: 'flex',
|
|
@@ -24,14 +24,10 @@ var LikeButton = function LikeButton(_ref) {
|
|
|
24
24
|
handleUnlove(item, 'love');
|
|
25
25
|
onLikeCallback === null || onLikeCallback === void 0 || onLikeCallback();
|
|
26
26
|
}
|
|
27
|
-
}, /*#__PURE__*/React.createElement(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
display: 'flex',
|
|
32
|
-
alignItems: 'center'
|
|
33
|
-
},
|
|
34
|
-
src: item.mark === 2 ? likeIcon : love
|
|
27
|
+
}, /*#__PURE__*/React.createElement(IconFontCom, {
|
|
28
|
+
type: isLiked ? 'icon-duihua-dianzanxuanzhong' : 'icon-duihua-dianzan',
|
|
29
|
+
size: 18,
|
|
30
|
+
color: "var(--theme-neutral, #4C5A70)"
|
|
35
31
|
})));
|
|
36
32
|
};
|
|
37
33
|
export default LikeButton;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { usePureChatActions } from "../../hooks/useChatActions";
|
|
2
|
-
import unloveActive from "../../assets/image/unlike_active.png";
|
|
3
|
-
import unlove from "../../assets/image/unlove.png";
|
|
4
2
|
import { Tooltip } from '@douyinfe/semi-ui';
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import IconFontCom from "../iconfont-com";
|
|
7
6
|
var UnLikeButton = function UnLikeButton(_ref) {
|
|
8
7
|
var item = _ref.item,
|
|
9
8
|
onUnLikeCallback = _ref.onUnLikeCallback;
|
|
@@ -11,8 +10,9 @@ var UnLikeButton = function UnLikeButton(_ref) {
|
|
|
11
10
|
t = _useTranslation.t;
|
|
12
11
|
var _usePureChatActions = usePureChatActions(),
|
|
13
12
|
handleUnlove = _usePureChatActions.handleUnlove;
|
|
13
|
+
var isDisliked = item.mark === 1;
|
|
14
14
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
15
|
-
content: "".concat(
|
|
15
|
+
content: "".concat(isDisliked ? t('messageAction.dislikeDone') : t('messageAction.dislike'))
|
|
16
16
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17
17
|
style: {
|
|
18
18
|
display: 'flex',
|
|
@@ -24,14 +24,10 @@ var UnLikeButton = function UnLikeButton(_ref) {
|
|
|
24
24
|
handleUnlove(item, 'unlove');
|
|
25
25
|
onUnLikeCallback === null || onUnLikeCallback === void 0 || onUnLikeCallback();
|
|
26
26
|
}
|
|
27
|
-
}, /*#__PURE__*/React.createElement(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
display: 'flex',
|
|
32
|
-
alignItems: 'center'
|
|
33
|
-
},
|
|
34
|
-
src: item.mark === 1 ? unloveActive : unlove
|
|
27
|
+
}, /*#__PURE__*/React.createElement(IconFontCom, {
|
|
28
|
+
type: isDisliked ? 'icon-duihua-diancaixuanzhong' : 'icon-duihua-diancai',
|
|
29
|
+
size: 18,
|
|
30
|
+
color: "var(--theme-neutral, #4C5A70)"
|
|
35
31
|
})));
|
|
36
32
|
};
|
|
37
33
|
export default UnLikeButton;
|
|
@@ -3,11 +3,11 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
3
3
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import soundOutIcon from "../../assets/image/soundOut.png";
|
|
7
6
|
import { Tooltip } from '@douyinfe/semi-ui';
|
|
8
7
|
import { useAppSelector, useAppDispatch } from "../../store/hooks";
|
|
9
8
|
import { setCurrentMessageId } from "../../store/slices/gimiMenuSlice";
|
|
10
9
|
import LottieImg from "../lottie-img";
|
|
10
|
+
import IconFontCom from "../iconfont-com";
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
12
|
var getCleanReadText = function getCleanReadText(text) {
|
|
13
13
|
// 移除<knowledge>标签及内容
|
|
@@ -64,15 +64,10 @@ var VoicePlay = function VoicePlay(props) {
|
|
|
64
64
|
}, isActive ? /*#__PURE__*/React.createElement(LottieImg, {
|
|
65
65
|
name: "aiVoicePlay",
|
|
66
66
|
size: [30, 20]
|
|
67
|
-
}) : /*#__PURE__*/React.createElement(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
display: 'flex',
|
|
72
|
-
alignItems: 'center'
|
|
73
|
-
},
|
|
74
|
-
src: soundOutIcon,
|
|
75
|
-
alt: t('voice.readAloud')
|
|
67
|
+
}) : /*#__PURE__*/React.createElement(IconFontCom, {
|
|
68
|
+
type: "icon-duihua-bobao",
|
|
69
|
+
size: 18,
|
|
70
|
+
color: "var(--theme-neutral, #4C5A70)"
|
|
76
71
|
})));
|
|
77
72
|
};
|
|
78
73
|
export default VoicePlay;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
display: inline-block;
|
|
43
43
|
max-width: 680px;
|
|
44
44
|
padding: 12px 16px;
|
|
45
|
-
background: #
|
|
45
|
+
background: var(--theme-subtleNeutral, #F5F7FA);
|
|
46
46
|
border-radius: 16px;
|
|
47
47
|
white-space: pre-wrap;
|
|
48
48
|
word-break: break-word;
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
align-items: center;
|
|
71
71
|
position: relative;
|
|
72
72
|
font-size: 16px;
|
|
73
|
-
color: #
|
|
73
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
74
74
|
line-height: 24px;
|
|
75
75
|
width: fit-content;
|
|
76
76
|
text-align: left;
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
font-family: PingFangSC, PingFang SC;
|
|
121
121
|
font-weight: 400;
|
|
122
122
|
font-size: 14px;
|
|
123
|
-
color: #
|
|
123
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
124
124
|
line-height: 20px;
|
|
125
125
|
text-align: left;
|
|
126
126
|
font-style: normal;
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
margin: 40px 0;
|
|
153
153
|
width: 100%;
|
|
154
154
|
height: 1px;
|
|
155
|
-
background: #
|
|
155
|
+
background: var(--theme-lightNeutral, #E9EBF2);
|
|
156
156
|
}
|
|
157
157
|
.main .textWrap .textItem .course_recommend .course_recommend_header {
|
|
158
158
|
width: 100%;
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
font-family: PingFangSC, PingFang SC;
|
|
166
166
|
font-weight: 600;
|
|
167
167
|
font-size: 18px;
|
|
168
|
-
color: #
|
|
168
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
169
169
|
line-height: 28px;
|
|
170
170
|
text-align: left;
|
|
171
171
|
font-style: normal;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
font-family: PingFangSC, PingFang SC;
|
|
181
181
|
font-weight: 500;
|
|
182
182
|
font-size: 14px;
|
|
183
|
-
color: #
|
|
183
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
184
184
|
line-height: 20px;
|
|
185
185
|
text-align: left;
|
|
186
186
|
font-style: normal;
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
font-family: PingFangSC, PingFang SC;
|
|
219
219
|
font-weight: 400;
|
|
220
220
|
font-size: 14px;
|
|
221
|
-
color: #
|
|
221
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
222
222
|
line-height: 20px;
|
|
223
223
|
text-align: left;
|
|
224
224
|
font-style: normal;
|
|
@@ -243,13 +243,13 @@
|
|
|
243
243
|
.main .emptyWrap .title {
|
|
244
244
|
font-weight: 600;
|
|
245
245
|
font-size: 20px;
|
|
246
|
-
color: #
|
|
246
|
+
color: var(--theme-deepNeutral, #2E394C);
|
|
247
247
|
line-height: 28px;
|
|
248
248
|
margin-bottom: 12px;
|
|
249
249
|
}
|
|
250
250
|
.main .emptyWrap .tips {
|
|
251
251
|
font-size: 16px;
|
|
252
|
-
color: #
|
|
252
|
+
color: var(--theme-neutral, #4C5A70);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
.copyBtn {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
justify-content: center;
|
|
9
9
|
border-radius: 4px;
|
|
10
10
|
gap: 5px;
|
|
11
|
-
border:
|
|
12
|
-
background-color: #
|
|
11
|
+
border: 1px solid var(--theme-softNeutral, #D9DCE5);
|
|
12
|
+
background-color: var(--theme-subtleNeutral, #F5F7FA);
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
}
|
|
15
15
|
.icon_btn span {
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
}
|
|
18
18
|
.icon_btn:hover {
|
|
19
19
|
background-color: #FFFFFF;
|
|
20
|
-
color: #4086FF;
|
|
20
|
+
color: var(--theme-primary, #4086FF);
|
|
21
21
|
}
|
|
@@ -36,8 +36,6 @@ var tabList = [{
|
|
|
36
36
|
}
|
|
37
37
|
// { key: 'course', displayName: '课程' },
|
|
38
38
|
];
|
|
39
|
-
var quotoIcon = 'https://simg01.gaodunwangxiao.com/uploadimgs/tmp/upload/202601/30/be6d9_20260130135139.png';
|
|
40
|
-
var isActiveQuotoIcon = 'https://simg01.gaodunwangxiao.com/uploadimgs/tmp/upload/202601/30/8e64c_20260130135037.png';
|
|
41
39
|
var QuotedContent = function QuotedContent(_ref) {
|
|
42
40
|
var initQuoteSource = _ref.initQuoteSource;
|
|
43
41
|
var _useTranslation = useTranslation(),
|
|
@@ -238,7 +236,7 @@ var QuotedContent = function QuotedContent(_ref) {
|
|
|
238
236
|
className: styles.searchInput,
|
|
239
237
|
prefix: /*#__PURE__*/React.createElement(IconFontCom, {
|
|
240
238
|
type: "icon-search1",
|
|
241
|
-
color: "#
|
|
239
|
+
color: "var(--theme-mediumNeutral, #9AA7B7)",
|
|
242
240
|
size: 16
|
|
243
241
|
}),
|
|
244
242
|
onChange: handleChange,
|
|
@@ -318,9 +316,10 @@ var QuotedContent = function QuotedContent(_ref) {
|
|
|
318
316
|
content: t('quote.courseTooltip'),
|
|
319
317
|
position: "top",
|
|
320
318
|
visible: showmodel ? false : undefined
|
|
321
|
-
}, /*#__PURE__*/React.createElement(
|
|
322
|
-
|
|
323
|
-
|
|
319
|
+
}, /*#__PURE__*/React.createElement(IconFontCom, {
|
|
320
|
+
type: "icon-shurukuang-kechengyinyong",
|
|
321
|
+
size: 26,
|
|
322
|
+
className: styles.quoteIcon
|
|
324
323
|
}))));
|
|
325
324
|
};
|
|
326
325
|
export default QuotedContent;
|