@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
@@ -2,13 +2,9 @@ import React, { useState } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
|
5
|
-
import CreateAlbum from '../../Forms/CreateAlbum/CreateAlbum'
|
6
5
|
import Gallery from '../../Reusable Components/Gallery/Gallery';
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
10
|
-
import Sections from '../../Sections/Sections';
|
11
|
-
import Community from '../../Reusable Components/Community/Community';
|
6
|
+
import AddPhotoAlbum from '../../Modals/AddPhotoAlbum/AddPhotoAlbum';
|
7
|
+
import PhotoAlbumsConfigModal from '../../Modals/PhotoAlbumsConfigModal/PhotoAlbumsConfigModal';
|
12
8
|
|
13
9
|
import { AiOutlineFileAdd, AiFillDelete } from "react-icons/ai";
|
14
10
|
import { BsGear } from "react-icons/bs";
|
@@ -29,21 +25,7 @@ const ViewAlbums = ({
|
|
29
25
|
|
30
26
|
const [showModal, setShowModal] = useState(false);
|
31
27
|
const [showConfigModal, setShowConfigModal] = useState(false);
|
32
|
-
|
33
|
-
|
34
|
-
const formChanged = (values) => {
|
35
|
-
setCenterContext(<ViewAlbums preview={true} albums={albums} {...values} />)
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
let tabs = [
|
40
|
-
{
|
41
|
-
title: 'New', id: 'preview'
|
42
|
-
},
|
43
|
-
{
|
44
|
-
title: 'Context', id: 'community'
|
45
|
-
}
|
46
|
-
]
|
28
|
+
|
47
29
|
|
48
30
|
|
49
31
|
const onIconClicked = (action) => {
|
@@ -72,7 +54,7 @@ const ViewAlbums = ({
|
|
72
54
|
setShowModal(false)
|
73
55
|
}
|
74
56
|
|
75
|
-
const
|
57
|
+
const closeModal = () => {
|
76
58
|
setShowModal(false)
|
77
59
|
}
|
78
60
|
|
@@ -94,39 +76,18 @@ const ViewAlbums = ({
|
|
94
76
|
cardIconClicked={cardIconClicked}
|
95
77
|
{...props} />
|
96
78
|
|
97
|
-
<
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
closeModal={cancelConfig}
|
110
|
-
exitModalButton={(e) => (
|
111
|
-
<div></div>
|
112
|
-
)}
|
113
|
-
>
|
114
|
-
<Tabs
|
115
|
-
title="Photo Albums Config"
|
116
|
-
tabs={tabs}
|
117
|
-
id='styling'
|
118
|
-
>
|
119
|
-
<PhotoAlbumsPreview
|
120
|
-
componentProps={{ albums, title: props.title || 'Photo Albums', preview: true }}
|
121
|
-
formChanged={formChanged}
|
122
|
-
id='preview'
|
123
|
-
/>
|
124
|
-
<Community
|
125
|
-
center={centerContext}
|
126
|
-
community={community}
|
127
|
-
id="community" />
|
128
|
-
</Tabs>
|
129
|
-
</Modal>
|
79
|
+
<AddPhotoAlbum
|
80
|
+
showModal={showModal}
|
81
|
+
onAddAlbum={onAddAlbum}
|
82
|
+
closeModal={closeModal}
|
83
|
+
/>
|
84
|
+
<PhotoAlbumsConfigModal
|
85
|
+
showConfigModal={showConfigModal}
|
86
|
+
cancelConfig={cancelConfig}
|
87
|
+
albums={albums}
|
88
|
+
community={community}
|
89
|
+
title={props.title}
|
90
|
+
/>
|
130
91
|
</Container>
|
131
92
|
)
|
132
93
|
}
|
@@ -2,18 +2,12 @@ import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import styled from 'styled-components';
|
4
4
|
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import Comments from '
|
5
|
+
import VideoPlayer from '../../Widgets/VideoPlayer/VideoPlayer';
|
6
|
+
import VideoConfigModal from '../../Modals/VideoConfigModal/VideoConfigModal';
|
7
|
+
import Comments from '../../Reusable Components/Comments/Comments';
|
8
8
|
import RichTextInput from '../../Common Inputs/RichTextInput/RichTextInput';
|
9
9
|
import ReusableHeader from '../../Reusable Components/ReusableHeader/ReusableHeader';
|
10
10
|
import { BsGear } from "react-icons/bs";
|
11
|
-
import VideoPreview from '../../PreviewComponents/VideoPreview/VideoPreview';
|
12
|
-
import Community from '../../Reusable Components/Community/Community';
|
13
|
-
import Tabs from '../../Reusable Components/Tabs/Tabs';
|
14
|
-
|
15
|
-
|
16
|
-
|
17
11
|
|
18
12
|
const controls = [
|
19
13
|
{ icon: (<BsGear />), action: 'config', name: 'Config' },
|
@@ -41,22 +35,7 @@ const VideoSpace = ({
|
|
41
35
|
community,
|
42
36
|
...props }) => {
|
43
37
|
const [showConfigModal, setShowConfigModal] = useState(false);
|
44
|
-
|
45
|
-
|
46
|
-
const formChanged = (values) => {
|
47
|
-
setCenterContext(<VideoSpace users={users} preview={true} videoSrc={videoSrc} comments={comments} {...values} />)
|
48
|
-
}
|
49
|
-
|
50
|
-
let tabs = [
|
51
|
-
{
|
52
|
-
title: 'New', id: 'preview'
|
53
|
-
},
|
54
|
-
{
|
55
|
-
title: 'Context', id: 'community'
|
56
|
-
}
|
57
|
-
]
|
58
|
-
|
59
|
-
|
38
|
+
|
60
39
|
const iconClicked = (action) => {
|
61
40
|
if (!props.preview) {
|
62
41
|
switch (action) {
|
@@ -100,29 +79,17 @@ const VideoSpace = ({
|
|
100
79
|
<RichTextInput
|
101
80
|
users={users}
|
102
81
|
/>
|
103
|
-
<
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
>
|
115
|
-
<VideoPreview
|
116
|
-
componentProps={{ title, discription, comments, date, preview: true }}
|
117
|
-
formChanged={formChanged}
|
118
|
-
id="preview" />
|
119
|
-
|
120
|
-
<Community
|
121
|
-
center={centerContext}
|
122
|
-
community={community}
|
123
|
-
id="community" />
|
124
|
-
</Tabs>
|
125
|
-
</Modal>
|
82
|
+
<VideoConfigModal
|
83
|
+
showConfigModal={showConfigModal}
|
84
|
+
cancelConfig={cancelConfig}
|
85
|
+
community={community}
|
86
|
+
videoSrc={videoSrc}
|
87
|
+
title={title}
|
88
|
+
discription={discription}
|
89
|
+
date={date}
|
90
|
+
users={users}
|
91
|
+
comments={comments}
|
92
|
+
/>
|
126
93
|
</Container>
|
127
94
|
)
|
128
95
|
}
|
@@ -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
|
|
@@ -35,22 +28,6 @@ const ViewAlbum = ({
|
|
35
28
|
...props }) => {
|
36
29
|
const [showModal, setShowModal] = useState(false);
|
37
30
|
const [showConfigModal, setShowConfigModal] = useState(false);
|
38
|
-
const [centerContext, setCenterContext] = useState(<ViewAlbum preview={true} album={album} />)
|
39
|
-
|
40
|
-
const formChanged = (values) => {
|
41
|
-
console.log('context changed')
|
42
|
-
setCenterContext(<ViewAlbum preview={true} album={album} {...values} />)
|
43
|
-
}
|
44
|
-
|
45
|
-
let tabs = [
|
46
|
-
{
|
47
|
-
title: 'New', id: 'preview'
|
48
|
-
},
|
49
|
-
{
|
50
|
-
title: 'Context', id: 'community'
|
51
|
-
}
|
52
|
-
]
|
53
|
-
|
54
31
|
|
55
32
|
const cardStyles = {
|
56
33
|
darkOnHover: true,
|
@@ -97,7 +74,7 @@ const ViewAlbum = ({
|
|
97
74
|
props.onAddVideo(album)
|
98
75
|
}
|
99
76
|
|
100
|
-
const
|
77
|
+
const closeModal = () => {
|
101
78
|
setShowModal(false)
|
102
79
|
}
|
103
80
|
|
@@ -120,37 +97,17 @@ const ViewAlbum = ({
|
|
120
97
|
customCardStyles={cardStyles}
|
121
98
|
{...props}
|
122
99
|
/>
|
123
|
-
<
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
modalIsOpen={showConfigModal}
|
135
|
-
closeModal={cancelConfig}
|
136
|
-
exitModalButton={(e) => (
|
137
|
-
<div></div>
|
138
|
-
)}>
|
139
|
-
<Tabs
|
140
|
-
title="Video Album Config"
|
141
|
-
tabs={tabs}
|
142
|
-
id='styling'
|
143
|
-
>
|
144
|
-
<VideoAlbumPreview
|
145
|
-
componentProps={{ album, preview: true }}
|
146
|
-
formChanged={formChanged}
|
147
|
-
id="preview" />
|
148
|
-
<Community
|
149
|
-
center={centerContext}
|
150
|
-
community={community}
|
151
|
-
id="community" />
|
152
|
-
</Tabs>
|
153
|
-
</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
|
+
/>
|
154
111
|
</Container>
|
155
112
|
)
|
156
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";
|
@@ -34,20 +30,6 @@ const AlbumsGallery = ({
|
|
34
30
|
...props }) => {
|
35
31
|
const [showModal, setShowModal] = useState(false);
|
36
32
|
const [showConfigModal, setShowConfigModal] = useState(false);
|
37
|
-
const [centerContext, setCenterContext] = useState(<AlbumsGallery preview={true} videoAlbums={videoAlbums} />)
|
38
|
-
|
39
|
-
const formChanged = (values) => {
|
40
|
-
setCenterContext(<AlbumsGallery preview={true} videoAlbums={videoAlbums} {...values} />)
|
41
|
-
}
|
42
|
-
|
43
|
-
let tabs = [
|
44
|
-
{
|
45
|
-
title: 'New', id: 'preview'
|
46
|
-
},
|
47
|
-
{
|
48
|
-
title: 'Context', id: 'community'
|
49
|
-
}
|
50
|
-
]
|
51
33
|
|
52
34
|
|
53
35
|
const cardStyles = {
|
@@ -98,7 +80,7 @@ const AlbumsGallery = ({
|
|
98
80
|
props.onAddAlbum(album)
|
99
81
|
}
|
100
82
|
|
101
|
-
const
|
83
|
+
const closeModal = () => {
|
102
84
|
setShowModal(false)
|
103
85
|
}
|
104
86
|
|
@@ -125,37 +107,17 @@ const AlbumsGallery = ({
|
|
125
107
|
customCardStyles={cardStyles}
|
126
108
|
{...props}
|
127
109
|
/>
|
128
|
-
<
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
modalIsOpen={showConfigModal}
|
140
|
-
closeModal={cancelConfig}
|
141
|
-
exitModalButton={(e) => (
|
142
|
-
<div></div>
|
143
|
-
)}>
|
144
|
-
<Tabs
|
145
|
-
title="Video Gallery Config"
|
146
|
-
tabs={tabs}
|
147
|
-
id='styling'
|
148
|
-
>
|
149
|
-
<VideoAlbumsPreview
|
150
|
-
componentProps={{ videoAlbums, preview: true }}
|
151
|
-
formChanged={formChanged}
|
152
|
-
id="preview" />
|
153
|
-
<Community
|
154
|
-
center={centerContext}
|
155
|
-
community={community}
|
156
|
-
id="community" />
|
157
|
-
</Tabs>
|
158
|
-
</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
|
+
/>
|
159
121
|
</Container >
|
160
122
|
)
|
161
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();
|
File without changes
|
@@ -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,154 +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
|
-
community,
|
28
|
-
...props }) => {
|
29
|
-
|
30
|
-
const [showConfigModal, setShowConfigModal] = useState(false);
|
31
|
-
const [centerContext, setCenterContext] = useState(<Chat preview={true} users={users} data={data}/>)
|
32
|
-
|
33
|
-
const formChanged = (values) => {
|
34
|
-
setCenterContext(<Chat preview={true} 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
|
-
const cancelConfig = () => {
|
71
|
-
setShowConfigModal(false);
|
72
|
-
localStorage.removeItem('formStyles')
|
73
|
-
}
|
74
|
-
|
75
|
-
return (
|
76
|
-
<Container
|
77
|
-
backgroundColor={backgroundColor}>
|
78
|
-
<List
|
79
|
-
listTitle={title || 'Chat'}
|
80
|
-
type="flat"
|
81
|
-
data={data}
|
82
|
-
cardStyle="card-style-8"
|
83
|
-
iconClicked={onIconClicked}
|
84
|
-
listControls={listControls}
|
85
|
-
{...props}
|
86
|
-
/>
|
87
|
-
<RichTextInput
|
88
|
-
users={users}
|
89
|
-
/>
|
90
|
-
<Modal
|
91
|
-
modalIsOpen={showConfigModal}
|
92
|
-
closeModal={cancelConfig}
|
93
|
-
exitModalButton={(e) => (
|
94
|
-
<div></div>
|
95
|
-
)} preview={true}
|
96
|
-
>
|
97
|
-
{/* <Sections
|
98
|
-
sections={sections}
|
99
|
-
backgroundColor={'white'}
|
100
|
-
sectionHeaderStyles={{
|
101
|
-
titleColor: 'white',
|
102
|
-
headerBackground: 'transparent'
|
103
|
-
}}
|
104
|
-
customCardStyles={{
|
105
|
-
cardPadding: 6,
|
106
|
-
cardTitleFontSize: 15,
|
107
|
-
cardBackgroundColor: '#2c2c2c',
|
108
|
-
cardTitleColor: 'white',
|
109
|
-
onHoverBackgroundColor: '#555555',
|
110
|
-
controlsStyles: {
|
111
|
-
showOnHover: true,
|
112
|
-
}
|
113
|
-
}}> */}
|
114
|
-
<Tabs
|
115
|
-
title="Chat Config"
|
116
|
-
tabs={tabs}
|
117
|
-
id='styling'
|
118
|
-
>
|
119
|
-
<ChatPreview
|
120
|
-
componentProps={{ data, users, title: props.title || "Chat", preview: true }}
|
121
|
-
formChanged={formChanged}
|
122
|
-
id="preview"
|
123
|
-
/>
|
124
|
-
<Community
|
125
|
-
center={centerContext}
|
126
|
-
community={community}
|
127
|
-
id="community" />
|
128
|
-
</Tabs>
|
129
|
-
{/* </Sections> */}
|
130
|
-
</Modal>
|
131
|
-
</Container>
|
132
|
-
)
|
133
|
-
}
|
134
|
-
|
135
|
-
const Container = styled.div`
|
136
|
-
width: 100%;
|
137
|
-
background-color: ${({ backgroundColor }) => backgroundColor || 'transparent'};
|
138
|
-
`
|
139
|
-
|
140
|
-
Chat.defaultProps = {
|
141
|
-
title: 'Chat Space'
|
142
|
-
};
|
143
|
-
|
144
|
-
Chat.propTypes = {
|
145
|
-
data: PropTypes.array.isRequired,
|
146
|
-
title: PropTypes.string,
|
147
|
-
users: PropTypes.array,
|
148
|
-
backgroundColor: PropTypes.string,
|
149
|
-
customCardStyles: PropTypes.object,
|
150
|
-
headerStyles: PropTypes.object,
|
151
|
-
preview: PropTypes.bool
|
152
|
-
}
|
153
|
-
|
154
|
-
export default Chat
|