diff --git a/src/assets/images/readbook.png b/src/assets/images/readbook.png new file mode 100644 index 000000000..6e175a7f8 Binary files /dev/null and b/src/assets/images/readbook.png differ diff --git a/src/assets/images/svg/book-img.png b/src/assets/images/svg/book-img.png new file mode 100644 index 000000000..356e3d9ca Binary files /dev/null and b/src/assets/images/svg/book-img.png differ diff --git a/src/assets/images/svg/filterview.svg b/src/assets/images/svg/filterview.svg new file mode 100644 index 000000000..5fca97f38 --- /dev/null +++ b/src/assets/images/svg/filterview.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/svg/gridview.svg b/src/assets/images/svg/gridview.svg new file mode 100644 index 000000000..52419890a --- /dev/null +++ b/src/assets/images/svg/gridview.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/images/svg/listview.svg b/src/assets/images/svg/listview.svg new file mode 100644 index 000000000..b3c4cd012 --- /dev/null +++ b/src/assets/images/svg/listview.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/images/svg/right-arrow.svg b/src/assets/images/svg/right-arrow.svg new file mode 100644 index 000000000..64048d6ab --- /dev/null +++ b/src/assets/images/svg/right-arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/svg/searchdropdown-logo.svg b/src/assets/images/svg/searchdropdown-logo.svg new file mode 100644 index 000000000..36ba7b5e6 --- /dev/null +++ b/src/assets/images/svg/searchdropdown-logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/containers/SearchProject/index.js b/src/containers/SearchProject/index.js new file mode 100644 index 000000000..c5f628eea --- /dev/null +++ b/src/containers/SearchProject/index.js @@ -0,0 +1,1297 @@ +/* eslint-disable react/prop-types */ +/* eslint-disable */ +import React, { useState, useEffect } from "react"; +import { Accordion, Card, Dropdown } from "react-bootstrap"; +import { getGlobalColor } from "containers/App/DynamicBrandingApply"; +import Alert from "react-bootstrap/Alert"; + +import Filter from "assets/images/svg/filterview.svg"; +import ListView from "assets/images/svg/listview.svg"; +import GridView from "assets/images/svg/gridview.svg"; +import Book from "assets/images/svg/book-img.png"; +import ReadBook from "assets/images/readbook.png"; +import SearchBook from "assets/images/svg/searchdropdown-logo.svg"; +import RightArow from "assets/images/svg/right-arrow.svg"; + +import PreviewSmSvg from "iconLibrary/dropDown/PreviewSmSvg"; +import PlusSmSvg from "iconLibrary/mainContainer/PlusSmSvg"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +import SearchInputMdSvg from "iconLibrary/mainContainer/SearchInputMdSvg"; + +import "./style.scss"; +import "../Projects/style.scss"; + +const searchCollection = [ + { + img: Book, + collectionname: "Java for Dummies", + collection: "Collection", + name: " Shiaki A. Minami, Shruthi S. Garimella, Priya S. Shah", + category: " Biotechnology Journal", + publishdate: "2 November 2022", + description: "Description", + preview: "Preview", + }, + { + img: Book, + collectionname: + "Does support affect the governance performance of the farm irrigation system?", + collection: "Collection", + name: " Shiaki A. Minami, Shruthi S. Garimella, Priya S. Shah", + category: " Biotechnology Journal", + publishdate: "10 December 2021", + description: "Description", + preview: "Preview", + }, + { + img: Book, + collectionname: + "Does organizational support affect the governance performance of the farm irrigation system? Evidence from the yellow River basin in China", + collection: "Collection", + name: " Shiaki A. Minami, Shruthi S. Garimella, Priya S. Shah", + category: " Biotechnology Journal", + publishdate: "25 October 2023", + description: "Description", + preview: "Preview", + }, +]; + +const searchData = [ + { + img: SearchBook, + heading: + "Does organizational support affect the governance performance more", + bookname: "Book", + detail: "Yangqi Fu, Yuchun Zhu", + publishname: "Vadose Zone Journal", + publishdate: "25 October 2023", + description: "Book Description", + preview: "Preview", + }, + { + img: SearchBook, + heading: + "Does Estimation of soil moisture using environmental covariates", + bookname: "Book", + detail: "Yangqi Fu, Yuchun Zhu", + publishname: "Vadose Zone Journal", + publishdate: "25 October 2023", + description: "Book Description", + preview: "Preview", + }, + { + img: SearchBook, + heading: + "Does support affect the governance performance of the farm irrigation system?", + bookname: "Unit", + detail: "Yangqi Fu, Yuchun Zhu", + publishname: "Vadose Zone Journal", + publishdate: "25 October 2023", + description: "Book Description", + preview: "Preview", + }, + { + img: SearchBook, + heading: + "Does support affect the governance performance of the farm irrigation system?", + bookname: "Unit 2", + detail: "Yangqi Fu, Yuchun Zhu", + publishname: "Vadose Zone Journal", + publishdate: "25 October 2023", + description: "Book Description", + preview: "Preview", + }, + { + img: SearchBook, + heading: "Developing Software", + bookname: "Chapter", + detail: "Yangqi Fu, Yuchun Zhu", + publishname: "Vadose Zone Journal", + publishdate: "25 October 2023", + description: "Book Description", + preview: "Preview", + }, + { + img: SearchBook, + heading: "Developing Hardware", + bookname: "Chapter 2", + detail: "Yangqi Fu, Yuchun Zhu", + publishname: "Vadose Zone Journal", + publishdate: "25 October 2023", + description: "Book Description", + preview: "Preview", + }, +]; + +const Index = () => { + const primaryColor = getGlobalColor("--main-primary-color"); + + // search + const [startSearching, setStartSearching] = useState(""); + console.log("setStartSearching", startSearching); + + // search data + const [searchContent, setSearchContent] = useState([]); + // filtered data + const filteredData = searchCollection.filter((item) => + item.collectionname + .toLowerCase() + .includes(startSearching.toLowerCase()), + ); + useEffect(() => { + if (searchContent) { + setSearchContent(searchCollection); + } + }, []); + return ( +
+

+ {/* {filteredData.length > 0 && startSearching + ? `Search results for ${startSearching}` */} + {/* : */} + Link Resource from External Tool + {/* } */} +

+
+
+
+ { + setStartSearching(e.target.value); + }} + /> + +
+
+ filter +

Filter

+
+
+ {!startSearching && ( +
+ filter + filter +
+ )} +
+ {/* Acoordion */} + {/* {!startSearching ? ( */} +
+
0 && startSearching + // ? "492px" + // : "auto", + // }} + > + {filteredData.length ? ( + + {filteredData.map((item, i) => ( + + {/* header card 1 */} + + +
+
+ img +
+
+

+ {item.collectionname} +

+

+ {item.collection} +

+

+ {item.name} +

+

+ {item.category} +   |   + + First Published: {item.publishdate} + +

+
+

+ {item.description} +

+

+

+ {item.preview} +

+
+
+
+ {filteredData.length > 0 && + startSearching ? ( +
+ + + + + + <> + + {/* */} +
+ + Preview +
+ {/*
*/} +
+ +
+ + Add to LMS +
+
+ +
+
+
+ ) : ( +
+
+ + arrow +
+
+ )} +
+
+
+
+ {/* body 1 */} + + + + + + {/* inner book 1*/} + + +
    +
  • +
    + image +

    + Book 1: All About Java +

    +
    +
    +
    + + arrow +
    +
    +
    + + + + + + <> + + {/* */} +
    + + Preview +
    + {/*
    */} +
    + +
    + + + Add to LMS + +
    +
    + +
    +
    +
    +
  • +
+
+
+ {/* inner book card body */} + + + + + + {/* inner unit 1 */} + + +
    +
  • +
    + image +

    + Unit 1: What You can + do With java +

    +
    +
    +
    + + arrow +
    +
    +
    + + + + + + <> + + {/* */} +
    + + + Preview + +
    + {/*
    */} +
    + +
    + + + Add to LMS + +
    +
    + +
    +
    +
    +
  • +
+
+
+ {/* inner chapter 1 */} + + + + + + + + + + + + + +
+
+
+
+
+ {/* inner book card body */} + + + + + + {/* inner unit 2 */} + + +
    +
  • +
    + image +

    + Unit 2: What You can + do With java +

    +
    +
    + + arrow +
    +
    +
    +
    + + + + + + <> + + {/* */} +
    + + + Preview + +
    + {/*
    */} +
    + +
    + + + Add to LMS + +
    +
    + +
    +
    +
    +
  • +
+
+
+ {/* inner chapter 1*/} + + + + + + + + + + + + + + {/* chapter 2 */} + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+ + + + + + {/* inner book 2*/} + + +
    +
  • +
    + image +

    + Book 2: All About Java +

    +
    +
    + + arrow +
    +
    +
    +
    + + + + + + <> + + {/* */} +
    + + Preview +
    + {/*
    */} +
    + +
    + + + Add to LMS + +
    +
    + +
    +
    +
    +
  • +
+
+
+ {/* inner unit 1 */} + + + + + + {/* inner unit card header */} + + +
    +
  • +
    + image +

    + Unit 1: What You can + do With java +

    +
    +
    + + arrow +
    +
    +
    +
    + + + + + + <> + + {/* */} +
    + + + Preview + +
    + {/*
    */} +
    + +
    + + + Add to LMS + +
    +
    + +
    +
    +
    +
  • +
+
+
+ {/* inner chapter card body */} + + + + + + + + + + + + + +
+
+
+
+
+ {/* inner unit 1 */} + + + + + + {/* inner unit card header */} + + +
    +
  • +
    + image +

    + Unit 2: What You can + do With java +

    +
    +
    + + arrow +
    +
    +
    +
    + + + + + + <> + + {/* */} +
    + + + Preview + +
    + {/*
    */} +
    + +
    + + + Add to LMS + +
    +
    + +
    +
    +
    +
  • +
+
+
+ {/* inner chapter card body */} + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+ ))} + {filteredData.length > 0 && startSearching && ( + + See more + + )} +
+ ) : ( + + No collection found + + )} +
+
+ {/* ) : ( */} + {/*
+ {filteredData.length ? ( +
+ <> +
+ + {filteredData.map((item, i) => ( + +
+
+ logo +
+

+ {item.heading} +

+

+ {item.bookname} +

+

+ {item.detail} +

+

+ {item.publishname}   + + First Published: {item.publishdate} + +

+
+

+ {item.description} +

+

+

+ {item.preview} +

+
+
+
+
+ + + + + + <> + +
+ + Preview +
+
+ +
+ + Add to LMS +
+
+ +
+
+
+
+
+ ))} +
+
+ + See more + + +
+ ) : ( + + No result found + + )} +
*/} + {/* )} */} +
+ ); +}; + +export default Index; diff --git a/src/containers/SearchProject/style.scss b/src/containers/SearchProject/style.scss new file mode 100644 index 000000000..3373249fc --- /dev/null +++ b/src/containers/SearchProject/style.scss @@ -0,0 +1,505 @@ +.content-wrapper-project { + padding: 24px 24px 18px !important; + margin: 24px auto 41px !important; + background: #fff; + max-width: 1440px; + transition: all 1s ease-out; + .resource_heading { + color: #515151; + font-size: 18px; + margin-bottom: 6px; + font-style: normal; + font-weight: 500; + line-height: 24px; + } + .search-project-filter { + justify-content: space-between; + border-radius: 8px; + padding: 16px; + .search-project-box { + display: flex; + align-items: center; + .search-bar { + margin-right: 16px; + input { + padding: 6px 39px 6px 7px; + } + svg { + right: 8px; + bottom: 7px; + } + } + .inner-filter-box { + display: flex; + gap: 4px; + cursor: pointer; + align-items: center; + .filter-text { + color: #084892; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + margin: 0; + } + } + } + } + .list-grid-box { + display: flex; + align-items: center; + gap: 0; + } + .results_filter { + width: 100%; + .box { + display: flex; + padding: 12px; + gap: 16px; + align-items: flex-start; + border-bottom: 1px solid #dddddd !important; + min-height: 92px; + .imgbox { + width: 12%; + max-height: 114px; + flex-shrink: 0; + border-radius: 4px; + margin: 0; + } + .contentbox { + margin-top: 0; + width: 78%; + display: flex; + justify-content: space-between; + overflow: visible; + align-items: center; + .inner_content { + display: flex; + flex-direction: column; + align-items: flex-start; + .content_heading { + color: #084892; + text-align: left; + font-size: 14px; + font-style: normal; + font-weight: 500; + margin: 0 0 4px; + line-height: 20px; + } + .view_content_heading { + font-size: 18px; + text-align: left; + line-height: 24px; + } + .cotent-text { + color: #767676; + font-size: 14px; + font-style: normal; + font-weight: 400; + margin: 0 0 4px; + line-height: 20px; + } + .view-content-box { + display: flex; + flex-direction: column; + gap: 4px; + .byTypebox { + display: flex; + gap: 4px; + align-items: center; + .by-type-content { + color: #959595; + margin: 0; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + } + .by-type-text { + color: #084892 !important; + } + } + } + .content-link { + color: #084892 !important; + font-size: 14px; + margin: 0 0 4px; + font-style: normal; + font-weight: 400; + line-height: 20px; + span { + color: #767676; + font-size: 14px; + margin: 0; + font-style: normal; + font-weight: 400; + line-height: 20px; + } + } + } + } + .btn-box { + width: 100%; + max-width: 114px; + min-height: 144px; + display: flex; + align-items: end; + .view-unit-box { + display: flex; + padding: 4px 8px; + width: 100%; + align-items: center; + gap: 8px; + border-radius: 4px; + background: #f7faff; + .unit-btn { + border: none; + color: #2e68bf; + margin: 0; + padding: 0; + background: transparent; + font-family: "rubic"; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 20px; + } + } + } + .dropdown-contentbox { + justify-content: end; + } + } + } + // Accordion + .tab-content { + border-radius: 4px; + // overflow: scroll; + box-shadow: 0px 2px 8px 1px rgba(8, 72, 146, 0.16); + background: #fff; + .search-project-card-head { + width: 100%; + border: none; + border-radius: 8px; + border-bottom: 1px solid #e5eeff !important; + padding: 0; + svg { + color: #084892; + } + } + .accordion { + .card { + border: none; + overflow: inherit !important; + .card-header { + background-color: #fff; + border-bottom: none; + margin-bottom: 0px; + padding-bottom: 0px; + padding-top: 0px; + margin-bottom: 10px; + } + .playlist-card { + padding: 0px 30px; + } + .inner-card-body { + padding: 0 0 0 82px; + } + .box { + border-bottom: none; + background: #fff; + .search-content { + p { + max-width: 650px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } + } + } + .search-activity-content { + display: flex; + justify-content: space-between; + align-items: center; + margin: 0px 79px; + border-bottom: 1px solid #e5eeff; + padding: 10px 10px; + .activity-box { + display: flex; + align-items: center; + .activity-thumb { + width: 36px; + height: 36px; + margin-right: 20px; + div { + width: 100%; + height: 100%; + background-size: cover; + background-repeat: no-repeat; + background-position: center top; + border: 1px solid rgba(204, 204, 204, 0.8); + } + } + } + } + .seeMore-link { + width: 100%; + display: block; + color: #084892; + text-align: center; + padding: 2px 0 8px; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 20px; + letter-spacing: 0.28px; + text-decoration-line: underline; + } + } + } + .search-playllist-content { + width: 100%; + border: 1px solid #e5eeff; + border-radius: 8px; + padding: 0px; + margin: 0px; + .active-li { + background: #fff; + .playlist-dropdown { + button { + // background-color: #e5eeff !important; + &:hover { + background-color: transparent; + } + &:focus { + background-color: #e5eeff !important; + } + } + } + } + .non-active-li { + background: #fff; + } + li { + display: flex; + justify-content: space-between; + align-items: center; + border-radius: 8px; + padding: 8px; + + .search-playlist-title { + width: 100%; + display: flex; + align-items: center; + svg { + color: #084892; + } + .playlist-title { + width: 100%; + text-align: left; + border-bottom: 1px solid #e5eeff; + font-style: normal; + font-weight: 400; + font-size: 16px; + line-height: 24px; + color: #084892; + margin: 0 0 0 8px; + padding: 7px 0 8px 0; + } + .playlist-inner-title { + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + } + } + } + } + // search dropdown styling + .search-dropdown-main { + width: 100%; + min-height: 492px; + // background: rgba(8, 72, 146, 0.8); + // mix-blend-mode: multiply; + .search-dropdown-box { + display: flex; + flex-direction: column; + justify-content: space-between; + width: 100%; + // min-height: 492px; + background: #fff; + border: 1px solid #ddd; + box-shadow: 0px 12px 12px 6px rgba(81, 81, 81, 0.16); + // background: rgba(8, 72, 146, 0.8); + padding: 0 17px 8px; + .search-filter { + display: flex; + justify-content: space-between; + cursor: pointer; + align-items: flex-start; + padding: 4px 4px 12px; + border-bottom: 1px solid #ddd; + gap: 8px; + .logo { + border-radius: 125px; + border: 1px solid #ddd; + } + .search-dropdown-content { + display: flex; + flex-direction: column; + align-items: flex-start; + .search-dropdown-details { + color: #767676; + font-size: 14px; + font-style: normal; + font-weight: 400; + margin: 0; + line-height: 20px; + } + .dropdown-heading { + width: 100%; + max-width: 428px; + text-align: left; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + color: #000 !important; + } + .publish-name { + color: #084892 !important; + } + .content-detail { + color: #767676 !important; + } + } + .search-dropdown-filter { + display: flex; + align-items: flex-start; + gap: 8px; + } + } + .seeMore-link { + color: #084892; + text-align: center; + margin: 12px 0 0; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 20px; + letter-spacing: 0.28px; + text-decoration-line: underline; + } + .search-playlist-dropdown { + .dropdown-toggle { + width: 100%; + background: #fff; + &:focus { + box-shadow: none; + } + &::after { + display: none; + } + } + } + } + } + // same styling + .content-pdf-box { + display: flex; + align-items: center; + gap: 10px; + .content-pdf { + font-family: "rubic" !important; + color: #084892 !important; + font-size: 14px; + font-style: normal; + font-weight: 400; + margin: 0; + line-height: 20px; + letter-spacing: 0.28px; + } + .content-slash { + background: #767676 !important; + width: 1.5px; + margin: auto; + height: 17px; + } + } +} +.view-btn-box { + width: 100%; + max-width: 114px; + display: flex; + align-items: end; + .view-unit-box { + display: flex; + padding: 4px 8px; + width: 100%; + align-items: center; + gap: 8px; + border-radius: 4px; + background: #f7faff; + .unit-btn { + border: none; + color: #2e68bf; + margin: 0; + padding: 0; + background: transparent; + font-family: "rubic"; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 20px; + } + } +} +.ch-box { + max-width: 134px; +} +.playlist-dropdown { + .dropdown-menu.show { + min-width: 200px; + box-shadow: 0px 2px 8px 1px rgba(8, 72, 146, 0.16); + border-radius: 4px; + border: none; + background: #fff; + padding: 8px 16px; + } + .dropdown-toggle::after { + content: none !important; + } + button { + background-color: #fff !important; + } + .dropdown-item { + color: #084892 !important; + padding: 6px 4px; + margin-bottom: 0; + border-radius: 4px; + + &:hover { + background: rgba(229, 238, 255, 0.32); + border-radius: 4px; + } + &:active { + background: rgba(229, 238, 255, 0.32); + border-radius: 4px; + } + } + .dropDown-item-name-icon { + svg { + margin-right: 8px; + } + span { + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 20px; + color: #084892; + &:hover { + color: #2e68bf; + } + } + } +} diff --git a/src/routers/AppRouter.js b/src/routers/AppRouter.js index a0b3d3a8c..13f20bef7 100755 --- a/src/routers/AppRouter.js +++ b/src/routers/AppRouter.js @@ -30,153 +30,158 @@ history.listen((location) => { ReactGA.pageview(location.pathname); }); const LoginPage = loadable(() => - import("../containers/Auth/LoginPage") + import("../containers/Auth/LoginPage"), ); const ProjectShareTemplate = loadable(() => - import("../containers/ProjectShareTemplate") + import("../containers/ProjectShareTemplate"), ); const SubscribePage = loadable(() => - import("../containers/Auth/SubscribePage") + import("../containers/Auth/SubscribePage"), ); const RegisterPage = loadable(() => - import("../containers/Auth/RegisterPage") + import("../containers/Auth/RegisterPage"), ); const ForgotPasswordPage = loadable(() => - import("../containers/Auth/ForgotPasswordPage") + import("../containers/Auth/ForgotPasswordPage"), ); const ResetPasswordPage = loadable(() => - import("../containers/Auth/ResetPasswordPage") + import("../containers/Auth/ResetPasswordPage"), ); const ConfirmEmailPage = loadable(() => - import("../containers/Auth/ConfirmEmailPage") + import("../containers/Auth/ConfirmEmailPage"), ); const NeafRegister = loadable(() => - import("../containers/Auth/NeafRegistration") + import("../containers/Auth/NeafRegistration"), ); const NeafLogin = loadable(() => - import("../containers/Auth/NeafLogin") + import("../containers/Auth/NeafLogin"), ); const VevensityRegister = loadable(() => - import("../containers/Auth/VevinsityRegistration") + import("../containers/Auth/VevinsityRegistration"), ); const VevensityLogin = loadable(() => - import("../containers/Auth/VevinsityLogin") + import("../containers/Auth/VevinsityLogin"), ); const AdminPanel = loadable(() => import("../containers/Admin")); const Library = loadable(() => import("../containers/Search")); const LtiLogin = loadable(() => - import("../containers/Auth/LtiLogin") + import("../containers/Auth/LtiLogin"), ); const termsPolicyContent = loadable(() => - import("../components/Footer/termsPolicyContent") + import("../components/Footer/termsPolicyContent"), ); const CanvasLtiLogin = loadable(() => - import("../containers/Auth/CanvasLtiLogin") + import("../containers/Auth/CanvasLtiLogin"), ); const ProfilePage = loadable(() => - import("../containers/Account/ProfilePage") + import("../containers/Account/ProfilePage"), ); const ChangePasswordPage = loadable(() => - import("../containers/Account/ChangePasswordPage") + import("../containers/Account/ChangePasswordPage"), ); // const DashboardPage = loadable(() => import('../containers/Dashboard')); const NotificationPage = loadable(() => - import("../containers/Notification") + import("../containers/Notification"), ); const MsTeams = loadable(() => import("../containers/MsTeams")); const MsTeamsCallBack = loadable(() => - import("../containers/MsTeams/callback") + import("../containers/MsTeams/callback"), ); const BrandingPage = loadable(() => import("../containers/Branding")); const ProjectsPage = loadable(() => import("../containers/Projects")); const PlaylistsPage = loadable(() => - import("../containers/Playlists") + import("../containers/Playlists"), ); const PreviewPage = loadable(() => import("../containers/Preview")); const LtiPreviewPage = loadable(() => - import("../containers/LtiPreviewPage") + import("../containers/LtiPreviewPage"), ); const PreviewPageShared = loadable(() => - import("../containers/PreviewPageShared") + import("../containers/PreviewPageShared"), ); const SecureProjectPreview = loadable(() => - import("../containers/SecureProjectPreview") + import("../containers/SecureProjectPreview"), ); const SearchResult = loadable(() => import("../containers/Search")); const Searchnetlify = loadable(() => - import("../containers/Search/SearchNetlify") + import("../containers/Search/SearchNetlify"), ); // const LtiModel = loadable(() => import('../containers/LtiModel')); const TeamsPage = loadable(() => import("../containers/Teams")); const TeamDetailPage = loadable(() => - import("../containers/Teams/TeamDetailView") + import("../containers/Teams/TeamDetailView"), ); const TeamAddProjects = loadable(() => - import("../containers/Teams/TeamAddProjects") + import("../containers/Teams/TeamAddProjects"), ); const VideoPage = loadable(() => import("../containers/Videos")); const RecordVideoPage = loadable(() => - import("../containers/RecordVideo") + import("../containers/RecordVideo"), ); // const GroupsPage = loadable(() => import('../containers/Groups')); // const AddGroupProjectsPage = loadable(() => import('../containers/Groups/AddProjects')); // const AddGroupProjectMemberPage = loadable(() => import('../containers/Groups/AddMembers')); const GclassActivityPage = loadable(() => - import("../containers/LMS/GoogleClassroom/GclassActivityPage") + import("../containers/LMS/GoogleClassroom/GclassActivityPage"), ); const GenericLMSActivityPage = loadable(() => - import("../containers/LMS/Generic/GenericLMSActivityPage") + import("../containers/LMS/Generic/GenericLMSActivityPage"), ); const ActivityCreate = loadable(() => - import("../containers/CreateActivity") + import("../containers/CreateActivity"), ); const EditActivity = loadable(() => - import("../containers/EditActivity") + import("../containers/EditActivity"), ); const GclassSummaryPage = loadable(() => - import("../containers/LMS/GoogleClassroom/GclassSummaryPage") + import("../containers/LMS/GoogleClassroom/GclassSummaryPage"), ); const CanvasSummaryPage = loadable(() => - import("../containers/LMS/Canvas/CanvasSummaryPage") + import("../containers/LMS/Canvas/CanvasSummaryPage"), ); const SearchPage = loadable(() => - import("../containers/LMS/Canvas/DeepLinking/SearchPage") + import("../containers/LMS/Canvas/DeepLinking/SearchPage"), ); const LtiActivity = loadable(() => - import("../containers/LMS/LTI/Activity") + import("../containers/LMS/LTI/Activity"), ); const ManageOrganization = loadable(() => - import("../containers/ManageOrganization") + import("../containers/ManageOrganization"), ); const SSOLogin = loadable(() => - import("../containers/Auth/SSOLogin") + import("../containers/Auth/SSOLogin"), ); const WordpressSSO = loadable(() => - import("../containers/Auth/WordpressSSO") + import("../containers/Auth/WordpressSSO"), ); const MSTeamsSSO = loadable(() => - import("../containers/Auth/MSTeamsSSO") + import("../containers/Auth/MSTeamsSSO"), ); const MsTeamsActivityPage = loadable(() => - import("../containers/LMS/MsTeams/MsTeamsActivityPage") + import("../containers/LMS/MsTeams/MsTeamsActivityPage"), ); const MsTeamActivityLaunch = loadable(() => - import("../containers/LMS/MsTeams/MsTeamActivityLaunch") + import("../containers/LMS/MsTeams/MsTeamActivityLaunch"), ); const MsTeamSummaryPage = loadable(() => - import("../containers/LMS/MsTeams/MsTeamSummaryPage") + import("../containers/LMS/MsTeams/MsTeamSummaryPage"), ); const MsTeamsActivityContainer = loadable(() => - import("../containers/LMS/MsTeams/MsTeamsActivityContainer") + import("../containers/LMS/MsTeams/MsTeamsActivityContainer"), ); + +const SearchProject = loadable(() => + import("../containers/SearchProject"), +); + let intialLoad = 0; const AppRouter = (props) => { const dispatch = useDispatch(); const hideShowSideBar = useSelector( - (state) => state.msTeams.toggle_sidebar + (state) => state.msTeams.toggle_sidebar, ); const isMsTeam = useSelector((state) => state.msTeams.is_msteam); const SelectedOrganization = localStorage.getItem("current_org"); @@ -437,6 +442,11 @@ const AppRouter = (props) => { path="/nevada-login" component={VevensityLogin} /> + {user && !user.subscribed ? (