@messenger-box/platform-browser 10.0.3-alpha.7 → 10.0.3-alpha.72
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/CHANGELOG.md +96 -0
- package/lib/components/InboxMessage/InboxDetails/index.d.ts +6 -1
- package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
- package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
- package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
- package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Messages/index.js +42 -81
- package/lib/components/InboxMessage/Messages/index.js.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.js +53 -74
- package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
- package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
- package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Popover/index.js +8 -35
- package/lib/components/InboxMessage/Popover/index.js.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
- package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
- package/lib/components/InboxMessage/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/index.js +38 -70
- package/lib/components/InboxMessage/index.js.map +1 -1
- package/lib/components/dashboard/menu_header.d.ts.map +1 -1
- package/lib/components/dashboard/menu_header.js +38 -24
- package/lib/components/dashboard/menu_header.js.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
- package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.js +59 -39
- package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
- package/lib/components/dashboard/modals.d.ts +18 -6
- package/lib/components/dashboard/modals.d.ts.map +1 -1
- package/lib/components/dashboard/modals.js +60 -101
- package/lib/components/dashboard/modals.js.map +1 -1
- package/lib/components/messenger/avatar/index.d.ts.map +1 -1
- package/lib/components/messenger/index.d.ts.map +1 -1
- package/lib/components/messenger/index.js +45 -82
- package/lib/components/messenger/index.js.map +1 -1
- package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
- package/lib/components/messenger/messagesList/index.js +174 -454
- package/lib/components/messenger/messagesList/index.js.map +1 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
- package/lib/components/messenger/more_action/index.d.ts.map +1 -1
- package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
- package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
- package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
- package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
- package/lib/components/messenger/types/message.d.ts +11 -11
- package/lib/components/messenger/types/message.d.ts.map +1 -1
- package/lib/components/post/create_post/create_post.d.ts +10 -1
- package/lib/components/post/create_post/create_post.d.ts.map +1 -1
- package/lib/components/post/index.d.ts +5 -3
- package/lib/components/post/index.d.ts.map +1 -1
- package/lib/components/post/index.js +63 -97
- package/lib/components/post/index.js.map +1 -1
- package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +1 -1
- package/lib/compute.js.map +1 -1
- package/lib/containers/Dashboard.d.ts.map +1 -1
- package/lib/containers/Dashboard.js +110 -124
- package/lib/containers/Dashboard.js.map +1 -1
- package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
- package/lib/containers/DashboardWithLoader.js +10 -3
- package/lib/containers/DashboardWithLoader.js.map +1 -1
- package/package.json +5 -5
- package/src/components/InboxMessage/InboxDetails/index.tsx +13 -15
- package/src/components/InboxMessage/InboxSidebar/index.tsx +23 -33
- package/src/components/InboxMessage/Messages/index.tsx +58 -97
- package/src/components/InboxMessage/MessagesList/index.tsx +71 -82
- package/src/components/InboxMessage/Popover/index.tsx +14 -38
- package/src/components/InboxMessage/UserModalContent/index.tsx +41 -44
- package/src/components/InboxMessage/index.tsx +53 -68
- package/src/components/dashboard/menu_header.tsx +52 -45
- package/src/components/dashboard/modals/direct_modal.tsx +73 -40
- package/src/components/dashboard/modals.tsx +114 -105
- package/src/components/messenger/avatar/index.tsx +27 -13
- package/src/components/messenger/index.tsx +126 -161
- package/src/components/messenger/messagesList/index.tsx +288 -572
- package/src/components/messenger/messagesList/messageBox.tsx +45 -34
- package/src/components/messenger/more_action/index.tsx +16 -10
- package/src/components/messenger/postMessage/postMessage.tsx +28 -16
- package/src/components/messenger/sidebarThreadList/index.tsx +52 -178
- package/src/components/messenger/threadSidebar/index.tsx +88 -75
- package/src/components/messenger/types/message.ts +12 -11
- package/src/components/post/channel_view/channel_view.tsx +2 -2
- package/src/components/post/create_post/create_post.tsx +104 -195
- package/src/components/post/index.tsx +78 -99
- package/src/components/post/post_header/post_header_custom_status.tsx +7 -6
- package/src/components/post/post_header/style.ts +51 -51
- package/src/compute.ts +8 -8
- package/src/containers/Dashboard.tsx +170 -213
- package/src/containers/DashboardWithLoader.tsx +13 -5
- package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
- package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
- package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
- package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
- package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.js +0 -85
- package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
- package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
- package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/Popover/style.js +0 -27
- package/lib/components/InboxMessage/Popover/style.js.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
- package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
- package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
- package/lib/components/InboxMessage/style.js +0 -189
- package/lib/components/InboxMessage/style.js.map +0 -1
- package/lib/components/messenger/avatar/style.d.ts +0 -2
- package/lib/components/messenger/avatar/style.d.ts.map +0 -1
- package/lib/components/messenger/messagesList/style.js +0 -446
- package/lib/components/messenger/messagesList/style.js.map +0 -1
- package/lib/components/messenger/more_action/index.js +0 -48
- package/lib/components/messenger/more_action/index.js.map +0 -1
- package/lib/components/messenger/more_action/style.d.ts +0 -2
- package/lib/components/messenger/more_action/style.d.ts.map +0 -1
- package/lib/components/messenger/more_action/style.js +0 -45
- package/lib/components/messenger/more_action/style.js.map +0 -1
- package/lib/components/post/style.js +0 -20101
- package/lib/components/post/style.js.map +0 -1
- package/lib/style.js +0 -400
- package/lib/style.js.map +0 -1
- package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
- package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
- package/src/components/InboxMessage/Messages/styles.ts +0 -85
- package/src/components/InboxMessage/Popover/style.ts +0 -27
- package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
- package/src/components/messenger/avatar/style.ts +0 -86
- package/src/components/messenger/more_action/style.ts +0 -45
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
// import { AiOutlineSearch, AiOutlineStar, AiOutlineQuestionCircle } from 'react-icons/ai';
|
|
3
|
+
import { AiOutlineSearch } from '@react-icons/all-files/ai/AiOutlineSearch';
|
|
4
|
+
import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
|
|
5
|
+
import { AiOutlineQuestionCircle } from '@react-icons/all-files/ai/AiOutlineQuestionCircle';
|
|
6
|
+
import { RiPushpinLine } from '@react-icons/all-files/ri/RiPushpinLine';
|
|
7
|
+
import { BsAt } from '@react-icons/all-files/bs/BsAt';
|
|
8
|
+
import { BsChevronDown } from '@react-icons/all-files/bs/BsChevronDown';
|
|
9
|
+
import { IoBookmarkOutline } from '@react-icons/all-files/io5/IoBookmarkOutline';
|
|
10
|
+
import { useDeleteChannelMutation } from 'common/graphql';
|
|
10
11
|
import { useNavigate, useLocation } from '@remix-run/react';
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
interface PostViewPageProps {
|
|
14
|
+
channel: any;
|
|
15
|
+
currentUsrId: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const PostViewPage: React.FC<PostViewPageProps> = ({ channel, currentUsrId }) => {
|
|
13
19
|
const navigate = useNavigate();
|
|
14
20
|
const location = useLocation();
|
|
15
|
-
const [deleteChannel
|
|
16
|
-
// update: (cache, mutationResult) => {
|
|
17
|
-
// const normalizedId = cache.identify({ ChannelId, __typename: 'Channel' });
|
|
18
|
-
// cache.evict({ id: normalizedId });
|
|
19
|
-
// cache.gc();
|
|
20
|
-
// cache.modify({
|
|
21
|
-
// fields: {
|
|
22
|
-
// channels(existingChannels, {toReference}) {
|
|
23
|
-
// return [...existingChannels.filter(i => i !== mutationResult.data.deleteChannel)]
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
// })
|
|
27
|
-
// },
|
|
28
|
-
});
|
|
21
|
+
const [deleteChannel] = useDeleteChannelMutation();
|
|
29
22
|
|
|
30
|
-
const
|
|
23
|
+
const handleDelete = async () => {
|
|
31
24
|
await deleteChannel({
|
|
32
25
|
variables: {
|
|
33
26
|
ChannelId: channel.id,
|
|
@@ -45,87 +38,73 @@ export const PostViewPage = ({ channel, currentUsrId }) => {
|
|
|
45
38
|
});
|
|
46
39
|
};
|
|
47
40
|
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
const menuItems = [
|
|
42
|
+
{
|
|
43
|
+
key: 'search',
|
|
44
|
+
icon: <AiOutlineSearch className="h-5 w-5" />,
|
|
45
|
+
label: 'Search',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: 'pin',
|
|
49
|
+
icon: <RiPushpinLine className="h-5 w-5" />,
|
|
50
|
+
label: 'Pin to channel',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: 'star',
|
|
54
|
+
icon: <AiOutlineStar className="h-5 w-5" />,
|
|
55
|
+
label: 'Star channel',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: 'members',
|
|
59
|
+
icon: <BsAt className="h-5 w-5" />,
|
|
60
|
+
label: 'View members',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: 'delete',
|
|
64
|
+
icon: <IoBookmarkOutline className="h-5 w-5" />,
|
|
65
|
+
label: 'Delete channel',
|
|
66
|
+
onClick: handleDelete,
|
|
67
|
+
},
|
|
68
|
+
];
|
|
58
69
|
|
|
59
70
|
return (
|
|
60
|
-
<div>
|
|
61
|
-
|
|
62
|
-
<div className=
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
{
|
|
87
|
-
<a> Edit Description</a>
|
|
88
|
-
</p>
|
|
89
|
-
</div>
|
|
90
|
-
) : (
|
|
91
|
-
<div className="top-left">
|
|
92
|
-
<div className="text-nav">
|
|
93
|
-
<button style={{ border: '0px', background: 'white' }}>
|
|
94
|
-
<AiOutlineStar className="icon ml-0" />
|
|
95
|
-
</button>
|
|
96
|
-
<h5>surveybot</h5>
|
|
97
|
-
<span>BOT</span>
|
|
98
|
-
</div>
|
|
99
|
-
<p>
|
|
100
|
-
Surveybot collects user feedback to improve Mattermost.<a href="#">Learn more.</a>
|
|
101
|
-
</p>
|
|
102
|
-
</div>
|
|
103
|
-
)}
|
|
104
|
-
<div className="top-right">
|
|
105
|
-
<button style={{ border: '0px', background: 'white' }}>
|
|
106
|
-
<RiPushpinLine className="icon" />
|
|
107
|
-
</button>
|
|
108
|
-
<div className="searchbar">
|
|
109
|
-
<AiOutlineSearch className="icon" />
|
|
110
|
-
<input type="search" name="text" placeholder="search" />
|
|
111
|
-
</div>
|
|
112
|
-
<div className="icons-nav">
|
|
113
|
-
<button style={{ border: '0px', background: 'white' }}>
|
|
114
|
-
<BsAt className="icon" />
|
|
115
|
-
</button>
|
|
116
|
-
<button style={{ border: '0px', background: 'white' }}>
|
|
117
|
-
<IoBookmarkOutline className="icon-m" color="gray" />
|
|
118
|
-
</button>
|
|
119
|
-
<button style={{ border: '0px', background: 'white' }}>
|
|
120
|
-
<AiOutlineQuestionCircle className="icon" />
|
|
71
|
+
<div className="flex flex-col h-full">
|
|
72
|
+
<div className="flex items-center justify-between px-4 py-2 border-b border-gray-200">
|
|
73
|
+
<div className="flex items-center space-x-4">
|
|
74
|
+
<h1 className="text-xl font-semibold text-gray-900">{channel?.name || 'Channel Name'}</h1>
|
|
75
|
+
<div className="flex items-center space-x-2 text-gray-500">
|
|
76
|
+
<BsAt className="h-4 w-4" />
|
|
77
|
+
<span>{channel?.members_count || 0} members</span>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div className="flex items-center space-x-2">
|
|
81
|
+
<div className="relative">
|
|
82
|
+
<button
|
|
83
|
+
className="flex items-center space-x-1 px-3 py-2 text-gray-700 hover:bg-gray-100 rounded-md"
|
|
84
|
+
onClick={() => {}}
|
|
85
|
+
>
|
|
86
|
+
<BsChevronDown className="h-4 w-4" />
|
|
87
|
+
<span>More</span>
|
|
88
|
+
</button>
|
|
89
|
+
<div className="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg hidden">
|
|
90
|
+
{menuItems.map((item) => (
|
|
91
|
+
<button
|
|
92
|
+
key={item.key}
|
|
93
|
+
onClick={item.onClick}
|
|
94
|
+
className="flex items-center space-x-2 w-full px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
|
|
95
|
+
>
|
|
96
|
+
{item.icon}
|
|
97
|
+
<span>{item.label}</span>
|
|
121
98
|
</button>
|
|
122
|
-
|
|
99
|
+
))}
|
|
123
100
|
</div>
|
|
124
101
|
</div>
|
|
102
|
+
<button className="p-2 text-gray-400 hover:text-gray-600 rounded-full hover:bg-gray-100">
|
|
103
|
+
<AiOutlineQuestionCircle className="h-5 w-5" />
|
|
104
|
+
</button>
|
|
125
105
|
</div>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
)}
|
|
106
|
+
</div>
|
|
107
|
+
<div className="flex-1 overflow-y-auto p-4">{/* Channel content will go here */}</div>
|
|
129
108
|
</div>
|
|
130
109
|
);
|
|
131
110
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import EmojiIcon from '../../../widgets/icons/emoji_icon';
|
|
4
|
-
import { css } from '@emotion/css';
|
|
5
|
-
import { styleSheet } from './style';
|
|
6
4
|
|
|
7
5
|
export const PostHeaderCustomStatus = (props) => {
|
|
8
6
|
const { userId, isSystemMessage, isBot } = props;
|
|
@@ -37,10 +35,13 @@ export const PostHeaderCustomStatus = (props) => {
|
|
|
37
35
|
// dispatch(setStatusDropdown(true));
|
|
38
36
|
};
|
|
39
37
|
return (
|
|
40
|
-
<div className=
|
|
41
|
-
<button
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
<div className="p-2">
|
|
39
|
+
<button
|
|
40
|
+
onClick={updateStatus}
|
|
41
|
+
className="flex items-center gap-2 cursor-pointer border-none bg-transparent p-0"
|
|
42
|
+
>
|
|
43
|
+
<EmojiIcon className="w-5 h-5" />
|
|
44
|
+
<span className="text-sm">
|
|
44
45
|
<FormattedMessage id="post_header.update_status" defaultMessage="Update your status" />
|
|
45
46
|
</span>
|
|
46
47
|
</button>
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { inherits } from 'util';
|
|
1
|
+
// import { inherits } from 'util';
|
|
2
2
|
|
|
3
3
|
export const styleSheet = {
|
|
4
|
-
postHeaderStyle:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
4
|
+
postHeaderStyle: {
|
|
5
|
+
display: 'inherit',
|
|
6
|
+
'& .post__header-set-custom-status': {
|
|
7
|
+
// display: 'none',
|
|
8
|
+
},
|
|
9
|
+
'& .post.current--user.other--root .post__header-set-custom-status, .post.current--user.post--root .post__header-set-custom-status, .post.current--user.post--comment .post__header-set-custom-status':
|
|
10
|
+
{
|
|
11
|
+
display: 'block',
|
|
12
|
+
padding: '0 6px',
|
|
13
|
+
marginLeft: '8px',
|
|
14
|
+
background: 'rgba(0, 0, 0, )',
|
|
15
|
+
borderRadius: '4px',
|
|
16
|
+
},
|
|
17
|
+
'& .post.current--user.other--root .post__header-set-custom-status-icon > svg, .post.current--user.post--root .post__header-set-custom-status-icon > svg, .post.current--user.post--comment .post__header-set-custom-status-icon > svg':
|
|
18
|
+
{
|
|
19
|
+
width: '12px',
|
|
20
|
+
height: '12px',
|
|
21
|
+
marginRight: '4px',
|
|
22
|
+
marginBottom: '2px',
|
|
23
|
+
background: 'inherit',
|
|
24
|
+
fill: 'rgba(0, 1, 0, )',
|
|
25
|
+
verticalAlign: 'middle',
|
|
26
|
+
},
|
|
27
|
+
'& .post.current--user.other--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--comment .post__header-set-custom-status-icon > svg:hover':
|
|
28
|
+
{
|
|
29
|
+
fill: 'rgba(0, 1, 0, )',
|
|
30
|
+
},
|
|
31
|
+
'& .post.current--user.other--root .post__header-set-custom-status-text, .post.current--user.post--root .post__header-set-custom-status-text, .post.current--user.post--comment .post__header-set-custom-status-text':
|
|
32
|
+
{
|
|
33
|
+
color: 'rgba(0, 1, 0, )',
|
|
34
|
+
fontSize: '12px',
|
|
35
|
+
fontWeight: 'normal',
|
|
36
|
+
},
|
|
37
|
+
'& .post.current--user.other--root .post__header-set-custom-status-text:hover, .post.current--user.post--root .post__header-set-custom-status-text:hover, .post.current--user.post--comment .post__header-set-custom-status-text:hover':
|
|
38
|
+
{
|
|
39
|
+
color: 'rgba(0, 1, 0, )',
|
|
40
|
+
},
|
|
41
|
+
'& .post.current--user.other--root .post__header-set-custom-status:active, .post.current--user.post--root .post__header-set-custom-status:active, .post.current--user.post--comment .post__header-set-custom-status:active':
|
|
42
|
+
{
|
|
43
|
+
background: 'rgba(0, 0, 0, )',
|
|
44
|
+
},
|
|
45
|
+
'& .post.current--user.other--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--comment .post__header-set-custom-status:active-icon > svg':
|
|
46
|
+
{
|
|
47
|
+
// fill: var(--button-bg);
|
|
48
|
+
},
|
|
49
|
+
'& .post.current--user.other--root .post__header-set-custom-status:active-text, .post.current--user.post--root .post__header-set-custom-status:active-text, .post.current--user.post--comment .post__header-set-custom-status:active-text':
|
|
50
|
+
{
|
|
51
|
+
// color: var(--button-bg);
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
54
|
} as any;
|
package/src/compute.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { ORG_STD_ROUTES } from '@adminide-stack/core/lib/constants/urls.js';
|
|
|
4
4
|
import { getFilteredMenus, getFilteredRoutes } from './utils';
|
|
5
5
|
const Dashboard = React.lazy(() => import('./containers/Dashboard'));
|
|
6
6
|
const Messenger = React.lazy(() => import('./containers/Messenger'));
|
|
7
|
-
const Inbox = React.lazy(() => import('./containers/Inbox'))
|
|
8
|
-
const DirectChannelView = React.lazy(() => import('./components/channel_view/DirectChannelView'))
|
|
9
|
-
const PublicChannelView = React.lazy(() => import('./components/channel_view/PublicChannelView'))
|
|
7
|
+
const Inbox = React.lazy(() => import('./containers/Inbox'));
|
|
8
|
+
const DirectChannelView = React.lazy(() => import('./components/channel_view/DirectChannelView'));
|
|
9
|
+
const PublicChannelView = React.lazy(() => import('./components/channel_view/PublicChannelView'));
|
|
10
10
|
|
|
11
11
|
// export const DashboardProvider = () => {
|
|
12
12
|
// document.body.style.color = 'black'
|
|
@@ -26,7 +26,7 @@ export const messengerPageStore: any[] = [
|
|
|
26
26
|
key: 'dashboard',
|
|
27
27
|
component: () => import('./containers/DashboardWithLoader'),
|
|
28
28
|
tab: 'Messenger',
|
|
29
|
-
position: IMenuPosition.
|
|
29
|
+
position: IMenuPosition.Middle,
|
|
30
30
|
name: 'Messenger',
|
|
31
31
|
path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard`,
|
|
32
32
|
},
|
|
@@ -59,16 +59,16 @@ const filteredMenus = getFilteredMenus(messengerPageStore, selectedRoutesAndMenu
|
|
|
59
59
|
// get routes
|
|
60
60
|
const filteredRoutes = getFilteredRoutes(messengerPageStore, selectedRoutesAndMenus);
|
|
61
61
|
|
|
62
|
-
export {filteredRoutes, filteredMenus};
|
|
62
|
+
export { filteredRoutes, filteredMenus };
|
|
63
63
|
export const dashboardRoutes = [
|
|
64
64
|
{
|
|
65
65
|
path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard/message/:channelName`,
|
|
66
66
|
exact: true,
|
|
67
|
-
component: DirectChannelView
|
|
67
|
+
component: DirectChannelView,
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard/channel/:channelName`,
|
|
71
71
|
exact: true,
|
|
72
|
-
component: PublicChannelView
|
|
73
|
-
}
|
|
72
|
+
component: PublicChannelView,
|
|
73
|
+
},
|
|
74
74
|
];
|