@gientech/modual 1.3.0 → 1.3.2

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 (308) hide show
  1. package/README.md +129 -129
  2. package/{dist/assets/mysql.svg → assets/MySQL.svg} +14 -14
  3. package/{dist/assets → assets}/database.svg +11 -11
  4. package/{src/modules/database/assets → assets}/database_add.svg +53 -53
  5. package/{dist/assets → assets}/database_connect.svg +66 -66
  6. package/{dist/assets → assets}/database_upload.svg +29 -29
  7. package/{dist/assets → assets}/defaultWeLogo.svg +14 -14
  8. package/{dist/assets/index-DIm7RgkM.js → assets/index-D-dGaGjW.js} +93 -279
  9. package/assets/index-ldqIbm0x.js +1289 -0
  10. package/assets/style.css +1 -0
  11. package/assets/style3.css +1 -0
  12. package/{dist/chat.js → chat.js} +78 -78
  13. package/database.js +20 -0
  14. package/{dist/databaseId.js → databaseId.js} +1 -1
  15. package/{dist/databaseTable.js → databaseTable.js} +1 -1
  16. package/{dist/modelManage.js → modelManage.js} +1 -1
  17. package/package.json +39 -83
  18. package/{dist/sensitive.js → sensitive.js} +1 -1
  19. package/{dist/streamFilesReader.js → streamFilesReader.js} +11 -11
  20. package/{dist/worker → worker}/pdf.worker.min.js +21 -21
  21. package/.editorconfig +0 -38
  22. package/.prettierignore +0 -16
  23. package/.prettierrc +0 -17
  24. package/USAGE.md +0 -191
  25. package/bash.exe.stackdump +0 -40
  26. package/components.json +0 -21
  27. package/dist/README.md +0 -129
  28. package/dist/assets/database_add.svg +0 -53
  29. package/dist/assets/index-Bpnc4tRH.js +0 -1284
  30. package/dist/assets/style.css +0 -1
  31. package/dist/assets/style3.css +0 -1
  32. package/dist/database.js +0 -20
  33. package/dist/package.json +0 -56
  34. package/doc_assets/2.png +0 -0
  35. package/doc_assets/demo.md +0 -27
  36. package/doc_assets/demos/dist-app/assets/index.Dh-ZAS9Z.css +0 -2
  37. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js +0 -23699
  38. package/doc_assets/demos/dist-app/assets/index.Dv8KVW18.js.map +0 -1
  39. package/doc_assets/demos/dist-app/index.html +0 -14
  40. package/doc_assets/demos/dist-app/vite.svg +0 -1
  41. package/doc_assets/images/1.png +0 -0
  42. package/doc_assets/images/3.png +0 -0
  43. package/doc_assets/images/component-screenshot.png +0 -1
  44. package/doc_assets/install.md +0 -5
  45. package/eslint.config.js +0 -92
  46. package/index.html +0 -13
  47. package/postcss.config.cjs +0 -19
  48. package/public/vite.svg +0 -1
  49. package/public/worker/pdf.worker.min.js +0 -22
  50. package/scripts/README.md +0 -133
  51. package/scripts/build-demo.js +0 -88
  52. package/scripts/demo-selector.js +0 -216
  53. package/scripts/dev-demo.js +0 -76
  54. package/scripts/preview-demo.js +0 -130
  55. package/scripts/run-demo.bat +0 -34
  56. package/src/assets/img/downArrow.png +0 -0
  57. package/src/assets/img/excel.png +0 -0
  58. package/src/assets/img/img.png +0 -0
  59. package/src/assets/img/pdf.png +0 -0
  60. package/src/assets/img/ppt.png +0 -0
  61. package/src/assets/img/txt.png +0 -0
  62. package/src/assets/img/word.png +0 -0
  63. package/src/assets/login/homeBg.png +0 -0
  64. package/src/assets/login/left.jpg +0 -0
  65. package/src/assets/login/logoImg.png +0 -0
  66. package/src/examples/LoginPage/index.tsx +0 -18
  67. package/src/examples/chat/components/DrawerGraphPreview.tsx +0 -77
  68. package/src/examples/chat/index.tsx +0 -179
  69. package/src/examples/gientechStreamFilesReader/index.tsx +0 -1016
  70. package/src/examples/ragDatabaseDataPage/index.tsx +0 -36
  71. package/src/examples/ragDatabaseIdPage/index.tsx +0 -44
  72. package/src/examples/ragDatabasePage/index.tsx +0 -36
  73. package/src/examples/ragModelManagePage/index.tsx +0 -37
  74. package/src/examples/ragSearchPage/index.tsx +0 -0
  75. package/src/examples/ragSensitiveWordsPage/index.tsx +0 -32
  76. package/src/examples/streamFiles/index.tsx +0 -384
  77. package/src/lib_enter.ts +0 -38
  78. package/src/main.tsx +0 -5
  79. package/src/main.tsx.backup +0 -5
  80. package/src/modules/chat/Conversations/Item.tsx +0 -167
  81. package/src/modules/chat/Conversations/List.tsx +0 -143
  82. package/src/modules/chat/Conversations/groupByTime.ts +0 -39
  83. package/src/modules/chat/Conversations/index.tsx +0 -212
  84. package/src/modules/chat/constants.tsx +0 -33
  85. package/src/modules/chat/index.tsx +0 -1836
  86. package/src/modules/chat/types.ts +0 -17
  87. package/src/modules/database/CreateModal.tsx +0 -398
  88. package/src/modules/database/assets/Doris.png +0 -0
  89. package/src/modules/database/assets/PostgreSQL.png +0 -0
  90. package/src/modules/database/assets/SQLServer.png +0 -0
  91. package/src/modules/database/assets/database.svg +0 -11
  92. package/src/modules/database/assets/database_connect.svg +0 -66
  93. package/src/modules/database/assets/database_upload.svg +0 -29
  94. package/src/modules/database/assets/empty.png +0 -0
  95. package/src/modules/database/assets/mysql.svg +0 -14
  96. package/src/modules/database/index.tsx +0 -466
  97. package/src/modules/database/server.ts +0 -196
  98. package/src/modules/databaseId/CustomCom.tsx +0 -156
  99. package/src/modules/databaseId/EditConfig.tsx +0 -268
  100. package/src/modules/databaseId/UploadDrawer.tsx +0 -520
  101. package/src/modules/databaseId/assets/aiOptimize.svg +0 -10
  102. package/src/modules/databaseId/assets/empty.png +0 -0
  103. package/src/modules/databaseId/assets/template.svg +0 -6
  104. package/src/modules/databaseId/assets/upload.svg +0 -9
  105. package/src/modules/databaseId/assets/useTemp.svg +0 -6
  106. package/src/modules/databaseId/index.tsx +0 -734
  107. package/src/modules/databaseId/server.ts +0 -286
  108. package/src/modules/databaseId/style.css +0 -5
  109. package/src/modules/databaseTable/EditRowDrawer.tsx +0 -119
  110. package/src/modules/databaseTable/index.tsx +0 -357
  111. package/src/modules/databaseTable/server.ts +0 -180
  112. package/src/modules/headlessChat/constants.tsx +0 -32
  113. package/src/modules/headlessChat/index.tsx +0 -1065
  114. package/src/modules/headlessChat/types.ts +0 -23
  115. package/src/modules/login/components/Login/LoginBox/index.tsx +0 -102
  116. package/src/modules/login/components/Login/RegisterBox/index.tsx +0 -180
  117. package/src/modules/login/components/Login/index.tsx +0 -100
  118. package/src/modules/login/index.tsx +0 -106
  119. package/src/modules/login/style.css +0 -3
  120. package/src/modules/login/useServices.ts +0 -53
  121. package/src/modules/login/utils.ts +0 -42
  122. package/src/modules/modelManage/ConfigDrawer.tsx +0 -249
  123. package/src/modules/modelManage/assets/empty.png +0 -0
  124. package/src/modules/modelManage/const.ts +0 -50
  125. package/src/modules/modelManage/index.tsx +0 -439
  126. package/src/modules/modelManage/server.ts +0 -185
  127. package/src/modules/nodegraph/index.tsx +0 -1
  128. package/src/modules/search/assets/Icon-history.svg +0 -8
  129. package/src/modules/search/assets/answerAwartar.png +0 -0
  130. package/src/modules/search/assets/doc.png +0 -0
  131. package/src/modules/search/assets/genera.gif +0 -0
  132. package/src/modules/search/assets/icon-robot.svg +0 -9
  133. package/src/modules/search/assets/icon-search-bar.svg +0 -14
  134. package/src/modules/search/assets/icon-sub-title.svg +0 -3
  135. package/src/modules/search/assets/icon-title.svg +0 -9
  136. package/src/modules/search/assets/icon-zoomOut.svg +0 -9
  137. package/src/modules/search/assets/iconAi.svg +0 -9
  138. package/src/modules/search/assets/pdf.png +0 -0
  139. package/src/modules/search/assets/ppt.png +0 -0
  140. package/src/modules/search/assets/search.svg +0 -3
  141. package/src/modules/search/assets/selected.svg +0 -4
  142. package/src/modules/search/assets/txt.png +0 -0
  143. package/src/modules/search/assets/xls.png +0 -0
  144. package/src/modules/search/components/AssisSelect.tsx +0 -137
  145. package/src/modules/search/components/Editor/ChatViewEditor.tsx +0 -261
  146. package/src/modules/search/components/Editor/aichat.css +0 -1
  147. package/src/modules/search/components/Editor/constant.ts +0 -13
  148. package/src/modules/search/components/Editor/index.tsx +0 -113
  149. package/src/modules/search/components/Editor/plugins/autofomatRules.ts +0 -332
  150. package/src/modules/search/components/Editor/plugins/convertImgPlugins.tsx +0 -20
  151. package/src/modules/search/components/Editor/plugins/createIndexes.tsx +0 -38
  152. package/src/modules/search/components/Editor/plugins/displayer.ts +0 -298
  153. package/src/modules/search/components/Editor/plugins/imageClick.tsx +0 -32
  154. package/src/modules/search/components/Editor/plugins/myplugin.tsx +0 -98
  155. package/src/modules/search/components/Editor/ui/avatar.tsx +0 -19
  156. package/src/modules/search/components/Editor/ui/blockquote-element.tsx +0 -21
  157. package/src/modules/search/components/Editor/ui/button.tsx +0 -58
  158. package/src/modules/search/components/Editor/ui/calendar.tsx +0 -68
  159. package/src/modules/search/components/Editor/ui/caption.tsx +0 -46
  160. package/src/modules/search/components/Editor/ui/checkbox.tsx +0 -27
  161. package/src/modules/search/components/Editor/ui/code-block-combobox.tsx +0 -188
  162. package/src/modules/search/components/Editor/ui/code-block-element.css +0 -434
  163. package/src/modules/search/components/Editor/ui/code-block-element.tsx +0 -39
  164. package/src/modules/search/components/Editor/ui/code-leaf.tsx +0 -24
  165. package/src/modules/search/components/Editor/ui/code-line-element.tsx +0 -10
  166. package/src/modules/search/components/Editor/ui/code-syntax-leaf.tsx +0 -21
  167. package/src/modules/search/components/Editor/ui/column-element.tsx +0 -30
  168. package/src/modules/search/components/Editor/ui/column-group-element.tsx +0 -94
  169. package/src/modules/search/components/Editor/ui/command.tsx +0 -75
  170. package/src/modules/search/components/Editor/ui/comment-avatar.tsx +0 -22
  171. package/src/modules/search/components/Editor/ui/comment-create-form.tsx +0 -37
  172. package/src/modules/search/components/Editor/ui/comment-item.tsx +0 -74
  173. package/src/modules/search/components/Editor/ui/comment-leaf.tsx +0 -49
  174. package/src/modules/search/components/Editor/ui/comment-more-dropdown.tsx +0 -42
  175. package/src/modules/search/components/Editor/ui/comment-reply-items.tsx +0 -22
  176. package/src/modules/search/components/Editor/ui/comment-resolve-button.tsx +0 -32
  177. package/src/modules/search/components/Editor/ui/comment-value.tsx +0 -34
  178. package/src/modules/search/components/Editor/ui/comments-popover.tsx +0 -63
  179. package/src/modules/search/components/Editor/ui/date-element.tsx +0 -83
  180. package/src/modules/search/components/Editor/ui/dialog.tsx +0 -63
  181. package/src/modules/search/components/Editor/ui/draggable.tsx +0 -177
  182. package/src/modules/search/components/Editor/ui/dropdown-menu.tsx +0 -180
  183. package/src/modules/search/components/Editor/ui/emoji-input-element.tsx +0 -85
  184. package/src/modules/search/components/Editor/ui/excalidraw-element.tsx +0 -28
  185. package/src/modules/search/components/Editor/ui/fixed-toolbar-buttons.tsx +0 -76
  186. package/src/modules/search/components/Editor/ui/fixed-toolbar.tsx +0 -8
  187. package/src/modules/search/components/Editor/ui/floating-toolbar-buttons.tsx +0 -51
  188. package/src/modules/search/components/Editor/ui/floating-toolbar.tsx +0 -77
  189. package/src/modules/search/components/Editor/ui/heading-element.tsx +0 -48
  190. package/src/modules/search/components/Editor/ui/highlight-leaf.tsx +0 -17
  191. package/src/modules/search/components/Editor/ui/hr-element.tsx +0 -30
  192. package/src/modules/search/components/Editor/ui/icons.tsx +0 -267
  193. package/src/modules/search/components/Editor/ui/image-element.tsx +0 -74
  194. package/src/modules/search/components/Editor/ui/inline-combobox.tsx +0 -368
  195. package/src/modules/search/components/Editor/ui/input.tsx +0 -25
  196. package/src/modules/search/components/Editor/ui/insert-dropdown-menu.tsx +0 -218
  197. package/src/modules/search/components/Editor/ui/kbd-leaf.tsx +0 -20
  198. package/src/modules/search/components/Editor/ui/link-element.tsx +0 -29
  199. package/src/modules/search/components/Editor/ui/link-floating-toolbar.tsx +0 -161
  200. package/src/modules/search/components/Editor/ui/list-element.tsx +0 -30
  201. package/src/modules/search/components/Editor/ui/mark-toolbar-button.tsx +0 -24
  202. package/src/modules/search/components/Editor/ui/media-embed-element.tsx +0 -133
  203. package/src/modules/search/components/Editor/ui/media-popover.tsx +0 -97
  204. package/src/modules/search/components/Editor/ui/mention-element.tsx +0 -43
  205. package/src/modules/search/components/Editor/ui/mention-input-element.tsx +0 -141
  206. package/src/modules/search/components/Editor/ui/mode-dropdown-menu.tsx +0 -93
  207. package/src/modules/search/components/Editor/ui/more-dropdown-menu.tsx +0 -67
  208. package/src/modules/search/components/Editor/ui/paragraph-element.tsx +0 -4
  209. package/src/modules/search/components/Editor/ui/placeholder.tsx +0 -52
  210. package/src/modules/search/components/Editor/ui/popover.tsx +0 -32
  211. package/src/modules/search/components/Editor/ui/resizable.tsx +0 -66
  212. package/src/modules/search/components/Editor/ui/separator.tsx +0 -25
  213. package/src/modules/search/components/Editor/ui/style.less +0 -12
  214. package/src/modules/search/components/Editor/ui/table-cell-element.tsx +0 -143
  215. package/src/modules/search/components/Editor/ui/table-element.tsx +0 -243
  216. package/src/modules/search/components/Editor/ui/table-row-element.tsx +0 -22
  217. package/src/modules/search/components/Editor/ui/tableValue.tsx +0 -135
  218. package/src/modules/search/components/Editor/ui/todo-list-element.tsx +0 -43
  219. package/src/modules/search/components/Editor/ui/toggle-element.tsx +0 -31
  220. package/src/modules/search/components/Editor/ui/toolbar.tsx +0 -157
  221. package/src/modules/search/components/Editor/ui/tooltip.tsx +0 -65
  222. package/src/modules/search/components/Editor/ui/turn-into-dropdown-menu.tsx +0 -160
  223. package/src/modules/search/components/Editor/ui/with-draggables.tsx +0 -175
  224. package/src/modules/search/components/FileList.tsx +0 -287
  225. package/src/modules/search/components/ImageGroupView/index.tsx +0 -85
  226. package/src/modules/search/components/ResultContent.tsx +0 -232
  227. package/src/modules/search/components/SearchInput.tsx +0 -232
  228. package/src/modules/search/components/SearchLanding.tsx +0 -74
  229. package/src/modules/search/components/SearchView.tsx +0 -563
  230. package/src/modules/search/components/SimpleEditor.tsx +0 -158
  231. package/src/modules/search/components/SimpleFileList.tsx +0 -215
  232. package/src/modules/search/index.tsx +0 -10
  233. package/src/modules/search/reademe.md +0 -1
  234. package/src/modules/search/servers/apis.tsx +0 -19
  235. package/src/modules/search/servers/index.ts +0 -184
  236. package/src/modules/search/style.less +0 -503
  237. package/src/modules/search/type.ts +0 -22
  238. package/src/modules/search/utils.ts +0 -34
  239. package/src/modules/sensitive/index.tsx +0 -313
  240. package/src/modules/sensitive/server.ts +0 -122
  241. package/src/modules/streamFilesReader/GientechStreamReader.tsx +0 -1555
  242. package/src/modules/streamFilesReader/components/Header/Toolbar.tsx +0 -0
  243. package/src/modules/streamFilesReader/components/Header/index.tsx +0 -297
  244. package/src/modules/streamFilesReader/index.tsx +0 -3
  245. package/src/style.css +0 -6
  246. package/src/type.d.ts +0 -0
  247. package/src/utils/commonFn.tsx +0 -111
  248. package/src/utils/gientechCommon/components/AppError.tsx +0 -32
  249. package/src/utils/gientechCommon/components/AppLoading.tsx +0 -75
  250. package/src/utils/gientechCommon/components/DeleteModal.tsx +0 -75
  251. package/src/utils/gientechCommon/components/DisplayError.tsx +0 -33
  252. package/src/utils/gientechCommon/components/DisplayLoading.tsx +0 -38
  253. package/src/utils/gientechCommon/components/FeedBackModal.tsx +0 -310
  254. package/src/utils/gientechCommon/components/FileCardCommon.tsx +0 -82
  255. package/src/utils/gientechCommon/components/FileManager/index.tsx +0 -390
  256. package/src/utils/gientechCommon/components/FileManager/style.css +0 -5
  257. package/src/utils/gientechCommon/components/Messages/GientechNewChatWelcome.tsx +0 -296
  258. package/src/utils/gientechCommon/components/Messages/ReferenceCard.tsx +0 -339
  259. package/src/utils/gientechCommon/components/Messages/RetriveItem.tsx +0 -245
  260. package/src/utils/gientechCommon/components/Messages/WebRetriveItem.tsx +0 -209
  261. package/src/utils/gientechCommon/components/Messages/defaultBot.png +0 -0
  262. package/src/utils/gientechCommon/components/Messages/defaultStyleSet.tsx +0 -148
  263. package/src/utils/gientechCommon/components/Messages/defaultWeLogo.svg +0 -14
  264. package/src/utils/gientechCommon/components/RenameModal.tsx +0 -86
  265. package/src/utils/gientechCommon/components/style.less +0 -11
  266. package/src/utils/gientechCommon/configs/commonConfig.ts +0 -2
  267. package/src/utils/gientechCommon/configs/senderConfig.ts +0 -0
  268. package/src/utils/gientechCommon/configs/stylesConfig.ts +0 -142
  269. package/src/utils/gientechCommon/hooks/AichatUseController.tsx +0 -339
  270. package/src/utils/gientechCommon/slate/converters/deserializers.ts +0 -763
  271. package/src/utils/gientechCommon/slate/converters/mockData.ts +0 -232
  272. package/src/utils/gientechCommon/slate/converters/slateConverters.ts +0 -258
  273. package/src/utils/gientechCommon/slate/richElements/index.tsx +0 -499
  274. package/src/utils/gientechCommon/utils/request.ts +0 -37
  275. package/src/utils/gientechCommon/utils/serverFn.ts +0 -172
  276. package/src/utils/index.tsx +0 -126
  277. package/src/utils/testconfigs/demologin/index.tsx +0 -32
  278. package/src/utils/testconfigs/index.ts +0 -53
  279. package/src/vite-env.d.ts +0 -11
  280. package/stats.html +0 -4949
  281. package/tailwind.config.js +0 -170
  282. package/tsconfig.app.json +0 -30
  283. package/tsconfig.app.tsbuildinfo +0 -11
  284. package/tsconfig.json +0 -13
  285. package/tsconfig.node.json +0 -22
  286. package/tsconfig.node.tsbuildinfo +0 -1
  287. package/vite.config.ts +0 -177
  288. package/workflows/release.yml +0 -60
  289. /package/{dist/assets → assets}/Doris.png +0 -0
  290. /package/{dist/assets → assets}/PostgreSQL.png +0 -0
  291. /package/{dist/assets → assets}/SQLServer.png +0 -0
  292. /package/{dist/assets → assets}/_commonjsHelpers-gnU0ypJ3.js +0 -0
  293. /package/{dist/assets → assets}/circle-alert-g2Y6zAjt.js +0 -0
  294. /package/{dist/assets → assets}/empty.png +0 -0
  295. /package/{dist/assets → assets}/index-CEK88UzR.js +0 -0
  296. /package/{dist/assets → assets}/index-CpW6Dhpp.js +0 -0
  297. /package/{dist/assets → assets}/plus-omCUN0e3.js +0 -0
  298. /package/{dist/assets → assets}/style2.css +0 -0
  299. /package/{dist/assets → assets}/styled-components.browser.esm-DPkS13KC.js +0 -0
  300. /package/{dist/assets → assets}/x-vPcWt3fC.js +0 -0
  301. /package/{dist/chat.d.ts → chat.d.ts} +0 -0
  302. /package/{dist/database.d.ts → database.d.ts} +0 -0
  303. /package/{dist/databaseId.d.ts → databaseId.d.ts} +0 -0
  304. /package/{dist/databaseTable.d.ts → databaseTable.d.ts} +0 -0
  305. /package/{dist/modelManage.d.ts → modelManage.d.ts} +0 -0
  306. /package/{dist/sensitive.d.ts → sensitive.d.ts} +0 -0
  307. /package/{dist/streamFilesReader.d.ts → streamFilesReader.d.ts} +0 -0
  308. /package/{dist/vite.svg → vite.svg} +0 -0
package/.editorconfig DELETED
@@ -1,38 +0,0 @@
1
- # EditorConfig is awesome: https://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- # Unix-style newlines with a newline ending every file
7
- [*]
8
- end_of_line = lf
9
- insert_final_newline = true
10
- charset = utf-8
11
- trim_trailing_whitespace = true
12
-
13
- # TypeScript and JavaScript files
14
- [*.{ts,tsx,js,jsx}]
15
- indent_style = space
16
- indent_size = 2
17
- quote_type = single
18
- max_line_length = 100
19
-
20
- # CSS files
21
- [*.css]
22
- indent_style = space
23
- indent_size = 2
24
-
25
- # Markdown files
26
- [*.md]
27
- trim_trailing_whitespace = false
28
- max_line_length = off
29
-
30
- # JSON files
31
- [*.json]
32
- indent_style = space
33
- indent_size = 2
34
-
35
- # YAML files
36
- [*.{yml,yaml}]
37
- indent_style = space
38
- indent_size = 2
package/.prettierignore DELETED
@@ -1,16 +0,0 @@
1
- # 构建输出
2
- dist
3
- build
4
-
5
- # 依赖
6
- node_modules
7
-
8
- # 测试覆盖率
9
- coverage
10
-
11
- # 其他
12
- .git
13
- .husky
14
- .vscode
15
- *.log
16
- *.lock
package/.prettierrc DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "semi": true,
3
- "singleQuote": true,
4
- "tabWidth": 2,
5
- "printWidth": 100,
6
- "trailingComma": "es5",
7
- "bracketSpacing": true,
8
- "arrowParens": "avoid",
9
- "endOfLine": "lf",
10
- "jsxSingleQuote": false,
11
- "quoteProps": "as-needed",
12
- "useTabs": false,
13
- "htmlWhitespaceSensitivity": "css",
14
- "embeddedLanguageFormatting": "auto",
15
- "singleAttributePerLine": false,
16
- "bracketSameLine": false
17
- }
package/USAGE.md DELETED
@@ -1,191 +0,0 @@
1
- # Gientech 多模块使用指南
2
-
3
- ## 安装
4
-
5
- ### 方式一:npm 安装
6
- ```bash
7
- npm install @gientech/modual
8
- ```
9
-
10
- ### 方式二:本地安装
11
- ```bash
12
- npm install /path/to/gientech/dist
13
- ```
14
-
15
- ## 使用方式
16
-
17
- ### 1. Chat 聊天模块
18
-
19
- ```javascript
20
- // 导入 chat 模块
21
- import { GientechChat } from '@gientech/modual/chat';
22
-
23
- // 在 React 组件中使用
24
- function App() {
25
- return (
26
- <div>
27
- <GientechChat
28
- config={{
29
- apiUrl: 'https://your-api.com',
30
- token: 'your-token'
31
- }}
32
- // 其他配置...
33
- />
34
- </div>
35
- );
36
- }
37
- ```
38
-
39
- ### 2. Database 数据库模块
40
-
41
- ```javascript
42
- import { GientechDatabase } from '@gientech/modual/database';
43
-
44
- function DatabasePage() {
45
- return (
46
- <GientechDatabase
47
- config={{
48
- apiUrl: 'https://your-api.com',
49
- token: 'your-token'
50
- }}
51
- />
52
- );
53
- }
54
- ```
55
-
56
- ### 3. DatabaseTable 数据库表格模块
57
-
58
- ```javascript
59
- import { GientechDatabaseTable } from '@gientech/modual/databaseTable';
60
-
61
- function TablePage() {
62
- return (
63
- <GientechDatabaseTable
64
- config={{
65
- apiUrl: 'https://your-api.com',
66
- token: 'your-token'
67
- }}
68
- />
69
- );
70
- }
71
- ```
72
-
73
- ### 4. HeadlessChat 无头聊天模块
74
-
75
- ```javascript
76
- import { GientechHeadlessChat } from '@gientech/modual/headlessChat';
77
-
78
- function HeadlessChatPage() {
79
- return (
80
- <GientechHeadlessChat
81
- config={{
82
- apiUrl: 'https://your-api.com',
83
- token: 'your-token'
84
- }}
85
- />
86
- );
87
- }
88
- ```
89
-
90
- ### 5. Login 登录模块
91
-
92
- ```javascript
93
- import { GientechLogin } from '@gientech/modual/login';
94
-
95
- function LoginPage() {
96
- return (
97
- <GientechLogin
98
- config={{
99
- apiUrl: 'https://your-api.com',
100
- token: 'your-token'
101
- }}
102
- />
103
- );
104
- }
105
- ```
106
-
107
- ### 6. Search 搜索模块
108
-
109
- ```javascript
110
- import { KnowledgeSearch } from '@gientech/modual/search';
111
-
112
- function SearchPage() {
113
- return (
114
- <KnowledgeSearch
115
- config={{
116
- apiUrl: 'https://your-api.com',
117
- token: 'your-token'
118
- }}
119
- />
120
- );
121
- }
122
- ```
123
-
124
- ## 样式引入
125
-
126
- ```javascript
127
- // 引入样式
128
- import '@gientech/modual/style.css';
129
- ```
130
-
131
- ## 在 HTML 中直接使用
132
-
133
- ```html
134
- <!DOCTYPE html>
135
- <html>
136
- <head>
137
- <meta charset="UTF-8">
138
- <title>Gientech Demo</title>
139
- <!-- 引入样式 -->
140
- <link rel="stylesheet" href="./node_modules/@gientech/modual/style.css">
141
- </head>
142
- <body>
143
- <div id="app"></div>
144
-
145
- <!-- 引入 React 和相关依赖 -->
146
- <script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
147
- <script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
148
- <script src="https://unpkg.com/antd@5/dist/antd.min.js"></script>
149
-
150
- <!-- 引入模块 -->
151
- <script type="module">
152
- import { GientechChat } from './node_modules/@gientech/modual/chat.js';
153
-
154
- // 渲染组件
155
- const root = ReactDOM.createRoot(document.getElementById('app'));
156
- root.render(React.createElement(GientechChat, {
157
- config: {
158
- apiUrl: 'https://your-api.com',
159
- token: 'your-token'
160
- }
161
- }));
162
- </script>
163
- </body>
164
- </html>
165
- ```
166
-
167
- ## 依赖要求
168
-
169
- 确保项目中已安装以下依赖:
170
-
171
- ```json
172
- {
173
- "dependencies": {
174
- "react": "^18.0.0",
175
- "react-dom": "^18.0.0",
176
- "antd": "^5.0.0",
177
- "@mxmweb/xviewer": "*",
178
- "@mxmweb/fviewer": "*",
179
- "@mxmweb/rtext": "*",
180
- "@mxmweb/zui": "*",
181
- "@mxmweb/aichat": "*"
182
- }
183
- }
184
- ```
185
-
186
- ## 注意事项
187
-
188
- 1. 每个模块都是独立的,可以按需引入
189
- 2. 所有模块都需要相应的依赖包
190
- 3. 确保 API 配置正确
191
- 4. 样式文件需要单独引入
@@ -1,40 +0,0 @@
1
- Stack trace:
2
- Frame Function Args
3
- 0007FFFFCD30 00021006118E (0002102A6010, 000210272B51, 000000000063, 0007FFFFB660) msys-2.0.dll+0x2118E
4
- 0007FFFFCD30 0002100469BA (0007FFFFC710, 000200000000, 000700000000, 000700000001) msys-2.0.dll+0x69BA
5
- 0007FFFFCD30 0002100469F2 (000000000000, 000000000000, 000000000063, 000700000003) msys-2.0.dll+0x69F2
6
- 0007FFFFCD30 000210101D21 (000210177B53, 000800007798, 000000000000, 0002102752E0) msys-2.0.dll+0xC1D21
7
- 0007FFFFCD30 000210101D39 (0002101779A0, 0003000000FF, 000000000006, 0007FFFFC890) msys-2.0.dll+0xC1D39
8
- 0007FFFFCD30 000210104704 (0007FFFFCD30, 000000000000, 0007FFFFC890, 0002102752E0) msys-2.0.dll+0xC4704
9
- 0007FFFFCD30 000210059095 (000000000004, 000000000004, 0007FFFFC9E8, 0000FFFFFFFF) msys-2.0.dll+0x19095
10
- 0007FFFFCD30 000210059865 (000210070B52, 00021024CB20, 000800004540, 000000000030) msys-2.0.dll+0x19865
11
- 0007FFFFCD30 000210059D77 (00021017DB25, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x19D77
12
- 0007FFFFCD30 00021005A0B6 (0002100CB9A0, 000000000000, FFFFFFFFFFFFFF43, 000200000000) msys-2.0.dll+0x1A0B6
13
- 0007FFFFCD30 000210047151 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x7151
14
- 0007FFFFFFF0 000210045C86 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5C86
15
- 0007FFFFFFF0 000210045D34 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5D34
16
- End of stack trace
17
- Loaded modules:
18
- 000100400000 bash.exe
19
- 7FFD10F50000 ntdll.dll
20
- 7FFD0FA20000 KERNEL32.DLL
21
- 7FFD0E710000 KERNELBASE.dll
22
- 7FFD10800000 USER32.dll
23
- 7FFD0EB80000 win32u.dll
24
- 7FFD10370000 GDI32.dll
25
- 7FFD0E220000 gdi32full.dll
26
- 000210040000 msys-2.0.dll
27
- 7FFD0EBB0000 msvcp_win.dll
28
- 7FFD0E5F0000 ucrtbase.dll
29
- 7FFD0F630000 advapi32.dll
30
- 7FFD10430000 msvcrt.dll
31
- 7FFD0F350000 sechost.dll
32
- 7FFD0EAD0000 bcrypt.dll
33
- 7FFD104E0000 RPCRT4.dll
34
- 7FFD0DA20000 CRYPTBASE.DLL
35
- 7FFD0EB00000 bcryptPrimitives.dll
36
- 7FFD0F5F0000 IMM32.DLL
37
- 7FFD02F20000 netapi32.dll
38
- 7FFCFB7A0000 SAMCLI.DLL
39
- 7FFD05410000 SAMLIB.dll
40
- 7FFD0CD40000 NETUTILS.DLL
package/components.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "new-york",
4
- "rsc": false,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "tailwind.config.js",
8
- "css": "src/style.css",
9
- "baseColor": "slate",
10
- "cssVariables": false,
11
- "prefix": ""
12
- },
13
- "aliases": {
14
- "components": "@/components",
15
- "utils": "@/components/shadcn/utils",
16
- "ui": "@/components/shadcn/ui",
17
- "lib": "@/components/shadcn/lib",
18
- "hooks": "@/components/shadcn/hooks"
19
- },
20
- "iconLibrary": "lucide"
21
- }
package/dist/README.md DELETED
@@ -1,129 +0,0 @@
1
- # @mxmweb工具库开发环境说明文档
2
-
3
- 一个用于快速初始化项目的工具库,提供了一系列常用的工具函数和组件。
4
-
5
- ## 特性
6
-
7
- - 🚀 快速初始化项目
8
- - 📦 自动配置开发环境
9
- - 🛠 提供常用工具函数
10
- - 🎨 内置 UI 组件
11
- - 📝 TypeScript 支持
12
- - 🔧 可配置性强
13
-
14
-
15
-
16
- ## 开发指南
17
-
18
- ### 环境要求
19
-
20
- - Node.js >= 18
21
- - pnpm >= 8
22
-
23
- ### 本地开发
24
-
25
- 1. 克隆仓库
26
- ```bash
27
- git clone https://github.com/your-username/mxmweb.git
28
- cd mxmweb/apps/init
29
- ```
30
-
31
- 2. 安装依赖
32
- ```bash
33
- pnpm install
34
- ```
35
-
36
- 3. 启动开发服务器
37
- ```bash
38
- pnpm dev 启动全部工程
39
- pnpm --filter @mxmweb/fileviewer dev 启动指定开发工程
40
- ```
41
-
42
- ### 构建
43
-
44
- ```bash
45
- pnpm build
46
- ```
47
-
48
- ### 代码规范
49
-
50
- - 使用 TypeScript 编写代码
51
- - 遵循 ESLint 和 Prettier 配置
52
- - 使用 EditorConfig 保持一致的代码风格
53
- - 编写清晰的提交信息,遵循 [Conventional Commits](https://www.conventionalcommits.org/)
54
-
55
- ### 提交规范
56
-
57
- 提交信息应该遵循以下格式:
58
-
59
- ```
60
- <type>(<scope>): <subject>
61
-
62
- <body>
63
-
64
- <footer>
65
- ```
66
-
67
- 类型(type):
68
- - feat: 新功能
69
- - fix: 修复
70
- - docs: 文档
71
- - style: 格式
72
- - refactor: 重构
73
- - test: 测试
74
- - chore: 构建过程或辅助工具的变动
75
-
76
- ### 发布流程
77
-
78
- 1. 确保代码已经提交并推送到 main 分支
79
- 2. 运行发布命令:
80
- ```bash
81
- pnpm release
82
- ```
83
-
84
- 3. 或者使用预发布测试:
85
- ```bash
86
- pnpm release:dry
87
- ```
88
-
89
- ### GitHub Actions 配置
90
-
91
- 1. 在 GitHub 仓库设置中添加以下 Secrets:
92
- - `NPM_TOKEN`: npm 发布令牌
93
- - `GITHUB_TOKEN`: GitHub 令牌(自动提供)
94
-
95
- 2. 确保仓库设置中启用了 Actions:
96
- - 进入仓库的 Settings > Actions > General
97
- - 在 "Actions permissions" 中选择 "Allow all actions and reusable workflows"
98
-
99
- 3. 推送代码到 main 分支,Actions 将自动运行:
100
- - 安装依赖
101
- - 构建项目
102
- - 运行测试
103
- - 发布到 npm
104
- - 创建 GitHub Release
105
- - 更新 CHANGELOG.md
106
-
107
- ## 目录结构
108
-
109
- ```
110
- src/
111
- ├── application/ # 应用入口
112
- ├── components/ # UI 组件
113
- ├── hooks/ # React Hooks
114
- ├── utils/ # 工具函数
115
- └── types/ # 类型定义
116
- ```
117
-
118
- ## 贡献指南
119
-
120
- 欢迎提交 Pull Request 或创建 Issue。在提交代码前,请确保:
121
-
122
- 1. 代码符合项目规范
123
- 2. 添加了必要的测试
124
- 3. 更新了相关文档
125
- 4. 提交信息符合规范
126
-
127
- ## 许可证
128
-
129
- MIT
@@ -1,53 +0,0 @@
1
- <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M14 12C14 10.8954 14.8954 10 16 10H29C31.2091 10 33 11.7909 33 14V26C33 30.4183 29.4183 34 25 34H16C14.8954 34 14 33.1046 14 32V12Z" fill="url(#paint0_linear_4121_5043)"/>
3
- <foreignObject x="-1" y="-1" width="32" height="36"><div xmlns="http://www.w3.org/1999/xhtml" style="backdrop-filter:blur(2px);clip-path:url(#bgblur_0_4121_5043_clip_path);height:100%;width:100%"></div></foreignObject><g data-figma-bg-blur-radius="4">
4
- <path d="M3 7C3 4.79086 4.79086 3 7 3H23C25.2091 3 27 4.79086 27 7V19C27 25.6274 21.6274 31 15 31H7C4.79086 31 3 29.2091 3 27V7Z" fill="white" fill-opacity="0.46"/>
5
- <path d="M7 3.25H23C25.0711 3.25 26.75 4.92893 26.75 7V19C26.75 25.4893 21.4893 30.75 15 30.75H7C4.92893 30.75 3.25 29.0711 3.25 27V7C3.25 4.92893 4.92893 3.25 7 3.25Z" stroke="white" stroke-opacity="0.34" stroke-width="0.5"/>
6
- </g>
7
- <g filter="url(#filter1_d_4121_5043)">
8
- <path d="M8 10H21" stroke="white" stroke-width="2" stroke-linecap="round"/>
9
- </g>
10
- <g filter="url(#filter2_d_4121_5043)">
11
- <path d="M8 16H21" stroke="white" stroke-width="2" stroke-linecap="round"/>
12
- </g>
13
- <g filter="url(#filter3_d_4121_5043)">
14
- <path d="M8 22H18" stroke="white" stroke-width="2" stroke-linecap="round"/>
15
- </g>
16
- <defs>
17
- <clipPath id="bgblur_0_4121_5043_clip_path" transform="translate(1 1)"><path d="M3 7C3 4.79086 4.79086 3 7 3H23C25.2091 3 27 4.79086 27 7V19C27 25.6274 21.6274 31 15 31H7C4.79086 31 3 29.2091 3 27V7Z"/>
18
- </clipPath><filter id="filter1_d_4121_5043" x="3" y="5" width="23" height="10" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
19
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
20
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
21
- <feOffset/>
22
- <feGaussianBlur stdDeviation="2"/>
23
- <feComposite in2="hardAlpha" operator="out"/>
24
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.396078 0 0 0 0 0.984314 0 0 0 0.4 0"/>
25
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4121_5043"/>
26
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4121_5043" result="shape"/>
27
- </filter>
28
- <filter id="filter2_d_4121_5043" x="3" y="11" width="23" height="10" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
29
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
30
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
31
- <feOffset/>
32
- <feGaussianBlur stdDeviation="2"/>
33
- <feComposite in2="hardAlpha" operator="out"/>
34
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.396078 0 0 0 0 0.984314 0 0 0 0.4 0"/>
35
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4121_5043"/>
36
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4121_5043" result="shape"/>
37
- </filter>
38
- <filter id="filter3_d_4121_5043" x="3" y="17" width="20" height="10" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
39
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
40
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
41
- <feOffset/>
42
- <feGaussianBlur stdDeviation="2"/>
43
- <feComposite in2="hardAlpha" operator="out"/>
44
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.396078 0 0 0 0 0.984314 0 0 0 0.4 0"/>
45
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4121_5043"/>
46
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4121_5043" result="shape"/>
47
- </filter>
48
- <linearGradient id="paint0_linear_4121_5043" x1="23.5" y1="10" x2="23.5" y2="34" gradientUnits="userSpaceOnUse">
49
- <stop stop-color="#64A0FD"/>
50
- <stop offset="1" stop-color="#015AFF"/>
51
- </linearGradient>
52
- </defs>
53
- </svg>