@mohamed-karawia/library 0.1.22 → 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/Community/Community.js +27 -29
- 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/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/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/PreviewComponents/ChatPreview/ChatPreview.js +6 -4
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +6 -4
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +6 -4
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +7 -6
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +6 -4
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +6 -4
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +6 -4
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +6 -4
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +6 -4
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +6 -4
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +6 -4
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +6 -4
- package/dist/stories/Reusable Components/Comments/Comments.js +58 -0
- 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/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/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 +19 -19
- 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 +6 -4
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +106 -104
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +7 -5
- 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 +35 -33
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +17 -15
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +6 -4
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +105 -103
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +7 -5
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +9 -7
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +6 -4
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +6 -4
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +6 -4
- package/src/stories/{VideoAlbum → Reusable Components}/Comments/Comments.jsx +0 -0
- 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/{Library/Notes/Notes.jsx → Spaces/NotesList/NotesList.jsx} +20 -66
- package/src/stories/{Photo Album/DetailedPhoto/DetailedPhoto.jsx → Spaces/ViewDetailedPhoto/ViewDetailedPhoto.jsx} +1 -1
- package/src/stories/{Events/Event → Spaces/ViewEvent}/Event.jsx +10 -74
- 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} +42 -137
- package/src/stories/{Photo Album/ViewAlbums/ViewAlbums.jsx → Spaces/ViewPhotoAlbums/ViewPhotoAlbums.jsx} +16 -55
- package/src/stories/{VideoAlbum/VideoSpace/VideoSpace.jsx → Spaces/ViewVideo/ViewVideo.jsx} +15 -48
- package/src/stories/{VideoAlbum/ViewAlbum/ViewAlbum.jsx → Spaces/ViewVideoAlbumList/ViewVideoAlbumList.jsx} +14 -57
- package/src/stories/{VideoAlbum/AlbumsGallery/AlbumsGallery.jsx → Spaces/ViewVideoAlbums/ViewVideoAlbums.jsx} +14 -52
- 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} +0 -0
- package/src/stories/store/store.js +3 -4
- package/src/stories/Chat/Chat.jsx +0 -154
- package/src/stories/Events/EventsList/EventsList.jsx +0 -187
- package/src/stories/Library/Folders/Folders.jsx +0 -196
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +0 -172
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +0 -166
@@ -0,0 +1,39 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
5
|
+
import CreateFolder from '../../Forms/CreateFolder/CreateFolder';
|
6
|
+
|
7
|
+
const CreateFolderModal = ({
|
8
|
+
showModal,
|
9
|
+
closeModal,
|
10
|
+
onAddFolder,
|
11
|
+
}) => {
|
12
|
+
return (
|
13
|
+
<Modal
|
14
|
+
modalIsOpen={showModal}
|
15
|
+
closeModal={closeModal}
|
16
|
+
exitModalButton={(e) => (
|
17
|
+
<div></div>
|
18
|
+
)}
|
19
|
+
>
|
20
|
+
<CreateFolder
|
21
|
+
saveBtnText="Create"
|
22
|
+
cancelBtnText="Cancel"
|
23
|
+
saveHandler={onAddFolder}
|
24
|
+
cancelHandler={closeModal}
|
25
|
+
/>
|
26
|
+
</Modal>
|
27
|
+
)
|
28
|
+
}
|
29
|
+
|
30
|
+
CreateFolderModal.defaultProps = {};
|
31
|
+
|
32
|
+
CreateFolderModal.propTypes = {
|
33
|
+
showModal: PropTypes.bool,
|
34
|
+
closeModal: PropTypes.func,
|
35
|
+
onAddFolder: PropTypes.func,
|
36
|
+
cancelHandler: PropTypes.func,
|
37
|
+
}
|
38
|
+
|
39
|
+
export default CreateFolderModal
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Modal from "../../Reusable Components/ReactModal/ReactModal";
|
5
|
+
import CreateAlbum from "../../Forms/CreateMusicAlbum/CreateMusicAlbum";
|
6
|
+
|
7
|
+
const CreateMusicAlbumModal = ({
|
8
|
+
showModal,
|
9
|
+
onAddAlbum,
|
10
|
+
closeModal,
|
11
|
+
...props
|
12
|
+
}) => {
|
13
|
+
return (
|
14
|
+
<Modal
|
15
|
+
modalIsOpen={showModal}
|
16
|
+
closeModal={closeModal}
|
17
|
+
exitModalButton={(e) => <div></div>}
|
18
|
+
>
|
19
|
+
<CreateAlbum
|
20
|
+
saveHandler={onAddAlbum}
|
21
|
+
cancelHandler={closeModal}
|
22
|
+
saveBtnText={props.saveBtnText || "Create"}
|
23
|
+
cancelBtnText={props.cancelBtnText || "Cancel"}
|
24
|
+
/>
|
25
|
+
</Modal>
|
26
|
+
)
|
27
|
+
}
|
28
|
+
|
29
|
+
CreateMusicAlbumModal.defaultProps = {};
|
30
|
+
|
31
|
+
CreateMusicAlbumModal.propTypes = {
|
32
|
+
showModal: PropTypes.bool,
|
33
|
+
onAddAlbum: PropTypes.func,
|
34
|
+
closeModal: PropTypes.func,
|
35
|
+
}
|
36
|
+
|
37
|
+
export default CreateMusicAlbumModal
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
5
|
+
import CreateFolder from '../../Forms/CreateFolder/CreateFolder';
|
6
|
+
|
7
|
+
const CreateNoteModal = ({
|
8
|
+
showModal,
|
9
|
+
closeModal,
|
10
|
+
onAddFolder,
|
11
|
+
cancelHandler,
|
12
|
+
...props
|
13
|
+
}) => {
|
14
|
+
return (
|
15
|
+
<Modal
|
16
|
+
modalIsOpen={showModal}
|
17
|
+
closeModal={closeModal}
|
18
|
+
exitModalButton={(e) => (
|
19
|
+
<div></div>
|
20
|
+
)}>
|
21
|
+
<CreateFolder
|
22
|
+
saveBtnText={props.saveBtnText || "Create"}
|
23
|
+
cancelBtnText={props.cancelBtnText || "Cancel"}
|
24
|
+
saveHandler={onAddFolder}
|
25
|
+
cancelHandler={cancelHandler}
|
26
|
+
/>
|
27
|
+
</Modal>
|
28
|
+
)
|
29
|
+
}
|
30
|
+
|
31
|
+
CreateNoteModal.defaultProps = {};
|
32
|
+
|
33
|
+
CreateNoteModal.propTypes = {
|
34
|
+
showModal: PropTypes.bool,
|
35
|
+
closeModal: PropTypes.func,
|
36
|
+
onAddFolder: PropTypes.func,
|
37
|
+
cancelHandler: PropTypes.func,
|
38
|
+
saveBtnText: PropTypes.string,
|
39
|
+
cancelBtnText: PropTypes.string,
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
export default CreateNoteModal
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Event from '../../Spaces/ViewEvent/Event';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import EventPreview from '../../PreviewComponents/EventPreview/EventPreview';
|
7
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
8
|
+
import Community from '../../Reusable Components/Community/Community';
|
9
|
+
|
10
|
+
const EventConfigModal = ({
|
11
|
+
showConfigModal,
|
12
|
+
cancelConfig,
|
13
|
+
cover,
|
14
|
+
title,
|
15
|
+
date,
|
16
|
+
disc,
|
17
|
+
community,
|
18
|
+
...props
|
19
|
+
}) => {
|
20
|
+
|
21
|
+
const [centerContext, setCenterContext] = useState(<Event preview={true} title={title} cover={cover} date={date} disc={disc} />)
|
22
|
+
|
23
|
+
const formChanged = (values) => {
|
24
|
+
setCenterContext(<Event preview={true} title={title} cover={cover} date={date} disc={disc} {...values} />)
|
25
|
+
}
|
26
|
+
|
27
|
+
let tabs = [
|
28
|
+
{
|
29
|
+
title: 'New', id: 'preview'
|
30
|
+
},
|
31
|
+
{
|
32
|
+
title: 'Context', id: 'community'
|
33
|
+
}
|
34
|
+
]
|
35
|
+
|
36
|
+
return (
|
37
|
+
<Modal
|
38
|
+
modalIsOpen={showConfigModal}
|
39
|
+
closeModal={cancelConfig}
|
40
|
+
exitModalButton={(e) => (
|
41
|
+
<div></div>
|
42
|
+
)}
|
43
|
+
>
|
44
|
+
<Tabs
|
45
|
+
title="Event Config"
|
46
|
+
tabs={tabs}
|
47
|
+
>
|
48
|
+
<EventPreview
|
49
|
+
componentProps={{ cover, title, date, disc, preview: true }}
|
50
|
+
formChanged={formChanged}
|
51
|
+
id='preview'
|
52
|
+
/>
|
53
|
+
<Community
|
54
|
+
center={centerContext}
|
55
|
+
community={community} preview={true}
|
56
|
+
id="community" />
|
57
|
+
</Tabs>
|
58
|
+
</Modal>
|
59
|
+
)
|
60
|
+
}
|
61
|
+
|
62
|
+
EventConfigModal.defaultProps = {};
|
63
|
+
|
64
|
+
EventConfigModal.propTypes = {
|
65
|
+
showConfigModal: PropTypes.bool,
|
66
|
+
cancelConfig: PropTypes.func,
|
67
|
+
cover: PropTypes.string,
|
68
|
+
title: PropTypes.string,
|
69
|
+
date: PropTypes.string,
|
70
|
+
disc: PropTypes.string,
|
71
|
+
community: PropTypes.object,
|
72
|
+
}
|
73
|
+
|
74
|
+
export default EventConfigModal
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Modal from "../../Reusable Components/ReactModal/ReactModal";
|
5
|
+
import EventsPreview from '../../PreviewComponents/EventsPreview/EventsPreview';
|
6
|
+
import Tabs from "../../Reusable Components/Tabs/Tabs";
|
7
|
+
import EventsList from '../../Spaces/EventsList/EventsList';
|
8
|
+
import Community from "../../Reusable Components/Community/Community";
|
9
|
+
|
10
|
+
|
11
|
+
const EventsConfigModal = ({
|
12
|
+
events,
|
13
|
+
showConfigModal,
|
14
|
+
cancelConfig,
|
15
|
+
community,
|
16
|
+
...props
|
17
|
+
}) => {
|
18
|
+
const [centerContext, setCenterContext] = useState(<EventsList preview={true} events={events} {...props} />)
|
19
|
+
|
20
|
+
const formChanged = (values) => {
|
21
|
+
setCenterContext(<EventsList preview={true} events={events} {...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
|
+
>
|
41
|
+
<Tabs
|
42
|
+
title="Events Config"
|
43
|
+
tabs={tabs}>
|
44
|
+
<EventsPreview
|
45
|
+
componentProps={{ events, title: props.title || "My Events", preview: true }}
|
46
|
+
formChanged={formChanged}
|
47
|
+
id='preview'
|
48
|
+
/>
|
49
|
+
<Community
|
50
|
+
center={centerContext}
|
51
|
+
community={community}
|
52
|
+
id="community" />
|
53
|
+
</Tabs>
|
54
|
+
</Modal>
|
55
|
+
)
|
56
|
+
}
|
57
|
+
|
58
|
+
EventsConfigModal.defaultProps = {};
|
59
|
+
|
60
|
+
EventsConfigModal.propTypes = {
|
61
|
+
events: PropTypes.array,
|
62
|
+
showConfigModal: PropTypes.bool,
|
63
|
+
cancelConfig: PropTypes.func,
|
64
|
+
community: PropTypes.object,
|
65
|
+
}
|
66
|
+
|
67
|
+
export default EventsConfigModal
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Folders from '../../Spaces/ViewFolders/ViewFolders';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
7
|
+
import FoldersPreview from '../../PreviewComponents/FoldersPreview/FoldersPreview';
|
8
|
+
import Community from '../../Reusable Components/Community/Community';
|
9
|
+
|
10
|
+
const FoldersConfigModal = ({
|
11
|
+
showConfigModal,
|
12
|
+
cancelConfig,
|
13
|
+
folders,
|
14
|
+
community,
|
15
|
+
...props
|
16
|
+
}) => {
|
17
|
+
const [centerContext, setCenterContext] = useState(<Folders preview={true} folders={folders} />)
|
18
|
+
|
19
|
+
const formChanged = (values) => {
|
20
|
+
setCenterContext(<Folders preview={true} folders={folders} {...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="Folders Config"
|
42
|
+
tabs={tabs}>
|
43
|
+
<FoldersPreview
|
44
|
+
componentProps={{ folders, title: props.title || "Your Folders", preview: true }}
|
45
|
+
formChanged={formChanged}
|
46
|
+
id='preview'
|
47
|
+
/>
|
48
|
+
<Community
|
49
|
+
center={centerContext}
|
50
|
+
community={community}
|
51
|
+
id="community" />
|
52
|
+
</Tabs>
|
53
|
+
</Modal>
|
54
|
+
)
|
55
|
+
}
|
56
|
+
|
57
|
+
FoldersConfigModal.defaultProps = {};
|
58
|
+
|
59
|
+
FoldersConfigModal.propTypes = {
|
60
|
+
showConfigModal: PropTypes.bool,
|
61
|
+
cancelConfig: PropTypes.func,
|
62
|
+
folders: PropTypes.array,
|
63
|
+
community: PropTypes.object,
|
64
|
+
}
|
65
|
+
|
66
|
+
export default FoldersConfigModal;
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import ViewAlbum from '../../Spaces/ViewMusicAlbumList/ViewMusicAlbumList';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
7
|
+
import MusicAlbumPreview from '../../PreviewComponents/MusicAlbumPreview/MusicAlbumPreview';
|
8
|
+
import Community from '../../Reusable Components/Community/Community';
|
9
|
+
|
10
|
+
const MusicAlbumConfigModal = ({
|
11
|
+
showConfigModal,
|
12
|
+
closeModal,
|
13
|
+
album,
|
14
|
+
community,
|
15
|
+
...props
|
16
|
+
}) => {
|
17
|
+
|
18
|
+
const [centerContext, setCenterContext] = useState(<ViewAlbum preview={true} album={album} />)
|
19
|
+
|
20
|
+
const formChanged = (values) => {
|
21
|
+
console.log('context changed')
|
22
|
+
setCenterContext(<ViewAlbum preview={true} album={album} {...values} />)
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
let tabs = [
|
27
|
+
{
|
28
|
+
title: 'New', id: 'preview'
|
29
|
+
},
|
30
|
+
{
|
31
|
+
title: 'Context', id: 'community'
|
32
|
+
}
|
33
|
+
]
|
34
|
+
|
35
|
+
return (
|
36
|
+
<Modal
|
37
|
+
modalIsOpen={showConfigModal}
|
38
|
+
closeModal={closeModal}
|
39
|
+
exitModalButton={(e) => (
|
40
|
+
<div></div>
|
41
|
+
)}
|
42
|
+
>
|
43
|
+
<Tabs
|
44
|
+
title="Album Config"
|
45
|
+
tabs={tabs}>
|
46
|
+
<MusicAlbumPreview
|
47
|
+
componentProps={{ album, title: props.title || "My Album", preview: true }}
|
48
|
+
formChanged={formChanged}
|
49
|
+
id="preview"
|
50
|
+
/>
|
51
|
+
<Community
|
52
|
+
center={centerContext}
|
53
|
+
community={community}
|
54
|
+
id="community" />
|
55
|
+
</Tabs>
|
56
|
+
</Modal>
|
57
|
+
)
|
58
|
+
}
|
59
|
+
|
60
|
+
MusicAlbumConfigModal.defaultProps = {};
|
61
|
+
|
62
|
+
MusicAlbumConfigModal.propTypes = {
|
63
|
+
showConfigModal: PropTypes.bool,
|
64
|
+
closeModal: PropTypes.func,
|
65
|
+
album: PropTypes.array,
|
66
|
+
community: PropTypes.object,
|
67
|
+
}
|
68
|
+
|
69
|
+
export default MusicAlbumConfigModal;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import ViewAlbums from '../../Spaces/ViewMusicAlbums/ViewMusicAlbums';
|
5
|
+
import Modal from "../../Reusable Components/ReactModal/ReactModal";
|
6
|
+
import Tabs from "../../Reusable Components/Tabs/Tabs";
|
7
|
+
import MusicAlbumsPreview from "../../PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview";
|
8
|
+
import Community from "../../Reusable Components/Community/Community";
|
9
|
+
|
10
|
+
const MusicAlbumsConfigModal = ({
|
11
|
+
showConfigModal,
|
12
|
+
cancelConfig,
|
13
|
+
albums,
|
14
|
+
community,
|
15
|
+
...props
|
16
|
+
}) => {
|
17
|
+
|
18
|
+
const [centerContext, setCenterContext] = useState(
|
19
|
+
<ViewAlbums preview={true} albums={albums} />
|
20
|
+
);
|
21
|
+
|
22
|
+
const formChanged = (values) => {
|
23
|
+
setCenterContext(<ViewAlbums preview={true} albums={albums} {...values} />);
|
24
|
+
};
|
25
|
+
|
26
|
+
|
27
|
+
let tabs = [
|
28
|
+
{
|
29
|
+
title: "New",
|
30
|
+
id: "preview",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
title: "Context",
|
34
|
+
id: "community",
|
35
|
+
},
|
36
|
+
];
|
37
|
+
|
38
|
+
return (
|
39
|
+
<Modal
|
40
|
+
modalIsOpen={showConfigModal}
|
41
|
+
closeModal={cancelConfig}
|
42
|
+
exitModalButton={(e) => <div></div>}
|
43
|
+
>
|
44
|
+
<Tabs title="Albums Config" tabs={tabs}>
|
45
|
+
<MusicAlbumsPreview
|
46
|
+
componentProps={{
|
47
|
+
albums: albums,
|
48
|
+
title: "Music Albums",
|
49
|
+
preview: true,
|
50
|
+
}}
|
51
|
+
formChanged={formChanged}
|
52
|
+
id="preview"
|
53
|
+
/>
|
54
|
+
<Community
|
55
|
+
center={centerContext}
|
56
|
+
community={community}
|
57
|
+
id="community"
|
58
|
+
/>
|
59
|
+
</Tabs>
|
60
|
+
</Modal>
|
61
|
+
)
|
62
|
+
}
|
63
|
+
|
64
|
+
MusicAlbumsConfigModal.defaultProps = {};
|
65
|
+
|
66
|
+
MusicAlbumsConfigModal.propTypes = {
|
67
|
+
showConfigModal: PropTypes.bool,
|
68
|
+
cancelConfig: PropTypes.func,
|
69
|
+
albums: PropTypes.array,
|
70
|
+
community: PropTypes.object,
|
71
|
+
}
|
72
|
+
|
73
|
+
export default MusicAlbumsConfigModal
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import Notes from '../../Spaces/NotesList/NotesList';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import NotesPreview from '../../PreviewComponents/NotesPreview/NotesPreview';
|
7
|
+
import Community from '../../Reusable Components/Community/Community';
|
8
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
9
|
+
|
10
|
+
|
11
|
+
const NotesConfigModal = ({
|
12
|
+
showConfigModal,
|
13
|
+
cancelConfig,
|
14
|
+
notes,
|
15
|
+
community,
|
16
|
+
...props
|
17
|
+
}) => {
|
18
|
+
const [centerContext, setCenterContext] = useState(<Notes preview={true} notes={notes} />)
|
19
|
+
|
20
|
+
const formChanged = (values) => {
|
21
|
+
setCenterContext(<Notes preview={true} notes={notes} {...values} />)
|
22
|
+
}
|
23
|
+
let tabs = [
|
24
|
+
{
|
25
|
+
title: 'New', id: 'preview'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
title: 'Context', id: 'community'
|
29
|
+
}
|
30
|
+
]
|
31
|
+
return (
|
32
|
+
<Modal
|
33
|
+
modalIsOpen={showConfigModal}
|
34
|
+
closeModal={cancelConfig}
|
35
|
+
exitModalButton={(e) => (
|
36
|
+
<div></div>
|
37
|
+
)}
|
38
|
+
>
|
39
|
+
<Tabs
|
40
|
+
title="Notes Config"
|
41
|
+
tabs={tabs}>
|
42
|
+
<NotesPreview
|
43
|
+
componentProps={{ notes, title: props.title || "Your Notes", preview: true }}
|
44
|
+
formChanged={formChanged}
|
45
|
+
id="preview"
|
46
|
+
/>
|
47
|
+
<Community
|
48
|
+
center={centerContext}
|
49
|
+
community={community}
|
50
|
+
id="community" />
|
51
|
+
</Tabs>
|
52
|
+
</Modal>
|
53
|
+
)
|
54
|
+
}
|
55
|
+
|
56
|
+
NotesConfigModal.defaultProps = {};
|
57
|
+
|
58
|
+
NotesConfigModal.propTypes = {
|
59
|
+
showConfigModal: PropTypes.bool,
|
60
|
+
cancelConfig: PropTypes.func,
|
61
|
+
notes: PropTypes.array,
|
62
|
+
community: PropTypes.object,
|
63
|
+
}
|
64
|
+
|
65
|
+
export default NotesConfigModal;
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
|
4
|
+
import ViewAlbum from '../../Spaces/ViewPhotoAlbumList/ViewPhotoAlbumList';
|
5
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
6
|
+
import PhotoAlbumPreview from '../../PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview';
|
7
|
+
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
8
|
+
import Community from '../../Reusable Components/Community/Community';
|
9
|
+
|
10
|
+
|
11
|
+
const PhotoAlbumConfigModal = ({
|
12
|
+
showConfigModal,
|
13
|
+
cancelConfig,
|
14
|
+
album,
|
15
|
+
community,
|
16
|
+
...props
|
17
|
+
}) => {
|
18
|
+
const [centerContext, setCenterContext] = useState(<ViewAlbum preview={true} album={album} />)
|
19
|
+
|
20
|
+
const formChanged = (values) => {
|
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
|
+
|
34
|
+
return (
|
35
|
+
<Modal
|
36
|
+
modalIsOpen={showConfigModal}
|
37
|
+
closeModal={cancelConfig}
|
38
|
+
exitModalButton={(e) => (
|
39
|
+
<div></div>
|
40
|
+
)}
|
41
|
+
>
|
42
|
+
<Tabs
|
43
|
+
title="Photo Album Config"
|
44
|
+
tabs={tabs}
|
45
|
+
id='styling'
|
46
|
+
>
|
47
|
+
<PhotoAlbumPreview
|
48
|
+
componentProps={{ album, title: props.title || 'Photo Album', preview: true }}
|
49
|
+
formChanged={formChanged}
|
50
|
+
id='preview'
|
51
|
+
/>
|
52
|
+
<Community
|
53
|
+
center={centerContext}
|
54
|
+
community={community}
|
55
|
+
id="community" />
|
56
|
+
</Tabs>
|
57
|
+
</Modal>
|
58
|
+
)
|
59
|
+
}
|
60
|
+
|
61
|
+
PhotoAlbumConfigModal.defaultProps = {};
|
62
|
+
|
63
|
+
PhotoAlbumConfigModal.propTypes = {
|
64
|
+
showConfigModal: PropTypes.bool,
|
65
|
+
cancelConfig: PropTypes.func,
|
66
|
+
album: PropTypes.array,
|
67
|
+
community: PropTypes.object,
|
68
|
+
title: PropTypes.string
|
69
|
+
}
|
70
|
+
|
71
|
+
export default PhotoAlbumConfigModal
|
@@ -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;
|