vue-element-ui-x 1.0.4 → 1.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.
Files changed (91) hide show
  1. package/lib/components/Sender/index.js +1 -1
  2. package/lib/components/ThoughtChain/index.js +30 -30
  3. package/lib/index.common.js +1 -1
  4. package/lib/index.esm.js +1 -1
  5. package/lib/index.js +774 -774
  6. package/lib/index.umd.js +1 -1
  7. package/package.json +5 -10
  8. package/src/components/Attachments/index.js +0 -8
  9. package/src/components/Attachments/src/main.vue +0 -529
  10. package/src/components/Bubble/index.js +0 -6
  11. package/src/components/Bubble/src/main.vue +0 -288
  12. package/src/components/BubbleList/index.js +0 -8
  13. package/src/components/BubbleList/src/loading.vue +0 -75
  14. package/src/components/BubbleList/src/main.vue +0 -444
  15. package/src/components/Conversations/index.js +0 -8
  16. package/src/components/Conversations/src/components/item.vue +0 -350
  17. package/src/components/Conversations/src/main.vue +0 -587
  18. package/src/components/FilesCard/index.js +0 -8
  19. package/src/components/FilesCard/src/fileSvg/audio.vue +0 -38
  20. package/src/components/FilesCard/src/fileSvg/changeFileName.bat +0 -18
  21. package/src/components/FilesCard/src/fileSvg/code.vue +0 -35
  22. package/src/components/FilesCard/src/fileSvg/database.vue +0 -94
  23. package/src/components/FilesCard/src/fileSvg/excel.vue +0 -38
  24. package/src/components/FilesCard/src/fileSvg/file.vue +0 -40
  25. package/src/components/FilesCard/src/fileSvg/image.vue +0 -40
  26. package/src/components/FilesCard/src/fileSvg/index.js +0 -46
  27. package/src/components/FilesCard/src/fileSvg/link.vue +0 -54
  28. package/src/components/FilesCard/src/fileSvg/mark.vue +0 -38
  29. package/src/components/FilesCard/src/fileSvg/pdf.vue +0 -38
  30. package/src/components/FilesCard/src/fileSvg/ppt.vue +0 -38
  31. package/src/components/FilesCard/src/fileSvg/three.vue +0 -38
  32. package/src/components/FilesCard/src/fileSvg/txt.vue +0 -38
  33. package/src/components/FilesCard/src/fileSvg/unknown.vue +0 -54
  34. package/src/components/FilesCard/src/fileSvg/video.vue +0 -38
  35. package/src/components/FilesCard/src/fileSvg/word.vue +0 -38
  36. package/src/components/FilesCard/src/fileSvg/zip.vue +0 -38
  37. package/src/components/FilesCard/src/main.vue +0 -403
  38. package/src/components/FilesCard/src/options.js +0 -18
  39. package/src/components/Prompts/index.js +0 -8
  40. package/src/components/Prompts/src/main.vue +0 -248
  41. package/src/components/Sender/index.js +0 -8
  42. package/src/components/Sender/src/components/ClearButton.vue +0 -28
  43. package/src/components/Sender/src/components/Loading.vue +0 -53
  44. package/src/components/Sender/src/components/LoadingButton.vue +0 -37
  45. package/src/components/Sender/src/components/SendButton.vue +0 -26
  46. package/src/components/Sender/src/components/SpeechButton.vue +0 -24
  47. package/src/components/Sender/src/components/SpeechLoading.vue +0 -87
  48. package/src/components/Sender/src/components/SpeechLoadingButton.vue +0 -41
  49. package/src/components/Sender/src/main.vue +0 -803
  50. package/src/components/Thinking/index.js +0 -8
  51. package/src/components/Thinking/src/main.vue +0 -199
  52. package/src/components/ThoughtChain/index.js +0 -8
  53. package/src/components/ThoughtChain/src/main.vue +0 -291
  54. package/src/components/Typewriter/index.js +0 -8
  55. package/src/components/Typewriter/src/main.vue +0 -255
  56. package/src/components/Welcome/index.js +0 -8
  57. package/src/components/Welcome/src/main.vue +0 -151
  58. package/src/index.js +0 -104
  59. package/src/locale/index.js +0 -97
  60. package/src/locale/lang/ar.js +0 -18
  61. package/src/locale/lang/de.js +0 -18
  62. package/src/locale/lang/en.js +0 -18
  63. package/src/locale/lang/es.js +0 -18
  64. package/src/locale/lang/fr.js +0 -18
  65. package/src/locale/lang/index.js +0 -62
  66. package/src/locale/lang/it.js +0 -18
  67. package/src/locale/lang/ja.js +0 -18
  68. package/src/locale/lang/ko.js +0 -18
  69. package/src/locale/lang/pt-br.js +0 -18
  70. package/src/locale/lang/ru-RU.js +0 -18
  71. package/src/locale/lang/zh-CN.js +0 -18
  72. package/src/locale/lang/zh-TW.js +0 -18
  73. package/src/locale/mixin.js +0 -9
  74. package/src/mixins/index.js +0 -49
  75. package/src/mixins/recordMixin.js +0 -117
  76. package/src/mixins/sendMixin.js +0 -450
  77. package/src/mixins/streamMixin.js +0 -497
  78. package/src/styles/Attachments.scss +0 -236
  79. package/src/styles/Bubble.scss +0 -158
  80. package/src/styles/BubbleList.scss +0 -148
  81. package/src/styles/Conversations.scss +0 -283
  82. package/src/styles/FilesCard.scss +0 -222
  83. package/src/styles/Prompts.scss +0 -197
  84. package/src/styles/Sender.scss +0 -207
  85. package/src/styles/Thinking.scss +0 -142
  86. package/src/styles/ThoughtChain.scss +0 -113
  87. package/src/styles/Typewriter.scss +0 -66
  88. package/src/styles/Welcome.scss +0 -283
  89. package/src/theme/var.scss +0 -183
  90. package/src/utils/index.js +0 -199
  91. package/src/utils/scrollDetector.js +0 -34
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: 'Commencer à réfléchir',
5
- processing: 'Réflexion en cours...',
6
- completed: 'Réflexion terminée',
7
- error: 'Erreur de réflexion',
8
- errorContent: "Une erreur s'est produite pendant la réflexion",
9
- },
10
- sender: { placeholder: 'Veuillez entrer le contenu' },
11
- common: {
12
- loading: 'Chargement...',
13
- success: 'Succès',
14
- error: 'Erreur',
15
- warning: 'Avertissement',
16
- },
17
- },
18
- };
@@ -1,62 +0,0 @@
1
- import ar from './ar';
2
- import de from './de';
3
- import en from './en';
4
- import es from './es';
5
- import fr from './fr';
6
- import it from './it';
7
- import ja from './ja';
8
- import ko from './ko';
9
- import ptBr from './pt-br';
10
- import ruRU from './ru-RU';
11
- import zhCN from './zh-CN';
12
- import zhTW from './zh-TW';
13
-
14
- export default {
15
- // 中文
16
- 'zh-CN': zhCN,
17
- 'zh-cn': zhCN,
18
- 'zh-TW': zhTW,
19
- 'zh-tw': zhTW,
20
-
21
- // 英文
22
- en: en,
23
- 'en-US': en,
24
- 'en-GB': en,
25
-
26
- // 日语
27
- 'ja-JP': ja,
28
- ja: ja,
29
-
30
- // 韩语
31
- 'ko-KR': ko,
32
- ko: ko,
33
-
34
- // 法语
35
- 'fr-FR': fr,
36
- fr: fr,
37
-
38
- // 德语
39
- 'de-DE': de,
40
- de: de,
41
-
42
- // 西班牙语
43
- 'es-ES': es,
44
- es: es,
45
-
46
- // 俄语
47
- 'ru-RU': ruRU,
48
- ru: ruRU,
49
-
50
- // 葡萄牙语
51
- 'pt-BR': ptBr,
52
- 'pt-br': ptBr,
53
- pt: ptBr,
54
-
55
- // 意大利语
56
- 'it-IT': it,
57
- it: it,
58
-
59
- // 阿拉伯语
60
- 'ar-SA': ar,
61
- ar: ar,
62
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: 'Inizia a pensare',
5
- processing: 'Pensando...',
6
- completed: 'Pensiero completato',
7
- error: 'Errore di pensiero',
8
- errorContent: 'Si è verificato un errore durante il pensiero',
9
- },
10
- sender: { placeholder: 'Inserisci il contenuto' },
11
- common: {
12
- loading: 'Caricamento...',
13
- success: 'Successo',
14
- error: 'Errore',
15
- warning: 'Avvertimento',
16
- },
17
- },
18
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: '思考を開始',
5
- processing: '思考中...',
6
- completed: '思考完了',
7
- error: '思考エラー',
8
- errorContent: '思考中にエラーが発生しました',
9
- },
10
- sender: { placeholder: '内容を入力してください' },
11
- common: {
12
- loading: '読み込み中...',
13
- success: '成功',
14
- error: 'エラー',
15
- warning: '警告',
16
- },
17
- },
18
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: '생각 시작',
5
- processing: '생각 중...',
6
- completed: '생각 완료',
7
- error: '생각 오류',
8
- errorContent: '생각 중 오류가 발생했습니다',
9
- },
10
- sender: { placeholder: '내용을 입력하세요' },
11
- common: {
12
- loading: '로딩 중...',
13
- success: '성공',
14
- error: '오류',
15
- warning: '경고',
16
- },
17
- },
18
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: 'Começar a pensar',
5
- processing: 'Pensando...',
6
- completed: 'Pensamento concluído',
7
- error: 'Erro de pensamento',
8
- errorContent: 'Ocorreu um erro durante o pensamento',
9
- },
10
- sender: { placeholder: 'Por favor, insira o conteúdo' },
11
- common: {
12
- loading: 'Carregando...',
13
- success: 'Sucesso',
14
- error: 'Erro',
15
- warning: 'Aviso',
16
- },
17
- },
18
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: 'Начать размышление',
5
- processing: 'Размышление...',
6
- completed: 'Размышление завершено',
7
- error: 'Ошибка размышления',
8
- errorContent: 'Произошла ошибка во время размышления',
9
- },
10
- sender: { placeholder: 'Пожалуйста, введите содержание' },
11
- common: {
12
- loading: 'Загрузка...',
13
- success: 'Успех',
14
- error: 'Ошибка',
15
- warning: 'Предупреждение',
16
- },
17
- },
18
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: '开始思考',
5
- processing: '思考中...',
6
- completed: '思考完成',
7
- error: '思考遇到问题',
8
- errorContent: '思考过程中出现错误',
9
- },
10
- sender: { placeholder: '请输入内容' },
11
- common: {
12
- loading: '加载中...',
13
- success: '成功',
14
- error: '错误',
15
- warning: '警告',
16
- },
17
- },
18
- };
@@ -1,18 +0,0 @@
1
- export default {
2
- el_x: {
3
- thinking: {
4
- start: '開始思考',
5
- processing: '思考中...',
6
- completed: '思考完成',
7
- error: '思考遇到問題',
8
- errorContent: '思考過程中出現錯誤',
9
- },
10
- sender: { placeholder: '請輸入內容' },
11
- common: {
12
- loading: '載入中...',
13
- success: '成功',
14
- error: '錯誤',
15
- warning: '警告',
16
- },
17
- },
18
- };
@@ -1,9 +0,0 @@
1
- import Locale from './index';
2
-
3
- export default {
4
- methods: {
5
- elXt(...args) {
6
- return Locale.t.apply(this, args);
7
- },
8
- },
9
- };
@@ -1,49 +0,0 @@
1
- /**
2
- * Mixins 入口文件
3
- */
4
-
5
- import recordMixin from './recordMixin';
6
- import { createSendUtils, sendMixin, XRequest } from './sendMixin';
7
- import {
8
- createStreamUtils,
9
- DEFAULT_KV_SEPARATOR,
10
- DEFAULT_PART_SEPARATOR,
11
- DEFAULT_STREAM_SEPARATOR,
12
- isValidString,
13
- splitPart,
14
- splitStream,
15
- streamMixin,
16
- XStream,
17
- } from './streamMixin';
18
-
19
- export {
20
- createSendUtils,
21
- createStreamUtils,
22
- DEFAULT_KV_SEPARATOR,
23
- DEFAULT_PART_SEPARATOR,
24
- DEFAULT_STREAM_SEPARATOR,
25
- isValidString,
26
- recordMixin,
27
- sendMixin,
28
- splitPart,
29
- splitStream,
30
- streamMixin,
31
- XRequest,
32
- XStream,
33
- };
34
-
35
- export default {
36
- recordMixin,
37
- sendMixin,
38
- XRequest,
39
- createSendUtils,
40
- streamMixin,
41
- createStreamUtils,
42
- XStream,
43
- splitStream,
44
- splitPart,
45
- isValidString,
46
- DEFAULT_STREAM_SEPARATOR,
47
- DEFAULT_PART_SEPARATOR,
48
- DEFAULT_KV_SEPARATOR,
49
- };
@@ -1,117 +0,0 @@
1
- /**
2
- * @description 提供语音识别的混入,允许语音输入并处理开始、结束、结果及错误等各种事件。
3
- * @mixin recordMixin
4
- */
5
-
6
- export default {
7
- data() {
8
- return {
9
- // 语音识别状态
10
- recordLoading: false,
11
- // 识别结果
12
- recordValue: '',
13
- // 识别实例
14
- recordRecognition: null,
15
- // 配置选项
16
- recordOptions: {
17
- onError: null,
18
- onStart: null,
19
- onEnd: null,
20
- onResult: null,
21
- },
22
- };
23
- },
24
-
25
- methods: {
26
- /**
27
- * 初始化语音识别配置
28
- * @param {Object} options - 配置选项
29
- * @param {Function} [options.onError] - 错误回调
30
- * @param {Function} [options.onStart] - 开始回调
31
- * @param {Function} [options.onEnd] - 结束回调
32
- * @param {Function} [options.onResult] - 结果回调
33
- */
34
- initRecord(options = {}) {
35
- this.recordOptions = {
36
- ...this.recordOptions,
37
- ...options,
38
- };
39
- },
40
-
41
- /**
42
- * 开始语音识别
43
- */
44
- startRecord() {
45
- if ('webkitSpeechRecognition' in window) {
46
- this.recordRecognition = new window.webkitSpeechRecognition();
47
- this.recordRecognition.continuous = true;
48
- this.recordRecognition.interimResults = true;
49
- this.recordRecognition.lang = 'zh-CN';
50
-
51
- this.recordRecognition.onstart = () => {
52
- this.recordLoading = true;
53
- this.recordValue = '';
54
- if (this.recordOptions.onStart) {
55
- this.recordOptions.onStart();
56
- }
57
- };
58
-
59
- this.recordRecognition.onend = () => {
60
- this.recordLoading = false;
61
- if (this.recordOptions.onEnd) {
62
- this.recordOptions.onEnd(this.recordValue);
63
- }
64
- };
65
-
66
- this.recordRecognition.onerror = e => {
67
- this.recordLoading = false;
68
- if (this.recordOptions.onError) {
69
- this.recordOptions.onError(e);
70
- }
71
- };
72
-
73
- this.recordRecognition.onresult = e => {
74
- let results = '';
75
- for (let i = 0; i <= e.resultIndex; i++) {
76
- results += e.results[i][0].transcript;
77
- }
78
- this.recordValue = results;
79
- if (this.recordOptions.onResult) {
80
- this.recordOptions.onResult(results);
81
- }
82
- };
83
-
84
- this.recordRecognition.start();
85
- } else {
86
- const error = {
87
- code: -1,
88
- message: 'The current browser does not support voice recognition',
89
- };
90
- if (this.recordOptions.onError) {
91
- this.recordOptions.onError(error);
92
- }
93
- }
94
- },
95
-
96
- /**
97
- * 停止语音识别
98
- */
99
- stopRecord() {
100
- if (this.recordRecognition) {
101
- this.recordRecognition.stop();
102
- }
103
- },
104
-
105
- /**
106
- * 清理语音识别资源
107
- */
108
- cleanupRecord() {
109
- this.stopRecord();
110
- this.recordRecognition = null;
111
- },
112
- },
113
-
114
- beforeDestroy() {
115
- this.cleanupRecord();
116
- },
117
- };