whyuzeim 1.0.0
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/README.md +11 -0
- package/cjs/AddMember/image/ic_close.svg.js +5 -0
- package/cjs/AddMember/index.d.ts +7 -0
- package/cjs/AddMember/index.js +107 -0
- package/cjs/AddMember/style/index.scss +47 -0
- package/cjs/ChatBox/JoinGroupDialog/index.d.ts +10 -0
- package/cjs/ChatBox/JoinGroupDialog/index.js +102 -0
- package/cjs/ChatBox/JoinGroupDialog/style/index.scss +4 -0
- package/cjs/ChatBox/image/ic_chat_back.svg.js +5 -0
- package/cjs/ChatBox/image/ic_more.svg.js +5 -0
- package/cjs/ChatBox/index.d.ts +10 -0
- package/cjs/ChatBox/index.js +557 -0
- package/cjs/ChatBox/style/index.scss +26 -0
- package/cjs/ContactList/index.d.ts +24 -0
- package/cjs/ContactList/index.js +64 -0
- package/cjs/ContactList/style/index.scss +5 -0
- package/cjs/CustomChatView/index.d.ts +9 -0
- package/cjs/CustomChatView/index.js +389 -0
- package/cjs/Exit/index.d.ts +3 -0
- package/cjs/Exit/index.js +17 -0
- package/cjs/GroupDetail/GroupDetailEditView/index.d.ts +8 -0
- package/cjs/GroupDetail/GroupDetailEditView/index.js +269 -0
- package/cjs/GroupDetail/GroupShareView/index.d.ts +10 -0
- package/cjs/GroupDetail/GroupShareView/index.js +151 -0
- package/cjs/GroupDetail/image/ic_close.svg.js +5 -0
- package/cjs/GroupDetail/image/ic_group_edit.svg.js +5 -0
- package/cjs/GroupDetail/image/ic_messages.svg.js +5 -0
- package/cjs/GroupDetail/image/ic_share.svg.js +5 -0
- package/cjs/GroupDetail/image/icon_translation.svg.js +5 -0
- package/cjs/GroupDetail/index.d.ts +26 -0
- package/cjs/GroupDetail/index.js +265 -0
- package/cjs/GroupDetail/style/index.scss +66 -0
- package/cjs/IM/DefaultIMLayout/MobileHeader/index.d.ts +11 -0
- package/cjs/IM/DefaultIMLayout/MobileHeader/index.js +29 -0
- package/cjs/IM/DefaultIMLayout/MobileHeader/style/index.scss +11 -0
- package/cjs/IM/DefaultIMLayout/index.d.ts +3 -0
- package/cjs/IM/DefaultIMLayout/index.js +29 -0
- package/cjs/IM/DefaultIMLayout/style/index.scss +0 -0
- package/cjs/IM/MainContent/index.d.ts +8 -0
- package/cjs/IM/MainContent/index.js +87 -0
- package/cjs/IM/MainContent/style/index.scss +22 -0
- package/cjs/IM/MobileHeader/index.d.ts +11 -0
- package/cjs/IM/MobileHeader/index.js +29 -0
- package/cjs/IM/MobileHeader/style/index.scss +11 -0
- package/cjs/IM/context.d.ts +21 -0
- package/cjs/IM/context.js +14 -0
- package/cjs/IM/encryption.d.ts +22 -0
- package/cjs/IM/encryption.js +38 -0
- package/cjs/IM/hooks/useGetAgoraToken.d.ts +2 -0
- package/cjs/IM/hooks/useGetAgoraToken.js +61 -0
- package/cjs/IM/index.d.ts +20 -0
- package/cjs/IM/index.js +130 -0
- package/cjs/IM/style/index.scss +119 -0
- package/cjs/NoData/image/no-data.svg.js +5 -0
- package/cjs/NoData/index.d.ts +8 -0
- package/cjs/NoData/index.js +22 -0
- package/cjs/NoData/style/index.scss +3 -0
- package/cjs/Panelbar/index.d.ts +7 -0
- package/cjs/Panelbar/style/index.scss +3 -0
- package/cjs/Sharebox/index.d.ts +7 -0
- package/cjs/Sharebox/index.js +14 -0
- package/cjs/Sharebox/style/index.scss +0 -0
- package/cjs/Sidebar/CreateGroup/index.d.ts +21 -0
- package/cjs/Sidebar/CreateGroup/index.js +188 -0
- package/cjs/Sidebar/CreateGroup/style/index.scss +65 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/delete.svg.js +5 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/logout.svg.js +5 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/more.svg.js +5 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/image/muted.svg.js +5 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/index.d.ts +10 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/index.js +210 -0
- package/cjs/Sidebar/CustomConversationItem/OperateBtn/style/index.scss +14 -0
- package/cjs/Sidebar/CustomConversationItem/index.d.ts +9 -0
- package/cjs/Sidebar/CustomConversationItem/index.js +105 -0
- package/cjs/Sidebar/CustomConversationItem/style/index.scss +15 -0
- package/cjs/Sidebar/GroupList/OperateBtn/image/delete.svg.js +5 -0
- package/cjs/Sidebar/GroupList/OperateBtn/image/logout.svg.js +5 -0
- package/cjs/Sidebar/GroupList/OperateBtn/image/more.svg.js +5 -0
- package/cjs/Sidebar/GroupList/OperateBtn/image/muted.svg.js +5 -0
- package/cjs/Sidebar/GroupList/OperateBtn/index.d.ts +11 -0
- package/cjs/Sidebar/GroupList/OperateBtn/index.js +238 -0
- package/cjs/Sidebar/GroupList/OperateBtn/style/index.scss +14 -0
- package/cjs/Sidebar/GroupList/index.d.ts +7 -0
- package/cjs/Sidebar/GroupList/index.js +142 -0
- package/cjs/Sidebar/GroupList/style/index.scss +40 -0
- package/cjs/Sidebar/MobileCreateGroup/index.d.ts +27 -0
- package/cjs/Sidebar/MobileCreateGroup/index.js +171 -0
- package/cjs/Sidebar/MobileCreateGroup/style/index.scss +14 -0
- package/cjs/Sidebar/Searchbox/image/ic_messages.svg.js +5 -0
- package/cjs/Sidebar/Searchbox/index.d.ts +31 -0
- package/cjs/Sidebar/Searchbox/index.js +152 -0
- package/cjs/Sidebar/Searchbox/style/index.scss +29 -0
- package/cjs/Sidebar/image/create.svg.js +5 -0
- package/cjs/Sidebar/image/group.svg.js +5 -0
- package/cjs/Sidebar/image/ic_close.svg.js +5 -0
- package/cjs/Sidebar/image/ic_menu.svg.js +5 -0
- package/cjs/Sidebar/image/ic_search.svg.js +5 -0
- package/cjs/Sidebar/image/message.svg.js +5 -0
- package/cjs/Sidebar/image/mobile_create.svg.js +5 -0
- package/cjs/Sidebar/index.d.ts +9 -0
- package/cjs/Sidebar/index.js +268 -0
- package/cjs/Sidebar/style/index.scss +82 -0
- package/cjs/TypeItem/OperateBtn/image/admin.svg.js +5 -0
- package/cjs/TypeItem/OperateBtn/image/ban.svg.js +5 -0
- package/cjs/TypeItem/OperateBtn/image/block.svg.js +5 -0
- package/cjs/TypeItem/OperateBtn/image/logout.svg.js +5 -0
- package/cjs/TypeItem/OperateBtn/image/more.svg.js +5 -0
- package/cjs/TypeItem/OperateBtn/index.d.ts +13 -0
- package/cjs/TypeItem/OperateBtn/index.js +198 -0
- package/cjs/TypeItem/OperateBtn/style/index.scss +0 -0
- package/cjs/TypeItem/index.d.ts +24 -0
- package/cjs/TypeItem/index.js +84 -0
- package/cjs/TypeItem/style/index.scss +67 -0
- package/cjs/UserProfile/image/ic_close.svg.js +5 -0
- package/cjs/UserProfile/image/ic_share.svg.js +5 -0
- package/cjs/UserProfile/image/icon_translation.svg.js +5 -0
- package/cjs/UserProfile/index.d.ts +8 -0
- package/cjs/UserProfile/index.js +170 -0
- package/cjs/UserProfile/style/index.scss +50 -0
- package/cjs/index.d.ts +16 -0
- package/cjs/index.js +23 -0
- package/cjs/type.d.ts +7 -0
- package/cjs/type.js +61 -0
- package/es/AddMember/image/ic_close.svg.js +3 -0
- package/es/AddMember/index.d.ts +7 -0
- package/es/AddMember/index.js +105 -0
- package/es/AddMember/style/index.scss +47 -0
- package/es/ChatBox/JoinGroupDialog/index.d.ts +10 -0
- package/es/ChatBox/JoinGroupDialog/index.js +100 -0
- package/es/ChatBox/JoinGroupDialog/style/index.scss +4 -0
- package/es/ChatBox/image/ic_chat_back.svg.js +3 -0
- package/es/ChatBox/image/ic_more.svg.js +3 -0
- package/es/ChatBox/index.d.ts +10 -0
- package/es/ChatBox/index.js +555 -0
- package/es/ChatBox/style/index.scss +26 -0
- package/es/ContactList/index.d.ts +24 -0
- package/es/ContactList/index.js +62 -0
- package/es/ContactList/style/index.scss +5 -0
- package/es/CustomChatView/index.d.ts +9 -0
- package/es/CustomChatView/index.js +387 -0
- package/es/Exit/index.d.ts +3 -0
- package/es/Exit/index.js +15 -0
- package/es/GroupDetail/GroupDetailEditView/index.d.ts +8 -0
- package/es/GroupDetail/GroupDetailEditView/index.js +267 -0
- package/es/GroupDetail/GroupShareView/index.d.ts +10 -0
- package/es/GroupDetail/GroupShareView/index.js +149 -0
- package/es/GroupDetail/image/ic_close.svg.js +3 -0
- package/es/GroupDetail/image/ic_group_edit.svg.js +3 -0
- package/es/GroupDetail/image/ic_messages.svg.js +3 -0
- package/es/GroupDetail/image/ic_share.svg.js +3 -0
- package/es/GroupDetail/image/icon_translation.svg.js +3 -0
- package/es/GroupDetail/index.d.ts +26 -0
- package/es/GroupDetail/index.js +263 -0
- package/es/GroupDetail/style/index.scss +66 -0
- package/es/IM/DefaultIMLayout/MobileHeader/index.d.ts +11 -0
- package/es/IM/DefaultIMLayout/MobileHeader/index.js +27 -0
- package/es/IM/DefaultIMLayout/MobileHeader/style/index.scss +11 -0
- package/es/IM/DefaultIMLayout/index.d.ts +3 -0
- package/es/IM/DefaultIMLayout/index.js +27 -0
- package/es/IM/DefaultIMLayout/style/index.scss +0 -0
- package/es/IM/MainContent/index.d.ts +8 -0
- package/es/IM/MainContent/index.js +85 -0
- package/es/IM/MainContent/style/index.scss +22 -0
- package/es/IM/MobileHeader/index.d.ts +11 -0
- package/es/IM/MobileHeader/index.js +27 -0
- package/es/IM/MobileHeader/style/index.scss +11 -0
- package/es/IM/context.d.ts +21 -0
- package/es/IM/context.js +12 -0
- package/es/IM/encryption.d.ts +22 -0
- package/es/IM/encryption.js +34 -0
- package/es/IM/hooks/useGetAgoraToken.d.ts +2 -0
- package/es/IM/hooks/useGetAgoraToken.js +59 -0
- package/es/IM/index.d.ts +20 -0
- package/es/IM/index.js +128 -0
- package/es/IM/style/index.scss +119 -0
- package/es/NoData/image/no-data.svg.js +3 -0
- package/es/NoData/index.d.ts +8 -0
- package/es/NoData/index.js +20 -0
- package/es/NoData/style/index.scss +3 -0
- package/es/Panelbar/index.d.ts +7 -0
- package/es/Panelbar/style/index.scss +3 -0
- package/es/Sharebox/index.d.ts +7 -0
- package/es/Sharebox/index.js +12 -0
- package/es/Sharebox/style/index.scss +0 -0
- package/es/Sidebar/CreateGroup/index.d.ts +21 -0
- package/es/Sidebar/CreateGroup/index.js +186 -0
- package/es/Sidebar/CreateGroup/style/index.scss +65 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/image/delete.svg.js +3 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/image/logout.svg.js +3 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/image/more.svg.js +3 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/image/muted.svg.js +3 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/index.d.ts +10 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/index.js +208 -0
- package/es/Sidebar/CustomConversationItem/OperateBtn/style/index.scss +14 -0
- package/es/Sidebar/CustomConversationItem/index.d.ts +9 -0
- package/es/Sidebar/CustomConversationItem/index.js +103 -0
- package/es/Sidebar/CustomConversationItem/style/index.scss +15 -0
- package/es/Sidebar/GroupList/OperateBtn/image/delete.svg.js +3 -0
- package/es/Sidebar/GroupList/OperateBtn/image/logout.svg.js +3 -0
- package/es/Sidebar/GroupList/OperateBtn/image/more.svg.js +3 -0
- package/es/Sidebar/GroupList/OperateBtn/image/muted.svg.js +3 -0
- package/es/Sidebar/GroupList/OperateBtn/index.d.ts +11 -0
- package/es/Sidebar/GroupList/OperateBtn/index.js +236 -0
- package/es/Sidebar/GroupList/OperateBtn/style/index.scss +14 -0
- package/es/Sidebar/GroupList/index.d.ts +7 -0
- package/es/Sidebar/GroupList/index.js +140 -0
- package/es/Sidebar/GroupList/style/index.scss +40 -0
- package/es/Sidebar/MobileCreateGroup/index.d.ts +27 -0
- package/es/Sidebar/MobileCreateGroup/index.js +169 -0
- package/es/Sidebar/MobileCreateGroup/style/index.scss +14 -0
- package/es/Sidebar/Searchbox/image/ic_messages.svg.js +3 -0
- package/es/Sidebar/Searchbox/index.d.ts +31 -0
- package/es/Sidebar/Searchbox/index.js +150 -0
- package/es/Sidebar/Searchbox/style/index.scss +29 -0
- package/es/Sidebar/image/create.svg.js +3 -0
- package/es/Sidebar/image/group.svg.js +3 -0
- package/es/Sidebar/image/ic_close.svg.js +3 -0
- package/es/Sidebar/image/ic_menu.svg.js +3 -0
- package/es/Sidebar/image/ic_search.svg.js +3 -0
- package/es/Sidebar/image/message.svg.js +3 -0
- package/es/Sidebar/image/mobile_create.svg.js +3 -0
- package/es/Sidebar/index.d.ts +9 -0
- package/es/Sidebar/index.js +266 -0
- package/es/Sidebar/style/index.scss +82 -0
- package/es/TypeItem/OperateBtn/image/admin.svg.js +3 -0
- package/es/TypeItem/OperateBtn/image/ban.svg.js +3 -0
- package/es/TypeItem/OperateBtn/image/block.svg.js +3 -0
- package/es/TypeItem/OperateBtn/image/logout.svg.js +3 -0
- package/es/TypeItem/OperateBtn/image/more.svg.js +3 -0
- package/es/TypeItem/OperateBtn/index.d.ts +13 -0
- package/es/TypeItem/OperateBtn/index.js +196 -0
- package/es/TypeItem/OperateBtn/style/index.scss +0 -0
- package/es/TypeItem/index.d.ts +24 -0
- package/es/TypeItem/index.js +82 -0
- package/es/TypeItem/style/index.scss +67 -0
- package/es/UserProfile/image/ic_close.svg.js +3 -0
- package/es/UserProfile/image/ic_share.svg.js +3 -0
- package/es/UserProfile/image/icon_translation.svg.js +3 -0
- package/es/UserProfile/index.d.ts +8 -0
- package/es/UserProfile/index.js +168 -0
- package/es/UserProfile/style/index.scss +50 -0
- package/es/index.d.ts +16 -0
- package/es/index.js +9 -0
- package/es/type.d.ts +7 -0
- package/es/type.js +58 -0
- package/package.json +33 -0
- package/types/global.d.ts +10 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
2
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
3
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
5
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
7
|
+
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
|
+
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
|
+
import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerator';
|
|
11
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
12
|
+
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
13
|
+
import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
|
|
14
|
+
import React, { useState, useContext, useRef, useEffect } from 'react';
|
|
15
|
+
import { Context } from '../../IM/context.js';
|
|
16
|
+
import { message } from 'antd';
|
|
17
|
+
import '../../IM/style/index.scss';
|
|
18
|
+
import { rootStore } from 'agora-chat-uikit';
|
|
19
|
+
|
|
20
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(t), true)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
var GroupDetailEditView = function GroupDetailEditView(props) {
|
|
23
|
+
var _props$groupInfo$head, _props$groupInfo, _props$groupInfo$name, _props$groupInfo2, _props$groupInfo3, _context4;
|
|
24
|
+
var _useState = useState({
|
|
25
|
+
imageUrl: (_props$groupInfo$head = (_props$groupInfo = props.groupInfo) === null || _props$groupInfo === void 0 ? void 0 : _props$groupInfo.headimgurl) !== null && _props$groupInfo$head !== void 0 ? _props$groupInfo$head : '',
|
|
26
|
+
// 群组头像 URL
|
|
27
|
+
name: (_props$groupInfo$name = (_props$groupInfo2 = props.groupInfo) === null || _props$groupInfo2 === void 0 ? void 0 : _props$groupInfo2.name) !== null && _props$groupInfo$name !== void 0 ? _props$groupInfo$name : '',
|
|
28
|
+
// 群组名称
|
|
29
|
+
description: (_props$groupInfo3 = props.groupInfo) === null || _props$groupInfo3 === void 0 ? void 0 : _props$groupInfo3.description // 群组描述
|
|
30
|
+
}),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
groupForm = _useState2[0],
|
|
33
|
+
setGroupForm = _useState2[1];
|
|
34
|
+
var _useContext = useContext(Context),
|
|
35
|
+
http = _useContext.http;
|
|
36
|
+
var nameInputRef = useRef(null);
|
|
37
|
+
var descriptionInputRef = useRef(null);
|
|
38
|
+
// 设置默认值
|
|
39
|
+
useEffect(function () {
|
|
40
|
+
if (nameInputRef.current) {
|
|
41
|
+
var _groupForm$name;
|
|
42
|
+
nameInputRef.current.innerText = (_groupForm$name = groupForm.name) !== null && _groupForm$name !== void 0 ? _groupForm$name : '';
|
|
43
|
+
}
|
|
44
|
+
if (descriptionInputRef.current) {
|
|
45
|
+
var _groupForm$descriptio;
|
|
46
|
+
descriptionInputRef.current.innerText = (_groupForm$descriptio = groupForm.description) !== null && _groupForm$descriptio !== void 0 ? _groupForm$descriptio : '';
|
|
47
|
+
}
|
|
48
|
+
}, []);
|
|
49
|
+
// 处理头像上传
|
|
50
|
+
var upAvatar = /*#__PURE__*/function () {
|
|
51
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
|
|
52
|
+
var formData, _yield$http$post, data;
|
|
53
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
54
|
+
while (1) switch (_context.prev = _context.next) {
|
|
55
|
+
case 0:
|
|
56
|
+
// 实现上传逻辑
|
|
57
|
+
console.log('上传文件:', file);
|
|
58
|
+
// 假设上传成功后更新 imageUrl
|
|
59
|
+
formData = new FormData();
|
|
60
|
+
formData.append('file', file);
|
|
61
|
+
_context.prev = 3;
|
|
62
|
+
_context.next = 6;
|
|
63
|
+
return http.post("/capi/account/open/videos/upload", formData);
|
|
64
|
+
case 6:
|
|
65
|
+
_yield$http$post = _context.sent;
|
|
66
|
+
data = _yield$http$post.data;
|
|
67
|
+
console.log('data', data);
|
|
68
|
+
if (data.code === 200) {
|
|
69
|
+
setGroupForm(function (prev) {
|
|
70
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
71
|
+
imageUrl: data.data
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
} else {
|
|
75
|
+
message.error(data === null || data === void 0 ? void 0 : data.msg);
|
|
76
|
+
}
|
|
77
|
+
_context.next = 15;
|
|
78
|
+
break;
|
|
79
|
+
case 12:
|
|
80
|
+
_context.prev = 12;
|
|
81
|
+
_context.t0 = _context["catch"](3);
|
|
82
|
+
console.error('Upload error:', _context.t0);
|
|
83
|
+
case 15:
|
|
84
|
+
case "end":
|
|
85
|
+
return _context.stop();
|
|
86
|
+
}
|
|
87
|
+
}, _callee, null, [[3, 12]]);
|
|
88
|
+
}));
|
|
89
|
+
return function upAvatar(_x) {
|
|
90
|
+
return _ref.apply(this, arguments);
|
|
91
|
+
};
|
|
92
|
+
}();
|
|
93
|
+
// 处理头像上传前的校验
|
|
94
|
+
var beforeAvatarUpload = function beforeAvatarUpload(file) {
|
|
95
|
+
var isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg';
|
|
96
|
+
var isLt5M = file.size / 1024 / 1024 < 5;
|
|
97
|
+
if (!isJPG) {
|
|
98
|
+
message.error('Invalid File');
|
|
99
|
+
}
|
|
100
|
+
if (!isLt5M) {
|
|
101
|
+
message.error('Max size limit 5M');
|
|
102
|
+
}
|
|
103
|
+
return isLt5M && isJPG;
|
|
104
|
+
};
|
|
105
|
+
// 处理群组名称输入
|
|
106
|
+
var handleNameInput = function handleNameInput() {
|
|
107
|
+
if (nameInputRef.current) {
|
|
108
|
+
setGroupForm(function (prev) {
|
|
109
|
+
var _nameInputRef$current;
|
|
110
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
111
|
+
name: ((_nameInputRef$current = nameInputRef.current) === null || _nameInputRef$current === void 0 ? void 0 : _nameInputRef$current.innerText) || ''
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
// 处理群组描述输入
|
|
117
|
+
var handleDescriptionInput = function handleDescriptionInput() {
|
|
118
|
+
if (descriptionInputRef.current) {
|
|
119
|
+
setGroupForm(function (prev) {
|
|
120
|
+
var _descriptionInputRef$;
|
|
121
|
+
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
122
|
+
description: ((_descriptionInputRef$ = descriptionInputRef.current) === null || _descriptionInputRef$ === void 0 ? void 0 : _descriptionInputRef$.innerText) || ''
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
// 保存群组信息
|
|
128
|
+
var saveGroupInfo = /*#__PURE__*/function () {
|
|
129
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
130
|
+
var _context2, _props$groupInfo4;
|
|
131
|
+
var options, response, _response$data, code, msg, _props$groupInfo5, _props$groupInfo6;
|
|
132
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
133
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
134
|
+
case 0:
|
|
135
|
+
if (!(_trimInstanceProperty(_context2 = groupForm.name).call(_context2) === '')) {
|
|
136
|
+
_context3.next = 3;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
console.error('群组名称不能为空');
|
|
140
|
+
return _context3.abrupt("return");
|
|
141
|
+
case 3:
|
|
142
|
+
console.log('保存群组信息:', groupForm);
|
|
143
|
+
// 实现保存逻辑
|
|
144
|
+
if (groupForm.name) {
|
|
145
|
+
_context3.next = 6;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
return _context3.abrupt("return");
|
|
149
|
+
case 6:
|
|
150
|
+
options = {
|
|
151
|
+
sendbirdid: props === null || props === void 0 || (_props$groupInfo4 = props.groupInfo) === null || _props$groupInfo4 === void 0 ? void 0 : _props$groupInfo4.sendbirdid,
|
|
152
|
+
headimgurl: groupForm === null || groupForm === void 0 ? void 0 : groupForm.imageUrl,
|
|
153
|
+
name: groupForm.name,
|
|
154
|
+
description: groupForm.description
|
|
155
|
+
};
|
|
156
|
+
_context3.prev = 7;
|
|
157
|
+
_context3.next = 10;
|
|
158
|
+
return http.post("/capi/account/imchannel/update", options);
|
|
159
|
+
case 10:
|
|
160
|
+
response = _context3.sent;
|
|
161
|
+
_response$data = response.data, code = _response$data.code, msg = _response$data.msg;
|
|
162
|
+
if (code == 200) {
|
|
163
|
+
rootStore.addressStore.updateGroupName(props === null || props === void 0 || (_props$groupInfo5 = props.groupInfo) === null || _props$groupInfo5 === void 0 ? void 0 : _props$groupInfo5.sendbirdid, groupForm.name);
|
|
164
|
+
rootStore.addressStore.updateGroupAvatar(props === null || props === void 0 || (_props$groupInfo6 = props.groupInfo) === null || _props$groupInfo6 === void 0 ? void 0 : _props$groupInfo6.sendbirdid, groupForm.imageUrl);
|
|
165
|
+
if (props.onClickClose) {
|
|
166
|
+
props.onClickClose(true);
|
|
167
|
+
}
|
|
168
|
+
} else {
|
|
169
|
+
message.error(msg);
|
|
170
|
+
}
|
|
171
|
+
_context3.next = 17;
|
|
172
|
+
break;
|
|
173
|
+
case 15:
|
|
174
|
+
_context3.prev = 15;
|
|
175
|
+
_context3.t0 = _context3["catch"](7);
|
|
176
|
+
case 17:
|
|
177
|
+
case "end":
|
|
178
|
+
return _context3.stop();
|
|
179
|
+
}
|
|
180
|
+
}, _callee2, null, [[7, 15]]);
|
|
181
|
+
}));
|
|
182
|
+
return function saveGroupInfo() {
|
|
183
|
+
return _ref2.apply(this, arguments);
|
|
184
|
+
};
|
|
185
|
+
}();
|
|
186
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
187
|
+
className: "yuze-groupDetail w-full h-full"
|
|
188
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
189
|
+
className: "p-4 h-16 border-[var(--im-main-bg-five)] cursor-pointer flex items-center text-[var(--im-five-fontColor)] hover:text-[var(--im-second-fontColor)]"
|
|
190
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
191
|
+
onClick: function onClick() {
|
|
192
|
+
if (props.onClickClose) {
|
|
193
|
+
props.onClickClose(false);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
197
|
+
className: "w-6 h-6",
|
|
198
|
+
fill: "none",
|
|
199
|
+
stroke: "currentColor",
|
|
200
|
+
viewBox: "0 0 24 24",
|
|
201
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
202
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
203
|
+
strokeLinecap: "round",
|
|
204
|
+
strokeLinejoin: "round",
|
|
205
|
+
strokeWidth: 2,
|
|
206
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
207
|
+
}))), /*#__PURE__*/React.createElement("span", {
|
|
208
|
+
className: "ml-2 text-[var(--im-main-fontColor)]"
|
|
209
|
+
}, "Edit")), /*#__PURE__*/React.createElement("div", {
|
|
210
|
+
className: "my-10"
|
|
211
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
212
|
+
className: "flex justify-center"
|
|
213
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
214
|
+
className: "relative"
|
|
215
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
216
|
+
type: "file",
|
|
217
|
+
accept: "image/*",
|
|
218
|
+
className: "hidden",
|
|
219
|
+
id: "avatar-upload",
|
|
220
|
+
onChange: function onChange(e) {
|
|
221
|
+
if (e.target.files && e.target.files[0]) {
|
|
222
|
+
var file = e.target.files[0];
|
|
223
|
+
if (beforeAvatarUpload(file)) {
|
|
224
|
+
upAvatar(file);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}), /*#__PURE__*/React.createElement("label", {
|
|
229
|
+
htmlFor: "avatar-upload",
|
|
230
|
+
className: "cursor-pointer"
|
|
231
|
+
}, groupForm.imageUrl ? /*#__PURE__*/React.createElement("img", {
|
|
232
|
+
src: groupForm.imageUrl,
|
|
233
|
+
alt: "avatar",
|
|
234
|
+
className: "bg-[var(--im-second-fontColor)] w-20 h-20 rounded-lg"
|
|
235
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
236
|
+
className: "w-20 h-20 rounded-lg bg-black-60 flex items-center justify-center"
|
|
237
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
238
|
+
className: "text-[var(--im-main-fontColor)]"
|
|
239
|
+
}, "Upload Avatar")))))), /*#__PURE__*/React.createElement("div", {
|
|
240
|
+
className: "gap-2 flex flex-col mt-4 gap-2 mx-4"
|
|
241
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
242
|
+
className: "text-[var(--im-seven-fontColor)] text-sm font-normal"
|
|
243
|
+
}, "Group Name"), /*#__PURE__*/React.createElement("div", {
|
|
244
|
+
className: "w-full h-12 px-4 py-3 rounded-sm bg-[var(--im-main-bg-ten)]"
|
|
245
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
246
|
+
ref: nameInputRef,
|
|
247
|
+
contentEditable: true,
|
|
248
|
+
className: "text-[var(--im-main-fontColor)] text-base outline-none resize-none whitespace-pre-wrap break-words",
|
|
249
|
+
onInput: handleNameInput
|
|
250
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
251
|
+
className: "gap-2 flex flex-col mt-4 mx-4"
|
|
252
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
253
|
+
className: "text-[var(--im-seven-fontColor)] text-sm font-normal"
|
|
254
|
+
}, "Description"), /*#__PURE__*/React.createElement("div", {
|
|
255
|
+
className: "w-full h-12 px-4 py-3 rounded-sm bg-[var(--im-main-bg-ten)]"
|
|
256
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
257
|
+
ref: descriptionInputRef,
|
|
258
|
+
contentEditable: true,
|
|
259
|
+
className: "text-[var(--im-main-fontColor)] text-base outline-none resize-none whitespace-pre-wrap break-words",
|
|
260
|
+
onInput: handleDescriptionInput
|
|
261
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
262
|
+
className: "mt-4 mx-4 p-4 h-12 text-center text-base leading-normal font-semibold rounded-md cursor-pointer text-[var(--im-six-fontColor)] bg-[var(--im-green)] ".concat(_trimInstanceProperty(_context4 = groupForm.name).call(_context4) === '' ? 'opacity-50' : ''),
|
|
263
|
+
onClick: saveGroupInfo
|
|
264
|
+
}, "Save"));
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export { GroupDetailEditView as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "../../IM/style/index.scss";
|
|
3
|
+
export interface IGroupShareInfo {
|
|
4
|
+
shareObjId: string;
|
|
5
|
+
shareObjName?: string;
|
|
6
|
+
shareObjImageurl?: string;
|
|
7
|
+
onClickClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const GroupShareView: React.FC<IGroupShareInfo>;
|
|
10
|
+
export default GroupShareView;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerator';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
3
|
+
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
4
|
+
import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
|
|
5
|
+
import React, { useContext, useState, useEffect } from 'react';
|
|
6
|
+
import { Context } from '../../IM/context.js';
|
|
7
|
+
import '../../IM/style/index.scss';
|
|
8
|
+
import { useSDK, rootStore } from 'agora-chat-uikit';
|
|
9
|
+
|
|
10
|
+
var GroupShareView = function GroupShareView(props) {
|
|
11
|
+
var _useContext = useContext(Context),
|
|
12
|
+
http = _useContext.http,
|
|
13
|
+
userInfo = _useContext.userInfo;
|
|
14
|
+
var _useState = useState([]),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
groupList = _useState2[0],
|
|
17
|
+
setGroupList = _useState2[1];
|
|
18
|
+
var _useSDK = useSDK(),
|
|
19
|
+
ChatSDK = _useSDK.ChatSDK;
|
|
20
|
+
var getMySelfGroups = /*#__PURE__*/function () {
|
|
21
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
22
|
+
var param, _yield$http$post, data;
|
|
23
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
24
|
+
while (1) switch (_context.prev = _context.next) {
|
|
25
|
+
case 0:
|
|
26
|
+
param = {
|
|
27
|
+
type: 3
|
|
28
|
+
};
|
|
29
|
+
_context.prev = 1;
|
|
30
|
+
_context.next = 4;
|
|
31
|
+
return http.post("/capi/account/imchannel/getchannels", param);
|
|
32
|
+
case 4:
|
|
33
|
+
_yield$http$post = _context.sent;
|
|
34
|
+
data = _yield$http$post.data;
|
|
35
|
+
if (data && data.code === 200) {
|
|
36
|
+
setGroupList(data.data);
|
|
37
|
+
}
|
|
38
|
+
_context.next = 11;
|
|
39
|
+
break;
|
|
40
|
+
case 9:
|
|
41
|
+
_context.prev = 9;
|
|
42
|
+
_context.t0 = _context["catch"](1);
|
|
43
|
+
case 11:
|
|
44
|
+
case "end":
|
|
45
|
+
return _context.stop();
|
|
46
|
+
}
|
|
47
|
+
}, _callee, null, [[1, 9]]);
|
|
48
|
+
}));
|
|
49
|
+
return function getMySelfGroups() {
|
|
50
|
+
return _ref.apply(this, arguments);
|
|
51
|
+
};
|
|
52
|
+
}();
|
|
53
|
+
var shareItemAction = /*#__PURE__*/function () {
|
|
54
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(groupItem) {
|
|
55
|
+
var option, customMessage;
|
|
56
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
57
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
58
|
+
case 0:
|
|
59
|
+
option = {
|
|
60
|
+
chatType: 'groupChat',
|
|
61
|
+
type: 'custom',
|
|
62
|
+
// Sets the message type.
|
|
63
|
+
to: groupItem === null || groupItem === void 0 ? void 0 : groupItem.sendbirdid,
|
|
64
|
+
// Sets the recipient of the message with user ID.
|
|
65
|
+
customEvent: 'im_group_share',
|
|
66
|
+
msg: '[group card]',
|
|
67
|
+
customExts: {
|
|
68
|
+
shareUserId: userInfo.uid,
|
|
69
|
+
objectId: props.shareObjId,
|
|
70
|
+
title: props.shareObjName,
|
|
71
|
+
shareUserName: userInfo.username,
|
|
72
|
+
imgUrl: props.shareObjImageurl
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
customMessage = ChatSDK.message.create(option);
|
|
76
|
+
_context2.next = 4;
|
|
77
|
+
return rootStore.messageStore.sendMessage(customMessage);
|
|
78
|
+
case 4:
|
|
79
|
+
if (props.onClickClose) {
|
|
80
|
+
props.onClickClose();
|
|
81
|
+
}
|
|
82
|
+
case 5:
|
|
83
|
+
case "end":
|
|
84
|
+
return _context2.stop();
|
|
85
|
+
}
|
|
86
|
+
}, _callee2);
|
|
87
|
+
}));
|
|
88
|
+
return function shareItemAction(_x) {
|
|
89
|
+
return _ref2.apply(this, arguments);
|
|
90
|
+
};
|
|
91
|
+
}();
|
|
92
|
+
// 设置默认值
|
|
93
|
+
useEffect(function () {
|
|
94
|
+
getMySelfGroups();
|
|
95
|
+
}, []);
|
|
96
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
className: "yuze-groupDetail flex flex-col w-full h-full overflow-hidden"
|
|
98
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
onClick: function onClick() {
|
|
100
|
+
if (props.onClickClose) {
|
|
101
|
+
props.onClickClose();
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
className: "p-4 h-16 border-b border-[var(--im-main-bg-five)] cursor-pointer flex items-center text-[var(--im-five-fontColor)] hover:text-[var(--im-second-fontColor)]"
|
|
105
|
+
}, /*#__PURE__*/React.createElement("button", null, /*#__PURE__*/React.createElement("svg", {
|
|
106
|
+
className: "w-6 h-6",
|
|
107
|
+
fill: "none",
|
|
108
|
+
stroke: "currentColor",
|
|
109
|
+
viewBox: "0 0 24 24",
|
|
110
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
111
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
112
|
+
strokeLinecap: "round",
|
|
113
|
+
strokeLinejoin: "round",
|
|
114
|
+
strokeWidth: 2,
|
|
115
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
116
|
+
}))), /*#__PURE__*/React.createElement("span", {
|
|
117
|
+
className: "ml-2 text-[var(--im-main-fontColor)]"
|
|
118
|
+
}, "Share")), /*#__PURE__*/React.createElement("p", {
|
|
119
|
+
className: "text-[var(--im-main-fontColor)] text-base font-semibold text-center pt-6 px-4 pb-2.5 border-b border-[var(--im-main-bg-ten)]"
|
|
120
|
+
}, "Groups"), /*#__PURE__*/React.createElement("div", {
|
|
121
|
+
className: "flex flex-col mt-3 mx-4 gap-4 overflow-y-auto flex-1 min-h-0 pb-5"
|
|
122
|
+
}, _mapInstanceProperty(groupList).call(groupList, function (groupinfo, index) {
|
|
123
|
+
var _groupinfo$name, _groupinfo$members;
|
|
124
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
125
|
+
onClick: function onClick() {
|
|
126
|
+
return shareItemAction(groupinfo);
|
|
127
|
+
},
|
|
128
|
+
key: index,
|
|
129
|
+
className: "px-2 py-3 cursor-pointer flex items-center justify-between"
|
|
130
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
131
|
+
className: "flex gap-2 items-center mr-5 flex-1 min-w-0 overflow-hidden"
|
|
132
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
133
|
+
src: groupinfo === null || groupinfo === void 0 ? void 0 : groupinfo.headimgurl,
|
|
134
|
+
className: "w-12 h-12 rounded-[9px]"
|
|
135
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "flex flex-col gap-[2px] ellipsis"
|
|
137
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
138
|
+
className: "text-[var(--im-main-fontColor)] text-base font-semibold font-['Inter'] leading-normal"
|
|
139
|
+
}, (_groupinfo$name = groupinfo === null || groupinfo === void 0 ? void 0 : groupinfo.name) !== null && _groupinfo$name !== void 0 ? _groupinfo$name : '-'), /*#__PURE__*/React.createElement("span", {
|
|
140
|
+
className: "text-[var(--im-third-fontColor)] text-sm font-normal font-['Inter'] leading-snug"
|
|
141
|
+
}, (_groupinfo$members = groupinfo === null || groupinfo === void 0 ? void 0 : groupinfo.members) !== null && _groupinfo$members !== void 0 ? _groupinfo$members : 0, " members"))), /*#__PURE__*/React.createElement("div", {
|
|
142
|
+
className: "flex flex-shrink-0 items-center justify-center w-14 h-6 text-center bg-gradient-to-r from-[#9cff1e] via-[#9cff1e] to-[#9cff1e] rounded"
|
|
143
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
144
|
+
className: " text-[var(--im-six-fontColor)] text-xs font-medium leading-normal"
|
|
145
|
+
}, "Share")));
|
|
146
|
+
})));
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export { GroupShareView as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
|
|
2
|
+
|
|
3
|
+
export { img as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.41421 15.89L16.5563 5.74786L15.1421 4.33365L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6474L14.435 2.21233C14.8256 1.8218 15.4587 1.8218 15.8492 2.21233L18.6777 5.04075C19.0682 5.43128 19.0682 6.06444 18.6777 6.45497L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
|
|
2
|
+
|
|
3
|
+
export { img as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.45455 18L2 22V3C2 2.44772 2.44772 2 3 2H21C21.5523 2 22 2.44772 22 3V17C22 17.5523 21.5523 18 21 18H6.45455ZM5.76282 16H20V4H4V17.3851L5.76282 16ZM11 9H13V11H11V9ZM7 9H9V11H7V9ZM15 9H17V11H15V9Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
|
|
2
|
+
|
|
3
|
+
export { img as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 16.1634C10.6309 16.0558 11.2963 15.9998 12 15.9998V19.5857C12 20.4766 13.0771 20.9228 13.7071 20.2928L21.2929 12.707C21.6834 12.3165 21.6834 11.6833 21.2929 11.2928L13.7071 3.70701C13.0771 3.07704 12 3.52321 12 4.41412V7.99984C5.92487 7.99984 2 12.9247 2 18.9998C2 19.1334 2.00238 19.2663 2.0071 19.3987C2.03783 20.261 3.10557 20.4916 3.67853 19.8464C5.37683 17.9341 7.39449 16.6078 10 16.1634ZM14 6.82833V8.99984C14 9.55213 13.5523 9.99984 13 9.99984H12C8.04219 9.99984 5.10357 12.6421 4.2521 16.5726C6.33295 14.969 8.85527 13.9998 12 13.9998H13C13.5523 13.9998 14 14.4476 14 14.9998V17.1715L19.1716 11.9999L14 6.82833Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
|
|
2
|
+
|
|
3
|
+
export { img as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var img = "data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.02273 10C2.02273 5.59427 5.59427 2.02273 10 2.02273C12.7648 2.02273 15.2025 3.42934 16.6342 5.56818H15.3182V7.34091H19.75V2.90909H17.9773V4.39303C16.2134 1.88804 13.2987 0.25 10 0.25C4.61522 0.25 0.25 4.61522 0.25 10H2.02273Z' fill='white' fill-opacity='0.4'/%3e%3cpath d='M9.99995 19.75C15.3847 19.75 19.75 15.3848 19.75 10H17.9772C17.9772 14.4057 14.4057 17.9773 9.99995 17.9773C7.23516 17.9773 4.79749 16.5707 3.36579 14.4318H4.68182V12.6591H0.25V17.0909H2.02273V15.607C3.7866 18.112 6.70132 19.75 9.99995 19.75Z' fill='white' fill-opacity='0.4'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.30758 5.23249L6.40385 13.4225C6.37904 13.5052 6.40799 13.5466 6.49072 13.5466H8.11631C8.19904 13.5466 8.25281 13.5052 8.27763 13.4225L8.74917 11.9458H11.7025L12.1865 13.4225C12.2113 13.5052 12.2651 13.5466 12.3478 13.5466H13.961C14.0437 13.5466 14.0727 13.5052 14.0479 13.4225L11.1938 5.23249C11.1689 5.14976 11.1152 5.1084 11.0324 5.1084H9.4689C9.38617 5.1084 9.3324 5.14976 9.30758 5.23249ZM11.2062 10.3947H9.25795L10.2134 7.44131H10.2507L11.2062 10.3947Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
|
|
2
|
+
|
|
3
|
+
export { img as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./style/index.scss";
|
|
3
|
+
export interface IGroupDetail {
|
|
4
|
+
userId: string;
|
|
5
|
+
onClickClose?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface APIGroupDetailInfo {
|
|
8
|
+
ingroupstatus: number;
|
|
9
|
+
applyswitch: number;
|
|
10
|
+
groupownername: string;
|
|
11
|
+
description: string;
|
|
12
|
+
groupcode: number;
|
|
13
|
+
historyswitch: number;
|
|
14
|
+
members: number;
|
|
15
|
+
ismute: number;
|
|
16
|
+
name?: string;
|
|
17
|
+
headimgurl?: string;
|
|
18
|
+
sendbirdid: string;
|
|
19
|
+
isautomatictranslate: number;
|
|
20
|
+
roletype: number;
|
|
21
|
+
groupownernickname?: string;
|
|
22
|
+
id: string;
|
|
23
|
+
issynchronize: number;
|
|
24
|
+
}
|
|
25
|
+
declare const GroupDetail: React.FC<IGroupDetail>;
|
|
26
|
+
export default GroupDetail;
|