Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
HM-5026: Post migration (#1039)
Browse files Browse the repository at this point in the history
* Update banner text

* Update banner colour

* Update routes to redirect to front page
  • Loading branch information
dta-tyler authored May 25, 2022
1 parent e2dff97 commit c4f014e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 559 deletions.
2 changes: 1 addition & 1 deletion apps/marketplace/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Header extends Component {
<div className="wrapper">
<div className="row">
<span className="maintenance-message">
Digital Marketplace is closed while it&apos;s moving to BuyICT. <a href="/api/2/r/buyict">Find out more</a>.
Digital Marketplace is now part of <a href="https://www.buyict.gov.au">BuyICT</a>.
</span>
</div>
</div>
Expand Down
366 changes: 5 additions & 361 deletions apps/marketplace/routes.js
Original file line number Diff line number Diff line change
@@ -1,370 +1,14 @@
import React from 'react'
import { withRouter, Switch, Route } from 'react-router-dom'
import PrivateRoute from 'marketplace/MarketplaceAuthenticatedRoute'
import SignupPage from './pages/SignupPage'
import ResetPasswordPage from './pages/ResetPasswordPage'
import CreateTeamPage from './pages/Teams/CreateTeamPage'
import CreateUserPage from './pages/CreateUserPage'
import SendInvitePage from './pages/SendInvitePage'
import BriefPage from './pages/BriefPage'
import BriefResponseCreatePage from './pages/BriefResponseCreatePage'
import BriefResponsePage from './pages/BriefResponsePage'
import BriefResponsesPage from './pages/BriefResponsesPage'
import LoginPage from './pages/LoginPage'
import NotFound from './components/NotFound'
import SellerDashboardPage from './pages/SellerDashboardPage'
import BuyerDashboardPage from './pages/BuyerDashboardPage'
import BriefAssessorsPage from './pages/BriefAssessorsPage'
import BriefOverviewPage from './pages/BriefOverviewPage'
import OpportunitiesPage from './pages/OpportunitiesPage'
import BuyerRFXCreatePage from './pages/BuyerRFXCreatePage'
import BuyerRFXCompletedPage from './pages/BuyerRFXCompletedPage'
import BuyerRFXFlowPage from './pages/BuyerRFXFlowPage'
import BuyerTrainingCreatePage from './pages/BuyerTrainingCreatePage'
import BuyerTrainingCompletedPage from './pages/BuyerTrainingCompletedPage'
import BuyerTrainingFlowPage from './pages/BuyerTrainingFlowPage'
import BuyerBriefOverviewPage from './pages/BuyerBriefOverviewPage'
import BuyerATMCreatePage from './pages/BuyerATMCreatePage'
import BuyerATMCompletedPage from './pages/BuyerATMCompletedPage'
import BuyerATMFlowPage from './pages/BuyerATMFlowPage'
import BuyerSpecialistCreatePage from './pages/BuyerSpecialistCreatePage'
import BuyerSpecialistCompletedPage from './pages/BuyerSpecialistCompletedPage'
import BuyerSpecialistFlowPage from './pages/BuyerSpecialistFlowPage'
import BriefOutcomeChoicePage from './pages/BriefOutcomeChoicePage'
import CloseOpportunityPage from './pages/CloseOpportunityPage'
import CloseOpportunitySuccessPage from './pages/CloseOpportunitySuccessPage'
import EditOpportunityPage from './pages/EditOpportunityPage'
import EditOpportunitySuccessPage from './pages/EditOpportunitySuccessPage'
import EditTeamFlowPage from './pages/Teams/EditTeamFlowPage'
import OpportunityHistoryPage from './pages/OpportunityHistoryPage'
import OpportunityPage from './pages/OpportunityPage'
import CreateTeamFlowPage from './pages/Teams/CreateTeamFlowPage'
import SellerAssessmentFlowPage from './pages/SellerAssessmentFlowPage'
import SellerAssessmentCreatePage from './pages/SellerAssessmentCreatePage'
import SellerAssessmentCompletedPage from './pages/SellerAssessmentCompletedPage'
import SellerAssessmentFeedbackPage from './pages/SellerAssessmentFeedbackPage'
import SellerAssessmentViewPage from './pages/SellerAssessmentViewPage'
import SellerAssessmentCaseStudiesPage from './pages/SellerAssessmentCaseStudiesPage'
import TeamsPage from './pages/Teams/TeamsPage'
import SellerEditFlowPage from './pages/SellerEditFlowPage'
import BuyerAwardSellerPage from './pages/BuyerAwardSellerPage'
import AskQuestionPage from './pages/AskQuestionPage'
import QuestionPage from './pages/QuestionPage'
import PublishAnswerPage from './pages/PublishAnswerPage'
import RequestAccessPage from './pages/RequestAccessPage'
import DownloadReports from './pages/DownloadReports/DownloadReports'
import InsightPage from './pages/InsightPage'
import InvitedSellersPage from './pages/InvitedSellersPage'
import WithdrawOpportunityPage from './pages/WithdrawOpportunityPage'
import WithdrawOpportunitySuccessPage from './pages/WithdrawOpportunitySuccessPage'
import JoinATeamPage from './pages/JoinATeamPage'
import JoinATeamCreatePage from './pages/JoinATeamCreatePage'
import JoinATeamDeclineRequestPage from './pages/JoinATeamDeclineRequestPage'
import BuyICTPage from './pages/BuyICTPage'
import { DMP_LOCKOUT } from './constants/constants'

export const rootPath = '/2'

export const Routes = () => {
if (DMP_LOCKOUT) {
return (
<Switch>
<Route exact path={rootPath} component={BuyICTPage} />
<Route path={`${rootPath}/signup`} component={BuyICTPage} />
<Route path={`${rootPath}/create-user`} component={BuyICTPage} />
<PrivateRoute restrictedTo="admin" path={`${rootPath}/send-invite/:token`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/overview/:flow`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/close`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/closed`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/overview`} component={BriefOverviewPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/edit/:item?`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/edited`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/assessors`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/questions`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/publish-answer/:questionId?`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/withdraw`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/withdrawn`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/ask-a-question`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="supplier" path={`${rootPath}/brief/:briefId/responses`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/:briefResponseType/respond/:briefResponseId`}
component={BuyICTPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/:briefResponseType/respond`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/invited`} component={BuyICTPage} />
<PrivateRoute path={`${rootPath}/brief/:briefId`} component={BriefPage} />
<Route path={`${rootPath}/reset-password`} component={BuyICTPage} />
<Route path={`${rootPath}/login`} component={LoginPage} />
<Route path={`${rootPath}/insights`} component={InsightPage} />
<PrivateRoute restrictedTo="supplier" path={`${rootPath}/seller-dashboard`} component={BuyICTPage} />
<PrivateRoute restrictedTo="supplier" path={`${rootPath}/seller-edit/:supplierCode`} component={BuyICTPage} />
<Route path={`${rootPath}/:framework/opportunities/:briefId/history`} component={OpportunityHistoryPage} />
<Route path={`${rootPath}/:framework/opportunities/:briefId`} component={OpportunityPage} />
<Route path={`${rootPath}/opportunities`} component={OpportunitiesPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-dashboard`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-rfx/create`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-training2/create`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-rfx/:briefId/completed`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-training2/:briefId/completed`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-award/:briefId`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-rfx/:briefId/:stage?`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-training2/:briefId/:stage?`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-atm/:briefId/completed`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-atm/create`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-atm/:briefId/:stage?`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/create-new`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/join`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/team/:teamId/decline-join/:token`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/(teams|people)`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/create`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/edit/:teamId/:stage?`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/:teamId/:stage?`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/download-reports`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-specialist/create`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-specialist/:briefId/completed`}
component={BuyICTPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-specialist/:briefId/:stage?`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/outcome-choice`} component={BuyICTPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/request-access/:permission`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/completed`}
component={BuyICTPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/feedback`}
component={BuyICTPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/view`}
component={BuyICTPage}
/>
<PrivateRoute restrictedTo="supplier" path={`${rootPath}/case-studies/:domainId/view`} component={BuyICTPage} />
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/create/:domainId/:briefId?`}
component={BuyICTPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/:stage?`}
component={BuyICTPage}
/>
<Route component={NotFound} />
</Switch>
)
}
return (
<Switch>
<Route exact path={rootPath} component={SignupPage} />
<Route path={`${rootPath}/signup`} component={SignupPage} />
<Route path={`${rootPath}/create-user`} component={CreateUserPage} />
<PrivateRoute restrictedTo="admin" path={`${rootPath}/send-invite/:token`} component={SendInvitePage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/overview/:flow`}
component={BuyerBriefOverviewPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/close`} component={CloseOpportunityPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/closed`}
component={CloseOpportunitySuccessPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/overview`} component={BriefOverviewPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/edit/:item?`}
component={EditOpportunityPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/edited`}
component={EditOpportunitySuccessPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/assessors`} component={BriefAssessorsPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/questions`} component={QuestionPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/publish-answer/:questionId?`}
component={PublishAnswerPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/withdraw`}
component={WithdrawOpportunityPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/brief/:briefId/withdrawn`}
component={WithdrawOpportunitySuccessPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/ask-a-question`}
component={AskQuestionPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/responses`}
component={BriefResponsesPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/:briefResponseType/respond/:briefResponseId`}
component={BriefResponsePage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/brief/:briefId/:briefResponseType/respond`}
component={BriefResponseCreatePage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/brief/:briefId/invited`} component={InvitedSellersPage} />
<PrivateRoute path={`${rootPath}/brief/:briefId`} component={BriefPage} />
<Route path={`${rootPath}/reset-password`} component={ResetPasswordPage} />
<Route path={`${rootPath}/login`} component={LoginPage} />
<Route path={`${rootPath}/insights`} component={InsightPage} />
<Route path={`${rootPath}/seller-dashboard`} component={SellerDashboardPage} />
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-edit/:supplierCode`}
component={SellerEditFlowPage}
/>
<Route path={`${rootPath}/:framework/opportunities/:briefId/history`} component={OpportunityHistoryPage} />
<Route path={`${rootPath}/:framework/opportunities/:briefId`} component={OpportunityPage} />
<Route path={`${rootPath}/opportunities`} component={OpportunitiesPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-dashboard`} component={BuyerDashboardPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-rfx/create`} component={BuyerRFXCreatePage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-training2/create`}
component={BuyerTrainingCreatePage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-rfx/:briefId/completed`}
component={BuyerRFXCompletedPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-training2/:briefId/completed`}
component={BuyerTrainingCompletedPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-award/:briefId`} component={BuyerAwardSellerPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-rfx/:briefId/:stage?`} component={BuyerRFXFlowPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-training2/:briefId/:stage?`}
component={BuyerTrainingFlowPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-atm/:briefId/completed`}
component={BuyerATMCompletedPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-atm/create`} component={BuyerATMCreatePage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/buyer-atm/:briefId/:stage?`} component={BuyerATMFlowPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/create-new`} component={JoinATeamCreatePage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/join`} component={JoinATeamPage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/team/:teamId/decline-join/:token`}
component={JoinATeamDeclineRequestPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/(teams|people)`} component={TeamsPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/create`} component={CreateTeamPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/edit/:teamId/:stage?`} component={EditTeamFlowPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/team/:teamId/:stage?`} component={CreateTeamFlowPage} />
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/download-reports`} component={DownloadReports} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-specialist/create`}
component={BuyerSpecialistCreatePage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-specialist/:briefId/completed`}
component={BuyerSpecialistCompletedPage}
/>
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/buyer-specialist/:briefId/:stage?`}
component={BuyerSpecialistFlowPage}
/>
<PrivateRoute restrictedTo="buyer" path={`${rootPath}/outcome-choice`} component={BriefOutcomeChoicePage} />
<PrivateRoute
restrictedTo="buyer"
path={`${rootPath}/request-access/:permission`}
component={RequestAccessPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/completed`}
component={SellerAssessmentCompletedPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/feedback`}
component={SellerAssessmentFeedbackPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/view`}
component={SellerAssessmentViewPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/case-studies/:domainId/view`}
component={SellerAssessmentCaseStudiesPage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/create/:domainId/:briefId?`}
component={SellerAssessmentCreatePage}
/>
<PrivateRoute
restrictedTo="supplier"
path={`${rootPath}/seller-assessment/:evidenceId/:stage?`}
component={SellerAssessmentFlowPage}
/>
<Route component={NotFound} />
</Switch>
)
}
export const Routes = () => (
<Switch>
<Route component={BuyICTPage} />
</Switch>
)

const RootContainer = withRouter(Routes)

Expand Down
Loading

0 comments on commit c4f014e

Please sign in to comment.