@mohamed-karawia/library 0.1.20 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +27 -27
- package/dist/stories/Chat/Chat.js +24 -31
- package/dist/stories/Community/Community.js +54 -34
- package/dist/stories/Events/Event/Event.js +13 -6
- package/dist/stories/Events/EventsList/EventsList.js +14 -11
- 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 -21
- 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 +9 -46
- 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 +13 -36
- 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
@@ -0,0 +1,69 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import ViewAlbums from '../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import PhotoAlbumsPreview from '../../PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview';
|
7
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
8
|
+
import Community from '../../Reusable Components/Community/Community';
|
9
|
+
|
10
|
+
const PhotoAlbumsConfigModal = ({
|
11
|
+
showConfigModal,
|
12
|
+
cancelConfig,
|
13
|
+
albums,
|
14
|
+
community,
|
15
|
+
...props
|
16
|
+
}) => {
|
17
|
+
const [centerContext, setCenterContext] = useState(<ViewAlbums preview={true} albums={albums} />)
|
18
|
+
|
19
|
+
const formChanged = (values) => {
|
20
|
+
setCenterContext(<ViewAlbums preview={true} albums={albums} {...values} />)
|
21
|
+
}
|
22
|
+
|
23
|
+
let tabs = [
|
24
|
+
{
|
25
|
+
title: 'New', id: 'preview'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
title: 'Context', id: 'community'
|
29
|
+
}
|
30
|
+
]
|
31
|
+
|
32
|
+
return (
|
33
|
+
<Modal
|
34
|
+
modalIsOpen={showConfigModal}
|
35
|
+
closeModal={cancelConfig}
|
36
|
+
exitModalButton={(e) => (
|
37
|
+
<div></div>
|
38
|
+
)}
|
39
|
+
>
|
40
|
+
<Tabs
|
41
|
+
title="Photo Albums Config"
|
42
|
+
tabs={tabs}
|
43
|
+
id='styling'
|
44
|
+
>
|
45
|
+
<PhotoAlbumsPreview
|
46
|
+
componentProps={{ albums, title: props.title || 'Photo Albums', preview: true }}
|
47
|
+
formChanged={formChanged}
|
48
|
+
id='preview'
|
49
|
+
/>
|
50
|
+
<Community
|
51
|
+
center={centerContext}
|
52
|
+
community={community}
|
53
|
+
id="community" />
|
54
|
+
</Tabs>
|
55
|
+
</Modal>
|
56
|
+
)
|
57
|
+
}
|
58
|
+
|
59
|
+
PhotoAlbumsConfigModal.defaultProps = {};
|
60
|
+
|
61
|
+
PhotoAlbumsConfigModal.propTypes = {
|
62
|
+
showConfigModal: PropTypes.bool,
|
63
|
+
cancelConfig: PropTypes.func,
|
64
|
+
albums: PropTypes.array,
|
65
|
+
community: PropTypes.object,
|
66
|
+
title: PropTypes.string
|
67
|
+
}
|
68
|
+
|
69
|
+
export default PhotoAlbumsConfigModal;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import styled from 'styled-components';
|
4
|
+
|
5
|
+
import { AiOutlineArrowLeft, AiOutlineArrowRight, AiOutlineClose } from "react-icons/ai";
|
6
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
7
|
+
import DetailedPhoto from '../../Spaces/ViewDetailedPhoto/ViewDetailedPhoto';
|
8
|
+
|
9
|
+
const ShowImgModal = ({
|
10
|
+
showImgModal,
|
11
|
+
closeModal,
|
12
|
+
prevPhoto,
|
13
|
+
nextPhoto,
|
14
|
+
openedImg,
|
15
|
+
...props
|
16
|
+
}) => {
|
17
|
+
return (
|
18
|
+
<Modal
|
19
|
+
modalIsOpen={showImgModal}
|
20
|
+
closeModal={closeModal}
|
21
|
+
exitModalButton={(e) => (
|
22
|
+
<div></div>
|
23
|
+
)}
|
24
|
+
width="70vw"
|
25
|
+
height="90vh">
|
26
|
+
<CloseIconContainer onClick={closeModal}>
|
27
|
+
<AiOutlineClose />
|
28
|
+
</CloseIconContainer>
|
29
|
+
<LeftIconContainer onClick={prevPhoto}>
|
30
|
+
<AiOutlineArrowLeft />
|
31
|
+
</LeftIconContainer>
|
32
|
+
<DetailedPhoto cardClicked={nextPhoto} img={openedImg} />
|
33
|
+
<RightIconContainer onClick={nextPhoto}>
|
34
|
+
<AiOutlineArrowRight />
|
35
|
+
</RightIconContainer>
|
36
|
+
</Modal>
|
37
|
+
)
|
38
|
+
}
|
39
|
+
|
40
|
+
const IconContainer = styled.div`
|
41
|
+
width: 30px;
|
42
|
+
height: 30px;
|
43
|
+
background-color: #757575;
|
44
|
+
position: absolute;
|
45
|
+
transform: translateY(-50%);
|
46
|
+
top: 50%;
|
47
|
+
display: flex;
|
48
|
+
justify-content: center;
|
49
|
+
align-items: center;
|
50
|
+
border-radius: 50rem;
|
51
|
+
z-index: 999;
|
52
|
+
cursor: pointer;
|
53
|
+
opacity: .4;
|
54
|
+
transition: all .2s;
|
55
|
+
|
56
|
+
&:hover{
|
57
|
+
opacity: 1;
|
58
|
+
transform: scale(1.1) translateY(-50%);
|
59
|
+
}
|
60
|
+
|
61
|
+
svg{
|
62
|
+
color: white;
|
63
|
+
}
|
64
|
+
|
65
|
+
`
|
66
|
+
|
67
|
+
const CloseIconContainer = styled.div`
|
68
|
+
position: absolute;
|
69
|
+
z-index: 999;
|
70
|
+
right: 10px;
|
71
|
+
top: 10px;
|
72
|
+
cursor: pointer;
|
73
|
+
|
74
|
+
svg{
|
75
|
+
color: white;
|
76
|
+
}
|
77
|
+
`
|
78
|
+
|
79
|
+
const LeftIconContainer = styled(IconContainer)`
|
80
|
+
left: 10px;
|
81
|
+
`
|
82
|
+
|
83
|
+
const RightIconContainer = styled(IconContainer)`
|
84
|
+
right: 10px;
|
85
|
+
`
|
86
|
+
|
87
|
+
export default ShowImgModal
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import ViewAlbum from '../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
7
|
+
import VideoAlbumPreview from '../../PreviewComponents/VideoAlbumPreview/VideoAlbumPreview';
|
8
|
+
import Community from '../../Reusable Components/Community/Community';
|
9
|
+
|
10
|
+
const VideoAlbumConfig = ({
|
11
|
+
showConfigModal,
|
12
|
+
cancelConfig,
|
13
|
+
album,
|
14
|
+
community,
|
15
|
+
...props
|
16
|
+
}) => {
|
17
|
+
const [centerContext, setCenterContext] = useState(<ViewAlbum preview={true} album={album} />)
|
18
|
+
|
19
|
+
const formChanged = (values) => {
|
20
|
+
console.log('context changed')
|
21
|
+
setCenterContext(<ViewAlbum preview={true} album={album} {...values} />)
|
22
|
+
}
|
23
|
+
|
24
|
+
let tabs = [
|
25
|
+
{
|
26
|
+
title: 'New', id: 'preview'
|
27
|
+
},
|
28
|
+
{
|
29
|
+
title: 'Context', id: 'community'
|
30
|
+
}
|
31
|
+
]
|
32
|
+
|
33
|
+
return (
|
34
|
+
<Modal
|
35
|
+
modalIsOpen={showConfigModal}
|
36
|
+
closeModal={cancelConfig}
|
37
|
+
exitModalButton={(e) => (
|
38
|
+
<div></div>
|
39
|
+
)}>
|
40
|
+
<Tabs
|
41
|
+
title="Video Album Config"
|
42
|
+
tabs={tabs}
|
43
|
+
id='styling'
|
44
|
+
>
|
45
|
+
<VideoAlbumPreview
|
46
|
+
componentProps={{ album, preview: true }}
|
47
|
+
formChanged={formChanged}
|
48
|
+
id="preview" />
|
49
|
+
<Community
|
50
|
+
center={centerContext}
|
51
|
+
community={community}
|
52
|
+
id="community" />
|
53
|
+
</Tabs>
|
54
|
+
</Modal>
|
55
|
+
)
|
56
|
+
}
|
57
|
+
|
58
|
+
VideoAlbumConfig.defaultProps = {};
|
59
|
+
|
60
|
+
VideoAlbumConfig.propTypes = {
|
61
|
+
showConfigModal: PropTypes.bool,
|
62
|
+
cancelConfig: PropTypes.func,
|
63
|
+
album: PropTypes.array,
|
64
|
+
community: PropTypes.object,
|
65
|
+
}
|
66
|
+
|
67
|
+
export default VideoAlbumConfig
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import AlbumsGallery from '../../Spaces/ViewVideoAlbums/ViewVideoAlbums';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
7
|
+
import Sections from '../../Reusable Components/Sections/Sections'
|
8
|
+
import VideoAlbumsPreview from '../../PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview';
|
9
|
+
import Community from '../../Reusable Components/Community/Community';
|
10
|
+
|
11
|
+
const VideoAlbumsConfigModal = ({
|
12
|
+
showConfigModal,
|
13
|
+
cancelConfig,
|
14
|
+
videoAlbums,
|
15
|
+
community,
|
16
|
+
...props
|
17
|
+
}) => {
|
18
|
+
const [centerContext, setCenterContext] = useState(<AlbumsGallery preview={true} videoAlbums={videoAlbums} />)
|
19
|
+
|
20
|
+
const formChanged = (values) => {
|
21
|
+
setCenterContext(<AlbumsGallery preview={true} videoAlbums={videoAlbums} {...values} />)
|
22
|
+
}
|
23
|
+
|
24
|
+
let tabs = [
|
25
|
+
{
|
26
|
+
title: 'New', id: 'preview'
|
27
|
+
},
|
28
|
+
{
|
29
|
+
title: 'Context', id: 'community'
|
30
|
+
}
|
31
|
+
]
|
32
|
+
|
33
|
+
return (
|
34
|
+
<Modal
|
35
|
+
modalIsOpen={showConfigModal}
|
36
|
+
closeModal={cancelConfig}
|
37
|
+
exitModalButton={(e) => (
|
38
|
+
<div></div>
|
39
|
+
)}>
|
40
|
+
<Tabs
|
41
|
+
title="Video Gallery Config"
|
42
|
+
tabs={tabs}
|
43
|
+
id='styling'
|
44
|
+
>
|
45
|
+
<VideoAlbumsPreview
|
46
|
+
componentProps={{ videoAlbums, preview: true }}
|
47
|
+
formChanged={formChanged}
|
48
|
+
id="preview" />
|
49
|
+
<Community
|
50
|
+
center={centerContext}
|
51
|
+
community={community}
|
52
|
+
id="community" />
|
53
|
+
</Tabs>
|
54
|
+
</Modal>
|
55
|
+
)
|
56
|
+
}
|
57
|
+
|
58
|
+
VideoAlbumsConfigModal.defaultProps = {};
|
59
|
+
|
60
|
+
VideoAlbumsConfigModal.propTypes = {
|
61
|
+
showConfigModal: PropTypes.func,
|
62
|
+
cancelConfig: PropTypes.func,
|
63
|
+
videoAlbums: PropTypes.array,
|
64
|
+
community: PropTypes.object,
|
65
|
+
}
|
66
|
+
|
67
|
+
export default VideoAlbumsConfigModal
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import VideoSpace from '../../Spaces/ViewVideo/ViewVideo';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import VideoPreview from '../../PreviewComponents/VideoPreview/VideoPreview';
|
7
|
+
import Community from '../../Reusable Components/Community/Community';
|
8
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
9
|
+
|
10
|
+
const VideoConfigModal = ({
|
11
|
+
showConfigModal,
|
12
|
+
cancelConfig,
|
13
|
+
community,
|
14
|
+
videoSrc,
|
15
|
+
title,
|
16
|
+
discription,
|
17
|
+
date,
|
18
|
+
users,
|
19
|
+
comments,
|
20
|
+
...props
|
21
|
+
}) => {
|
22
|
+
const [centerContext, setCenterContext] = useState(<VideoSpace users={users} preview={true} videoSrc={videoSrc} comments={comments} />)
|
23
|
+
|
24
|
+
const formChanged = (values) => {
|
25
|
+
setCenterContext(<VideoSpace users={users} preview={true} videoSrc={videoSrc} comments={comments} {...values} />)
|
26
|
+
}
|
27
|
+
|
28
|
+
let tabs = [
|
29
|
+
{
|
30
|
+
title: 'New', id: 'preview'
|
31
|
+
},
|
32
|
+
{
|
33
|
+
title: 'Context', id: 'community'
|
34
|
+
}
|
35
|
+
]
|
36
|
+
|
37
|
+
return (
|
38
|
+
<Modal
|
39
|
+
modalIsOpen={showConfigModal}
|
40
|
+
closeModal={cancelConfig}
|
41
|
+
exitModalButton={(e) => (
|
42
|
+
<div></div>
|
43
|
+
)}
|
44
|
+
>
|
45
|
+
<Tabs
|
46
|
+
title="Video Space Config"
|
47
|
+
tabs={tabs}
|
48
|
+
id='styling'
|
49
|
+
>
|
50
|
+
<VideoPreview
|
51
|
+
componentProps={{ title, discription, comments, date, preview: true }}
|
52
|
+
formChanged={formChanged}
|
53
|
+
id="preview" />
|
54
|
+
|
55
|
+
<Community
|
56
|
+
center={centerContext}
|
57
|
+
community={community}
|
58
|
+
id="community" />
|
59
|
+
</Tabs>
|
60
|
+
</Modal>
|
61
|
+
)
|
62
|
+
}
|
63
|
+
|
64
|
+
VideoConfigModal.defaultProps = {};
|
65
|
+
|
66
|
+
VideoConfigModal.propTypes = {
|
67
|
+
showConfigModal: PropTypes.bool,
|
68
|
+
cancelConfig: PropTypes.func,
|
69
|
+
community: PropTypes.object,
|
70
|
+
videoSrc: PropTypes.string,
|
71
|
+
title: PropTypes.string,
|
72
|
+
discription: PropTypes.string,
|
73
|
+
date: PropTypes.string,
|
74
|
+
users: PropTypes.array,
|
75
|
+
comments: PropTypes.array,
|
76
|
+
}
|
77
|
+
|
78
|
+
export default VideoConfigModal
|
@@ -14,7 +14,7 @@ import WidgetContainer from "../../Reusable Components/WidgetContainer/WidgetCon
|
|
14
14
|
import worldStyles from '../ViewWorld/styles.json';
|
15
15
|
|
16
16
|
import { SPACES } from '../ViewWorld/constatnts';
|
17
|
-
import ChatSpace from '../../Chat/Chat';
|
17
|
+
import ChatSpace from '../../Spaces/Chat/Chat';
|
18
18
|
|
19
19
|
|
20
20
|
const Chat = ({
|
@@ -10,7 +10,7 @@ import Navbar from '../../../Navbar/Navbar';
|
|
10
10
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
11
11
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
12
12
|
import WidgetContainer from "../../../Reusable Components/WidgetContainer/WidgetContainer";
|
13
|
-
import DetailedEvent from '../../../
|
13
|
+
import DetailedEvent from '../../../Spaces/ViewEvent/Event';
|
14
14
|
|
15
15
|
import worldStyles from '../../ViewWorld/styles.json';
|
16
16
|
|
@@ -10,7 +10,7 @@ import Navbar from '../../../Navbar/Navbar';
|
|
10
10
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
11
11
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
12
12
|
import WidgetContainer from "../../../Reusable Components/WidgetContainer/WidgetContainer";
|
13
|
-
import EventsList from '../../../
|
13
|
+
import EventsList from '../../../Spaces/EventsList/EventsList';
|
14
14
|
import { addObjectToArray, deleteFromArrayByIndex } from '../../../helpers/util';
|
15
15
|
|
16
16
|
import worldStyles from '../../ViewWorld/styles.json';
|
@@ -10,7 +10,7 @@ import Navbar from '../../../Navbar/Navbar';
|
|
10
10
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
11
11
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
12
12
|
import WidgetContainer from "../../../Reusable Components/WidgetContainer/WidgetContainer";
|
13
|
-
import Folders from '../../../
|
13
|
+
import Folders from '../../../Spaces/ViewFolders/ViewFolders';
|
14
14
|
import { addObjectToArray, deleteFromArrayByIndex } from '../../../helpers/util';
|
15
15
|
|
16
16
|
import worldStyles from '../../ViewWorld/styles.json';
|
@@ -10,7 +10,7 @@ import Navbar from '../../../Navbar/Navbar';
|
|
10
10
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
11
11
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
12
12
|
import WidgetContainer from "../../../Reusable Components/WidgetContainer/WidgetContainer";
|
13
|
-
import ViewNotes from '../../../
|
13
|
+
import ViewNotes from '../../../Spaces/NotesList/NotesList';
|
14
14
|
import { addObjectToArray, deleteFromArrayByIndex } from '../../../helpers/util';
|
15
15
|
|
16
16
|
import worldStyles from '../../ViewWorld/styles.json';
|
@@ -6,7 +6,7 @@ import Center from '../../../Layout/Center/Center';
|
|
6
6
|
import Right from '../../../Layout/Right/Right';
|
7
7
|
|
8
8
|
import Navbar from '../../../Navbar/Navbar';
|
9
|
-
import MusicAlbum from '../../../
|
9
|
+
import MusicAlbum from '../../../Spaces/ViewMusicAlbumList/ViewMusicAlbumList';
|
10
10
|
|
11
11
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
12
12
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
@@ -6,7 +6,7 @@ import Center from '../../../Layout/Center/Center';
|
|
6
6
|
import Right from '../../../Layout/Right/Right';
|
7
7
|
|
8
8
|
import Navbar from '../../../Navbar/Navbar';
|
9
|
-
import ViewAlbums from '../../../
|
9
|
+
import ViewAlbums from '../../../Spaces/ViewMusicAlbums/ViewMusicAlbums';
|
10
10
|
|
11
11
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
12
12
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
@@ -6,7 +6,7 @@ import Center from '../../../Layout/Center/Center';
|
|
6
6
|
import Right from '../../../Layout/Right/Right';
|
7
7
|
|
8
8
|
import Navbar from '../../../Navbar/Navbar';
|
9
|
-
import ViewAlbum from '../../../
|
9
|
+
import ViewAlbum from '../../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums';
|
10
10
|
|
11
11
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
12
12
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
@@ -6,7 +6,7 @@ import Center from '../../../Layout/Center/Center';
|
|
6
6
|
import Right from '../../../Layout/Right/Right';
|
7
7
|
|
8
8
|
import Navbar from '../../../Navbar/Navbar';
|
9
|
-
import ViewAlbums from '../../../
|
9
|
+
import ViewAlbums from '../../../Spaces/ViewPhotoAlbums/ViewPhotoAlbums';
|
10
10
|
|
11
11
|
import BaseMaterial from '../../../Containers/BaseMaterial';
|
12
12
|
import SpaceContainer from "../../../Reusable Components/SpaceContainer/SpaceContainer";
|
@@ -13,7 +13,7 @@ import WidgetContainer from "../../../Reusable Components/WidgetContainer/Widget
|
|
13
13
|
|
14
14
|
import worldStyles from '../../ViewWorld/styles.json';
|
15
15
|
|
16
|
-
import VideoSpace from '../../../
|
16
|
+
import VideoSpace from '../../../Spaces/ViewVideo/ViewVideo';
|
17
17
|
import { SPACES } from '../../ViewWorld/constatnts';
|
18
18
|
|
19
19
|
const DetailedVideo = (props) => {
|
@@ -13,7 +13,7 @@ import WidgetContainer from "../../../Reusable Components/WidgetContainer/Widget
|
|
13
13
|
|
14
14
|
import worldStyles from '../../ViewWorld/styles.json';
|
15
15
|
|
16
|
-
import ViewAlbum from '../../../
|
16
|
+
import ViewAlbum from '../../../Spaces/ViewVideoAlbumList/ViewVideoAlbumList'
|
17
17
|
import { SPACES } from '../../ViewWorld/constatnts';
|
18
18
|
|
19
19
|
import { addObjectToArray, deleteFromArrayByIndex } from '../../../helpers/util';
|