From f491e4cffc79fa1ffaf9afdfad020c304496661f Mon Sep 17 00:00:00 2001 From: Henri Casanova Date: Mon, 26 Sep 2022 08:56:04 -1000 Subject: [PATCH] Hid some content without missing code :) --- .../include_batch_scheduling/batch_queue.js | 5 ++++- .../include_batch_scheduling/job_cancellation.js | 5 ++++- .../include_batch_scheduling/job_duration.js | 5 ++++- .../include_batch_scheduling/job_num_nodes.js | 5 ++++- .../include_batch_scheduling/job_submission.js | 5 ++++- .../include_client_server/client_server_pipelining.js | 5 ++++- .../coordinator_worker_basics.js | 5 ++++- .../coordinator_worker_scheduling.js | 5 ++++- .../include_multi_core_computing/data_parallelism.js | 5 ++++- .../include_multi_core_computing/load_imbalance.js | 5 ++++- .../include_multi_core_computing/ram_and_io.js | 5 ++++- .../include_multi_core_computing/task_dependencies.js | 5 ++++- .../include_multi_core_computing/task_parallelism.js | 5 ++++- .../include_networking_fundamentals/contention.js | 7 ++++++- .../include_networking_fundamentals/topologies.js | 5 ++++- .../pedagogic_modules/include_single_core_computing/io.js | 5 ++++- .../include_thrustd_cloud/cloud_computing.js | 5 ++++- .../include_thrustd_cloud/local_computing.js | 5 ++++- .../include_workflows/workflows_data_locality.js | 5 ++++- .../include_workflows/workflows_distributed_execution.js | 5 ++++- .../include_workflows/workflows_fundamentals.js | 5 ++++- .../include_workflows/workflows_mixed_parallelism.js | 5 ++++- 22 files changed, 90 insertions(+), 22 deletions(-) diff --git a/web/src/pages/pedagogic_modules/include_batch_scheduling/batch_queue.js b/web/src/pages/pedagogic_modules/include_batch_scheduling/batch_queue.js index 4b2e76fd..ab301509 100644 --- a/web/src/pages/pedagogic_modules/include_batch_scheduling/batch_queue.js +++ b/web/src/pages/pedagogic_modules/include_batch_scheduling/batch_queue.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -11,6 +11,9 @@ import SigninCheck from "../../../components/signin_check"; const BatchQueue = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( diff --git a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_cancellation.js b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_cancellation.js index 1f984dc3..c2c33eef 100644 --- a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_cancellation.js +++ b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_cancellation.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -9,6 +9,9 @@ import SigninCheck from "../../../components/signin_check"; const JobCancellation = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_duration.js b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_duration.js index 980d5a6a..5ee12fbb 100644 --- a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_duration.js +++ b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_duration.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -9,6 +9,9 @@ import SigninCheck from "../../../components/signin_check"; const JobDuration = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_num_nodes.js b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_num_nodes.js index f1f7d7cf..1ce9ebb2 100644 --- a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_num_nodes.js +++ b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_num_nodes.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -9,6 +9,9 @@ import SigninCheck from "../../../components/signin_check"; const JobNumNodes = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_submission.js b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_submission.js index 05586b90..db23e2bf 100644 --- a/web/src/pages/pedagogic_modules/include_batch_scheduling/job_submission.js +++ b/web/src/pages/pedagogic_modules/include_batch_scheduling/job_submission.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -9,6 +9,9 @@ import SigninCheck from "../../../components/signin_check"; const JobSubmission = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_client_server/client_server_pipelining.js b/web/src/pages/pedagogic_modules/include_client_server/client_server_pipelining.js index 73e61e8b..d32a354e 100644 --- a/web/src/pages/pedagogic_modules/include_client_server/client_server_pipelining.js +++ b/web/src/pages/pedagogic_modules/include_client_server/client_server_pipelining.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Table } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -17,6 +17,9 @@ import SigninCheck from "../../../components/signin_check"; const ClientServerPipelining = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_basics.js b/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_basics.js index 443344ba..1a0f2925 100644 --- a/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_basics.js +++ b/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_basics.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Accordion, Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -17,6 +17,9 @@ import SigninCheck from "../../../components/signin_check"; const CoordinatorWorkerBasics = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_scheduling.js b/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_scheduling.js index 95350f31..1a03fb37 100644 --- a/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_scheduling.js +++ b/web/src/pages/pedagogic_modules/include_coordinator_worker/coordinator_worker_scheduling.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Accordion, Divider, Header, Segment } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -13,6 +13,9 @@ import SigninCheck from "../../../components/signin_check"; const CoordinatorWorkerScheduling = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_multi_core_computing/data_parallelism.js b/web/src/pages/pedagogic_modules/include_multi_core_computing/data_parallelism.js index 63adbbcb..ea81c179 100644 --- a/web/src/pages/pedagogic_modules/include_multi_core_computing/data_parallelism.js +++ b/web/src/pages/pedagogic_modules/include_multi_core_computing/data_parallelism.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -17,6 +17,9 @@ import SigninCheck from "../../../components/signin_check"; const DataParallelism = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_multi_core_computing/load_imbalance.js b/web/src/pages/pedagogic_modules/include_multi_core_computing/load_imbalance.js index a953b5ad..d0de51cb 100644 --- a/web/src/pages/pedagogic_modules/include_multi_core_computing/load_imbalance.js +++ b/web/src/pages/pedagogic_modules/include_multi_core_computing/load_imbalance.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -14,6 +14,9 @@ import SigninCheck from "../../../components/signin_check"; const LoadImbalance = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_multi_core_computing/ram_and_io.js b/web/src/pages/pedagogic_modules/include_multi_core_computing/ram_and_io.js index f5c42794..6ebb443a 100644 --- a/web/src/pages/pedagogic_modules/include_multi_core_computing/ram_and_io.js +++ b/web/src/pages/pedagogic_modules/include_multi_core_computing/ram_and_io.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -20,6 +20,9 @@ import SigninCheck from "../../../components/signin_check"; const RamAndIO = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_multi_core_computing/task_dependencies.js b/web/src/pages/pedagogic_modules/include_multi_core_computing/task_dependencies.js index 33803160..4c068219 100644 --- a/web/src/pages/pedagogic_modules/include_multi_core_computing/task_dependencies.js +++ b/web/src/pages/pedagogic_modules/include_multi_core_computing/task_dependencies.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Table } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -24,6 +24,9 @@ import SigninCheck from "../../../components/signin_check"; const TaskDependencies = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_multi_core_computing/task_parallelism.js b/web/src/pages/pedagogic_modules/include_multi_core_computing/task_parallelism.js index c51b1fdc..14e1ff66 100644 --- a/web/src/pages/pedagogic_modules/include_multi_core_computing/task_parallelism.js +++ b/web/src/pages/pedagogic_modules/include_multi_core_computing/task_parallelism.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -11,6 +11,9 @@ import SigninCheck from "../../../components/signin_check"; const TaskParallelism = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_networking_fundamentals/contention.js b/web/src/pages/pedagogic_modules/include_networking_fundamentals/contention.js index f89ab840..2e204a7c 100644 --- a/web/src/pages/pedagogic_modules/include_networking_fundamentals/contention.js +++ b/web/src/pages/pedagogic_modules/include_networking_fundamentals/contention.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -24,6 +24,9 @@ import SigninCheck from "../../../components/signin_check"; const Contention = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> @@ -323,6 +326,8 @@ const Contention = ({ module, tab }) => { ]} auth={auth} content="questions"> + + { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_single_core_computing/io.js b/web/src/pages/pedagogic_modules/include_single_core_computing/io.js index 3a9d433a..c4f22fc7 100644 --- a/web/src/pages/pedagogic_modules/include_single_core_computing/io.js +++ b/web/src/pages/pedagogic_modules/include_single_core_computing/io.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Icon, Table } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -20,6 +20,9 @@ import SigninCheck from "../../../components/signin_check"; const IO = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_thrustd_cloud/cloud_computing.js b/web/src/pages/pedagogic_modules/include_thrustd_cloud/cloud_computing.js index d41baa2a..a892daeb 100644 --- a/web/src/pages/pedagogic_modules/include_thrustd_cloud/cloud_computing.js +++ b/web/src/pages/pedagogic_modules/include_thrustd_cloud/cloud_computing.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header} from "semantic-ui-react" import LearningObjectives from "../../../components/learning_objectives" import Thrustd_Cloud_Simulation from "./thrustd_cloud_simulation"; @@ -11,6 +11,9 @@ import SigninCheck from "../../../components/signin_check"; const CloudComputing = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_thrustd_cloud/local_computing.js b/web/src/pages/pedagogic_modules/include_thrustd_cloud/local_computing.js index a3060068..c0718634 100644 --- a/web/src/pages/pedagogic_modules/include_thrustd_cloud/local_computing.js +++ b/web/src/pages/pedagogic_modules/include_thrustd_cloud/local_computing.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import {Divider, Header, Table} from "semantic-ui-react" import LearningObjectives from "../../../components/learning_objectives"; import MontageWorkflow from "../../../images/vector_graphs/thrustd/montage_workflow.svg"; @@ -11,6 +11,9 @@ import SigninCheck from "../../../components/signin_check"; const LocalComputing = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_workflows/workflows_data_locality.js b/web/src/pages/pedagogic_modules/include_workflows/workflows_data_locality.js index 6de3a311..3f106991 100644 --- a/web/src/pages/pedagogic_modules/include_workflows/workflows_data_locality.js +++ b/web/src/pages/pedagogic_modules/include_workflows/workflows_data_locality.js @@ -7,7 +7,7 @@ * (at your option) any later version. */ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -26,6 +26,9 @@ import SigninCheck from "../../../components/signin_check"; const WorkflowsDataLocality = ({ module, tab }) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( diff --git a/web/src/pages/pedagogic_modules/include_workflows/workflows_distributed_execution.js b/web/src/pages/pedagogic_modules/include_workflows/workflows_distributed_execution.js index c293bd2f..6ab78ae5 100644 --- a/web/src/pages/pedagogic_modules/include_workflows/workflows_distributed_execution.js +++ b/web/src/pages/pedagogic_modules/include_workflows/workflows_distributed_execution.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Table } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -20,6 +20,9 @@ import SigninCheck from "../../../components/signin_check"; const WorkflowsDistributedExecution = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_workflows/workflows_fundamentals.js b/web/src/pages/pedagogic_modules/include_workflows/workflows_fundamentals.js index 5d7235f6..649fe827 100644 --- a/web/src/pages/pedagogic_modules/include_workflows/workflows_fundamentals.js +++ b/web/src/pages/pedagogic_modules/include_workflows/workflows_fundamentals.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header, Table } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -18,6 +18,9 @@ import SigninCheck from "../../../components/signin_check"; const WorkflowsFundamentals = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <> diff --git a/web/src/pages/pedagogic_modules/include_workflows/workflows_mixed_parallelism.js b/web/src/pages/pedagogic_modules/include_workflows/workflows_mixed_parallelism.js index f3e4b236..f02b085b 100644 --- a/web/src/pages/pedagogic_modules/include_workflows/workflows_mixed_parallelism.js +++ b/web/src/pages/pedagogic_modules/include_workflows/workflows_mixed_parallelism.js @@ -1,4 +1,4 @@ -import React, {useState} from "react" +import React, {useEffect, useState} from "react" import { Divider, Header } from "semantic-ui-react" import TeX from "@matejmazur/react-katex" import LearningObjectives from "../../../components/learning_objectives" @@ -19,6 +19,9 @@ import SigninCheck from "../../../components/signin_check"; const WorkflowsMixedParallelism = ({module, tab}) => { const [auth, setAuth] = useState("false") + useEffect(() => { + setAuth(localStorage.getItem("login")) + }) return ( <>