@myun/gimi-chat 0.0.4 → 0.0.5
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/components/ai-chat-dialogue/index.js +1 -1
- package/dist/components/ai-chat-dialogue/index.module.css +230 -0
- package/dist/components/ai-loading/index.js +1 -1
- package/dist/components/ai-loading/index.module.css +11 -0
- package/dist/components/answer-item/index.js +1 -1
- package/dist/components/answer-item/index.module.css +266 -0
- package/dist/components/ask-card/index.js +1 -1
- package/dist/components/ask-card/index.module.css +122 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-input/index.module.css +42 -0
- package/dist/components/dots-loading/index.js +1 -1
- package/dist/components/dots-loading/index.module.css +41 -0
- package/dist/components/empty/index.js +1 -1
- package/dist/components/empty/index.module.css +24 -0
- package/dist/components/excel-components/ExcelExcuting.js +1 -1
- package/dist/components/excel-components/ExcelFailCard.js +1 -1
- package/dist/components/excel-components/index.module.css +212 -0
- package/dist/components/excel-components/styles.module.css +178 -0
- package/dist/components/file-card/fileCardSidebar.js +1 -1
- package/dist/components/file-card/index.js +1 -1
- package/dist/components/file-card/index.module.css +139 -0
- package/dist/components/file-preview/index.js +6 -8
- package/dist/components/file-preview/index.module.css +83 -0
- package/dist/components/gimi-sidebar/index.js +1 -1
- package/dist/components/gimi-sidebar/index.module.css +118 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/header/index.module.css +19 -0
- package/dist/components/knowledge-trace/KnowledgeIconComponent.js +1 -1
- package/dist/components/knowledge-trace/classList.js +1 -1
- package/dist/components/knowledge-trace/documentList.js +1 -1
- package/dist/components/knowledge-trace/index.js +1 -1
- package/dist/components/knowledge-trace/index.module.css +254 -0
- package/dist/components/knowledge-trace/videoList.js +1 -1
- package/dist/components/message-list/index.js +3 -6
- package/dist/components/message-list/index.module.css +261 -0
- package/dist/components/no-microphone-root/index.js +1 -1
- package/dist/components/no-microphone-root/index.module.css +48 -0
- package/dist/components/preset-agent-content/index.js +1 -1
- package/dist/components/preset-agent-content/index.module.css +46 -0
- package/dist/components/quoted-content/index.module.css +80 -0
- package/dist/components/reasoning-content/index.js +1 -1
- package/dist/components/reasoning-content/index.module.css +169 -0
- package/dist/components/reference-content/index.js +1 -1
- package/dist/components/reference-content/index.module.css +84 -0
- package/dist/components/templates/CommonChat.js +1 -1
- package/dist/components/templates/demo/demo.js +2 -3
- package/dist/components/templates/index.module.css +109 -0
- package/dist/components/upload-list/index.js +1 -1
- package/dist/components/upload-list/index.module.css +119 -0
- package/dist/components/voice-check-dialog/index.js +1 -1
- package/dist/components/voice-check-dialog/{index.module.scss → index.module.css} +2 -2
- package/dist/components/voice-recording/index.js +1 -1
- package/dist/components/voice-recording/index.module.css +41 -0
- package/dist/components/work-flow-content/index.js +1 -1
- package/dist/components/work-flow-content/index.module.css +24 -0
- package/package.json +4 -4
- package/dist/components/ai-chat-dialogue/index.module.scss +0 -272
- package/dist/components/ai-loading/index.module.scss +0 -11
- package/dist/components/answer-item/index.module.scss +0 -295
- package/dist/components/ask-card/index.module.scss +0 -125
- package/dist/components/chat-input/index.module.scss +0 -44
- package/dist/components/dots-loading/index.module.scss +0 -45
- package/dist/components/empty/index.module.scss +0 -27
- package/dist/components/excel-components/index.module.scss +0 -210
- package/dist/components/excel-components/styles.module.scss +0 -186
- package/dist/components/file-card/index.module.scss +0 -139
- package/dist/components/file-preview/index.module.scss +0 -120
- package/dist/components/gimi-sidebar/index.module.scss +0 -136
- package/dist/components/header/index.module.scss +0 -26
- package/dist/components/knowledge-trace/index.module.scss +0 -262
- package/dist/components/message-list/index.module.scss +0 -304
- package/dist/components/no-microphone-root/index.module.scss +0 -42
- package/dist/components/preset-agent-content/index.module.scss +0 -48
- package/dist/components/quoted-content/index.module.scss +0 -76
- package/dist/components/reasoning-content/index.module.scss +0 -164
- package/dist/components/reference-content/index.module.scss +0 -73
- package/dist/components/templates/index.module.scss +0 -119
- package/dist/components/upload-list/index.module.scss +0 -119
- package/dist/components/voice-recording/index.module.scss +0 -41
- package/dist/components/work-flow-content/index.module.scss +0 -23
|
@@ -20,7 +20,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
20
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
|
|
22
22
|
import LottieImg from "../lottie-img";
|
|
23
|
-
import styles from "./index.module.
|
|
23
|
+
import styles from "./index.module.css";
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
import { Toast, Tooltip } from '@douyinfe/semi-ui';
|
|
26
26
|
import Header from "../header";
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.aiChat {
|
|
3
|
+
z-index: 99999;
|
|
4
|
+
position: fixed;
|
|
5
|
+
inset: 0;
|
|
6
|
+
}
|
|
7
|
+
.aiChat .bgImg {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
}
|
|
14
|
+
.aiChat .back {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 30px;
|
|
17
|
+
left: 20px;
|
|
18
|
+
z-index: 2;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
width: 30px;
|
|
23
|
+
height: 30px;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
background: #ffffff;
|
|
26
|
+
box-shadow: 0px 0px 10px 0px rgba(153, 167, 191, 0.2);
|
|
27
|
+
border: 1px solid #ebf2ff;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
.aiChat .rightWrap {
|
|
31
|
+
position: absolute;
|
|
32
|
+
right: 20px;
|
|
33
|
+
top: 30px;
|
|
34
|
+
z-index: 3;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
.aiChat .rightWrap .iconWrap {
|
|
39
|
+
margin-right: 40px;
|
|
40
|
+
}
|
|
41
|
+
.aiChat .introWrap {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 60px;
|
|
44
|
+
right: -420px;
|
|
45
|
+
width: 400px;
|
|
46
|
+
height: calc(100vh - 100px);
|
|
47
|
+
padding: 20px 20px 15px;
|
|
48
|
+
background: #f7faff;
|
|
49
|
+
box-shadow: -6px 2px 20px 0px rgba(153, 167, 191, 0.15);
|
|
50
|
+
border-radius: 12px;
|
|
51
|
+
z-index: 2;
|
|
52
|
+
transition: all 0.3s ease;
|
|
53
|
+
}
|
|
54
|
+
.aiChat .introWrap.block {
|
|
55
|
+
right: 20px;
|
|
56
|
+
}
|
|
57
|
+
.aiChat .introWrap .loading {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
height: 80%;
|
|
62
|
+
text-align: center;
|
|
63
|
+
}
|
|
64
|
+
.aiChat .introWrap .introHeader {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
align-items: center;
|
|
68
|
+
margin-bottom: 20px;
|
|
69
|
+
}
|
|
70
|
+
.aiChat .introWrap .introHeader .title {
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
}
|
|
74
|
+
.aiChat .introWrap .introContent {
|
|
75
|
+
height: calc(100% - 60px);
|
|
76
|
+
overflow-y: scroll;
|
|
77
|
+
padding-right: 10px;
|
|
78
|
+
}
|
|
79
|
+
.aiChat .main {
|
|
80
|
+
position: relative;
|
|
81
|
+
height: 100%;
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
transition: all 0.3s ease;
|
|
85
|
+
}
|
|
86
|
+
.aiChat .main.translate {
|
|
87
|
+
transform: translateX(-160px);
|
|
88
|
+
}
|
|
89
|
+
.aiChat .main .content {
|
|
90
|
+
height: calc(100% - 380px);
|
|
91
|
+
overflow-y: scroll;
|
|
92
|
+
overflow-x: hidden;
|
|
93
|
+
}
|
|
94
|
+
.aiChat .main .content .container {
|
|
95
|
+
width: 800px;
|
|
96
|
+
margin: 0 auto;
|
|
97
|
+
height: 100%;
|
|
98
|
+
}
|
|
99
|
+
.aiChat .main .header {
|
|
100
|
+
display: flex;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
margin-bottom: 30px;
|
|
103
|
+
height: 26px;
|
|
104
|
+
}
|
|
105
|
+
.aiChat .main .header .logo {
|
|
106
|
+
width: 18px;
|
|
107
|
+
height: 18px;
|
|
108
|
+
margin-right: 8px;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
margin-top: 3px;
|
|
111
|
+
}
|
|
112
|
+
.aiChat .main .header .title {
|
|
113
|
+
font-size: 18px;
|
|
114
|
+
text-align: center;
|
|
115
|
+
}
|
|
116
|
+
.aiChat .main .tips {
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
color: #54698c;
|
|
119
|
+
font-size: 17px;
|
|
120
|
+
}
|
|
121
|
+
.aiChat .main .item {
|
|
122
|
+
margin-bottom: 10px;
|
|
123
|
+
font-weight: 400;
|
|
124
|
+
color: #333;
|
|
125
|
+
font-size: 17px;
|
|
126
|
+
line-height: 28px;
|
|
127
|
+
word-break: break-all;
|
|
128
|
+
/* 强制换行 */
|
|
129
|
+
overflow-wrap: break-word;
|
|
130
|
+
/* 在适当位置换行 */
|
|
131
|
+
white-space: pre-wrap;
|
|
132
|
+
}
|
|
133
|
+
.aiChat .main .item.answer {
|
|
134
|
+
font-size: 16;
|
|
135
|
+
color: #b0b0b0;
|
|
136
|
+
}
|
|
137
|
+
.aiChat .main .voiceWrap {
|
|
138
|
+
height: 100%;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
}
|
|
142
|
+
.aiChat .main .bottom {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
align-items: center;
|
|
146
|
+
position: absolute;
|
|
147
|
+
bottom: 60px;
|
|
148
|
+
left: 50%;
|
|
149
|
+
transform: translateX(-50%);
|
|
150
|
+
text-align: center;
|
|
151
|
+
}
|
|
152
|
+
.aiChat .main .bottom .pointer {
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
}
|
|
155
|
+
.aiChat .main .bottom .status {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
width: 220px;
|
|
159
|
+
margin-bottom: 30px;
|
|
160
|
+
}
|
|
161
|
+
.aiChat .main .bottom .status .iconOutside {
|
|
162
|
+
width: 30px;
|
|
163
|
+
height: 30px;
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
align-items: center;
|
|
167
|
+
border: 3px solid #000000;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
}
|
|
170
|
+
.aiChat .main .bottom .status .iconInside {
|
|
171
|
+
width: 13px;
|
|
172
|
+
height: 13px;
|
|
173
|
+
background-color: #000000;
|
|
174
|
+
}
|
|
175
|
+
.aiChat .main .bottom .status .statusImg {
|
|
176
|
+
width: 24px;
|
|
177
|
+
height: 24px;
|
|
178
|
+
border-radius: 8px;
|
|
179
|
+
margin: 0 auto;
|
|
180
|
+
margin-bottom: 15px;
|
|
181
|
+
}
|
|
182
|
+
.aiChat .main .bottom .status .statusText {
|
|
183
|
+
font-size: 16px;
|
|
184
|
+
color: #7d91b3;
|
|
185
|
+
}
|
|
186
|
+
.aiChat .main .bottom .status .statusText.danger {
|
|
187
|
+
color: red;
|
|
188
|
+
}
|
|
189
|
+
.aiChat .main .bottom .btnWrap {
|
|
190
|
+
display: flex;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
}
|
|
193
|
+
.aiChat .main .bottom .btnWrap .btnItem {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
width: 76px;
|
|
198
|
+
height: 76px;
|
|
199
|
+
border-radius: 50%;
|
|
200
|
+
margin-right: 118px;
|
|
201
|
+
background: #ffffff;
|
|
202
|
+
box-shadow: 0px 2px 10px 0px rgba(153, 167, 191, 0.1);
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
}
|
|
205
|
+
.aiChat .main .bottom .btnWrap .btnItem.disable {
|
|
206
|
+
pointer-events: none;
|
|
207
|
+
opacity: 0.5;
|
|
208
|
+
cursor: not-allowed;
|
|
209
|
+
}
|
|
210
|
+
.aiChat .main .bottom .btnWrap .btnItem:last-child {
|
|
211
|
+
margin-right: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:global .out-tooltip .ant-tooltip-content .ant-tooltip-arrow {
|
|
215
|
+
left: 55px;
|
|
216
|
+
}
|
|
217
|
+
:global .ai-chat-tooltip {
|
|
218
|
+
z-index: 100000 !important;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:global(.ant-message) {
|
|
222
|
+
position: fixed !important;
|
|
223
|
+
z-index: 99999999 !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.disable {
|
|
227
|
+
opacity: 0.4;
|
|
228
|
+
pointer-events: none;
|
|
229
|
+
cursor: not-allowed;
|
|
230
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.title {
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
position: relative;
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
color: #000000;
|
|
9
|
+
line-height: 24px;
|
|
10
|
+
width: fit-content;
|
|
11
|
+
text-align: left;
|
|
12
|
+
word-break: break-all;
|
|
13
|
+
/* 强制换行 */
|
|
14
|
+
overflow-wrap: break-word;
|
|
15
|
+
/* 在适当位置换行 */
|
|
16
|
+
}
|
|
17
|
+
.title .qusetionOpera {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 50%;
|
|
20
|
+
left: -30px;
|
|
21
|
+
transform: translateY(-50%);
|
|
22
|
+
}
|
|
23
|
+
.title .answer {
|
|
24
|
+
width: 100%;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
margin: 10px 0px;
|
|
29
|
+
}
|
|
30
|
+
.title .answer .completed {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: 10px;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
.title .answer .completed .checkIcon {
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
color: rgb(62, 179, 86);
|
|
38
|
+
}
|
|
39
|
+
.title .answer .completed .checkText {
|
|
40
|
+
font-family: PingFang SC;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
font-style: Semibold;
|
|
43
|
+
font-size: 15px;
|
|
44
|
+
line-height: 180%;
|
|
45
|
+
letter-spacing: 0px;
|
|
46
|
+
color: rgb(46, 57, 76);
|
|
47
|
+
}
|
|
48
|
+
.title .answer .relevance {
|
|
49
|
+
width: fit-content;
|
|
50
|
+
height: 40px;
|
|
51
|
+
background: #ffffff;
|
|
52
|
+
border-radius: 16px;
|
|
53
|
+
border: 1px solid #cfd7e6;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
margin-bottom: 14px;
|
|
58
|
+
}
|
|
59
|
+
.title .answer .relevance .icon {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-self: center;
|
|
63
|
+
margin-right: 12px;
|
|
64
|
+
}
|
|
65
|
+
.title .answer .relevance .search_icon {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-self: center;
|
|
69
|
+
margin-left: 16px;
|
|
70
|
+
}
|
|
71
|
+
.title .answer .relevance span {
|
|
72
|
+
height: 20px;
|
|
73
|
+
font-family: PingFangSC, PingFang SC;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
color: #2e394c;
|
|
77
|
+
line-height: 20px;
|
|
78
|
+
text-align: left;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
margin: 0 2px;
|
|
81
|
+
}
|
|
82
|
+
.title .answer .stop {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 28px;
|
|
85
|
+
font-family: PingFangSC, PingFang SC;
|
|
86
|
+
font-weight: 400;
|
|
87
|
+
font-size: 15px;
|
|
88
|
+
color: #7d91b3;
|
|
89
|
+
line-height: 28px;
|
|
90
|
+
text-align: left;
|
|
91
|
+
font-style: normal;
|
|
92
|
+
margin-top: 6px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.opera {
|
|
96
|
+
height: 18px;
|
|
97
|
+
margin-top: 12px;
|
|
98
|
+
display: flex;
|
|
99
|
+
}
|
|
100
|
+
.opera .opera_item {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 18px;
|
|
104
|
+
}
|
|
105
|
+
.opera .opera_item .unlove {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
user-select: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.operaicon {
|
|
113
|
+
height: 20px;
|
|
114
|
+
margin-top: 12px;
|
|
115
|
+
text-align: end;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.chatline {
|
|
119
|
+
width: 100%;
|
|
120
|
+
margin: 40px 0;
|
|
121
|
+
height: 1px;
|
|
122
|
+
background: #dfe8f7;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.course_recommend {
|
|
126
|
+
width: 100%;
|
|
127
|
+
margin-top: 20px;
|
|
128
|
+
}
|
|
129
|
+
.course_recommend .course_recommend_header {
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 28px;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
}
|
|
136
|
+
.course_recommend .course_recommend_header .course_recommend_header_title {
|
|
137
|
+
font-family: PingFangSC, PingFang SC;
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
font-size: 18px;
|
|
140
|
+
color: #2e394c;
|
|
141
|
+
line-height: 28px;
|
|
142
|
+
text-align: left;
|
|
143
|
+
font-style: normal;
|
|
144
|
+
}
|
|
145
|
+
.course_recommend .course_recommend_header .course_recommend_header_more {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
}
|
|
149
|
+
.course_recommend .course_recommend_header .course_recommend_header_more .all {
|
|
150
|
+
width: 56px;
|
|
151
|
+
height: 20px;
|
|
152
|
+
font-family: PingFangSC, PingFang SC;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
font-size: 14px;
|
|
155
|
+
color: #2e394c;
|
|
156
|
+
line-height: 20px;
|
|
157
|
+
text-align: left;
|
|
158
|
+
font-style: normal;
|
|
159
|
+
}
|
|
160
|
+
.course_recommend .course_recommend_list {
|
|
161
|
+
margin-top: 12px;
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
gap: 20px 0;
|
|
165
|
+
}
|
|
166
|
+
.course_recommend .course_recommend_list .courseItem {
|
|
167
|
+
flex: 1 1 clamp(180px, 48%, 360px);
|
|
168
|
+
max-width: clamp(180px, 48%, 360px);
|
|
169
|
+
height: 68px;
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: space-between;
|
|
173
|
+
}
|
|
174
|
+
.course_recommend .course_recommend_list .courseItem .cover {
|
|
175
|
+
border-radius: 4px;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
width: 120px;
|
|
178
|
+
height: 68px;
|
|
179
|
+
border-radius: 4px;
|
|
180
|
+
}
|
|
181
|
+
.course_recommend .course_recommend_list .courseItem .cover img {
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 100%;
|
|
184
|
+
object-fit: cover;
|
|
185
|
+
}
|
|
186
|
+
.course_recommend .course_recommend_list .courseItem .courseTitle {
|
|
187
|
+
flex: 1 1 auto;
|
|
188
|
+
height: 68px;
|
|
189
|
+
font-family: PingFangSC, PingFang SC;
|
|
190
|
+
font-weight: 400;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
color: #2e394c;
|
|
193
|
+
text-align: left;
|
|
194
|
+
font-style: normal;
|
|
195
|
+
display: -webkit-box;
|
|
196
|
+
-webkit-line-clamp: 3;
|
|
197
|
+
/* 限制行数 */
|
|
198
|
+
-webkit-box-orient: vertical;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
text-overflow: ellipsis;
|
|
201
|
+
margin-left: 20px;
|
|
202
|
+
}
|
|
203
|
+
.course_recommend .course_recommend_list .courseItem .courseTitle .newEquityLabel {
|
|
204
|
+
display: inline-block !important;
|
|
205
|
+
margin-right: 8px;
|
|
206
|
+
padding: 0 4px;
|
|
207
|
+
color: #e68845;
|
|
208
|
+
font-size: 10px;
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
line-height: 18px;
|
|
211
|
+
border-radius: 4px;
|
|
212
|
+
background: #ffecd9;
|
|
213
|
+
position: relative;
|
|
214
|
+
bottom: 2px;
|
|
215
|
+
}
|
|
216
|
+
.course_recommend .course_recommend_list .courseItem .courseTitle .newEquityLabel-1 {
|
|
217
|
+
color: #3d996b;
|
|
218
|
+
background: #ccffe6;
|
|
219
|
+
}
|
|
220
|
+
.course_recommend .course_recommend_list .courseItem .courseTitle .newEquityLabel-3 {
|
|
221
|
+
color: #fff;
|
|
222
|
+
background: #7d91b3;
|
|
223
|
+
}
|
|
224
|
+
.course_recommend .course_recommend_list .courseItem:nth-child(2n) {
|
|
225
|
+
margin-left: 40px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.quickInputList {
|
|
229
|
+
max-width: min(800px, 90vw);
|
|
230
|
+
display: flex;
|
|
231
|
+
gap: 12px;
|
|
232
|
+
flex-wrap: wrap;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
align-items: flex-start;
|
|
235
|
+
margin-top: 20px;
|
|
236
|
+
}
|
|
237
|
+
.quickInputList .quickInputItem {
|
|
238
|
+
padding: 5px 10px;
|
|
239
|
+
font-family: PingFangSC, PingFang SC;
|
|
240
|
+
font-weight: 400;
|
|
241
|
+
font-size: 14px;
|
|
242
|
+
color: rgb(46, 57, 76);
|
|
243
|
+
line-height: 18px;
|
|
244
|
+
text-align: left;
|
|
245
|
+
font-style: normal;
|
|
246
|
+
border-radius: 8px;
|
|
247
|
+
border: 1px solid rgb(217, 220, 229);
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
display: inline;
|
|
250
|
+
white-space: nowrap;
|
|
251
|
+
/* 禁止换行 */
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
/* 隐藏溢出内容 */
|
|
254
|
+
text-overflow: ellipsis;
|
|
255
|
+
/* 显示省略号 */
|
|
256
|
+
/* 如果需要可以添加最大宽度 */
|
|
257
|
+
white-space: normal;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.fileBox {
|
|
261
|
+
border-radius: 16px;
|
|
262
|
+
border: 1px solid var(---, #e9ebf2);
|
|
263
|
+
background: linear-gradient(180deg, #f7fff9 0%, #f1fcfe 30%, #fff 100%);
|
|
264
|
+
box-shadow: 0 2px 2px 0 #fff inset;
|
|
265
|
+
padding: 20px;
|
|
266
|
+
}
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import styles from "./index.module.
|
|
8
|
+
import styles from "./index.module.css";
|
|
9
9
|
import { MMarkdown } from '@myun/gimi-design';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import FileUpload from "../file-upload";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.askList {
|
|
2
|
+
width: clamp(380px, 100%, 600px);
|
|
3
|
+
flex-shrink: 0;
|
|
4
|
+
padding: 20px;
|
|
5
|
+
border-radius: 16px;
|
|
6
|
+
border: 1px solid var(---, #e9ebf2);
|
|
7
|
+
background: linear-gradient(180deg, #f9fefe 0%, #fff 100%);
|
|
8
|
+
box-shadow: 0 2px 2px 0 #fff inset;
|
|
9
|
+
margin-top: 12px;
|
|
10
|
+
}
|
|
11
|
+
.askList .askItem {
|
|
12
|
+
width: fit-content;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
padding: 12px 20px;
|
|
15
|
+
border-radius: 22px;
|
|
16
|
+
border: 1px solid var(---, #d9dce5);
|
|
17
|
+
background: #fff;
|
|
18
|
+
color: #000;
|
|
19
|
+
font-family: "PingFang SC";
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
line-height: normal;
|
|
24
|
+
margin-bottom: 16px;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
min-width: clamp(88px, 25%, 100px);
|
|
27
|
+
max-width: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
align-items: center;
|
|
31
|
+
line-height: 20px;
|
|
32
|
+
}
|
|
33
|
+
.askList .disablebox {
|
|
34
|
+
border-radius: 22px;
|
|
35
|
+
border: 1px solid var(---, #d9dce5);
|
|
36
|
+
background: #fff;
|
|
37
|
+
color: #ced3d9;
|
|
38
|
+
font-family: "PingFang SC";
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
line-height: normal;
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
.askList .selectbox {
|
|
47
|
+
border-radius: 22px;
|
|
48
|
+
background: var(---, #2e394c);
|
|
49
|
+
color: #fff;
|
|
50
|
+
font-family: "PingFang SC";
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
line-height: normal;
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
.askList .askQuestion {
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
color: #2e394c;
|
|
61
|
+
font-family: "PingFang SC";
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
line-height: 28px; /* 175% */
|
|
66
|
+
margin-bottom: 12px;
|
|
67
|
+
}
|
|
68
|
+
.askList .askQuestion :global(.markdown_container) p {
|
|
69
|
+
margin: 0;
|
|
70
|
+
white-space: pre-wrap;
|
|
71
|
+
}
|
|
72
|
+
.askList .askQuestion :global(.markdown_container) li {
|
|
73
|
+
white-space: pre-line;
|
|
74
|
+
}
|
|
75
|
+
.askList .askItem:nth-last-child(1) {
|
|
76
|
+
margin-bottom: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.showUpload {
|
|
80
|
+
width: 128px;
|
|
81
|
+
height: 44px;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
border-radius: 22px;
|
|
84
|
+
border: 1px solid var(---, #d9dce5);
|
|
85
|
+
background: #fff;
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
color: #000;
|
|
93
|
+
font-family: "PingFang SC";
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
line-height: normal;
|
|
98
|
+
}
|
|
99
|
+
.showUpload :global(.ant-upload) {
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
.showUpload .uploadIcon {
|
|
103
|
+
height: 100%;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
}
|
|
107
|
+
.showUpload .disableFile {
|
|
108
|
+
border-radius: 22px;
|
|
109
|
+
border: 1px solid var(---, #d9dce5);
|
|
110
|
+
background: #fff;
|
|
111
|
+
color: #ced3d9;
|
|
112
|
+
font-family: "PingFang SC";
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
font-style: normal;
|
|
115
|
+
font-weight: 600;
|
|
116
|
+
line-height: normal;
|
|
117
|
+
}
|
|
118
|
+
.showUpload img {
|
|
119
|
+
width: 32px;
|
|
120
|
+
height: 32px;
|
|
121
|
+
flex-shrink: 0;
|
|
122
|
+
}
|
|
@@ -19,7 +19,7 @@ import VoiceRecord from "../chat-voice/VoiceRecord";
|
|
|
19
19
|
import VoiceRecording from "../voice-recording";
|
|
20
20
|
import deepThinkActive from "../../assets/image/deepthinkActive.png";
|
|
21
21
|
import { Tooltip } from "@douyinfe/semi-ui";
|
|
22
|
-
import styles from "./index.module.
|
|
22
|
+
import styles from "./index.module.css";
|
|
23
23
|
import FileUpload from "../file-upload";
|
|
24
24
|
import { useAppSelector, useAppDispatch } from "../../store/hooks";
|
|
25
25
|
import { setConversationId, setFileList } from "../../store/slices/gimiMenuSlice";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.inputWrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.deepthink {
|
|
8
|
+
padding: 0 8px;
|
|
9
|
+
height: 32px;
|
|
10
|
+
border-radius: 18px;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
color: #4086ff;
|
|
16
|
+
background-color: #f1f7ff;
|
|
17
|
+
}
|
|
18
|
+
.deepthink span {
|
|
19
|
+
margin-left: 4px;
|
|
20
|
+
font-family: PingFangSC, PingFang SC;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 14px;
|
|
24
|
+
text-align: right;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
}
|
|
27
|
+
.deepthink .imgs {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.uploadIcon {
|
|
34
|
+
width: 32px;
|
|
35
|
+
height: 32px;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
.uploadIcon img {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
object-fit: cover;
|
|
42
|
+
}
|