From 45a99679488e9ba1ec243f116b96bd813e047f9e Mon Sep 17 00:00:00 2001 From: LanesGood Date: Fri, 8 Nov 2024 13:39:16 -0500 Subject: [PATCH] Rename timelines directory to deployments --- .../{timeline => deployments}/__tests__/map-legend.test.js | 0 src/components/{timeline => deployments}/axis.js | 0 src/components/{timeline => deployments}/deployment-detail.js | 0 src/components/{timeline => deployments}/deployment-panel.js | 0 src/components/{timeline => deployments}/deployment.js | 0 src/components/{timeline => deployments}/details.js | 0 src/components/{timeline => deployments}/event-detail.js | 0 src/components/{timeline => deployments}/event-panel.js | 0 src/components/{timeline => deployments}/events.js | 0 src/components/{timeline => deployments}/index.js | 1 + src/components/{timeline => deployments}/iop-detail.js | 0 src/components/{timeline => deployments}/iops.js | 0 src/components/{timeline => deployments}/label.js | 0 src/components/{timeline => deployments}/map-legend.js | 0 src/components/{timeline => deployments}/map-view-control.js | 0 src/components/{timeline => deployments}/map.js | 4 ++-- src/components/{timeline => deployments}/minor-timeline.js | 0 src/components/{timeline => deployments}/occlusion.js | 0 src/components/{timeline => deployments}/scroll-shadow.js | 0 src/components/{timeline => deployments}/timeline-chart.js | 0 src/templates/campaign/timeline-section.js | 3 +-- 21 files changed, 4 insertions(+), 4 deletions(-) rename src/components/{timeline => deployments}/__tests__/map-legend.test.js (100%) rename src/components/{timeline => deployments}/axis.js (100%) rename src/components/{timeline => deployments}/deployment-detail.js (100%) rename src/components/{timeline => deployments}/deployment-panel.js (100%) rename src/components/{timeline => deployments}/deployment.js (100%) rename src/components/{timeline => deployments}/details.js (100%) rename src/components/{timeline => deployments}/event-detail.js (100%) rename src/components/{timeline => deployments}/event-panel.js (100%) rename src/components/{timeline => deployments}/events.js (100%) rename src/components/{timeline => deployments}/index.js (56%) rename src/components/{timeline => deployments}/iop-detail.js (100%) rename src/components/{timeline => deployments}/iops.js (100%) rename src/components/{timeline => deployments}/label.js (100%) rename src/components/{timeline => deployments}/map-legend.js (100%) rename src/components/{timeline => deployments}/map-view-control.js (100%) rename src/components/{timeline => deployments}/map.js (99%) rename src/components/{timeline => deployments}/minor-timeline.js (100%) rename src/components/{timeline => deployments}/occlusion.js (100%) rename src/components/{timeline => deployments}/scroll-shadow.js (100%) rename src/components/{timeline => deployments}/timeline-chart.js (100%) diff --git a/src/components/timeline/__tests__/map-legend.test.js b/src/components/deployments/__tests__/map-legend.test.js similarity index 100% rename from src/components/timeline/__tests__/map-legend.test.js rename to src/components/deployments/__tests__/map-legend.test.js diff --git a/src/components/timeline/axis.js b/src/components/deployments/axis.js similarity index 100% rename from src/components/timeline/axis.js rename to src/components/deployments/axis.js diff --git a/src/components/timeline/deployment-detail.js b/src/components/deployments/deployment-detail.js similarity index 100% rename from src/components/timeline/deployment-detail.js rename to src/components/deployments/deployment-detail.js diff --git a/src/components/timeline/deployment-panel.js b/src/components/deployments/deployment-panel.js similarity index 100% rename from src/components/timeline/deployment-panel.js rename to src/components/deployments/deployment-panel.js diff --git a/src/components/timeline/deployment.js b/src/components/deployments/deployment.js similarity index 100% rename from src/components/timeline/deployment.js rename to src/components/deployments/deployment.js diff --git a/src/components/timeline/details.js b/src/components/deployments/details.js similarity index 100% rename from src/components/timeline/details.js rename to src/components/deployments/details.js diff --git a/src/components/timeline/event-detail.js b/src/components/deployments/event-detail.js similarity index 100% rename from src/components/timeline/event-detail.js rename to src/components/deployments/event-detail.js diff --git a/src/components/timeline/event-panel.js b/src/components/deployments/event-panel.js similarity index 100% rename from src/components/timeline/event-panel.js rename to src/components/deployments/event-panel.js diff --git a/src/components/timeline/events.js b/src/components/deployments/events.js similarity index 100% rename from src/components/timeline/events.js rename to src/components/deployments/events.js diff --git a/src/components/timeline/index.js b/src/components/deployments/index.js similarity index 56% rename from src/components/timeline/index.js rename to src/components/deployments/index.js index b08880df8..54607a2a7 100644 --- a/src/components/timeline/index.js +++ b/src/components/deployments/index.js @@ -1 +1,2 @@ export { TimelineChart } from "./timeline-chart" +export { DeploymentMap } from "./map" diff --git a/src/components/timeline/iop-detail.js b/src/components/deployments/iop-detail.js similarity index 100% rename from src/components/timeline/iop-detail.js rename to src/components/deployments/iop-detail.js diff --git a/src/components/timeline/iops.js b/src/components/deployments/iops.js similarity index 100% rename from src/components/timeline/iops.js rename to src/components/deployments/iops.js diff --git a/src/components/timeline/label.js b/src/components/deployments/label.js similarity index 100% rename from src/components/timeline/label.js rename to src/components/deployments/label.js diff --git a/src/components/timeline/map-legend.js b/src/components/deployments/map-legend.js similarity index 100% rename from src/components/timeline/map-legend.js rename to src/components/deployments/map-legend.js diff --git a/src/components/timeline/map-view-control.js b/src/components/deployments/map-view-control.js similarity index 100% rename from src/components/timeline/map-view-control.js rename to src/components/deployments/map-view-control.js diff --git a/src/components/timeline/map.js b/src/components/deployments/map.js similarity index 99% rename from src/components/timeline/map.js rename to src/components/deployments/map.js index 484d962ec..5b385e1c2 100644 --- a/src/components/timeline/map.js +++ b/src/components/deployments/map.js @@ -42,12 +42,12 @@ const MapLoading = styled.div` align-content: center; ` -export function DeploymentMap({ +export const DeploymentMap = ({ campaignName, deployments, bounds, selectedDeployment, -}) { +}) => { const { data: geojson, error: geojsonError, diff --git a/src/components/timeline/minor-timeline.js b/src/components/deployments/minor-timeline.js similarity index 100% rename from src/components/timeline/minor-timeline.js rename to src/components/deployments/minor-timeline.js diff --git a/src/components/timeline/occlusion.js b/src/components/deployments/occlusion.js similarity index 100% rename from src/components/timeline/occlusion.js rename to src/components/deployments/occlusion.js diff --git a/src/components/timeline/scroll-shadow.js b/src/components/deployments/scroll-shadow.js similarity index 100% rename from src/components/timeline/scroll-shadow.js rename to src/components/deployments/scroll-shadow.js diff --git a/src/components/timeline/timeline-chart.js b/src/components/deployments/timeline-chart.js similarity index 100% rename from src/components/timeline/timeline-chart.js rename to src/components/deployments/timeline-chart.js diff --git a/src/templates/campaign/timeline-section.js b/src/templates/campaign/timeline-section.js index da2b84be0..fbe68755e 100644 --- a/src/templates/campaign/timeline-section.js +++ b/src/templates/campaign/timeline-section.js @@ -2,10 +2,9 @@ import React, { useState } from "react" import PropTypes from "prop-types" import { graphql } from "gatsby" -import { DeploymentMap } from "../../components/timeline/map" import { Section, SectionHeader, SectionContent } from "../../components/layout" -import { TimelineChart } from "../../components/timeline" +import { DeploymentMap, TimelineChart } from "../../components/deployments" const DeploymentEventsSection = ({ id, deployments, bounds, campaignName }) => { const [selectedDeployment, setSelectedDeployment] = useState(null)