@mohamed-karawia/library 0.1.21 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +26 -26
- package/dist/stories/Chat/Chat.js +24 -31
- package/dist/stories/Community/Community.js +54 -34
- package/dist/stories/Events/Event/Event.js +12 -4
- package/dist/stories/Events/EventsList/EventsList.js +14 -7
- package/dist/stories/Forms/AddPhoto/AddPhoto.js +8 -7
- package/dist/stories/Forms/CreateEvent/CreateEvent.js +115 -0
- package/dist/stories/Forms/CreateFolder/CreateFolder.js +87 -0
- package/dist/stories/Forms/CreateSong/CreateSong.js +98 -0
- package/dist/stories/Library/Folders/Folders.js +27 -17
- package/dist/stories/Library/Notes/Notes.js +29 -18
- package/dist/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.js +38 -0
- package/dist/stories/Modals/AddPhotoModal/AddPhotoModal.js +40 -0
- package/dist/stories/Modals/AddSongModal/AddSongModal.js +41 -0
- package/dist/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.js +41 -0
- package/dist/stories/Modals/AddVideoModal/AddVideoModal.js +39 -0
- package/dist/stories/Modals/ChatConfigModal/ChatContifgModal.js +93 -0
- package/dist/stories/Modals/CreateEventModal/CreateEventModal.js +42 -0
- package/dist/stories/Modals/CreateFolderModal/CreateFolderModal.js +36 -0
- package/dist/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.js +41 -0
- package/dist/stories/Modals/CreateNoteModal/CreateNoteModal.js +42 -0
- package/dist/stories/Modals/EventConfigModal/EventConfigModal.js +99 -0
- package/dist/stories/Modals/EventsConfigModal/EventsConfigModal.js +87 -0
- package/dist/stories/Modals/FoldersConfigModal/FoldersConfigModal.js +87 -0
- package/dist/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.js +87 -0
- package/dist/stories/Modals/NotesConfigModal/NotesConfigModal.js +87 -0
- package/dist/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.js +88 -0
- package/dist/stories/Modals/ShowImgModal/ShowImgModal.js +62 -0
- package/dist/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.js +88 -0
- package/dist/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.js +89 -0
- package/dist/stories/Modals/VideoConfigModal/VideoConfigModal.js +99 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +8 -44
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +57 -37
- package/dist/stories/Pages/Chat/Chat.js +1 -1
- package/dist/stories/Pages/Events/Event/Event.js +1 -1
- package/dist/stories/Pages/Events/Events/Events.js +1 -1
- package/dist/stories/Pages/Library/Folders/Library.js +2 -2
- package/dist/stories/Pages/Library/Notes/Notes.js +2 -2
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +2 -2
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -2
- package/dist/stories/Pages/Photos/Album/Album.js +2 -2
- package/dist/stories/Pages/Photos/Albums/Albums.js +2 -2
- package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -2
- package/dist/stories/Pages/Video/VideoAlbum/Video.js +2 -2
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +26 -16
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +11 -4
- package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +7 -5
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +7 -5
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +7 -5
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +7 -5
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +8 -7
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +7 -5
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +7 -5
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +7 -5
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +7 -5
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +7 -5
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +7 -5
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +7 -5
- package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
- package/dist/stories/Reusable Components/Community/Community.js +12 -34
- package/dist/stories/Reusable Components/Sections/Sections.js +67 -0
- package/dist/stories/Spaces/Chat/Chat.js +103 -0
- package/dist/stories/Spaces/EventsList/EventsList.js +140 -0
- package/dist/stories/Spaces/NotesList/NotesList.js +144 -0
- package/dist/stories/Spaces/ViewDetailedPhoto/ViewDetailedPhoto.js +24 -0
- package/dist/stories/Spaces/ViewEvent/Event.js +146 -0
- package/dist/stories/Spaces/ViewFolders/ViewFolders.js +136 -0
- package/dist/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.js +136 -0
- package/dist/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.js +130 -0
- package/dist/stories/Spaces/ViewNote/ViewNote.js +27 -0
- package/dist/stories/Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.js +231 -0
- package/dist/stories/Spaces/ViewPhotoAlbums/ViewPhotoAlbums.js +131 -0
- package/dist/stories/Spaces/ViewVideo/ViewVideo.js +169 -0
- package/dist/stories/Spaces/ViewVideoAlbumList/ViewVideoAlbumList.js +157 -0
- package/dist/stories/Spaces/ViewVideoAlbums/ViewVideoAlbums.js +164 -0
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +11 -4
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +17 -6
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +24 -25
- package/dist/stories/Widgets/VideoPlayer/VideoPlayer.js +235 -0
- package/dist/stories/helpers/util.js +24 -24
- package/dist/stories/store/actions/actions.js +16 -0
- package/dist/stories/store/communities.js +27 -29
- package/dist/stories/store/community.js +941 -0
- package/dist/stories/store/store.js +9 -4
- package/package.json +1 -1
- package/src/index.js +16 -16
- package/src/stories/Community/Community.jsx +31 -32
- package/src/stories/Forms/AddPhoto/AddPhoto.jsx +72 -72
- package/src/stories/{Events → Forms}/CreateEvent/CreateEvent.jsx +5 -1
- package/src/stories/{Library → Forms}/CreateFolder/CreateFolder.jsx +0 -0
- package/src/stories/Forms/{AddSong/AddSong.jsx → CreateSong/CreateSong.jsx} +0 -0
- package/src/stories/Modals/AddPhotoAlbum/AddPhotoAlbum.jsx +27 -0
- package/src/stories/Modals/AddPhotoModal/AddPhotoModal.jsx +29 -0
- package/src/stories/Modals/AddSongModal/AddSongModal.jsx +37 -0
- package/src/stories/Modals/AddVideoAlbumModal/AddVideoAlbumModal.jsx +38 -0
- package/src/stories/Modals/AddVideoModal/AddVideoModal.jsx +35 -0
- package/src/stories/Modals/ChatConfigModal/ChatContifgModal.jsx +77 -0
- package/src/stories/Modals/CreateEventModal/CreateEventModal.jsx +30 -0
- package/src/stories/Modals/CreateFolderModal/CreateFolderModal.jsx +39 -0
- package/src/stories/Modals/CreateMusicAlbumModal/CreateMusicAlbumModal.jsx +37 -0
- package/src/stories/Modals/CreateNoteModal/CreateNoteModal.jsx +43 -0
- package/src/stories/Modals/EventConfigModal/EventConfigModal.jsx +74 -0
- package/src/stories/Modals/EventsConfigModal/EventsConfigModal.jsx +67 -0
- package/src/stories/Modals/FoldersConfigModal/FoldersConfigModal.jsx +66 -0
- package/src/stories/Modals/MusicAlbumConfigModal/MusicAlbumConfigModal.jsx +69 -0
- package/src/stories/Modals/MusicAlbumsConfigModal/MusicAlbumsConfigModal.jsx +73 -0
- package/src/stories/Modals/NotesConfigModal/NotesConfigModal.jsx +65 -0
- package/src/stories/Modals/PhotoAlbumConfigModal/PhotoAlbumConfigModal.jsx +71 -0
- package/src/stories/Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal.jsx +69 -0
- package/src/stories/Modals/ShowImgModal/ShowImgModal.jsx +87 -0
- package/src/stories/Modals/VideoAlbumConfigModal/VideoAlbumConfigModal.jsx +67 -0
- package/src/stories/Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal.jsx +67 -0
- package/src/stories/Modals/VideoConfigModal/VideoConfigModal.jsx +78 -0
- package/src/stories/Pages/Chat/Chat.jsx +1 -1
- package/src/stories/Pages/Events/Event/Event.jsx +1 -1
- package/src/stories/Pages/Events/Events/Events.jsx +1 -1
- package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
- package/src/stories/Pages/Library/Notes/Notes.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +1 -1
- package/src/stories/Pages/Photos/Album/Album.jsx +1 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +1 -1
- package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +1 -1
- package/src/stories/Pages/Video/VideoAlbum/Video.jsx +1 -1
- package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +106 -104
- package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +7 -5
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +8 -6
- package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +6 -4
- package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +13 -11
- package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +36 -34
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +18 -16
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +7 -5
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +8 -6
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +10 -8
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +7 -5
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +7 -5
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +7 -5
- package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
- package/src/stories/Reusable Components/Community/Community.jsx +10 -33
- package/src/stories/{Sections/Sections.jsx → Reusable Components/Sections/Sections.jsx } +1 -1
- package/src/stories/Spaces/Chat/Chat.jsx +77 -0
- package/src/stories/Spaces/EventsList/EventsList.jsx +118 -0
- package/src/stories/Spaces/NotesList/NotesList.jsx +125 -0
- package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
- package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +17 -73
- package/src/stories/Spaces/ViewFolders/ViewFolders.jsx +122 -0
- package/src/stories/Spaces/ViewMusicAlbumList/ViewMusicAlbumList.jsx +118 -0
- package/src/stories/Spaces/ViewMusicAlbums/ViewMusicAlbums.jsx +108 -0
- package/src/stories/{Library → Spaces}/ViewNote/ViewNote.jsx +0 -0
- package/src/stories/{Photo Album/ViewAlbum/ViewAlbum.jsx → Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList.jsx} +48 -134
- package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +22 -54
- package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +21 -47
- package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +31 -78
- package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +20 -51
- package/src/stories/{VideoAlbum → Widgets}/VideoPlayer/VideoPlayer.jsx +0 -0
- package/src/stories/helpers/util.js +13 -13
- package/src/stories/store/actions/actions.js +7 -0
- package/src/stories/store/{communities.js → community.js} +27 -29
- package/src/stories/store/store.js +3 -4
- package/src/stories/Chat/Chat.jsx +0 -148
- package/src/stories/Events/EventsList/EventsList.jsx +0 -180
- package/src/stories/Library/Folders/Folders.jsx +0 -187
- package/src/stories/Library/Notes/Notes.jsx +0 -161
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -216
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -152
@@ -3,15 +3,8 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
4
4
|
|
5
5
|
import Gallery from '../../Reusable Components/Gallery/Gallery';
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
9
|
-
import Sections from '../../Sections/Sections'
|
10
|
-
import VideoAlbumPreview from '../../PreviewComponents/VideoAlbumPreview/VideoAlbumPreview';
|
11
|
-
import Community from '../../Reusable Components/Community/Community';
|
12
|
-
|
13
|
-
|
14
|
-
|
6
|
+
import VideoAlbumConfigModal from '../../Modals/VideoAlbumConfigModal/VideoAlbumConfigModal';
|
7
|
+
import AddVideoModal from '../../Modals/AddVideoModal/AddVideoModal';
|
15
8
|
import { AiFillPlayCircle, AiFillDelete, AiOutlineFileAdd } from "react-icons/ai";
|
16
9
|
import { BsGear } from "react-icons/bs";
|
17
10
|
|
@@ -31,38 +24,10 @@ const ViewAlbum = ({
|
|
31
24
|
cardTitleColor,
|
32
25
|
cardTitleFontSize,
|
33
26
|
descColor,
|
27
|
+
community,
|
34
28
|
...props }) => {
|
35
29
|
const [showModal, setShowModal] = useState(false);
|
36
30
|
const [showConfigModal, setShowConfigModal] = useState(false);
|
37
|
-
const [centerContext, setCenterContext] = useState(<ViewAlbum album={album}/>)
|
38
|
-
|
39
|
-
const formChanged = (values) => {
|
40
|
-
console.log('context changed')
|
41
|
-
setCenterContext(<ViewAlbum album={album} {...values} />)
|
42
|
-
}
|
43
|
-
|
44
|
-
let tabs = [
|
45
|
-
{
|
46
|
-
title: 'New', id: 'preview'
|
47
|
-
},
|
48
|
-
{
|
49
|
-
title: 'Context', id: 'community'
|
50
|
-
}
|
51
|
-
]
|
52
|
-
|
53
|
-
const sections = [
|
54
|
-
{
|
55
|
-
title: 'Styles',
|
56
|
-
data: [
|
57
|
-
{
|
58
|
-
title: 'Styling', component: (<Tabs
|
59
|
-
title="Video Album Config"
|
60
|
-
tabs={tabs}
|
61
|
-
/>)
|
62
|
-
}
|
63
|
-
]
|
64
|
-
}
|
65
|
-
]
|
66
31
|
|
67
32
|
const cardStyles = {
|
68
33
|
darkOnHover: true,
|
@@ -85,15 +50,17 @@ const ViewAlbum = ({
|
|
85
50
|
}
|
86
51
|
|
87
52
|
const onHeaderIconClicked = (action) => {
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
53
|
+
if (!props.preview) {
|
54
|
+
switch (action) {
|
55
|
+
case 'add':
|
56
|
+
setShowModal(true)
|
57
|
+
break;
|
58
|
+
case 'config':
|
59
|
+
setShowConfigModal(true)
|
60
|
+
break;
|
61
|
+
default:
|
62
|
+
break;
|
63
|
+
}
|
97
64
|
}
|
98
65
|
}
|
99
66
|
|
@@ -107,10 +74,15 @@ const ViewAlbum = ({
|
|
107
74
|
props.onAddVideo(album)
|
108
75
|
}
|
109
76
|
|
110
|
-
const
|
77
|
+
const closeModal = () => {
|
111
78
|
setShowModal(false)
|
112
79
|
}
|
113
80
|
|
81
|
+
const cancelConfig = () => {
|
82
|
+
setShowConfigModal(false);
|
83
|
+
localStorage.removeItem('formStyles')
|
84
|
+
}
|
85
|
+
|
114
86
|
return (
|
115
87
|
<Container>
|
116
88
|
<Gallery
|
@@ -125,36 +97,17 @@ const ViewAlbum = ({
|
|
125
97
|
customCardStyles={cardStyles}
|
126
98
|
{...props}
|
127
99
|
/>
|
128
|
-
<
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
modalIsOpen={showConfigModal}
|
140
|
-
closeModal={() => setShowConfigModal(false)}
|
141
|
-
exitModalButton={(e) => (
|
142
|
-
<div></div>
|
143
|
-
)}>
|
144
|
-
<Tabs
|
145
|
-
title="Video Album Config"
|
146
|
-
tabs={tabs}
|
147
|
-
id='styling'
|
148
|
-
>
|
149
|
-
<VideoAlbumPreview
|
150
|
-
componentProps={{ album, preview: true }}
|
151
|
-
formChanged={formChanged}
|
152
|
-
id="preview" />
|
153
|
-
<Community
|
154
|
-
center={centerContext}
|
155
|
-
id="community" />
|
156
|
-
</Tabs>
|
157
|
-
</Modal>
|
100
|
+
<AddVideoModal
|
101
|
+
showModal={showModal}
|
102
|
+
onAddVideo={onAddVideo}
|
103
|
+
closeModal={closeModal}
|
104
|
+
/>
|
105
|
+
<VideoAlbumConfigModal
|
106
|
+
showConfigModal={showConfigModal}
|
107
|
+
cancelConfig={cancelConfig}
|
108
|
+
album={album}
|
109
|
+
community={community}
|
110
|
+
/>
|
158
111
|
</Container>
|
159
112
|
)
|
160
113
|
}
|
@@ -3,12 +3,8 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
4
4
|
|
5
5
|
import Gallery from '../../Reusable Components/Gallery/Gallery';
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
9
|
-
import Sections from '../../Sections/Sections'
|
10
|
-
import VideoAlbumsPreview from '../../PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview';
|
11
|
-
import Community from '../../Reusable Components/Community/Community';
|
6
|
+
import AddVideoAlbumModal from '../../Modals/AddVideoAlbumModal/AddVideoAlbumModal';
|
7
|
+
import VideoAlbumsConfigModal from '../../Modals/VideoAlbumsConfigModal/VideoAlbumsConfigModal';
|
12
8
|
|
13
9
|
|
14
10
|
import { AiOutlineFileAdd, AiFillDelete } from "react-icons/ai";
|
@@ -30,23 +26,10 @@ const AlbumsGallery = ({
|
|
30
26
|
cardTitleFontSize,
|
31
27
|
countColor,
|
32
28
|
countFontSize,
|
29
|
+
community,
|
33
30
|
...props }) => {
|
34
31
|
const [showModal, setShowModal] = useState(false);
|
35
32
|
const [showConfigModal, setShowConfigModal] = useState(false);
|
36
|
-
const [centerContext, setCenterContext] = useState(<AlbumsGallery videoAlbums={videoAlbums} />)
|
37
|
-
|
38
|
-
const formChanged = (values) => {
|
39
|
-
setCenterContext(<AlbumsGallery videoAlbums={videoAlbums} {...values} />)
|
40
|
-
}
|
41
|
-
|
42
|
-
let tabs = [
|
43
|
-
{
|
44
|
-
title: 'New', id: 'preview'
|
45
|
-
},
|
46
|
-
{
|
47
|
-
title: 'Context', id: 'community'
|
48
|
-
}
|
49
|
-
]
|
50
33
|
|
51
34
|
|
52
35
|
const cardStyles = {
|
@@ -97,10 +80,15 @@ const AlbumsGallery = ({
|
|
97
80
|
props.onAddAlbum(album)
|
98
81
|
}
|
99
82
|
|
100
|
-
const
|
83
|
+
const closeModal = () => {
|
101
84
|
setShowModal(false)
|
102
85
|
}
|
103
86
|
|
87
|
+
const cancelConfig = () => {
|
88
|
+
setShowConfigModal(false);
|
89
|
+
localStorage.removeItem('formStyles')
|
90
|
+
}
|
91
|
+
|
104
92
|
return (
|
105
93
|
<Container>
|
106
94
|
<Gallery
|
@@ -119,36 +107,17 @@ const AlbumsGallery = ({
|
|
119
107
|
customCardStyles={cardStyles}
|
120
108
|
{...props}
|
121
109
|
/>
|
122
|
-
<
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
modalIsOpen={showConfigModal}
|
134
|
-
closeModal={() => setShowConfigModal(false)}
|
135
|
-
exitModalButton={(e) => (
|
136
|
-
<div></div>
|
137
|
-
)}>
|
138
|
-
<Tabs
|
139
|
-
title="Video Gallery Config"
|
140
|
-
tabs={tabs}
|
141
|
-
id='styling'
|
142
|
-
>
|
143
|
-
<VideoAlbumsPreview
|
144
|
-
componentProps={{ videoAlbums, preview: true }}
|
145
|
-
formChanged={formChanged}
|
146
|
-
id="preview" />
|
147
|
-
<Community
|
148
|
-
center={centerContext}
|
149
|
-
id="community" />
|
150
|
-
</Tabs>
|
151
|
-
</Modal>
|
110
|
+
<AddVideoAlbumModal
|
111
|
+
showModal={showModal}
|
112
|
+
onAddAlbum={onAddAlbum}
|
113
|
+
closeModal={closeModal}
|
114
|
+
/>
|
115
|
+
<VideoAlbumsConfigModal
|
116
|
+
videoAlbums={videoAlbums}
|
117
|
+
showConfigModal={showConfigModal}
|
118
|
+
cancelConfig={cancelConfig}
|
119
|
+
community={community}
|
120
|
+
/>
|
152
121
|
</Container >
|
153
122
|
)
|
154
123
|
}
|
File without changes
|
@@ -14,24 +14,24 @@ import CardStyle11 from '../Reusable Components/Cards/Card-style-11/CardStyle11'
|
|
14
14
|
import ReusableList from '../Reusable Components/ReusableList/ReusableList';
|
15
15
|
import MusicPlayerWidget from '../Widgets/MusicPlayerWidget/MusicPlayerWidget';
|
16
16
|
import LogoWidget from '../Widgets/LogoWidget/LogoWidget';
|
17
|
-
import VideoPlayer from '../
|
18
|
-
import Notes from '../
|
19
|
-
import Folders from '../
|
17
|
+
import VideoPlayer from '../Widgets/VideoPlayer/VideoPlayer';
|
18
|
+
import Notes from '../Spaces/NotesList/NotesList';
|
19
|
+
import Folders from '../Spaces/ViewFolders/ViewFolders';
|
20
20
|
import UsersWidget from '../Widgets/UsersWidget/UsersWidget';
|
21
21
|
import SpacesListWidget from '../Widgets/SpacesListWidget/SpacesListWidget';
|
22
22
|
// Preview Components
|
23
23
|
import Navbar from '../Navbar/Navbar';
|
24
|
-
import MusicAlbums from '../
|
25
|
-
import MusicAlbum from '../
|
26
|
-
import PhotoAlbums from '../
|
27
|
-
import PhotoAlbum from '../
|
24
|
+
import MusicAlbums from '../Spaces/ViewMusicAlbums/ViewMusicAlbums';
|
25
|
+
import MusicAlbum from '../Spaces/ViewMusicAlbumList/ViewMusicAlbumList';
|
26
|
+
import PhotoAlbums from '../Spaces/ViewPhotoAlbums/ViewPhotoAlbums'
|
27
|
+
import PhotoAlbum from '../Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList';
|
28
28
|
import MusicPlayer from '../Widgets/MusicPlayerWidget/MusicPlayerWidget';
|
29
|
-
import Chat from '../Chat/Chat';
|
30
|
-
import Events from '../
|
31
|
-
import Event from '../
|
32
|
-
import VideoSpace from '../
|
33
|
-
import VideoAlbums from '../
|
34
|
-
import VideoAlbum from '../
|
29
|
+
import Chat from '../Spaces/Chat/Chat';
|
30
|
+
import Events from '../Spaces/EventsList/EventsList';
|
31
|
+
import Event from '../Spaces/ViewEvent/Event';
|
32
|
+
import VideoSpace from '../Spaces/ViewVideo/ViewVideo';
|
33
|
+
import VideoAlbums from '../Spaces/ViewVideoAlbums/ViewVideoAlbums';
|
34
|
+
import VideoAlbum from '../Spaces/ViewVideoAlbumList/ViewVideoAlbumList';
|
35
35
|
|
36
36
|
export const stringSearch = (str, word) => {
|
37
37
|
str = str.toUpperCase();
|
@@ -64,37 +64,35 @@ export const community = {
|
|
64
64
|
}
|
65
65
|
],
|
66
66
|
styles: {
|
67
|
-
|
67
|
+
headerStyles: {
|
68
68
|
|
69
69
|
},
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
titleColor: "white"
|
75
|
-
},
|
76
|
-
customCardStyles: {
|
77
|
-
cardPadding: 6,
|
78
|
-
cardTitleFontSize: 15,
|
79
|
-
cardBackgroundColor: "white",
|
80
|
-
cardTitleColor: "#00ADC4",
|
81
|
-
cardBorderSize: 1,
|
82
|
-
cardBorderColor: "#00ADC4",
|
83
|
-
onHoverBackgroundColor: "#d3d3d3",
|
84
|
-
controlsStyles: {
|
85
|
-
showOnHover: true,
|
86
|
-
iconColor: "#00ADC4"
|
87
|
-
}
|
88
|
-
},
|
89
|
-
borderRadius: 10,
|
90
|
-
primaryColor: "#00ADC4",
|
91
|
-
iconsColor: "#00ADC4",
|
92
|
-
backgroundColor: "white",
|
93
|
-
discColor: "gray",
|
94
|
-
dateColor: "gray",
|
95
|
-
iconColor: "#00ADC4",
|
96
|
-
cardTitleFontSize: 15
|
70
|
+
sectionHeaderStyles: {
|
71
|
+
padding: 2,
|
72
|
+
headerBackground: "#00ADC4",
|
73
|
+
titleColor: "white"
|
97
74
|
},
|
75
|
+
customCardStyles: {
|
76
|
+
cardPadding: 6,
|
77
|
+
cardTitleFontSize: 15,
|
78
|
+
cardBackgroundColor: "white",
|
79
|
+
cardTitleColor: "#00ADC4",
|
80
|
+
cardBorderSize: 1,
|
81
|
+
cardBorderColor: "#00ADC4",
|
82
|
+
onHoverBackgroundColor: "#d3d3d3",
|
83
|
+
controlsStyles: {
|
84
|
+
showOnHover: true,
|
85
|
+
iconColor: "#00ADC4"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
borderRadius: 10,
|
89
|
+
primaryColor: "#00ADC4",
|
90
|
+
iconsColor: "#00ADC4",
|
91
|
+
backgroundColor: "white",
|
92
|
+
discColor: "gray",
|
93
|
+
dateColor: "gray",
|
94
|
+
iconColor: "#00ADC4",
|
95
|
+
cardTitleFontSize: 15
|
98
96
|
|
99
97
|
}
|
100
98
|
}
|
@@ -487,7 +485,7 @@ export const community = {
|
|
487
485
|
{ img: 'https://images.unsplash.com/photo-1574031493536-05e45f214ab6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8M3x8em9vfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60', title: 'Album 4', count: '24' },
|
488
486
|
{ img: 'https://images.unsplash.com/photo-1458832463097-ab73e7b4fc4f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTV8fHpvb3xlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60', title: 'Album 5', count: '24' },
|
489
487
|
{ img: 'https://images.unsplash.com/photo-1610655012457-9cbd66fe510b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTZ8fHpvb3xlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60', title: 'Album 6', count: '24' },
|
490
|
-
|
488
|
+
|
491
489
|
],
|
492
490
|
title: 'My Albums'
|
493
491
|
},
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { configureStore, createSlice } from '@reduxjs/toolkit';
|
2
|
-
import { community } from './
|
3
|
-
|
2
|
+
import { community } from './community';
|
4
3
|
|
4
|
+
import * as actions from './actions/actions.js'
|
5
5
|
|
6
6
|
const Community = createSlice({
|
7
7
|
name: 'community',
|
@@ -9,8 +9,7 @@ const Community = createSlice({
|
|
9
9
|
reducers: {
|
10
10
|
addEvent: (state, action) => {
|
11
11
|
state.spaces[1].spaceProps.events = [...state.spaces[1].spaceProps.events, action.payload]
|
12
|
-
//
|
13
|
-
// alert
|
12
|
+
// alert('tseteattet')
|
14
13
|
console.log(action)
|
15
14
|
},
|
16
15
|
deleteEvent: (state, action) => {
|
@@ -1,148 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import styled from 'styled-components';
|
4
|
-
|
5
|
-
|
6
|
-
import { BsGear } from "react-icons/bs";
|
7
|
-
import List from '../Reusable Components/ReusableList/ReusableList';
|
8
|
-
import RichTextInput from '../Common Inputs/RichTextInput/RichTextInput';
|
9
|
-
import ChatPreview from '../PreviewComponents/ChatPreview/ChatPreview';
|
10
|
-
import Modal from '../Reusable Components/ReactModal/ReactModal';
|
11
|
-
import Community from '../Reusable Components/Community/Community';
|
12
|
-
|
13
|
-
|
14
|
-
import Tabs from '../Reusable Components/Tabs/Tabs';
|
15
|
-
import Sections from '../Sections/Sections'
|
16
|
-
|
17
|
-
|
18
|
-
const listControls = [
|
19
|
-
{ icon: (<BsGear />), action: 'config', name: 'Config' },
|
20
|
-
]
|
21
|
-
|
22
|
-
const Chat = ({
|
23
|
-
data,
|
24
|
-
users,
|
25
|
-
title,
|
26
|
-
backgroundColor,
|
27
|
-
...props }) => {
|
28
|
-
|
29
|
-
const [showConfigModal, setShowConfigModal] = useState(false);
|
30
|
-
const [centerContext, setCenterContext] = useState(<Chat users={users} data={data}/>)
|
31
|
-
|
32
|
-
const formChanged = (values) => {
|
33
|
-
console.log('context changed')
|
34
|
-
setCenterContext(<Chat users={users} data={data} {...values} />)
|
35
|
-
}
|
36
|
-
|
37
|
-
let tabs = [
|
38
|
-
{
|
39
|
-
title: 'New', id: 'preview'
|
40
|
-
},
|
41
|
-
{
|
42
|
-
title: 'Context', id: 'community'
|
43
|
-
}
|
44
|
-
]
|
45
|
-
|
46
|
-
let sections = [
|
47
|
-
{
|
48
|
-
title: 'Styles',
|
49
|
-
data: [
|
50
|
-
{
|
51
|
-
title: 'Styling',
|
52
|
-
id: 'styling'
|
53
|
-
}
|
54
|
-
]
|
55
|
-
}
|
56
|
-
]
|
57
|
-
|
58
|
-
const onIconClicked = (action) => {
|
59
|
-
if (!props.preview) {
|
60
|
-
switch (action) {
|
61
|
-
case 'config':
|
62
|
-
setShowConfigModal(true)
|
63
|
-
break;
|
64
|
-
default:
|
65
|
-
break;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
return (
|
71
|
-
<Container
|
72
|
-
backgroundColor={backgroundColor}>
|
73
|
-
<List
|
74
|
-
listTitle={title || 'Chat'}
|
75
|
-
type="flat"
|
76
|
-
data={data}
|
77
|
-
cardStyle="card-style-8"
|
78
|
-
iconClicked={onIconClicked}
|
79
|
-
listControls={listControls}
|
80
|
-
{...props}
|
81
|
-
/>
|
82
|
-
<RichTextInput
|
83
|
-
users={users}
|
84
|
-
/>
|
85
|
-
<Modal
|
86
|
-
modalIsOpen={showConfigModal}
|
87
|
-
closeModal={() => setShowConfigModal(false)}
|
88
|
-
exitModalButton={(e) => (
|
89
|
-
<div></div>
|
90
|
-
)}
|
91
|
-
>
|
92
|
-
<Sections
|
93
|
-
sections={sections}
|
94
|
-
backgroundColor={'white'}
|
95
|
-
sectionHeaderStyles={{
|
96
|
-
titleColor: 'white',
|
97
|
-
headerBackground: 'transparent'
|
98
|
-
}}
|
99
|
-
customCardStyles={{
|
100
|
-
cardPadding: 6,
|
101
|
-
cardTitleFontSize: 15,
|
102
|
-
cardBackgroundColor: '#2c2c2c',
|
103
|
-
cardTitleColor: 'white',
|
104
|
-
onHoverBackgroundColor: '#555555',
|
105
|
-
controlsStyles: {
|
106
|
-
showOnHover: true,
|
107
|
-
}
|
108
|
-
}}>
|
109
|
-
<Tabs
|
110
|
-
title="Chat Config"
|
111
|
-
tabs={tabs}
|
112
|
-
id='styling'
|
113
|
-
>
|
114
|
-
<ChatPreview
|
115
|
-
componentProps={{ data, users, title: props.title || "Chat", preview: true }}
|
116
|
-
formChanged={formChanged}
|
117
|
-
id="preview"
|
118
|
-
/>
|
119
|
-
<Community
|
120
|
-
center={centerContext}
|
121
|
-
id="community" />
|
122
|
-
</Tabs>
|
123
|
-
</Sections>
|
124
|
-
</Modal>
|
125
|
-
</Container>
|
126
|
-
)
|
127
|
-
}
|
128
|
-
|
129
|
-
const Container = styled.div`
|
130
|
-
width: 100%;
|
131
|
-
background-color: ${({ backgroundColor }) => backgroundColor || 'transparent'};
|
132
|
-
`
|
133
|
-
|
134
|
-
Chat.defaultProps = {
|
135
|
-
title: 'Chat Space'
|
136
|
-
};
|
137
|
-
|
138
|
-
Chat.propTypes = {
|
139
|
-
data: PropTypes.array.isRequired,
|
140
|
-
title: PropTypes.string,
|
141
|
-
users: PropTypes.array,
|
142
|
-
backgroundColor: PropTypes.string,
|
143
|
-
customCardStyles: PropTypes.object,
|
144
|
-
headerStyles: PropTypes.object,
|
145
|
-
preview: PropTypes.bool
|
146
|
-
}
|
147
|
-
|
148
|
-
export default Chat
|