@mohamed-karawia/library 0.1.15 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Chat/Chat.js +127 -33
- package/dist/stories/Common Inputs/EditorComponent/EditorComponent.js +4 -2
- package/dist/stories/Common Inputs/Picker/Picker.js +61 -0
- package/dist/stories/Common Inputs/TextField/TextField.js +3 -1
- package/dist/stories/Community/Community.js +137 -0
- package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +11 -23
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +2 -17
- package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
- package/dist/stories/Events/Event/Event.js +117 -5
- package/dist/stories/Events/EventsList/EventsList.js +98 -19
- package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
- package/dist/stories/Library/Folders/Folders.js +82 -7
- package/dist/stories/Library/Notes/Notes.js +78 -4
- package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
- package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +139 -23
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +70 -34
- package/dist/stories/Navbar/Navbar.js +15 -45
- package/dist/stories/Pages/Chat/Chat.js +13 -1
- package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +19 -1
- package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
- package/dist/stories/Pages/Enrollment/Forms/Forms.js +24 -2
- package/dist/stories/Pages/Events/Event/Event.js +14 -5
- package/dist/stories/Pages/Events/Events/Events.js +1 -0
- package/dist/stories/Pages/Library/Folders/Library.js +7 -1
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +12 -5
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +34 -5
- package/dist/stories/Pages/Photos/Album/Album.js +7 -1
- package/dist/stories/Pages/Photos/Albums/Albums.js +38 -2
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +80 -27
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +85 -60
- package/dist/stories/Preview/Preview.js +37 -0
- package/dist/stories/PreviewComponents/ChatPreview/ChatPreview.js +193 -0
- package/dist/stories/PreviewComponents/EventPreview/EventPreview.js +158 -0
- package/dist/stories/PreviewComponents/EventsPreview/EventsPreview.js +192 -0
- package/dist/stories/PreviewComponents/FoldersPreview/FoldersPreview.js +182 -0
- package/dist/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.js +177 -0
- package/dist/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.js +181 -0
- package/dist/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.js +153 -0
- package/dist/stories/PreviewComponents/NavbarPreview/NavbarPreview.js +112 -0
- package/dist/stories/PreviewComponents/NotesPreview/NotesPreview.js +173 -0
- package/dist/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.js +189 -0
- package/dist/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.js +189 -0
- package/dist/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.js +197 -0
- package/dist/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.js +189 -0
- package/dist/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.js +175 -0
- package/dist/stories/PreviewComponents/VideoPreview/VideoPreview.js +172 -0
- package/dist/stories/PreviewComponents/globalStyles.js +26 -0
- package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +10 -5
- package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
- package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
- package/dist/stories/Reusable Components/Cards/Card-style-6/CardStyle6.js +10 -4
- package/dist/stories/Reusable Components/Cards/Card-style-8/CardStyle8.js +4 -2
- package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +26 -15
- package/dist/stories/Reusable Components/Cards/globalCardStyles.js +3 -3
- package/dist/stories/Reusable Components/Community/Community.js +76 -0
- package/dist/stories/Reusable Components/Gallery/Gallery.js +17 -18
- package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +20 -3
- package/dist/stories/Reusable Components/ReusableList/ReusableList.js +15 -9
- package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
- package/dist/stories/Sections/Sections.js +67 -0
- package/dist/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.js +77 -18
- package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +96 -3
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +78 -5
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +17 -11
- package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
- package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
- package/dist/stories/helpers/util.js +70 -7
- package/dist/stories/store/communities.js +943 -0
- package/dist/stories/store/store.js +44 -0
- package/package.json +5 -2
- package/src/stories/Chat/Chat.jsx +109 -35
- package/src/stories/Common Inputs/EditorComponent/EditorComponent.jsx +3 -3
- package/src/stories/Common Inputs/Picker/Picker.jsx +47 -0
- package/src/stories/Common Inputs/TextField/TextField.jsx +1 -1
- package/src/stories/Community/Community.jsx +110 -0
- package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +8 -19
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -17
- package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
- package/src/stories/Events/Event/Event.jsx +98 -5
- package/src/stories/Events/EventsList/EventsList.jsx +101 -22
- package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
- package/src/stories/Library/Folders/Folders.jsx +82 -8
- package/src/stories/Library/Notes/Notes.jsx +65 -5
- package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
- package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +133 -21
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +62 -36
- package/src/stories/Navbar/Navbar.jsx +51 -49
- package/src/stories/Pages/Chat/Chat.jsx +17 -4
- package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +20 -1
- package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
- package/src/stories/Pages/Enrollment/Forms/Forms.jsx +23 -1
- package/src/stories/Pages/Events/Event/Event.jsx +12 -4
- package/src/stories/Pages/Events/Events/Events.jsx +75 -74
- package/src/stories/Pages/Library/Folders/Library.jsx +7 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -8
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +28 -27
- package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
- package/src/stories/Pages/Photos/Albums/Albums.jsx +25 -20
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +63 -21
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +65 -66
- package/src/stories/Preview/Preview.jsx +35 -0
- package/src/stories/PreviewComponents/ChatPreview/ChatPreview.jsx +132 -0
- package/src/stories/PreviewComponents/EventPreview/EventPreview.jsx +116 -0
- package/src/stories/PreviewComponents/EventsPreview/EventsPreview.jsx +132 -0
- package/src/stories/PreviewComponents/FoldersPreview/FoldersPreview.jsx +127 -0
- package/src/stories/PreviewComponents/MusicAlbumPreview/MusicAlbumPreview.jsx +124 -0
- package/src/stories/PreviewComponents/MusicAlbumsPreview/MusicAlbumsPreview.jsx +126 -0
- package/src/stories/PreviewComponents/MusicPlayerPreview/MusicPlayerPreview.jsx +113 -0
- package/src/stories/PreviewComponents/NavbarPreview/NavbarPreview.jsx +93 -0
- package/src/stories/PreviewComponents/NotesPreview/NotesPreview.jsx +122 -0
- package/src/stories/PreviewComponents/PhotoAlbumPreview/PhotoAlbumPreview.jsx +129 -0
- package/src/stories/PreviewComponents/PhotoAlbumsPreview/PhotoAlbumsPreview.jsx +129 -0
- package/src/stories/PreviewComponents/SpacesListPreview/SpacesListPreview.jsx +138 -0
- package/src/stories/PreviewComponents/VideoAlbumPreview/VideoAlbumPreview.jsx +129 -0
- package/src/stories/PreviewComponents/VideoAlbumsPreview/VideoAlbumsPreview.jsx +124 -0
- package/src/stories/PreviewComponents/VideoPreview/VideoPreview.jsx +125 -0
- package/src/stories/PreviewComponents/globalStyles.js +20 -0
- package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +13 -6
- package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
- package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
- package/src/stories/Reusable Components/Cards/Card-style-6/CardStyle6.jsx +12 -6
- package/src/stories/Reusable Components/Cards/Card-style-8/CardStyle8.jsx +2 -2
- package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +12 -8
- package/src/stories/Reusable Components/Cards/globalCardStyles.js +3 -2
- package/src/stories/Reusable Components/Community/Community.jsx +70 -0
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +15 -10
- package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +19 -7
- package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
- package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +24 -8
- package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
- package/src/stories/Sections/Sections.jsx +56 -0
- package/src/stories/VideoAlbum/AlbumsGallery/AlbumsGallery.jsx +57 -16
- package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +70 -1
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +65 -8
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +14 -7
- package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
- package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
- package/src/stories/helpers/util.js +50 -6
- package/src/stories/store/communities.js +705 -0
- package/src/stories/store/store.js +33 -0
- package/src/stories/styling.json +92 -0
@@ -5,10 +5,9 @@ import styled from 'styled-components';
|
|
5
5
|
import AudioPlayer from 'react-h5-audio-player';
|
6
6
|
import 'react-h5-audio-player/lib/styles.css';
|
7
7
|
|
8
|
+
import ReusableHeader from '../../Reusable Components/ReusableHeader/ReusableHeader';
|
8
9
|
|
9
|
-
|
10
|
-
const MusicPlayerWidget = ({currentSong , ...props}) => {
|
11
|
-
|
10
|
+
const MusicPlayerWidget = ({ currentSong, ...props }) => {
|
12
11
|
|
13
12
|
const musicPlayerHeading = (
|
14
13
|
<Header>
|
@@ -23,9 +22,12 @@ const MusicPlayerWidget = ({currentSong , ...props}) => {
|
|
23
22
|
</Header>
|
24
23
|
)
|
25
24
|
|
26
|
-
|
27
|
-
|
28
25
|
return (
|
26
|
+
<Container>
|
27
|
+
<ReusableHeader
|
28
|
+
title={props.title || 'Music Player'}
|
29
|
+
{...props.headerStyles}
|
30
|
+
/>
|
29
31
|
<MusicPlayer
|
30
32
|
autoPlay='none'
|
31
33
|
src={props.playlist[currentSong].musicSrc}
|
@@ -37,14 +39,18 @@ const MusicPlayerWidget = ({currentSong , ...props}) => {
|
|
37
39
|
onClickNext={() => props.nextSong()}
|
38
40
|
{...props}
|
39
41
|
/>
|
42
|
+
</Container>
|
40
43
|
)
|
41
44
|
}
|
42
45
|
|
46
|
+
const Container = styled.div`
|
47
|
+
width: 100%;
|
48
|
+
`
|
43
49
|
|
44
50
|
const MusicPlayer = styled(AudioPlayer)`
|
45
51
|
|
46
|
-
font-family: ${props => props.fontFamily || '
|
47
|
-
background-color: ${props => props.backgroundColor || '
|
52
|
+
font-family: ${props => props.fontFamily || 'sans-serif'};
|
53
|
+
background-color: ${props => props.backgroundColor || 'transparent'};
|
48
54
|
border-radius: ${props => props.borderRadius ? props.borderRadius + 'px' : 'inherit'};
|
49
55
|
padding: ${props => props.padding ? props.padding + 'px' : 'inherit'}px;
|
50
56
|
width: ${props => props.width}px;
|
@@ -96,6 +102,7 @@ const Img = styled.img`
|
|
96
102
|
const MusicName = styled.h3`
|
97
103
|
color: ${props => props.fontColor};
|
98
104
|
font-size: ${props => props.fontSize}px;
|
105
|
+
font-weight: 300;
|
99
106
|
`
|
100
107
|
|
101
108
|
const ArtistName = styled.p`
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import styled from 'styled-components';
|
3
|
+
import List from '../../Reusable Components/ReusableList/ReusableList';
|
4
|
+
|
5
|
+
import { AiOutlineFileAdd } from "react-icons/ai";
|
6
|
+
import { BsGear } from "react-icons/bs";
|
7
|
+
|
8
|
+
import Modal from '../../Reusable Components/ReactModal/ReactModal';
|
9
|
+
import SpaceListPreview from '../../PreviewComponents/SpacesListPreview/SpacesListPreview';
|
10
|
+
import CreateSpace from '../../Forms/CreateSpace/CreateSpace';
|
11
|
+
|
12
|
+
const SpacesListWidget = ({
|
13
|
+
spaces,
|
14
|
+
...props
|
15
|
+
}) => {
|
16
|
+
const [showCreateModal, setShowCreateModal] = useState(false)
|
17
|
+
const [showConfigModal, setShowConfigModal] = useState(false)
|
18
|
+
|
19
|
+
const listControls = [
|
20
|
+
{ icon: (<AiOutlineFileAdd />), action: 'add', name: 'Create Space' },
|
21
|
+
{ icon: (<BsGear />), action: 'config', name: 'Config' },
|
22
|
+
]
|
23
|
+
|
24
|
+
const onIconClicked = (action) => {
|
25
|
+
if (!props.preview) {
|
26
|
+
switch (action) {
|
27
|
+
case 'add':
|
28
|
+
setShowCreateModal(true)
|
29
|
+
break;
|
30
|
+
case 'config':
|
31
|
+
setShowConfigModal(true)
|
32
|
+
break;
|
33
|
+
default:
|
34
|
+
break;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
return (
|
40
|
+
<Container>
|
41
|
+
<List
|
42
|
+
listTitle={props.title || 'My Spaces'}
|
43
|
+
type='sectioned'
|
44
|
+
data={spaces}
|
45
|
+
iconClicked={onIconClicked}
|
46
|
+
listControls={listControls}
|
47
|
+
cardStyle='card-style-3'
|
48
|
+
{...props}
|
49
|
+
/>
|
50
|
+
<Modal
|
51
|
+
modalIsOpen={showCreateModal}
|
52
|
+
closeModal={() => setShowCreateModal(false)}
|
53
|
+
exitModalButton={(e) => (
|
54
|
+
<div></div>
|
55
|
+
)}
|
56
|
+
>
|
57
|
+
<CreateSpace />
|
58
|
+
</Modal>
|
59
|
+
<Modal
|
60
|
+
modalIsOpen={showConfigModal}
|
61
|
+
closeModal={() => setShowConfigModal(false)}
|
62
|
+
exitModalButton={(e) => (
|
63
|
+
<div></div>
|
64
|
+
)}
|
65
|
+
>
|
66
|
+
<SpaceListPreview
|
67
|
+
componentProps={{ spaces, preview: true }}
|
68
|
+
/>
|
69
|
+
</Modal>
|
70
|
+
</Container>
|
71
|
+
);
|
72
|
+
};
|
73
|
+
|
74
|
+
const Container = styled.div`
|
75
|
+
|
76
|
+
`
|
77
|
+
|
78
|
+
export default SpacesListWidget;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import List from '../../Reusable Components/ReusableList/ReusableList';
|
3
|
+
|
4
|
+
const UsersWidget = ({
|
5
|
+
users,
|
6
|
+
...props
|
7
|
+
}) => {
|
8
|
+
|
9
|
+
return (
|
10
|
+
<List
|
11
|
+
listTitle={props.title || 'Members List'}
|
12
|
+
cardStyle="card-style-1"
|
13
|
+
data={users}
|
14
|
+
type="flat"
|
15
|
+
{...props}
|
16
|
+
/>
|
17
|
+
);
|
18
|
+
};
|
19
|
+
|
20
|
+
export default UsersWidget;
|
@@ -15,6 +15,23 @@ import ReusableList from '../Reusable Components/ReusableList/ReusableList';
|
|
15
15
|
import MusicPlayerWidget from '../Widgets/MusicPlayerWidget/MusicPlayerWidget';
|
16
16
|
import LogoWidget from '../Widgets/LogoWidget/LogoWidget';
|
17
17
|
import VideoPlayer from '../VideoAlbum/VideoPlayer/VideoPlayer';
|
18
|
+
import Notes from '../Library/Notes/Notes';
|
19
|
+
import Folders from '../Library/Folders/Folders';
|
20
|
+
import UsersWidget from '../Widgets/UsersWidget/UsersWidget';
|
21
|
+
import SpacesListWidget from '../Widgets/SpacesListWidget/SpacesListWidget';
|
22
|
+
// Preview Components
|
23
|
+
import Navbar from '../Navbar/Navbar';
|
24
|
+
import MusicAlbums from '../Music Album/ViewAlbums/ViewAlbums';
|
25
|
+
import MusicAlbum from '../Music Album/ViewAlbum/ViewAlbum';
|
26
|
+
import PhotoAlbums from '../Photo Album/ViewAlbums/ViewAlbums'
|
27
|
+
import PhotoAlbum from '../Photo Album/ViewAlbum/ViewAlbum';
|
28
|
+
import MusicPlayer from '../Widgets/MusicPlayerWidget/MusicPlayerWidget';
|
29
|
+
import Chat from '../Chat/Chat';
|
30
|
+
import Events from '../Events/EventsList/EventsList';
|
31
|
+
import Event from '../Events/Event/Event';
|
32
|
+
import VideoSpace from '../VideoAlbum/VideoSpace/VideoSpace';
|
33
|
+
import VideoAlbums from '../VideoAlbum/AlbumsGallery/AlbumsGallery';
|
34
|
+
import VideoAlbum from '../VideoAlbum/ViewAlbum/ViewAlbum';
|
18
35
|
|
19
36
|
export const stringSearch = (str, word) => {
|
20
37
|
str = str.toUpperCase();
|
@@ -40,17 +57,17 @@ export const addObjectToArray = (arr, obj) => {
|
|
40
57
|
return newArray;
|
41
58
|
}
|
42
59
|
|
43
|
-
export const getCardStyle = (cardProps, cardType, customCardStyles, cardControls, index, clicked, cardIconClicked) => {
|
60
|
+
export const getCardStyle = (cardProps, cardType, customCardStyles, cardControls, index, clicked, cardIconClicked, onAction) => {
|
44
61
|
const cardTypes = {
|
45
62
|
'card-style-1': (<CardStyle1 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} />),
|
46
63
|
'card-style-2': (<CardStyle2 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls}/>),
|
47
|
-
'card-style-3': (<CardStyle3 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={(
|
64
|
+
'card-style-3': (<CardStyle3 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)}/>),
|
48
65
|
'card-style-4': (<CardStyle4 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls}/>),
|
49
66
|
'card-style-6': (<CardStyle6 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
50
67
|
'card-style-7': (<CardStyle7 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
51
68
|
'card-style-8': (<CardStyle8 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
52
|
-
'card-style-9': (<CardStyle9 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)} iconClicked={(action) => cardIconClicked(action, index)}
|
53
|
-
'card-style-10': (<CardStyle10 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
69
|
+
'card-style-9': (<CardStyle9 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)} iconClicked={(action) => cardIconClicked(action, index)}/>),
|
70
|
+
'card-style-10': (<CardStyle10 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
54
71
|
'card-style-11': (<CardStyle11 key={index} {...cardProps} {...customCardStyles} cardControls={cardControls} cardClicked={() => clicked(index, cardProps)} iconClicked={(action) => cardIconClicked(action, index)} />),
|
55
72
|
}
|
56
73
|
return cardTypes[cardType]
|
@@ -61,7 +78,34 @@ export const getWidgetType = (widgetType, props, cardClicked) => {
|
|
61
78
|
'list': (<ReusableList cardClicked={(path) => cardClicked(path)} {...props}/>),
|
62
79
|
'music player': (<MusicPlayerWidget {...props} />),
|
63
80
|
'logo': (<LogoWidget {...props}/>),
|
64
|
-
'video player': (<VideoPlayer {...props}/>)
|
81
|
+
'video player': (<VideoPlayer {...props}/>),
|
82
|
+
'notes': (<Notes {...props}/>),
|
83
|
+
'folders': (<Folders {...props}/>),
|
84
|
+
'users': (<UsersWidget {...props}/>),
|
85
|
+
'profile': (<CardStyle2 {...props}/>),
|
86
|
+
'spaces-list': (<SpacesListWidget cardClicked={(path) => cardClicked(path)} {...props}/>),
|
65
87
|
}
|
66
88
|
return widgetTypes[widgetType]
|
67
|
-
}
|
89
|
+
}
|
90
|
+
|
91
|
+
export const getComponentType = (componentType, componentProps, stylingProps) => {
|
92
|
+
const componentTypes = {
|
93
|
+
'Navbar': (<Navbar {...componentProps} {...stylingProps}/>),
|
94
|
+
'MusicAlbums': (<MusicAlbums {...componentProps} {...stylingProps}/>),
|
95
|
+
'MusicAlbum': (<MusicAlbum {...componentProps} {...stylingProps}/>),
|
96
|
+
'PhotoAlbum': (<PhotoAlbum {...componentProps} {...stylingProps}/>),
|
97
|
+
'PhotoAlbums': (<PhotoAlbums {...componentProps}{...stylingProps}/>),
|
98
|
+
'MusicPlayer': (<MusicPlayer {...componentProps}{...stylingProps}/>),
|
99
|
+
'Folders': (<Folders {...componentProps}{...stylingProps}/>),
|
100
|
+
'Notes': (<Notes {...componentProps}{...stylingProps}/>),
|
101
|
+
'Spaces-List': (<SpacesListWidget {...componentProps}{...stylingProps}/>),
|
102
|
+
'Chat': (<Chat {...componentProps}{...stylingProps}/>),
|
103
|
+
'Events': (<Events {...componentProps}{...stylingProps}/>),
|
104
|
+
'Event': (<Event {...componentProps}{...stylingProps}/>),
|
105
|
+
'Video-Space': (<VideoSpace {...componentProps}{...stylingProps}/>),
|
106
|
+
'Video-Albums': (<VideoAlbums {...componentProps}{...stylingProps}/>),
|
107
|
+
'Video-Album': (<VideoAlbum {...componentProps}{...stylingProps}/>),
|
108
|
+
}
|
109
|
+
return componentTypes[componentType]
|
110
|
+
}
|
111
|
+
|