From 655d8b0dc84dc476a202a5d67520535ed7c285b9 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Fri, 5 Jun 2020 21:43:17 +0200 Subject: [PATCH] Added old site --- App_old.js | 135 ----------------- old-site/main.html | 252 +++++++++++++++++++++++++++++++ old-site/plotly-latest.min.js | 7 + old-site/serve.py | 59 ++++++++ old-site/serve2.py | 19 +++ old-site/swimtrainer.webmanifest | 8 + 6 files changed, 345 insertions(+), 135 deletions(-) delete mode 100644 App_old.js create mode 100644 old-site/main.html create mode 100644 old-site/plotly-latest.min.js create mode 100644 old-site/serve.py create mode 100644 old-site/serve2.py create mode 100644 old-site/swimtrainer.webmanifest diff --git a/App_old.js b/App_old.js deleted file mode 100644 index 7581b51..0000000 --- a/App_old.js +++ /dev/null @@ -1,135 +0,0 @@ -import React, {useState} from 'react'; -import {StyleSheet, Text, View, Button, TextInput, Dimensions, StatusBar} from 'react-native'; -import { LineChart} from 'react-native-chart-kit'; -import { LinearGradient } from 'expo-linear-gradient'; -import PropValueCard from './components/PropValueCard' - - -export default function App() { - const [outputText, setOutputText] = useState('This is the first text'); - - const [flag, setFlag] = useState(false); - - const initialState = []; - for(let i=0; i < 100; ++i) { - initialState.push( Math.random() * 100); - } - - const [graphData, setGraphData] = useState(initialState); - - const makeNewGraphData = () => { - setGraphData( oldGraphData => { - console.log("Before", oldGraphData) - oldGraphData.pop(); - oldGraphData.unshift(Math.random() * 100); - console.log("After", oldGraphData); - return oldGraphData.slice(); - }) - }; - const makeNewGraphData2 = () => { - graphData.pop(); - graphData.unshift(Math.random() * 100); - setGraphData(graphData); - }; - - let tutorial = ( - - - -