diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccb2c80 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +package-lock.json \ No newline at end of file diff --git a/.vs/GIS-SoSe-2020/v16/.suo b/.vs/GIS-SoSe-2020/v16/.suo deleted file mode 100644 index faea06a..0000000 Binary files a/.vs/GIS-SoSe-2020/v16/.suo and /dev/null differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json deleted file mode 100644 index 6b61141..0000000 --- a/.vs/VSWorkspaceState.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "ExpandedNodes": [ - "" - ], - "PreviewInSolutionExplorer": false -} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite deleted file mode 100644 index 3cc2e27..0000000 Binary files a/.vs/slnx.sqlite and /dev/null differ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2ba986f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_08_2020-06-17/test.js b/Aufgaben/Aufgabe_08_2020-06-17/test.js new file mode 100644 index 0000000..7ac9e1a --- /dev/null +++ b/Aufgaben/Aufgabe_08_2020-06-17/test.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.A08Server = void 0; +const Http = require("http"); +var A08Server; +(function (A08Server) { + console.log("Starting server"); + let port = Number(process.env.PORT); + if (!port) + port = 8100; + let server = Http.createServer(); + server.addListener("request", handleRequest); + server.addListener("listening", handleListen); + server.listen(port); + function handleListen() { + console.log("Listening"); + } + function handleRequest(_request, _response) { + console.log("I hear voices!"); + _response.setHeader("content-type", "text/html; charset=utf-8"); + _response.setHeader("Access-Control-Allow-Origin", "*"); + _response.write(_request.url); + _response.end(); + } +})(A08Server = exports.A08Server || (exports.A08Server = {})); +//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/Aufgaben/Aufgabe_08_2020-06-17/test.js.map b/Aufgaben/Aufgabe_08_2020-06-17/test.js.map new file mode 100644 index 0000000..215ac3f --- /dev/null +++ b/Aufgaben/Aufgabe_08_2020-06-17/test.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAE7B,IAAiB,SAAS,CAyBzB;AAzBD,WAAiB,SAAS;IACtB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC/B,IAAI,IAAI,GAAW,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,CAAC,IAAI;QACL,IAAI,GAAG,IAAI,CAAC;IAEhB,IAAI,MAAM,GAAgB,IAAI,CAAC,YAAY,EAAE,CAAC;IAC9C,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7C,MAAM,CAAC,WAAW,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEpB,SAAS,YAAY;QACjB,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC;IAED,SAAS,aAAa,CAAC,QAA8B,EAAE,SAA8B;QACjF,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAE9B,SAAS,CAAC,SAAS,CAAC,cAAc,EAAE,0BAA0B,CAAC,CAAC;QAChE,SAAS,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;QAExD,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAE9B,SAAS,CAAC,GAAG,EAAE,CAAC;IACpB,CAAC;AACL,CAAC,EAzBgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAyBzB"} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_08_2020-06-17/test.ts b/Aufgaben/Aufgabe_08_2020-06-17/test.ts new file mode 100644 index 0000000..1db5310 --- /dev/null +++ b/Aufgaben/Aufgabe_08_2020-06-17/test.ts @@ -0,0 +1,28 @@ +import * as Http from "http"; + +export namespace A08Server { + console.log("Starting server"); + let port: number = Number(process.env.PORT); + if (!port) + port = 8100; + + let server: Http.Server = Http.createServer(); + server.addListener("request", handleRequest); + server.addListener("listening", handleListen); + server.listen(port); + + function handleListen(): void { + console.log("Listening"); + } + + function handleRequest(_request: Http.IncomingMessage, _response: Http.ServerResponse): void { + console.log("I hear voices!"); + + _response.setHeader("content-type", "text/html; charset=utf-8"); + _response.setHeader("Access-Control-Allow-Origin", "*"); + + _response.write(_request.url); + + _response.end(); + } +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_08_2020-06-17/test2.js b/Aufgaben/Aufgabe_08_2020-06-17/test2.js new file mode 100644 index 0000000..e69de29 diff --git a/Aufgaben/Aufgabe_08_2020-06-17/tutorial.html b/Aufgaben/Aufgabe_08_2020-06-17/tutorial.html new file mode 100644 index 0000000..b5fdc5e --- /dev/null +++ b/Aufgaben/Aufgabe_08_2020-06-17/tutorial.html @@ -0,0 +1,48 @@ + + +
+ + + +