update components.js and store.js

master
mahdi 3 years ago
parent d35d161dab
commit 2df6bc963d
  1. 1
      src/redux/actions/index.js
  2. 108
      src/redux/data.js
  3. 3
      src/redux/index.js
  4. 16
      src/redux/reducers/components.js
  5. 1
      src/redux/reducers/index.js
  6. 13
      src/redux/store.js

@ -0,0 +1 @@
export { default as components } from "./components";

@ -0,0 +1,108 @@
import ButtonDesign from "./components/buttonDesign/ButtonDesign";
import ProductDesign from "./components/productDesign/ProductDesign";
import ProductTags from "./components/productTags/ProductTags";
import CounterDesign from "./components/counterDesign/CounterDesign";
import BookDesign from "./components/bookDesign/BookDesign";
import BlogDesign1 from "./components/Blogs/design1/BlogDesign1";
import BlogDesign2 from "./components/Blogs/design2/BlogDesign2";
import BlogDesign3 from "./components/Blogs/design3/BlogDesign3";
import BlogDesign4 from "./components/Blogs/design4/BlogDesign4";
import BlogDesign5 from "./components/Blogs/design5/BlogDesign5";
import BlogDesign6 from "./components/Blogs/design6/BlogDesign6";
import HeaderDesign1 from "./components/Header/desgin1/HeaderDesign1";
import VodProductDesign from "./components/vodProductDesign/VodProductDesign";
import ContactInfoSection from "./components/contactInfoSection/ContactInfoSection";
import FooterDesign1 from "./components/footer/design1/FooterDesign1";
import Testttt from "./components/testtttt/Testttt";
import Design2D from "./components/Design2D/Design2D";
import Features from "./components/Features/index";
import Feedback from "./components/Feedback/index";
import Alert from "./components/Alert";
import Toast from "./components/Toast";
import ProductSuggestion from "./components/ProductSuggestion";
import ProductImage from "./components/ProductImage";
import VodProduct from "./components/VodProduct";
import VodProductNew from "./components/VodProductNew";
import ProductTab from "./components/ProductTab";
import ProductStatusCard from "./components/ProductStatusCard";
import AdvertisementDesign1 from "./components/Advertisement/design1";
import AdvertisementDesign2 from "./components/Advertisement/design2";
import AdvertisementDesign3 from "./components/Advertisement/design3";
import CourseChapter from "./components/CourseChapter";
import SidebarMenu from "./components/Sidebar/SidebarMenu";
import SidebarDesign2 from "./components/Sidebar/SidebarDesign2";
import SimpleBarChart from "./components/Chart/SimpleBarChart";
import SpecifiedDomainRadarChart from "./components/Chart/SpecifiedDomainRadarChart";
import Design1 from "./components/ProductSalesAmount/Design1";
import Design2 from "./components/ProductSalesAmount/Design2";
import TableDesign1 from "./components/Table/Design1";
import ReactTable2 from "./components/ReactTable2";
import ReactTable3 from "./components/ReactTable3";
import ReactTable4 from "./components/ReactTable4";
import ReactTable5 from "./components/ReactTable5";
import Digikala from "./components/Digikala";
import Switch from "./components/Switch";
import BreadCrumb from "./components/BreadCrumb";
import SearchBox from "./components/SearchBox";
import Blogs from "./components/Blogs";
import FileManager from "./components/FileManager";
import Playlist from "./components/Playlist";
import Folderlists from "./components/Folderlist";
import CardHolder from "./components/CardHolder";
import UploadFile from "./components/UploadFile";
import BarChartApex from "./components/BarChartApex";
import SemiDonut from "./components/SemiDonut";
import FolderTree from "./components/FolderTree";
import GridListTable from "./components/GridListTable";
import PopupCard from "./components/PopupCard";
import OutlineInput from "./components/OutlineInput";
import CancleIcon from "./components/CancleIcon";
import ButtonNewDesign from "./components/ButtonNewDesign";
import TimeLineComponent from "./components/TimeLineComponent";
import TitleSubtitle from "./components/TitleSubtitle";
import TimeLine from "./components/TimeLineComponent/Timeline";
import ProfilePicNextToEachOther from "./components/ProfilePicNextToEachOther";
import SelectYear from "./components/SelectYear";
import IndianaDragScroll from "./components/IndianaDragScroll";
import CardTrelloDesign from "./components/CardTrelloDesign";
import CircleInCircle from "./components/CircleInCircle";
import NewTagDesign from "./components/NewTagDesign";
import AnimatedProgressBar from "./components/AnimatedProgressBar";
import ReligiousTimes from "./components/ReligiousTimes";
import DistributedData from "./components/DistributedData";
import CardDesign1 from "./components/CardDesign1";
import CustomToast from "./components/CustomToast";
import IconText from "./components/IconText";
import CardDesign2 from "./components/CardDesign2";
import ButtonDivTag from "./components/ButtonDivTag";
import Button from "./components/Button";
import LeafletMap from "./components/LeafletMap";
import TestComponentNew from "./components/TestComponentNew";
import DateRangePicker from "./components/DateRangePicker";
import BoxNextToEachOther from "./components/BoxNextToEachOther";
import ProfileInfo from "./components/ProfileInfo";
import UserProfileInfo from "./components/UserProfileInfo";
import CurrentTime from "./components/CurrentTime";
import CurrentDateShamsi from "./components/CurrentDateShamsi";
import DateTime from "./components/DateTime";
import CardDesign3 from "./components/CardDesign3";
import CustomToast2 from "./components/CustomToast2";
import ContactUsInfoCard from "./components/ContactUsInfoCard";
import RoomCardInfo from "./components/RoomCardInfo";
import FormInput from "./components/FormInput";
import OutlineTextarea from "./components/OutlineTextarea";
const components = [
{
name: "Button",
author: "Andalib",
props: [],
content: {
name: "Button",
component: <Button />,
code: null,
},
},
];
export default components;

@ -0,0 +1,3 @@
export { default as actions } from "./actions";
export { default as reducers } from "./reducers";
export { default as store } from "./store.js";

@ -0,0 +1,16 @@
import data from "../data";
const initialState = {
list: data,
activeComponent: {},
};
export default function components(state = initialState, action) {
let { type, data } = action;
switch (type) {
case "components/list":
return { ...state, list: data };
case "components/activeComponent":
return { ...state, activeComponent: data };
default:
return state;
}
}

@ -0,0 +1 @@
export { default as components } from "./components";

@ -1,6 +1,17 @@
import { createStore, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";
import { combineReducers } from "redux";
import * as reducers from "./reducers";
import rootReducer from "./reducers/rootReducer";
const store = createStore(rootReducer, applyMiddleware(thunk));
const initialState = {};
const middleware = [thunk];
const store = createStore(
rootReducer,
applyMiddleware(thunk),
combineReducers(reducers),
initialState,
composeWithDevTools(applyMiddleware(...middleware))
);
export default store;

Loading…
Cancel
Save