vue-element-ui-x 0.2.2 → 1.0.1

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 (78) hide show
  1. package/lib/components/Attachments/index.js +8 -8
  2. package/lib/components/Bubble/index.js +116 -113
  3. package/lib/components/BubbleList/index.js +137 -134
  4. package/lib/components/Conversations/index.js +14176 -14176
  5. package/lib/components/FilesCard/index.js +4 -4
  6. package/lib/components/Prompts/index.js +4 -4
  7. package/lib/components/Sender/index.js +1594 -1448
  8. package/lib/components/Thinking/index.js +155 -15
  9. package/lib/components/ThoughtChain/index.js +121 -118
  10. package/lib/components/Typewriter/index.js +111 -108
  11. package/lib/components/Welcome/index.js +4 -4
  12. package/lib/index.common.js +1 -1
  13. package/lib/index.esm.js +1 -1
  14. package/lib/index.js +688 -225
  15. package/lib/index.umd.js +1 -1
  16. package/lib/locale/index.js +97 -0
  17. package/lib/locale/lang/ar-SA.js +18 -0
  18. package/lib/locale/lang/ar-SA.umd.js +26 -0
  19. package/lib/locale/lang/ar.js +18 -0
  20. package/lib/locale/lang/ar.umd.js +26 -0
  21. package/lib/locale/lang/de-DE.js +18 -0
  22. package/lib/locale/lang/de-DE.umd.js +26 -0
  23. package/lib/locale/lang/de.js +18 -0
  24. package/lib/locale/lang/de.umd.js +26 -0
  25. package/lib/locale/lang/en.js +18 -0
  26. package/lib/locale/lang/en.umd.js +26 -0
  27. package/lib/locale/lang/es-ES.js +18 -0
  28. package/lib/locale/lang/es-ES.umd.js +26 -0
  29. package/lib/locale/lang/es.js +18 -0
  30. package/lib/locale/lang/es.umd.js +26 -0
  31. package/lib/locale/lang/fr-FR.js +18 -0
  32. package/lib/locale/lang/fr-FR.umd.js +26 -0
  33. package/lib/locale/lang/fr.js +18 -0
  34. package/lib/locale/lang/fr.umd.js +26 -0
  35. package/lib/locale/lang/index.js +50 -0
  36. package/lib/locale/lang/it-IT.js +18 -0
  37. package/lib/locale/lang/it-IT.umd.js +26 -0
  38. package/lib/locale/lang/it.js +18 -0
  39. package/lib/locale/lang/it.umd.js +26 -0
  40. package/lib/locale/lang/ja-JP.js +18 -0
  41. package/lib/locale/lang/ja-JP.umd.js +26 -0
  42. package/lib/locale/lang/ja.js +18 -0
  43. package/lib/locale/lang/ja.umd.js +26 -0
  44. package/lib/locale/lang/ko-KR.js +18 -0
  45. package/lib/locale/lang/ko-KR.umd.js +26 -0
  46. package/lib/locale/lang/ko.js +18 -0
  47. package/lib/locale/lang/ko.umd.js +26 -0
  48. package/lib/locale/lang/pt-BR.js +18 -0
  49. package/lib/locale/lang/pt-BR.umd.js +26 -0
  50. package/lib/locale/lang/ru-RU.js +18 -0
  51. package/lib/locale/lang/ru-RU.umd.js +26 -0
  52. package/lib/locale/lang/zh-CN.js +18 -0
  53. package/lib/locale/lang/zh-CN.umd.js +26 -0
  54. package/lib/locale/lang/zh-TW.js +18 -0
  55. package/lib/locale/lang/zh-TW.umd.js +26 -0
  56. package/lib/locale/mixin.js +9 -0
  57. package/package.json +6 -4
  58. package/src/components/Bubble/src/main.vue +299 -299
  59. package/src/components/Sender/src/main.vue +12 -3
  60. package/src/components/Thinking/src/main.vue +10 -5
  61. package/src/index.js +23 -6
  62. package/src/locale/index.js +97 -0
  63. package/src/locale/lang/ar.js +18 -0
  64. package/src/locale/lang/de.js +18 -0
  65. package/src/locale/lang/en.js +18 -0
  66. package/src/locale/lang/es.js +18 -0
  67. package/src/locale/lang/fr.js +18 -0
  68. package/src/locale/lang/index.js +62 -0
  69. package/src/locale/lang/it.js +18 -0
  70. package/src/locale/lang/ja.js +18 -0
  71. package/src/locale/lang/ko.js +18 -0
  72. package/src/locale/lang/pt-br.js +18 -0
  73. package/src/locale/lang/ru-RU.js +18 -0
  74. package/src/locale/lang/zh-CN.js +18 -0
  75. package/src/locale/lang/zh-TW.js +18 -0
  76. package/src/locale/mixin.js +9 -0
  77. package/src/styles/Conversations.scss +260 -260
  78. package/src/styles/Sender.scss +196 -199
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ja = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: '思考を開始',
11
+ processing: '思考中...',
12
+ completed: '思考完了',
13
+ error: '思考エラー',
14
+ errorContent: '思考中にエラーが発生しました',
15
+ },
16
+ sender: { placeholder: '内容を入力してください' },
17
+ common: {
18
+ loading: '読み込み中...',
19
+ success: '成功',
20
+ error: 'エラー',
21
+ warning: '警告',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ja = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: '思考を開始',
11
+ processing: '思考中...',
12
+ completed: '思考完了',
13
+ error: '思考エラー',
14
+ errorContent: '思考中にエラーが発生しました',
15
+ },
16
+ sender: { placeholder: '内容を入力してください' },
17
+ common: {
18
+ loading: '読み込み中...',
19
+ success: '成功',
20
+ error: 'エラー',
21
+ warning: '警告',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ko = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: '생각 시작',
11
+ processing: '생각 중...',
12
+ completed: '생각 완료',
13
+ error: '생각 오류',
14
+ errorContent: '생각 중 오류가 발생했습니다',
15
+ },
16
+ sender: { placeholder: '내용을 입력하세요' },
17
+ common: {
18
+ loading: '로딩 중...',
19
+ success: '성공',
20
+ error: '오류',
21
+ warning: '경고',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ko = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: '생각 시작',
11
+ processing: '생각 중...',
12
+ completed: '생각 완료',
13
+ error: '생각 오류',
14
+ errorContent: '생각 중 오류가 발생했습니다',
15
+ },
16
+ sender: { placeholder: '내용을 입력하세요' },
17
+ common: {
18
+ loading: '로딩 중...',
19
+ success: '성공',
20
+ error: '오류',
21
+ warning: '경고',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ptBr = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: 'Começar a pensar',
11
+ processing: 'Pensando...',
12
+ completed: 'Pensamento concluído',
13
+ error: 'Erro de pensamento',
14
+ errorContent: 'Ocorreu um erro durante o pensamento',
15
+ },
16
+ sender: { placeholder: 'Por favor, insira o conteúdo' },
17
+ common: {
18
+ loading: 'Carregando...',
19
+ success: 'Sucesso',
20
+ error: 'Erro',
21
+ warning: 'Aviso',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ru = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: 'Начать размышление',
11
+ processing: 'Размышление...',
12
+ completed: 'Размышление завершено',
13
+ error: 'Ошибка размышления',
14
+ errorContent: 'Произошла ошибка во время размышления',
15
+ },
16
+ sender: { placeholder: 'Пожалуйста, введите содержание' },
17
+ common: {
18
+ loading: 'Загрузка...',
19
+ success: 'Успех',
20
+ error: 'Ошибка',
21
+ warning: 'Предупреждение',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.zhCN = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: '开始思考',
11
+ processing: '思考中...',
12
+ completed: '思考完成',
13
+ error: '思考遇到问题',
14
+ errorContent: '思考过程中出现错误',
15
+ },
16
+ sender: { placeholder: '请输入内容' },
17
+ common: {
18
+ loading: '加载中...',
19
+ success: '成功',
20
+ error: '错误',
21
+ warning: '警告',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,18 @@
1
+ module.exports = {
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
+ };
@@ -0,0 +1,26 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.zhTW = factory()));
5
+ }(this, function () { 'use strict';
6
+
7
+ return {
8
+ el_x: {
9
+ thinking: {
10
+ start: '開始思考',
11
+ processing: '思考中...',
12
+ completed: '思考完成',
13
+ error: '思考遇到問題',
14
+ errorContent: '思考過程中出現錯誤',
15
+ },
16
+ sender: { placeholder: '請輸入內容' },
17
+ common: {
18
+ loading: '載入中...',
19
+ success: '成功',
20
+ error: '錯誤',
21
+ warning: '警告',
22
+ },
23
+ },
24
+ };
25
+
26
+ }));
@@ -0,0 +1,9 @@
1
+ const Locale = require("./index");
2
+
3
+ module.exports = {
4
+ methods: {
5
+ elXt(...args) {
6
+ return Locale.t.apply(this, args);
7
+ },
8
+ },
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-element-ui-x",
3
- "version": "0.2.2",
3
+ "version": "1.0.1",
4
4
  "description": "基于Vue 2 + Element UI的AI聊天组件库",
5
5
  "main": "lib/index.esm.js",
6
6
  "module": "lib/index.umd.js",
@@ -20,17 +20,19 @@
20
20
  "keywords": [
21
21
  "element-ui",
22
22
  "vue",
23
- "ai"
23
+ "ai",
24
+ "i18n"
24
25
  ],
25
26
  "bugs": {
26
27
  "url": "https://github.com/worryzyy/element-ui-x/issues"
27
28
  },
28
29
  "scripts": {
29
- "build": "npm run build:common && npm run build:esm && npm run build:umd && npm run build:components",
30
+ "build": "npm run build:common && npm run build:esm && npm run build:umd && npm run build:components && npm run build:locale",
30
31
  "build:common": "webpack --config build/webpack.common.conf.js",
31
32
  "build:esm": "webpack --config build/webpack.esm.conf.js",
32
33
  "build:umd": "webpack --config build/webpack.umd.conf.js",
33
- "build:components": "node build/build-components.js"
34
+ "build:components": "node build/build-components.js",
35
+ "build:locale": "node build/build-locale.js"
34
36
  },
35
37
  "peerDependencies": {
36
38
  "element-ui": "2.15.14",