From f4cfe0b1cff4f5623e0911ef6f9c17c63166a9e2 Mon Sep 17 00:00:00 2001
From: "Hartung, Michael" <michael.hartung@uni-hamburg.de>
Date: Fri, 28 Oct 2022 10:28:27 +0200
Subject: [PATCH] remove app-test and update build.sh script

---
 app-test/icons.html                  | 117 ---------------------------
 app-test/legend_image.html           | 107 ------------------------
 app-test/show_and_hide_elements.html | 114 --------------------------
 build.sh                             |   2 +-
 4 files changed, 1 insertion(+), 339 deletions(-)
 delete mode 100644 app-test/icons.html
 delete mode 100644 app-test/legend_image.html
 delete mode 100644 app-test/show_and_hide_elements.html

diff --git a/app-test/icons.html b/app-test/icons.html
deleted file mode 100644
index 77bf7dd1..00000000
--- a/app-test/icons.html
+++ /dev/null
@@ -1,117 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-  <title>Network Expander</title>
-  <base href="/">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
-
-
-  <link rel="stylesheet" href="netex-build/styles.css">
-  <script type="text/javascript" src="netex-build/netex.js"></script>
-
-</head>
-<body>
-
-<input type="checkbox" onclick=changeConfigStr('{"showOverview":'+this.checked+'}') checked /> Show overview<br>
-<input type="checkbox" onclick=changeConfigStr('{"showQuery":'+this.checked+'}') /> Show query<br>
-<input type="checkbox" onclick=changeConfigStr('{"showLeftSidebar":'+this.checked+'}') checked /> Show sidebar<br>
-<input type="checkbox" onclick=changeConfigStr('{"showItemSelector":'+this.checked+'}') checked /> Show ItemSelector<br>
-<input type="checkbox" onclick=changeConfigStr('{"showSimpleAnalysis":'+this.checked+'}') /> Show SimpleAnalysis<br>
-<input type="checkbox" onclick=changeConfigStr('{"showAdvAnalysis":'+this.checked+'}') checked /> Show Advanced Analysis<br>
-<input type="checkbox" onclick=changeConfigStr('{"showTasks":'+this.checked+'}') checked /> Show Tasks<br>
-<input type="checkbox" onclick=changeConfigStr('{"showSelection":'+this.checked+'}') checked /> Show Selection<br>
-<input type="checkbox" onclick=changeConfigStr('{"showNetworkMenu":'+this.checked+'}') checked /> Show Footer<br>
-<input type="checkbox" onclick=changeConfigStr('{"showLegend":'+this.checked+'}') checked /> Show Legend<br>
-<!--<input type="checkbox" onclick=changeConfigStr('{"showSimpleAnalysis":'+this.checked+'}') checked /> Show SimpleAnalysis<br>-->
-
-<br>
-
-<button onclick="setNetwork('netexp1')">Add proteins</button>
-
-
-
-
-<!--  "legendUrl": "https://exbio.wzw.tum.de/covex/assets/leg1.png",-->
-
-<div>
-  <network-expander id="netexp1" config='{
-  "showQuery": false,
-  "legendPos": "right",
-  "nodeGroups": {"default": {"color": "grey", "name": "Default Group", "shape": "triangle", "image": "https://i.ibb.co/vmLV1tB/dna.png"}, "pug-group": {"color": "grey", "name": "Pug Group", "shape": "triangle", "image": "https://static.raymondcamden.com/images/2016/11/pug.png"} },
-  "edgeGroups":{"default": {"color": "grey", "name": "Default Edge Group"}, "custom": {"color": "red", "name": "Custom Edge Group"}}
-  }' style="height: 100vh"></network-expander>
-</div>
-
-<!--
-<div>                                                                                                                                                                                                                                                                        <div style="border: 3px solid red">
-  <network-expander id="netexp2" config='{"legendUrl": "https://i.pinimg.com/originals/ff/72/80/ff72801189f650f11672915cda0f1bdf.png", "legendClass": "my-legend-2"}'></network-expander>
-</div>
-
--->
-
-<script>
-
-  function changeConfig() {
-    const netexp = document.getElementById('netexp1');
-    netexp.setAttribute('config', '{"showLeftSidebar": false}');
-  }
-
-  function changeConfigStr(config) {
-    console.log(config);
-    const netexp = document.getElementById('netexp1');
-    netexp.setAttribute('config', config);
-  }
-
-  function setNetwork(nw) {
-    const netexp = document.getElementById(nw);
-
-    netexp.setAttribute('network', JSON.stringify({
-      nodes: [
-        {
-          name: "Protein 1",
-          id: "1",
-          access: "A",
-          group: "protein"
-        },
-        {
-          name: "Unknown type",
-          id: "2",
-          access: "B"
-        },
-        {
-          name: "Drug 123",
-          id: "3",
-          access: "C",
-          group: "drug"
-        },
-        {
-          name: "Gene abz",
-          id: "4",
-          access: "D",
-          group: "default"
-        },
-        {
-          name: "Pug abz",
-          id: "5",
-          access: "D",
-          group: "pug-group"
-        }
-      ],
-      edges: [
-        {
-          from: '1',
-          to: '2',
-        },
-        {
-          from: '2',
-          to: '3',
-          group: 'custom'
-        }
-      ]
-    }));
-  }
-</script>
-</body>
-</html>
diff --git a/app-test/legend_image.html b/app-test/legend_image.html
deleted file mode 100644
index 609a0e7e..00000000
--- a/app-test/legend_image.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-  <title>Network Expander</title>
-  <base href="/">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
-
-
-  <link rel="stylesheet" href="netex-build/styles.css">
-  <script type="text/javascript" src="netex-build/netex.js"></script>
-
-</head>
-<body>
-
-<input type="checkbox" onclick=changeConfigStr('{"showOverview":'+this.checked+'}') checked /> Show overview<br>
-<input type="checkbox" onclick=changeConfigStr('{"showQuery":'+this.checked+'}') /> Show query<br>
-<input type="checkbox" onclick=changeConfigStr('{"showLeftSidebar":'+this.checked+'}') checked /> Show sidebar<br>
-<input type="checkbox" onclick=changeConfigStr('{"showItemSelector":'+this.checked+'}') checked /> Show ItemSelector<br>
-<input type="checkbox" onclick=changeConfigStr('{"showSimpleAnalysis":'+this.checked+'}') /> Show SimpleAnalysis<br>
-<input type="checkbox" onclick=changeConfigStr('{"showAdvAnalysis":'+this.checked+'}') checked /> Show Advanced Analysis<br>
-<input type="checkbox" onclick=changeConfigStr('{"showTasks":'+this.checked+'}') checked /> Show Tasks<br>
-<input type="checkbox" onclick=changeConfigStr('{"showSelection":'+this.checked+'}') checked /> Show Selection<br>
-<input type="checkbox" onclick=changeConfigStr('{"showNetworkMenu":'+this.checked+'}') checked /> Show Footer<br>
-<input type="checkbox" onclick=changeConfigStr('{"showLegend":'+this.checked+'}') checked /> Show Legend<br>
-<button onclick=changeConfigStr('{"legendPos":"left"}') > Legend to Left </button> <br>
-<button onclick=changeConfigStr('{"legendPos":"right"}') > Legend to Right </button> <br>
-
-<!--<input type="checkbox" onclick=changeConfigStr('{"showSimpleAnalysis":'+this.checked+'}') checked /> Show SimpleAnalysis<br>-->
-
-<br>
-
-<button onclick="setNetwork('netexp1')">Add proteins</button>
-
-
-
-<div>
-  <network-expander id="netexp1" config='{
-  "showQuery": false,
-  "legendPos": "right",
-  "nodeGroups": {"default": {"color": "grey", "name": "Default Group", "shape": "triangle"} },
-  "edgeGroups":{"default": {"color": "grey", "name": "Default Edge Group"}, "custom": {"color": "red", "name": "Custom Edge Group"}}
-  }' style="height: 100vh"></network-expander>
-</div>
-
-
-<script>
-  function init1() {
-    document.getElementsByClassName('my-legend-1')[0].onclick = function() {this.remove()};
-  }
-
-  function changeConfig() {
-    const netexp = document.getElementById('netexp1');
-    netexp.setAttribute('config', '{"showLeftSidebar": false}');
-  }
-
-  function changeConfigStr(config) {
-    const netexp = document.getElementById('netexp1');
-    netexp.setAttribute('config', config);
-  }
-
-  function setNetwork(nw) {
-    const netexp = document.getElementById(nw);
-
-    netexp.setAttribute('network', JSON.stringify({
-      nodes: [
-        {
-          name: "Protein 1",
-          id: "1",
-          access: "A",
-          group: "protein"
-        },
-        {
-          name: "Unknown type",
-          id: "2",
-          access: "B"
-        },
-        {
-          name: "Drug 123",
-          id: "3",
-          access: "C",
-          group: "drug"
-        },
-        {
-          name: "Gene abz",
-          id: "4",
-          access: "D",
-          group: "default"
-        }
-      ],
-      edges: [
-        {
-          from: '1',
-          to: '2',
-        },
-        {
-          from: '2',
-          to: '3',
-          group: 'custom'
-        }
-      ]
-    }));
-  }
-</script>
-</body>
-</html>
diff --git a/app-test/show_and_hide_elements.html b/app-test/show_and_hide_elements.html
deleted file mode 100644
index 281242ae..00000000
--- a/app-test/show_and_hide_elements.html
+++ /dev/null
@@ -1,114 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-  <title>Network Expander</title>
-  <base href="/">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
-
-
-  <link rel="stylesheet" href="netex-build/styles.css">
-  <script type="text/javascript" src="netex-build/netex.js"></script>
-
-</head>
-<body>
-
-<input type="checkbox" onclick=changeConfigStr('{"showOverview":'+this.checked+'}') checked /> Show overview<br>
-<input type="checkbox" onclick=changeConfigStr('{"showQuery":'+this.checked+'}') /> Show query<br>
-<input type="checkbox" onclick=changeConfigStr('{"showLeftSidebar":'+this.checked+'}') checked /> Show sidebar<br>
-<input type="checkbox" onclick=changeConfigStr('{"showItemSelector":'+this.checked+'}') checked /> Show ItemSelector<br>
-<input type="checkbox" onclick=changeConfigStr('{"showSimpleAnalysis":'+this.checked+'}') /> Show SimpleAnalysis<br>
-<input type="checkbox" onclick=changeConfigStr('{"showAdvAnalysis":'+this.checked+'}') checked /> Show Advanced Analysis<br>
-<input type="checkbox" onclick=changeConfigStr('{"showTasks":'+this.checked+'}') checked /> Show Tasks<br>
-<input type="checkbox" onclick=changeConfigStr('{"showSelection":'+this.checked+'}') checked /> Show Selection<br>
-<input type="checkbox" onclick=changeConfigStr('{"showNetworkMenu":'+this.checked+'}') checked /> Show Footer<br>
-<input type="checkbox" onclick=changeConfigStr('{"showLegend":'+this.checked+'}') checked /> Show Legend<br>
-<!--<input type="checkbox" onclick=changeConfigStr('{"showSimpleAnalysis":'+this.checked+'}') checked /> Show SimpleAnalysis<br>-->
-
-<br>
-
-<button onclick="setNetwork('netexp1')">Add proteins</button>
-
-
-
-
-<!--  "legendUrl": "https://exbio.wzw.tum.de/covex/assets/leg1.png",-->
-
-<div>
-  <network-expander id="netexp1" config='{
-  "showQuery": false,
-  "legendPos": "right",
-  "nodeGroups": {"default": {"color": "grey", "name": "Default Group", "shape": "triangle"} },
-  "edgeGroups":{"default": {"color": "grey", "name": "Default Edge Group"}, "custom": {"color": "red", "name": "Custom Edge Group"}}
-  }' onload="init1()" style="height: 100vh"></network-expander>
-</div>
-
-<!--
-<div>                                                                                                                                                                                                                                                                        <div style="border: 3px solid red">
-  <network-expander id="netexp2" config='{"legendUrl": "https://i.pinimg.com/originals/ff/72/80/ff72801189f650f11672915cda0f1bdf.png", "legendClass": "my-legend-2"}'></network-expander>
-</div>
-
--->
-
-<script>
-  function init1() {
-    document.getElementsByClassName('my-legend-1')[0].onclick = function() {this.remove()};
-  }
-
-  function changeConfig() {
-    const netexp = document.getElementById('netexp1');
-    netexp.setAttribute('config', '{"showLeftSidebar": false}');
-  }
-
-  function changeConfigStr(config) {
-    console.log(config);
-    const netexp = document.getElementById('netexp1');
-    netexp.setAttribute('config', config);
-  }
-
-  function setNetwork(nw) {
-    const netexp = document.getElementById(nw);
-
-    netexp.setAttribute('network', JSON.stringify({
-      nodes: [
-        {
-          name: "Protein 1",
-          id: "1",
-          access: "A",
-          group: "protein"
-        },
-        {
-          name: "Unknown type",
-          id: "2",
-          access: "B"
-        },
-        {
-          name: "Drug 123",
-          id: "3",
-          access: "C",
-          group: "drug"
-        },
-        {
-          name: "Gene abz",
-          id: "4",
-          access: "D",
-          group: "default"
-        }
-      ],
-      edges: [
-        {
-          from: '1',
-          to: '2',
-        },
-        {
-          from: '2',
-          to: '3',
-          group: 'custom'
-        }
-      ]
-    }));
-  }
-</script>
-</body>
-</html>
diff --git a/build.sh b/build.sh
index 6f9dda78..b211c7c8 100755
--- a/build.sh
+++ b/build.sh
@@ -1 +1 @@
-ng build --prod --output-path /var/www/html
+ng build --configuration production --output-path /var/www/html
-- 
GitLab