@mohamed-karawia/library 0.1.18 → 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 +120 -3
- 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/Events/Event/Event.js +116 -4
- package/dist/stories/Events/EventsList/EventsList.js +95 -16
- package/dist/stories/Forms/CreateSpace/CreateSpace.js +75 -0
- package/dist/stories/Library/Folders/Folders.js +80 -1
- package/dist/stories/Library/Notes/Notes.js +75 -1
- package/dist/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.js +54 -0
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +134 -9
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +65 -23
- package/dist/stories/Navbar/Navbar.js +1 -1
- package/dist/stories/Pages/Events/Event/Event.js +14 -5
- package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +2 -15
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +76 -9
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +80 -9
- package/dist/stories/Preview/Preview.js +1 -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 +4 -3
- package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +8 -4
- 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/globalCardStyles.js +2 -2
- package/dist/stories/Reusable Components/Community/Community.js +76 -0
- package/dist/stories/Reusable Components/Gallery/Gallery.js +12 -17
- package/dist/stories/Reusable Components/ReactModal/ReactModal.js +11 -30
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +19 -2
- package/dist/stories/Reusable Components/ReusableList/ReusableList.js +9 -5
- package/dist/stories/Reusable Components/Tabs/Tabs.js +68 -0
- package/dist/stories/Sections/Sections.js +8 -2
- 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 +77 -1
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +16 -10
- package/dist/stories/Widgets/SpacesListWidget/SpacesListWidget.js +115 -0
- package/dist/stories/Widgets/UsersWidget/UsersWidget.js +30 -0
- package/dist/stories/helpers/util.js +36 -3
- 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 +104 -5
- 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/Events/Event/Event.jsx +97 -4
- package/src/stories/Events/EventsList/EventsList.jsx +91 -17
- package/src/stories/Forms/CreateSpace/CreateSpace.jsx +73 -0
- package/src/stories/Library/Folders/Folders.jsx +79 -1
- package/src/stories/Library/Notes/Notes.jsx +57 -1
- package/src/stories/Modals/NavbarPreviewModal/NavbarPreviewModal.jsx +31 -0
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +125 -11
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +56 -26
- package/src/stories/Navbar/Navbar.jsx +1 -1
- package/src/stories/Pages/Events/Event/Event.jsx +12 -4
- package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +0 -13
- package/src/stories/Pages/ViewWorld/styles.json +1 -1
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +57 -4
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +62 -9
- package/src/stories/Preview/Preview.jsx +9 -1
- 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 +5 -2
- package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -5
- 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/globalCardStyles.js +2 -1
- package/src/stories/Reusable Components/Community/Community.jsx +70 -0
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +10 -9
- package/src/stories/Reusable Components/ReactModal/ReactModal.jsx +3 -25
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +18 -6
- package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +9 -4
- package/src/stories/Reusable Components/Tabs/Tabs.jsx +67 -0
- package/src/stories/Sections/Sections.jsx +5 -2
- 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 +62 -3
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +13 -6
- package/src/stories/Widgets/SpacesListWidget/SpacesListWidget.jsx +78 -0
- package/src/stories/Widgets/UsersWidget/UsersWidget.jsx +20 -0
- package/src/stories/helpers/util.js +24 -2
- package/src/stories/store/communities.js +705 -0
- package/src/stories/store/store.js +33 -0
- package/src/stories/styling.json +92 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
import { configureStore, createSlice } from '@reduxjs/toolkit';
|
2
|
+
import { community } from './communities';
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
const Community = createSlice({
|
7
|
+
name: 'community',
|
8
|
+
initialState: community,
|
9
|
+
reducers: {
|
10
|
+
addEvent: (state, action) => {
|
11
|
+
state.spaces[1].spaceProps.events = [...state.spaces[1].spaceProps.events, action.payload]
|
12
|
+
// console.log(action)
|
13
|
+
// alert
|
14
|
+
console.log(action)
|
15
|
+
},
|
16
|
+
deleteEvent: (state, action) => {
|
17
|
+
const eventsAfterDelete = [...state.spaces[1].spaceProps.events]
|
18
|
+
eventsAfterDelete.splice(action.payload, 1)
|
19
|
+
state.spaces[1].spaceProps.events = eventsAfterDelete
|
20
|
+
}
|
21
|
+
},
|
22
|
+
});
|
23
|
+
|
24
|
+
|
25
|
+
export const { addEvent, deleteEvent } = Community.actions;
|
26
|
+
|
27
|
+
const store = configureStore({
|
28
|
+
reducer: {
|
29
|
+
communities: Community.reducer,
|
30
|
+
},
|
31
|
+
});
|
32
|
+
|
33
|
+
export default store;
|
@@ -0,0 +1,92 @@
|
|
1
|
+
{
|
2
|
+
"container": {
|
3
|
+
|
4
|
+
},
|
5
|
+
"navbar": {
|
6
|
+
"iconSize":"md",
|
7
|
+
"iconBackgroundColor":"#00ADC4"
|
8
|
+
},
|
9
|
+
"body": {
|
10
|
+
|
11
|
+
},
|
12
|
+
"left": {
|
13
|
+
|
14
|
+
},
|
15
|
+
"right": {
|
16
|
+
|
17
|
+
},
|
18
|
+
"center": {
|
19
|
+
|
20
|
+
},
|
21
|
+
"spaceContainer": {
|
22
|
+
"header": {
|
23
|
+
"padding": 10,
|
24
|
+
"headerBackground": "#00ADC4",
|
25
|
+
"titleColor": "#ffff",
|
26
|
+
"controlsStyles": {
|
27
|
+
"iconSize": 25
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"body": {
|
31
|
+
"sectionHeaderStyles": {
|
32
|
+
"padding": 2,
|
33
|
+
"headerBackground": "black",
|
34
|
+
"titleColor": "white"
|
35
|
+
},
|
36
|
+
"customCardStyles": {
|
37
|
+
"cardPadding": 6,
|
38
|
+
"cardTitleFontSize": 15,
|
39
|
+
"cardBackgroundColor": "white",
|
40
|
+
"cardTitleColor": "#00ADC4",
|
41
|
+
"cardBorderColor": "#00ADC4",
|
42
|
+
"onHoverBackgroundColor": "#d3d3d3",
|
43
|
+
"iconColor": "#00ADC4",
|
44
|
+
"controlsStyles": {
|
45
|
+
"iconColor": "#00ADC4"
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"widgetContainer": {
|
51
|
+
"header": {
|
52
|
+
"headerBackground": "purple",
|
53
|
+
"padding": 3,
|
54
|
+
"controlsStyles": {
|
55
|
+
"iconColor": "white",
|
56
|
+
"iconsGap": 5
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"body": {
|
60
|
+
"sectionHeaderStyles": {
|
61
|
+
"cardBorderSize": 2,
|
62
|
+
"cardPadding": 2,
|
63
|
+
"headerBackground": "red",
|
64
|
+
"cardBorderColor": "black"
|
65
|
+
},
|
66
|
+
"customCardStyles": {
|
67
|
+
"cardPadding": 6,
|
68
|
+
"cardTitleFontSize": 15,
|
69
|
+
"cardBackgroundColor": "white",
|
70
|
+
"cardTitleColor": "#00ADC4",
|
71
|
+
"cardBorderSize": 1,
|
72
|
+
"cardBorderColor": "#00ADC4",
|
73
|
+
"onHoverBackgroundColor": "#d3d3d3",
|
74
|
+
"controlsStyles": {
|
75
|
+
"showOnHover": true,
|
76
|
+
"iconColor": "#00ADC4"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"primaryColor": "black",
|
80
|
+
"borderRadius": 10,
|
81
|
+
"iconsColor": "#00ADC4",
|
82
|
+
"backgroundColor":"white",
|
83
|
+
"discColor":"gray",
|
84
|
+
"dateColor":"gray",
|
85
|
+
"iconColor":"#00ADC4",
|
86
|
+
"cardTitleFontSize":15
|
87
|
+
},
|
88
|
+
"controls": {
|
89
|
+
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|