GitLab wurde erfolgreich aktualisiert. Durch regelmäßige Updates bleibt das THM GitLab sicher. Danke für Ihre Geduld.

Commit 2a2e687c authored by Max Estefan Mahr's avatar Max Estefan Mahr

Aufgaben Abgabe

parent 6ccc2d31
......@@ -24,5 +24,29 @@
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings>
</DBN-SQL>
<DBN-PSQL>
<case-options enabled="false">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false" />
</DBN-PSQL>
<DBN-SQL>
<case-options enabled="false">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false">
<option name="STATEMENT_SPACING" value="one_line" />
<option name="CLAUSE_CHOP_DOWN" value="chop_down_if_statement_long" />
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings>
</DBN-SQL>
</code_scheme>
</component>
\ No newline at end of file
......@@ -18,8 +18,8 @@
<file leaf-file-name="express.ts" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/express.ts">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" column="14" selection-start-line="11" selection-start-column="14" selection-end-line="11" selection-end-column="14" />
<state relative-caret-position="170">
<caret line="12" selection-start-line="12" selection-end-line="12" />
<folding>
<element signature="e#0#42#0" expanded="true" />
</folding>
......@@ -30,8 +30,8 @@
<file leaf-file-name="view.html" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/Client/view.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="102">
<caret line="6" column="30" selection-start-line="6" selection-start-column="30" selection-end-line="6" selection-end-column="30" />
<state relative-caret-position="170">
<caret line="10" column="11" selection-start-line="10" selection-start-column="11" selection-end-line="10" selection-end-column="11" />
</state>
</provider>
</entry>
......@@ -39,8 +39,8 @@
<file leaf-file-name="view.ts" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Client/view.ts">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" selection-start-line="11" selection-end-line="11" />
<state relative-caret-position="272">
<caret line="16" column="32" selection-start-line="16" selection-start-column="32" selection-end-line="16" selection-end-column="32" />
</state>
</provider>
</entry>
......@@ -57,8 +57,8 @@
<file leaf-file-name="view.css" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Client/view.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="9" column="12" selection-start-line="9" selection-start-column="12" selection-end-line="9" selection-end-column="12" />
<state relative-caret-position="102">
<caret line="6" column="21" selection-start-line="6" selection-start-column="21" selection-end-line="6" selection-end-column="21" />
</state>
</provider>
</entry>
......@@ -129,6 +129,7 @@
<path value="$PROJECT_DIR$/node_modules/iconv-lite/package.json" />
<path value="$PROJECT_DIR$/node_modules/inherits/package.json" />
<path value="$PROJECT_DIR$/node_modules/ipaddr.js/package.json" />
<path value="$PROJECT_DIR$/node_modules/jquery/package.json" />
<path value="$PROJECT_DIR$/node_modules/media-typer/package.json" />
<path value="$PROJECT_DIR$/node_modules/merge-descriptors/package.json" />
<path value="$PROJECT_DIR$/node_modules/methods/package.json" />
......@@ -174,13 +175,13 @@
<subPane>
<expand>
<path>
<item name="Übung3" type="b2602c69:ProjectViewProjectNode" />
<item name="Übung3" type="462c0819:PsiDirectoryNode" />
<item name="Übung 3" type="b2602c69:ProjectViewProjectNode" />
<item name="Übung 3" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Übung3" type="b2602c69:ProjectViewProjectNode" />
<item name="Übung3" type="462c0819:PsiDirectoryNode" />
<item name="Client" type="462c0819:PsiDirectoryNode" />
<item name="Übung 3" type="b2602c69:ProjectViewProjectNode" />
<item name="Übung 3" type="462c0819:PsiDirectoryNode" />
<item name="express.ts" type="620a8d5e:NestingTreeNode" />
</path>
</expand>
<select />
......@@ -191,7 +192,7 @@
<component name="PropertiesComponent">
<property name="DefaultHtmlFileTemplate" value="HTML File" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../Übung 5" />
<property name="list.type.of.created.stylesheet" value="CSS" />
<property name="node.js.detected.package.prettier" value="true" />
<property name="node.js.path.for.package.prettier" value="project" />
......@@ -351,25 +352,32 @@
<workItem from="1525173703449" duration="611000" />
<workItem from="1525858928756" duration="122000" />
<workItem from="1526467962106" duration="15000" />
<workItem from="1528022887275" duration="983000" />
<workItem from="1528023952519" duration="810000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="8854000" />
<option name="totallyTimeSpent" value="10647000" />
</component>
<component name="ToolWindowManager">
<frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
<editor active="true" />
<layout>
<window_info anchor="bottom" id="TypeScript" order="0" weight="0.32916668" />
<window_info content_ui="combo" id="Project" order="1" sideWeight="0.7050473" visible="true" weight="0.2147651" />
<window_info anchor="bottom" id="TODO" order="10" />
<window_info anchor="bottom" id="Docker" order="11" show_stripe_button="false" />
<window_info id="DB Browser" order="2" />
<window_info anchor="bottom" id="DB Execution Console" order="11" />
<window_info anchor="bottom" id="Event Log" order="1" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="2" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="6" sideWeight="0.8430095" weight="0.42514125" />
<window_info anchor="bottom" id="Terminal" order="3" weight="0.3361582" />
<window_info anchor="bottom" id="TypeScript" order="0" weight="0.32909605" />
<window_info content_ui="combo" id="Project" order="1" sideWeight="0.7050473" visible="true" weight="0.22080536" />
<window_info id="Project Explorer" order="2" />
<window_info id="Job Explorer" order="2" />
<window_info anchor="bottom" id="Docker" order="11" show_stripe_button="false" />
<window_info anchor="bottom" id="Console" order="11" />
<window_info anchor="right" id="Structure" order="3" side_tool="true" weight="0.14295302" />
<window_info anchor="bottom" id="Terminal" order="3" weight="0.33645833" />
<window_info id="Favorites" order="0" side_tool="true" />
<window_info anchor="bottom" id="Debug" order="7" weight="0.4" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
......@@ -411,6 +419,10 @@
<option value="$PROJECT_DIR$/express.js.map" />
<option value="$PROJECT_DIR$/Client/view.js.map" />
<option value="$PROJECT_DIR$/Client/view.js" />
<option value="$PROJECT_DIR$/../../../WebP2-master-2d0c6fc02a6f737a97b104daae4a8368c691d19f/Uebung3/Sebastian Weirich/Ubung3.js" />
<option value="$PROJECT_DIR$/../../../WebP2-master-2d0c6fc02a6f737a97b104daae4a8368c691d19f/Uebung3/Verena Teske/site/AjaxAufg3.js" />
<option value="$PROJECT_DIR$/../../../WebP2-master-2d0c6fc02a6f737a97b104daae4a8368c691d19f/Uebung3/Sebastian Weirich/site/Ubung3Client.js" />
<option value="$PROJECT_DIR$/../../../WebP2-master-2d0c6fc02a6f737a97b104daae4a8368c691d19f/Uebung3/Benedikt Weber/zahlenraten.js" />
</list>
</option>
</component>
......@@ -769,13 +781,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Client/view.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="9" column="12" selection-start-line="9" selection-start-column="12" selection-end-line="9" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/requests.http">
<provider selected="true" editor-type-id="text-editor">
<state>
......@@ -785,8 +790,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/express.ts">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" column="14" selection-start-line="11" selection-start-column="14" selection-end-line="11" selection-end-column="14" />
<state relative-caret-position="170">
<caret line="12" selection-start-line="12" selection-end-line="12" />
<folding>
<element signature="e#0#42#0" expanded="true" />
</folding>
......@@ -795,15 +800,22 @@
</entry>
<entry file="file://$PROJECT_DIR$/Client/view.ts">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" selection-start-line="11" selection-end-line="11" />
<state relative-caret-position="272">
<caret line="16" column="32" selection-start-line="16" selection-start-column="32" selection-end-line="16" selection-end-column="32" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Client/view.html">
<entry file="file://$PROJECT_DIR$/Client/view.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="102">
<caret line="6" column="30" selection-start-line="6" selection-start-column="30" selection-end-line="6" selection-end-column="30" />
<caret line="6" column="21" selection-start-line="6" selection-start-column="21" selection-end-line="6" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Client/view.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="170">
<caret line="10" column="11" selection-start-line="10" selection-start-column="11" selection-end-line="10" selection-end-column="11" />
</state>
</provider>
</entry>
......
......@@ -2,6 +2,10 @@ h1 {
font-family: "Bell MT";
color: blue;
}
h2 {
font-family: "Arial Narrow";
color: chocolate;
}
div {
background-color: beige;
font-family: "Arial Narrow";
......
......@@ -3,12 +3,45 @@
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="/site/view.css">
<script src="/site/view.js"></script>
<link rel="stylesheet" href="view.css">
<script src="view.js"></script>
</head>
<body>
<h1>Max Mahr</h1>
<h2>Übung 6</h2>
<p id="divplatz"> </p>
<button id="diverstellen" type="button" onclick="divs()">Div Schleife</button>
<h1 id="zahlenraten">Zahlenraten</h1>
<div id="raten">
<input id="text1" type="number" value=" "/>
<input id="Btn1" type="submit" value="Raten1"/>
</div>
<br>
<div id="schummeln">
<div>Passwort:</div><input id="text2" type="text" value=" "/>
<input id="Btn2" type="submit" value="schummeln"/>
</div>
<br>
<div id="zahlsetzen">
<div>Zahl setzen:</div><input id="text3" type="number" value=""/>
<input id="Btn3" type="submit" value="Zahl setzen"/>
</div>
<br>
<div id="result">
Response Server:<span id="data">Platzhalter</span>
</div>
</body>
</body>
</html>
\ No newline at end of file
......@@ -7,4 +7,38 @@ function divs() {
div.textContent = summe.toString();
}
}
$(document).ready(function () {
$('#Btn1').click(function () {
$("#data").html("");
var variable = $("#text1").val();
$.ajax({
url: 'http://localhost:8080/raten/' + variable,
type: 'GET',
success: function (data) { $('#data').text(data + "."); },
error: function (jqXHR, Status, error) { alert(error); }
});
});
$('#button2').click(function () {
$("#data").html("");
var passwort = $("#text2").val();
$.ajax({
url: 'http://localhost:8080/cheat?password=' + passwort,
type: 'GET',
success: function (data) { $('#data').text(data + "."); },
error: function (jqXHR, Status, error) { alert(error); }
});
});
$('#button3').click(function () {
$("#data").html("");
var passwort = $("#text2").val();
var number = $("#text3").val();
$.ajax({
url: 'http://localhost:8080/set',
type: 'POST',
data: { password: passwort, zahl: number },
success: function (data) { $('#data').text(data + "."); },
error: function (jqXHR, Status, error) { alert(error); }
});
});
});
//# sourceMappingURL=view.js.map
\ No newline at end of file
{"version":3,"file":"view.js","sourceRoot":"","sources":["view.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAClB;IAEI,KAAK,IAAI,CAAC,GAAS,CAAC,EAAE,CAAC,IAAE,GAAG,EAAE,CAAC,EAAE,EAAE;QAC/B,IAAI,KAAK,GAAW,CAAC,CAAC;QACtB,IAAI,GAAG,GAAE,QAAQ,CAAC,aAAa,CAAE,KAAK,CAAC,CAAC;QACxC,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACrD,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;KAEtC;AACL,CAAC"}
\ No newline at end of file
{"version":3,"file":"view.js","sourceRoot":"","sources":["view.ts"],"names":[],"mappings":"AAAA,O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uC,GAAG,QAAQ;YACvD,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,UAAC,IAAI,IAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,GAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACjD,KAAK,EAAE,UAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACrD,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAIH,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC;QAEhB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpB,IAAI,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;QACjC,IAAI,MAAM,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;QAE/B,CAAC,CAAC,IAAI,CAAC;YACH,GAAG,EAAE,2BAA2B;YAChC,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC;YACxC,OAAO,EAAE,UAAC,IAAI,IAAO,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,GAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACjD,KAAK,EAAE,UAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACrD,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
\ No newline at end of file
......@@ -9,3 +9,51 @@ function divs(): void {
}
}
$(document).ready(function() {
$('#Btn1').click(() => {
$("#data").html("");
let variable = $("#text1").val();
$.ajax({
url: 'http://localhost:8080/raten/' + variable,
type: 'GET',
success: (data) => { $('#data').text(data+".") },
error: (jqXHR, Status, error) => { alert(error) }
});
});
$('#button2').click(() => {
$("#data").html("");
let passwort = $("#text2").val();
$.ajax({
url: 'http://localhost:8080/cheat?password=' + passwort,
type: 'GET',
success: (data) => { $('#data').text(data+"."); },
error: (jqXHR, Status, error) => { alert(error); }
});
});
$('#button3').click(() => {
$("#data").html("");
let passwort = $("#text2").val();
let number = $("#text3").val();
$.ajax({
url: 'http://localhost:8080/set',
type: 'POST',
data: {password: passwort, zahl: number},
success: (data) => { $('#data').text(data+"."); },
error: (jqXHR, Status, error) => { alert(error); }
});
});
});
......@@ -24,5 +24,29 @@
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings>
</DBN-SQL>
<DBN-PSQL>
<case-options enabled="false">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false" />
</DBN-PSQL>
<DBN-SQL>
<case-options enabled="false">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false">
<option name="STATEMENT_SPACING" value="one_line" />
<option name="CLAUSE_CHOP_DOWN" value="chop_down_if_statement_long" />
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings>
</DBN-SQL>
</code_scheme>
</component>
\ No newline at end of file
This diff is collapsed.
{"version":3,"file":"clientAJAX.js","sourceRoot":"","sources":["clientAJAX.ts"],"names":[],"mappings":"AAAA,IAAU,IAAI,CAkLb;AAlLD,WAAU,IAAI;IAEd;;4HAEwH;IACxH;QAAA;QAOA,CAAC;QAAD,WAAC;IAAD,CAAC,AAPD,IAOC;IAED,+EAA+E;IAC/E,+EAA+E;IAE/E,+EAA+E;IAE/E,gBAAgB,OAAe,EAAE,QAAgB;QAChD,IA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O,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA,CAAI,CAAC;gBAChE,KAAK,EAAM,UAAC,KAAK,IAAO,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA,CAAC,CAAC;aAChE,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,kFAAkF;QAClF,CAAC,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE;YAC/B,CAAC,CAAC,IAAI,CAAC;gBACN,GAAG,EAAQ,6BAA6B;gBACxC,IAAI,EAAO,QAAQ;gBACnB,QAAQ,EAAG,MAAM;gBACjB,OAAO,EAAI,UAAC,IAAI,IAAO,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA,CAAG,CAAC;gBAC9D,KAAK,EAAM,UAAC,KAAK,IAAO,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA,CAAC,CAAC;aAChE,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IAEJ,CAAC,CAAC,CAAC;AACH,CAAC,EAjLS,IAAI,KAAJ,IAAI,QAiLb,CAAC,wBAAwB"}
\ No newline at end of file
......@@ -175,5 +175,4 @@ $(function () {
});
});
} // end of namespace AJAX
......@@ -31,6 +31,7 @@ var BOOTSTRAP;
this.saveBtn = $("#editSaveBtn");
this.editWindow = $("#editWindow");
this.resultWindow = $("#resultWindow");
this.DeleteUser = $("#DeleteBtn");
}
/**
* Creates new User with Attributes from Inputfields
......@@ -181,7 +182,7 @@ var BOOTSTRAP;
this.userTable.empty();
//--- set table header and for each user a table-row
if (userList.length > 0) { // there are users in list -> print header
this.userTable.append($("\n\t\t\t\t\t<div class=\"row bg-info\">\n\t\t\t\t\t\t<div class=\"col-5 justify-content-center\">Vorname</div>\n\t\t\t\t\t\t<div class=\"col-5 justify-content-center\">Nachname</div>\n\t\t\t\t\t\t<div class=\"col-2\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t"));
this.userTable.append($("\n\t\t\t\t\t<div class=\"row bg-info\">\n\t\t\t\t\t\t<div class=\"col-5 justify-content-center\">Vorname</div>\n\t\t\t\t\t\t<div class=\"col-5 justify-content-center\">Nachname</div>\n\t\t\t\t\t<div>\n\t\t\t\t"));
}
var evenRow = true; // row-number is even
for (var _i = 0, userList_1 = userList; _i < userList_1.length; _i++) {
......@@ -243,6 +244,21 @@ var BOOTSTRAP;
this.resultWindow.addClass("bg-success");
}
};
UserList.prototype.deleteallusers = function (id) {
var _this = this;
$.ajax({
url: 'http://localhost:8080/users/',
type: 'DELETE',
dataType: 'json',
error: function (jqXHR) {
_this.renderResult(jqXHR.responseJSON.message, jqXHR.status);
},
success: function (data) {
_this.renderResult(data.message, 0);
_this.renderList(data.userList);
}
});
};
return UserList;
}());
/**********************************************************************************************************************
......@@ -266,11 +282,18 @@ var BOOTSTRAP;
$("#createBtn").on("click", function () {
userList.createUser(event);
});
$("#vornameInput, #nachnameInput").on("keyup", function (event) {
if (event.which === ENTER_KEY) {
userList.createUser(event);
} // only if "enter"-key (=13) is pressed
$("#EditBtn").on("click", function () {
userList.renderEdit(event); // leider verstehe ich nicht wieso der Edit Button nicht das macht was er soll...
});
$("#DeleteBtn").on("click", function () {
userList.deleteallusers(UserList.length); //Delete funktioniert zwar aber leider kommt man immer auf die Startseite...
$("#vornameInput, #nachnameInput, #nutzernameInput, #passwortInput").on("keyup", function (event) {
if (event.which === ENTER_KEY) {
userList.createUser(event);
} // only if "enter"-key (=13) is pressed
});
});
//Server erhält Daten vom Nutzer
});
})(BOOTSTRAP || (BOOTSTRAP = {})); // end of namespace BOOTSTRAP
//# sourceMappingURL=clientBS.js.map
\ No newline at end of file
{"version":3,"file":"clientBS.js","sourceRoot":"","sources":["clientBS.ts"],"names":[],"mappings":"AAAA,IAAU,SAAS,CAqSlB;AArSD,WAAU,SAAS;IAEnB,qCAAqC;IACrC,IAAM,SAAS,GAAW,EAAE,C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AAE,CAAC;QAExB,sHAAsH;QACtH,2EAA2E;QAC3E,IAAI,WAAW,GAAW,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,wCAAwC;QACrF,WAAW,CAAC,EAAE,CAAC,kBAAkB,EAAE;YAC/B,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,2BAA2B;QACpF,CAAC,CAAC,CAAC;QAEH,sHAAsH;QACtH,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE;YACxB,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE;YACtB,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,iFAAiF;QACjH,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE;YACxB,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,4EAA4E;YAGtH,CAAC,CAAC,iEAAiE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,UAAC,KAAmB;gBACjG,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE;oBAC3B,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;iBAC9B,CAAC,uCAAuC;YAC7C,CAAC,CAAC,CAAC;QAEP,CAAC,CAAC,CAAC;QACP,gCAAgC;IAEhC,CAAC,CAAA,CAAA;AACD,CAAC,EA7TS,SAAS,KAAT,SAAS,QA4TlB,CAAE,6BAA6B"}
\ No newline at end of file
......@@ -36,6 +36,9 @@ class UserList {
private saveBtn : JQuery = $("#editSaveBtn");
private editWindow : JQuery = $("#editWindow");
private resultWindow : JQuery = $("#resultWindow");
private DeleteUser : JQuery = $("#DeleteBtn");
/**
* Creates new User with Attributes from Inputfields
......@@ -191,8 +194,7 @@ class UserList {
<div class="row bg-info">
<div class="col-5 justify-content-center">Vorname</div>
<div class="col-5 justify-content-center">Nachname</div>
<div class="col-2"></div>
</div>
<div>
`));
}
let evenRow = true; // row-number is even
......@@ -254,9 +256,23 @@ class UserList {
this.resultWindow.addClass("bg-success");
}
}
public deleteallusers(id: number): void {
$.ajax({
url : 'http://localhost:8080/users/',
type : 'DELETE', // DELETE-request for DELETE
dataType : 'json', // expecting json
error : (jqXHR) => {
this.renderResult(jqXHR.responseJSON.message, jqXHR.status)
},
success : (data) => {
this.renderResult(data.message, 0);
this.renderList(data.userList)
},
});
}
}
/**********************************************************************************************************************
* Main Event Listener, that waits until DOM is loaded *
* - handle click on collapsable items in myContent -> hide all that are shown *
......@@ -265,30 +281,37 @@ class UserList {
**********************************************************************************************************************/
$(function () {
//-- instantiate UserList array --------------------------------------------------------------------------------------
let userList: UserList = new UserList();
//-- instantiate UserList array --------------------------------------------------------------------------------------
let userList: UserList = new UserList();
//-- initially read UserList (in case of other client already included users) ----------------------------------------
userList.readUserlist();
//-- initially read UserList (in case of other client already included users) ----------------------------------------
userList.readUserlist();
//-- handle click on collapsable items in myContent -> hide all that are shown ---------------------------------------
// see: https://getbootstrap.com/docs/4.0/components/collapse -> JavaScript
let contentArea: JQuery = $('#contentArea'); // consider only elements in contentArea
contentArea.on('show.bs.collapse', () => { // handles event "show.bs.collapse"
contentArea.find('.collapse.show').collapse('hide'); // find shown and hide them
});
//-- handle click on collapsable items in myContent -> hide all that are shown ---------------------------------------
// see: https://getbootstrap.com/docs/4.0/components/collapse -> JavaScript
let contentArea: JQuery = $('#contentArea'); // consider only elements in contentArea
contentArea.on('show.bs.collapse', () => { // handles event "show.bs.collapse"
contentArea.find('.collapse.show').collapse('hide'); // find shown and hide them
});
//--- define handler for clicking add-button or <cr> respectively ----------------------------------------------------
$("#createBtn").on("click", () => {
userList.createUser(event);
});
$("#EditBtn").on("click", () => {
userList.renderEdit(event); // leider verstehe ich nicht wieso der Edit Button nicht das macht was er soll...
});
$("#DeleteBtn").on("click", () => {
userList.deleteallusers(UserList.length); //Delete funktioniert zwar aber leider kommt man immer auf die Startseite...
//--- define handler for clicking add-button or <cr> respectively ----------------------------------------------------
$("#createBtn").on("click", () => {
userList.createUser(event);
});
$("#vornameInput, #nachnameInput").on("keyup", (event: JQuery.Event) => {
if (event.which === ENTER_KEY) {
userList.createUser(event);
} // only if "enter"-key (=13) is pressed
});
});
$("#vornameInput, #nachnameInput, #nutzernameInput, #passwortInput").on("keyup", (event: JQuery.Event) => {
if (event.which === ENTER_KEY) {
userList.createUser(event);
} // only if "enter"-key (=13) is pressed
});
});
//Server erhält Daten vom Nutzer
} // end of namespace BOOTSTRAP