UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
routes.js 8.24 KiB
Newer Older
graham.smith's avatar
graham.smith committed
export const routes = [
  {
    path: "/",
    name: "Home",
    meta: {
      title: "Platform One",
      bodyClass: "home-page",
      header: {
        title: "Platform One",
        description:
          "Platform One allows users to deploy a DevSecOps Software Factory and start solving software problems with a 90% solution day 1, instead of starting from nothing.",
      },
    },
  },
  {
    path: "/products",
    redirect: "/",
  },
  {
    path: "/services",
    name: "Services",
    meta: {
      title: "Platform One | Services",
      bodyClass: "services-page",
      breadcrumb: "Services",
      header: {
        title: "Platform One Services",
      },
    },
  },
  {
    path: "/resellers",
    name: "Resellers",
    meta: {
      title: "Platform One | Resellers",
      bodyClass: "resellers-page",
      breadcrumb: "Resellers",
      header: {
        title: "Platform One Official Resellers",
      },
    },
  },
  {
    path: "/resources",
    name: "Resources",
    meta: {
      title: "Platform One | Resources",
      bodyClass: "resources-page",
      breadcrumb: "Resources",
      header: {
        title: "P1 Resources",
        description:
          "Information at your fingertips: guides, documents, and external links to help spread valuable knowledge pertaining to Platform One and the DoD.",
      },
    },
  },
  {
    path: "/who-we-are",
    name: "WhoWeAre",
    meta: {
      title: "Platform One | Who We Are",
      bodyClass: "who-we-are-page",
      breadcrumb: "Who We Are",
    },
  },
  // /products/abms-adce/* are are redirects for the original urls, in case they were saved anywhere.  Could delete these after a given period of time
  { path: "/products/abms-adce", redirect: "/products/party-bus" },
  {
    path: "/products/abms-adce/onboarding",
    redirect: "/products/party-bus/onboarding",
  },
  {
    path: "/products/abms-adce/onboarding/faqs",
    redirect: "/products/party-bus/onboarding/faqs",
  },
  {
    path: "/products/party-bus/service-catalog",
    name: "ServiceCatalog",
    meta: {
      title: "Platform One | Products | Party Bus | Service Catalog",
      bodyClass: "pb-service-catalog",
      breadcrumb: "Service Catalog",
      header: {
        subHeadingText: "Party Bus’",
      },
    },
  },
  {
    path: "/products/party-bus",
    name: "PartyBus",
    meta: {
      title: "Platform One | Products | The Party Bus",
      bodyClass: "party-bus-page",
      breadcrumb: "The Party Bus",
      header: {
        title: "The Party Bus",
        description:
          "The environment and services you need to develop and deploy your software application",
      },
    },
  },
  {
    path: "/partybus-onboarding",
    redirect: "/products/party-bus/onboarding",
  },
  {
    path: "/products/party-bus/onboarding",
    name: "PartyBusOnboarding",
    meta: {
      title: "Platform One | Products | The Party Bus Onboarding",
      bodyClass: "party-bus-onboarding-page",
      breadcrumb: "Onboarding",
      header: {
        title: "Party Bus Onboarding",
      },
    },
  },
  { path: "/bigbangonboarding", redirect: "/products/big-bang/onboarding" },
  {
    path: "/bigbang-onboarding",
    redirect: "/products/big-bang/onboarding",
  },
  {
    path: "/products/big-bang/onboarding",
    name: "BigBangOnboarding",
    meta: {
      title: "Platform One | Products | Big Bang Onboarding",
      bodyClass: "big-bang-onboarding-page",
      breadcrumb: "Big Bang Onboarding",
    },
  },
  { path: "/bigbang", redirect: "/products/big-bang" },
  { path: "/big-bang", redirect: "/products/big-bang" },
  {
    path: "/products/big-bang",
    name: "BigBang",
    meta: {
      title: "Platform One | Products | Big Bang",
      bodyClass: "big-bang-page",
      breadcrumb: "Big Bang",
      header: {
        description:
          "Big Bang deploys a software factory built on DoD hardened and approved packages in a customer owned environment.",
      },
    },
  },
  { path: "/ironbank", redirect: "/products/iron-bank" },
  { path: "/iron-bank", redirect: "/products/iron-bank" },
  {
    path: "/products/iron-bank",
    name: "IronBank",
    meta: {
      title: "Platform One | Products | Iron Bank",
      bodyClass: "iron-bank-page",
      breadcrumb: "Iron Bank",
      header: {
        description:
          "Iron Bank is Platform One's authorized, hardened, and approved container repository that supports the end to end lifecycle needed for modern software development.",
      },
    },
  },
  {
    path: "/products/iron-bank/getting-started",
    name: "IronBankGettingStarted",
    meta: {
      title: "Platform One | Products | Iron Bank | Getting Started",
      bodyClass: "iron-bank-getting-started-page",
      breadcrumb: "Getting Started",
      header: {
        title: "Getting Started With Iron Bank",
      },
    },
  },
  {
    path: "/products/iron-bank/onboarding-containers",
    name: "IronBankOnboardingContainers",
    beforeEnter() {
      // Remove or comment this section out when wanting to redirect to component instead of google form
      window.location.href =
        "https://docs.google.com/forms/d/e/1FAIpQLSe17YVTDZDiEzt4s8r-Ts-6B1m3isayOCWiNTI4K6cllO8jnw/viewform";
    },
  },
  { path: "/cnap", redirect: "/products/cnap" },
  {
    path: "/products/cnap",
    name: "CNAP",
    meta: {
      title: "Platform One | Products | CNAP",
      bodyClass: "CNAP-page",
      breadcrumb: "CNAP",
      header: {
        title: "Cloud Native Access Point",
        description:
          "CNAP is available on Cloud One to provide access to development, testing, and production enclaves at IL-2, IL-4, and IL-5",
      },
    },
  },
  {
    path: "/products/cybersecurity",
    name: "Cybersecurity",
    meta: {
      title: "Platform One | Products | Cybersecurity",
      bodyClass: "Cybersecuirty-page",
      breadcrumb: "CyberSecurity",
      header: {
        subHeadingText: "PROVIDING OPTIMUM",
        description:
          "Platform One provides integrated cyber testing, monitoring, and event management for the infrastructure, platform, all enterprise services, and customer applications.",
      },
    },
  },
  {
    path: "/products/cybersecurity/dsopTimeline",
    name: "DevSecOpsTimeline",
    meta: {
      title: "Platform One | Products | DevSecOps Timeline",
      bodyClass: "DevSecOps Timeline-page",
      breadcrumb: "DevSecOps",
    },
  },
  {
    path: "/products/cybersecurity/ctf",
    name: "CTF",
    meta: {
      title: "Platform One | Products | Cybersecurity | CTF",
      bodyClass: "CTF-page",
      breadcrumb: "CTF",
      header: {
        title: "Certificate to Field",
        description:
          "The CtF is the application-level accreditation that allows your application to run in a specific environment within the DoD.",
      },
    },
  },
  {
    path: "/products/cybersecurity/cato",
    name: "cATO",
    meta: {
      title: "Platform One | Products | Cybersecurity | cATO",
      bodyClass: "cATO-page",
      breadcrumb: "cATO",
      header: {
        title: "cATO = CONTINUOUS AUTHORIZATION",
        description:
          "Continuous Authority to Operate (cATO) allows rapid delivery to the DoD",
      },
    },
  },
  {
    path: "/residency",
    name: "Residency",
    meta: {
      title: "Platform One | Residency",
      bodyClass: "Residency-page",
      breadcrumb: "Residency",
      header: {
        subHeadingText: "6-Month",
        description:
          "Are you ready to take the leap? Consider joining Platform One and the DevSecOps Initiative in the experience of a lifetime by joining us for a 6-month remote Residency. Here’s your chance to learn a skill, hone a talent, experience a different culture and put your fingerprints on the transformation of DoD in one of the most crucial moments yet.",
      },
    },
  },
  {
    path: "/contact-us",
    name: "ContactUs",
    meta: {
      title: "Platform One | Contact Us",
      bodyClass: "contact-us-page",
      breadcrumb: "Contact Us",
    },
  },
  {
    path: "*",
    name: "Error",
    meta: {
      title: "Platform One | Error",
      bodyClass: "error-page",
      breadcrumb: "Error",
    },
  },
];

export const routesByName = routes.reduce((all, route) => {
  all[route.name] = route;
  return all;
}, {});
graham.smith's avatar
graham.smith committed

export const routesByPath = routes.reduce((all, route) => {
  all[route.path] = route;
  return all;
}, {});