From cd0b45627f0d8da8c8dc4edde223f3c36e9bcfbf Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 25 Apr 2021 16:01:14 +0200 Subject: build: Migrate to flat project structure This change updates the project structure to become flattened. Previously, the simulator, frontend and API each lived into their own directory. With this change, all modules of the project live in the top-level directory of the repository. This should improve discoverability of modules of the project. --- frontend/src/components/home/ContactSection.js | 54 ---------------------- frontend/src/components/home/ContactSection.sass | 15 ------ frontend/src/components/home/ContentSection.js | 19 -------- frontend/src/components/home/ContentSection.sass | 9 ---- frontend/src/components/home/IntroSection.js | 40 ---------------- frontend/src/components/home/JumbotronHeader.js | 18 -------- frontend/src/components/home/JumbotronHeader.sass | 24 ---------- frontend/src/components/home/ModelingSection.js | 22 --------- frontend/src/components/home/ScreenshotSection.js | 24 ---------- .../src/components/home/ScreenshotSection.sass | 5 -- frontend/src/components/home/SimulationSection.js | 22 --------- frontend/src/components/home/StakeholderSection.js | 30 ------------ frontend/src/components/home/TeamSection.js | 53 --------------------- .../src/components/home/TechnologiesSection.js | 40 ---------------- 14 files changed, 375 deletions(-) delete mode 100644 frontend/src/components/home/ContactSection.js delete mode 100644 frontend/src/components/home/ContactSection.sass delete mode 100644 frontend/src/components/home/ContentSection.js delete mode 100644 frontend/src/components/home/ContentSection.sass delete mode 100644 frontend/src/components/home/IntroSection.js delete mode 100644 frontend/src/components/home/JumbotronHeader.js delete mode 100644 frontend/src/components/home/JumbotronHeader.sass delete mode 100644 frontend/src/components/home/ModelingSection.js delete mode 100644 frontend/src/components/home/ScreenshotSection.js delete mode 100644 frontend/src/components/home/ScreenshotSection.sass delete mode 100644 frontend/src/components/home/SimulationSection.js delete mode 100644 frontend/src/components/home/StakeholderSection.js delete mode 100644 frontend/src/components/home/TeamSection.js delete mode 100644 frontend/src/components/home/TechnologiesSection.js (limited to 'frontend/src/components/home') diff --git a/frontend/src/components/home/ContactSection.js b/frontend/src/components/home/ContactSection.js deleted file mode 100644 index 42bdab8a..00000000 --- a/frontend/src/components/home/ContactSection.js +++ /dev/null @@ -1,54 +0,0 @@ -import React from 'react' -import FontAwesome from 'react-fontawesome' -import './ContactSection.sass' -import ContentSection from './ContentSection' - -const ContactSection = () => ( - -
-
- - -
- atlarge-research/opendc - -
-
- - - -
-
-
- TU Delft -
-
-
-
- A project by the   - - @Large Research Group - - . -
-
-
-
- -
- OpenDC is an experimental tool. Your data may get lost, overwritten, or otherwise become unavailable. -
- The OpenDC authors should in no way be liable in the event this happens (see our{' '} - - license - - ). Sorry for the inconvenience. -
-
- -) - -export default ContactSection diff --git a/frontend/src/components/home/ContactSection.sass b/frontend/src/components/home/ContactSection.sass deleted file mode 100644 index 997f8d98..00000000 --- a/frontend/src/components/home/ContactSection.sass +++ /dev/null @@ -1,15 +0,0 @@ -.contact-section - background-color: #444 - color: #ddd - - a - color: #ddd - - a:hover - color: #fff - - .tudelft-icon - height: 100px - - .disclaimer - color: #cccccc diff --git a/frontend/src/components/home/ContentSection.js b/frontend/src/components/home/ContentSection.js deleted file mode 100644 index 9d4832d9..00000000 --- a/frontend/src/components/home/ContentSection.js +++ /dev/null @@ -1,19 +0,0 @@ -import classNames from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' -import './ContentSection.sass' - -const ContentSection = ({ name, title, children }) => ( -
-
-

{title}

- {children} -
-
-) - -ContentSection.propTypes = { - name: PropTypes.string.isRequired, -} - -export default ContentSection diff --git a/frontend/src/components/home/ContentSection.sass b/frontend/src/components/home/ContentSection.sass deleted file mode 100644 index a4c8bd66..00000000 --- a/frontend/src/components/home/ContentSection.sass +++ /dev/null @@ -1,9 +0,0 @@ -@import ../../style-globals/_variables.sass - -.content-section - padding-top: 50px - padding-bottom: 150px - text-align: center - - h1 - margin-bottom: 30px diff --git a/frontend/src/components/home/IntroSection.js b/frontend/src/components/home/IntroSection.js deleted file mode 100644 index a799272a..00000000 --- a/frontend/src/components/home/IntroSection.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react' - -const IntroSection = () => ( -
-
-
-
-

The datacenter (DC) industry...

-
    -
  • Is worth over $15 bn, and growing
  • -
  • Has many hard-to-grasp concepts
  • -
  • Needs to become accessible to many
  • -
-
- -
-

OpenDC provides...

-
    -
  • Collaborative online DC modeling
  • -
  • Diverse and effective DC simulation
  • -
  • Exploratory DC performance feedback
  • -
-
-
-
-
-) - -export default IntroSection diff --git a/frontend/src/components/home/JumbotronHeader.js b/frontend/src/components/home/JumbotronHeader.js deleted file mode 100644 index 7b410679..00000000 --- a/frontend/src/components/home/JumbotronHeader.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react' -import './JumbotronHeader.sass' - -const JumbotronHeader = () => ( -
-
-
-

- OpenDC -

-

Collaborative Datacenter Simulation and Exploration for Everybody

- OpenDC -
-
-
-) - -export default JumbotronHeader diff --git a/frontend/src/components/home/JumbotronHeader.sass b/frontend/src/components/home/JumbotronHeader.sass deleted file mode 100644 index 1b6a89fd..00000000 --- a/frontend/src/components/home/JumbotronHeader.sass +++ /dev/null @@ -1,24 +0,0 @@ -.jumbotron-header - background: #00A6D6 - -.jumbotron - background-color: inherit - margin-bottom: 0 - - padding-top: 120px - padding-bottom: 120px - - img - max-width: 110px - - h1 - color: #fff - font-size: 4.5em - - .dc - color: #fff - font-weight: bold - - .lead - color: #fff - font-size: 1.4em diff --git a/frontend/src/components/home/ModelingSection.js b/frontend/src/components/home/ModelingSection.js deleted file mode 100644 index 643dca65..00000000 --- a/frontend/src/components/home/ModelingSection.js +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react' -import ScreenshotSection from './ScreenshotSection' - -const ModelingSection = () => ( - -

Collaboratively...

-
    -
  • Model DC layout, and room locations and types
  • -
  • Place racks in rooms and nodes in racks
  • -
  • Add real-world CPU, GPU, memory, storage and network units to each node
  • -
  • Select from diverse scheduling policies
  • -
-
-) - -export default ModelingSection diff --git a/frontend/src/components/home/ScreenshotSection.js b/frontend/src/components/home/ScreenshotSection.js deleted file mode 100644 index c987d5d0..00000000 --- a/frontend/src/components/home/ScreenshotSection.js +++ /dev/null @@ -1,24 +0,0 @@ -import classNames from 'classnames' -import React from 'react' -import ContentSection from './ContentSection' -import './ScreenshotSection.sass' - -const ScreenshotSection = ({ name, title, imageUrl, caption, imageIsRight, children }) => ( - -
-
- {children} -
-
- {caption} -
{caption}
-
-
-
-) - -export default ScreenshotSection diff --git a/frontend/src/components/home/ScreenshotSection.sass b/frontend/src/components/home/ScreenshotSection.sass deleted file mode 100644 index 2f454cb4..00000000 --- a/frontend/src/components/home/ScreenshotSection.sass +++ /dev/null @@ -1,5 +0,0 @@ -.screenshot - outline: 2px black solid - padding-left: 0 - padding-right: 0 - margin-bottom: 5px diff --git a/frontend/src/components/home/SimulationSection.js b/frontend/src/components/home/SimulationSection.js deleted file mode 100644 index b0244cb5..00000000 --- a/frontend/src/components/home/SimulationSection.js +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react' -import ScreenshotSection from './ScreenshotSection' - -const ModelingSection = () => ( - -

Working with OpenDC:

-
    -
  • Seamlessly switch between construction and simulation modes
  • -
  • Choose one of several predefined workloads (Big Data, Bag of Tasks, Hadoop, etc.)
  • -
  • Play, pause, and skip around the informative simulation timeline
  • -
  • Visualize and demo live
  • -
-
-) - -export default ModelingSection diff --git a/frontend/src/components/home/StakeholderSection.js b/frontend/src/components/home/StakeholderSection.js deleted file mode 100644 index e5ed9683..00000000 --- a/frontend/src/components/home/StakeholderSection.js +++ /dev/null @@ -1,30 +0,0 @@ -import React from 'react' -import ContentSection from './ContentSection' - -const Stakeholder = ({ name, title, subtitle }) => ( -
- {title} -
-

{title}

-

{subtitle}

-
-
-) - -const StakeholderSection = () => ( - -
- - - - - -
-
-) - -export default StakeholderSection diff --git a/frontend/src/components/home/TeamSection.js b/frontend/src/components/home/TeamSection.js deleted file mode 100644 index 4b6f1e25..00000000 --- a/frontend/src/components/home/TeamSection.js +++ /dev/null @@ -1,53 +0,0 @@ -import React from 'react' -import ContentSection from './ContentSection' - -const TeamMember = ({ photoId, name, description }) => ( -
- {name} -
-

{name}

-
{description}
-
-
-) - -const TeamSection = () => ( - -
- - - - - -
-
- See{' '} - - atlarge.science/opendc - {' '} - for the full team! -
-
-) - -export default TeamSection diff --git a/frontend/src/components/home/TechnologiesSection.js b/frontend/src/components/home/TechnologiesSection.js deleted file mode 100644 index c6013c71..00000000 --- a/frontend/src/components/home/TechnologiesSection.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react' -import FontAwesome from 'react-fontawesome' -import ContentSection from './ContentSection' - -const TechnologiesSection = () => ( - -
    -
  • - - - Browser - - JavaScript, React, Redux, Konva -
  • -
  • - - - Server - - Python, Flask, FlaskSocketIO, OpenAPI -
  • -
  • - - - Database - - MongoDB -
  • -
  • - - - Simulator - - Kotlin -
  • -
-
-) - -export default TechnologiesSection -- cgit v1.2.3