@difizen/libro-ai-native 0.2.42 → 0.2.43
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.
|
@@ -248,7 +248,7 @@ export var LibroAINativeCommandContribution = (_dec = singleton({
|
|
|
248
248
|
libroAINativeForCellView = _context4.sent;
|
|
249
249
|
libroAINativeForCellView.showAI = true;
|
|
250
250
|
addCellAIClassname(cell);
|
|
251
|
-
code = l10n.getLang() === 'en-US' ? "Could you please explain this piece of code?\uFF1A".concat(cell.model.value
|
|
251
|
+
code = l10n.getLang() === 'en-US' ? "Could you please explain this piece of code?\uFF1A".concat(cell.model.value) : "\u5E2E\u5FD9\u89E3\u91CA\u4E00\u4E0B\u8FD9\u6BB5\u4EE3\u7801\uFF1A".concat(cell.model.value);
|
|
252
252
|
libroAINativeForCellView.chatStream({
|
|
253
253
|
content: code
|
|
254
254
|
});
|
package/es/index.less
CHANGED
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
.chat-msg-md-message {
|
|
209
209
|
color: var(--mana-libro-llm-response-output-text-color);
|
|
210
|
-
width: calc(100% -
|
|
210
|
+
width: calc(100% - 104px);
|
|
211
211
|
margin-right: 12px;
|
|
212
212
|
|
|
213
213
|
code {
|
|
@@ -261,6 +261,7 @@
|
|
|
261
261
|
|
|
262
262
|
.chat-msg-md-code-code {
|
|
263
263
|
display: inline;
|
|
264
|
+
font-size: 13px;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
.libro-ai-native-for-cell-container {
|
|
@@ -273,9 +274,10 @@
|
|
|
273
274
|
code {
|
|
274
275
|
background-color: unset;
|
|
275
276
|
padding: unset;
|
|
277
|
+
font-size: 13px;
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
padding: 12px;
|
|
280
|
+
padding: 22px 12px 12px;
|
|
279
281
|
background-color: var(--mana-libro-input-background) !important;
|
|
280
282
|
color: var(--mana-libro-llm-response-output-text-color);
|
|
281
283
|
font-family:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-ai-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.43",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-jupyter": "^0.2.
|
|
35
|
+
"@difizen/libro-jupyter": "^0.2.43",
|
|
36
36
|
"@ant-design/icons": "^5.4.0",
|
|
37
37
|
"react-zoom-pan-pinch": "^3.6.1",
|
|
38
38
|
"@difizen/mana-app": "latest",
|
|
@@ -200,8 +200,8 @@ export class LibroAINativeCommandContribution
|
|
|
200
200
|
addCellAIClassname(cell);
|
|
201
201
|
const code =
|
|
202
202
|
l10n.getLang() === 'en-US'
|
|
203
|
-
? `Could you please explain this piece of code?:${cell.model.value}
|
|
204
|
-
:
|
|
203
|
+
? `Could you please explain this piece of code?:${cell.model.value}`
|
|
204
|
+
: `帮忙解释一下这段代码:${cell.model.value}`;
|
|
205
205
|
libroAINativeForCellView.chatStream({
|
|
206
206
|
content: code,
|
|
207
207
|
});
|
package/src/index.less
CHANGED
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
.chat-msg-md-message {
|
|
209
209
|
color: var(--mana-libro-llm-response-output-text-color);
|
|
210
|
-
width: calc(100% -
|
|
210
|
+
width: calc(100% - 104px);
|
|
211
211
|
margin-right: 12px;
|
|
212
212
|
|
|
213
213
|
code {
|
|
@@ -261,6 +261,7 @@
|
|
|
261
261
|
|
|
262
262
|
.chat-msg-md-code-code {
|
|
263
263
|
display: inline;
|
|
264
|
+
font-size: 13px;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
.libro-ai-native-for-cell-container {
|
|
@@ -273,9 +274,10 @@
|
|
|
273
274
|
code {
|
|
274
275
|
background-color: unset;
|
|
275
276
|
padding: unset;
|
|
277
|
+
font-size: 13px;
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
padding: 12px;
|
|
280
|
+
padding: 22px 12px 12px;
|
|
279
281
|
background-color: var(--mana-libro-input-background) !important;
|
|
280
282
|
color: var(--mana-libro-llm-response-output-text-color);
|
|
281
283
|
font-family:
|