Skip to content

Commit

Permalink
Updated theme on old pages
Browse files Browse the repository at this point in the history
  • Loading branch information
z1pti3 committed Jun 27, 2021
1 parent 4835f53 commit 56b274e
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 191 deletions.
20 changes: 11 additions & 9 deletions web/build/blank.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<html>
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">
<script src="{{ url_for('static', filename='javascript/hotkeys.js') }}"></script>
</head>
<body class="theme-panelContainer">
<pre class="theme-panelContainer">{{ content }}</pre>
</body>
</html>
{% extends "main.html" %}

{% block head %}
{{ jimi.jquery() }}
{{ jimi.tables() }}
<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">
<script src="{{ url_for('static', filename='javascript/hotkeys.js') }}"></script>
{% endblock %}

{% block main %}
{{ content }}
{% endblock %}
40 changes: 13 additions & 27 deletions web/build/blankPage.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>jimi</title>
{% extends "main.html" %}

<!-- Includes Default -->
<script src="{{ url_for('static', filename='/includes/jquery-3.6.0/js/jquery-3.6.0.min.js') }}"></script>
<script src="{{ url_for('static', filename='includes/jqueryui-1.12.1/jquery-ui-1.12.1.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='includes/jqueryui-1.12.1/jquery-ui.theme.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='includes/jqueryui-1.12.1/jquery-ui.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='includes/jqueryui-1.12.1/jquery-ui.structure.min.css') }}">
<script src="{{ url_for('static', filename='includes/bootstrap-4.5.3/bootstrap.min.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='includes/bootstrap-4.5.3/bootstrap.min.css') }}">
{% block head %}
{{ jimi.jquery() }}
{{ jimi.tables() }}
<script src="{{ url_for('static', filename='javascript/alert.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/alert.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">
{% endblock %}

<!-- jimi -->
<script src="{{ url_for('static', filename='javascript/alert.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/alert.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">

{% block head %}
{% endblock %}
</head>
<body class="theme-content">
{% block body %}
{% endblock %}
</body>
{% block main %}
{% block body %}
{% endblock %}
{% block html %}
{% endblock %}
</html>
{% endblock %}
185 changes: 85 additions & 100 deletions web/build/cleanupObjects.html
Original file line number Diff line number Diff line change
@@ -1,107 +1,92 @@
<script src="{{ url_for('static', filename='/includes/jquery-3.6.0/js/jquery-3.6.0.min.js') }}"></script>
<script src="{{ url_for('static', filename='includes/jquery/js/jquery.datatables.min.js') }}"></script>
{% extends "main.html" %}

<link rel="stylesheet" href="{{ url_for('static', filename='includes/datatables/css/dataTables.bootstrap.css') }}">
<script src="{{ url_for('static', filename='includes/datatables/js/dataTables.bootstrap.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='includes/datatables/css/fixedHeader.dataTables.min.css') }}">
<script src="{{ url_for('static', filename='includes/datatables/js/dataTables.fixedHeader.min.js') }}"></script>
{% block head %}
{{ jimi.jquery() }}
{{ jimi.tables() }}
<script src="{{ url_for('static', filename='includes/jquery/js/jquery.datatables.min.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='includes/datatables/css/dataTables.bootstrap.css') }}">
<script src="{{ url_for('static', filename='includes/datatables/js/dataTables.bootstrap.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='includes/datatables/css/fixedHeader.dataTables.min.css') }}">
<script src="{{ url_for('static', filename='includes/datatables/js/dataTables.fixedHeader.min.js') }}"></script>
<script src="{{ url_for('static', filename='javascript/helpers.js') }}"></script>
<script src="{{ url_for('static', filename='javascript/hotkeys.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/datatable.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">
{% endblock %}

<link rel="stylesheet" href="{{ url_for('static', filename='includes/bootstrap-3.3.7/css/bootstrap.min.css') }}">
<script src="{{ url_for('static', filename='includes/visjs/js/moment.js') }}"></script>
<script src="{{ url_for('static', filename='includes/datatables/js/datetime.moment.js') }}"></script>
<script src="{{ url_for('static', filename='includes/bootstrap-3.3.7/js/bootstrap.min.js') }}"></script>

<script src="{{ url_for('static', filename='javascript/helpers.js') }}"></script>


<script src="{{ url_for('static', filename='javascript/hotkeys.js') }}"></script>

<link rel="stylesheet" href="{{ url_for('static', filename='css/datatable.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">

<script>
var CSRF = "{{CSRF}}"
</script>

<html>
<head>
<title>JIMI - cleanup Unused Objects</title>
</head>
<body class="theme-panelContainer">
<b>Triggers:</b>
<table id="orderTableTrigger" class="table table-sm theme-table" cellspacing="0" width="100%">
<thead class="theme-tableHeader">
{% block main %}
<b>Triggers:</b>
<table id="orderTableTrigger" class="table table-sm theme-table" cellspacing="0" width="100%">
<thead class="theme-tableHeader">
<tr>
<th class="th-sm">_id</th>
<th class="th-sm">name</th>
</tr>
</thead>
<tbody class="theme-tableBody">
{% for data in unusedTriggerObjects %}
<tr>
<th class="th-sm">_id</th>
<th class="th-sm">name</th>
<td>{{ data['_id'] }}</td>
<td>{{ data['name'] }}</td>
</tr>
</thead>
<tbody class="theme-tableBody">
{% for data in unusedTriggerObjects %}
<tr>
<td>{{ data['_id'] }}</td>
<td>{{ data['name'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<br>
<br>
<b>Actions:</b>
<table id="orderTableAction" class="table table-sm theme-table" cellspacing="0" width="100%">
<thead class="theme-tableHeader">
{% endfor %}
</tbody>
</table>
<br>
<br>
<b>Actions:</b>
<table id="orderTableAction" class="table table-sm theme-table" cellspacing="0" width="100%">
<thead class="theme-tableHeader">
<tr>
<th class="th-sm">_id</th>
<th class="th-sm">name</th>
</tr>
</thead>
<tbody class="theme-tableBody">
{% for data in unusedActionObjects %}
<tr>
<th class="th-sm">_id</th>
<th class="th-sm">name</th>
<td>{{ data['_id'] }}</td>
<td>{{ data['name'] }}</td>
</tr>
</thead>
<tbody class="theme-tableBody">
{% for data in unusedActionObjects %}
<tr>
<td>{{ data['_id'] }}</td>
<td>{{ data['name'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<br>
<br>
<input class='btn btn-primary theme-panelButton' id="clearbutton" type="submit" value="Cleanup">
</body>
</html>

<script>
$(document).ready(function () {
$('#orderTableTrigger').DataTable({
"stripeClasses" : [ 'theme-tableRowOdd', 'theme-tableRowEven' ],
fixedHeader: {
header: true,
footer: true
},
"paging" : false,
"order" : [[ 0, "desc" ]],
"autoWidth": false,
{% endfor %}
</tbody>
</table>
<br>
<br>
<input class='btn btn-primary theme-panelButton' id="clearbutton" type="submit" value="Cleanup">
<script>
$(document).ready(function () {
$('#orderTableTrigger').DataTable({
"stripeClasses" : [ 'theme-tableRowOdd', 'theme-tableRowEven' ],
fixedHeader: {
header: true,
footer: true
},
"paging" : false,
"order" : [[ 0, "desc" ]],
"autoWidth": false,
});
$('#orderTableAction').DataTable({
"stripeClasses" : [ 'theme-tableRowOdd', 'theme-tableRowEven' ],
fixedHeader: {
header: true,
footer: true
},
"paging" : false,
"order" : [[ 0, "desc" ]],
"autoWidth": false,
});
$('.dataTables_length').addClass('bs-select');
$('.dataTables_filter input[type="search"]').css({'width':'200px'});
$('.dataTables_filter input[type="search"]').addClass("theme-panelTextbox")

});
$('#orderTableAction').DataTable({
"stripeClasses" : [ 'theme-tableRowOdd', 'theme-tableRowEven' ],
fixedHeader: {
header: true,
footer: true
},
"paging" : false,
"order" : [[ 0, "desc" ]],
"autoWidth": false,
});
$('.dataTables_length').addClass('bs-select');
$('.dataTables_filter input[type="search"]').css({'width':'200px'});
$('.dataTables_filter input[type="search"]').addClass("theme-panelTextbox")

});

$('#clearbutton').on('click', function(e){
$.ajax({url:"", type:"DELETE", data : JSON.stringify({CSRF: CSRF}), contentType:"application/json", success: function ( result ) {
location.reload();
}
});
})
</script>

$('#clearbutton').on('click', function(e){
$.ajax({url:"", type:"DELETE", data : JSON.stringify({CSRF: CSRF}), contentType:"application/json", success: function ( result ) {
location.reload();
}
});
})
</script>
{% endblock %}
81 changes: 26 additions & 55 deletions web/build/import.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,26 @@
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script src="{{ url_for('static', filename='/includes/jquery-3.6.0/js/jquery-3.6.0.min.js') }}"></script>
<script src="{{ url_for('static', filename='includes/jquery/js/jquery-ui-1.12.1.js') }}"></script>

<link rel="stylesheet" href="{{ url_for('static', filename='includes/jquery/css/jquery-ui.theme.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='includes/jquery/css/jquery-ui.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='includes/jquery/css/jquery-ui.structure.css') }}">

<link rel="stylesheet" href="{{ url_for('static', filename='includes/bootstrap-3.3.7/css/bootstrap.min.css') }}">
<script src="{{ url_for('static', filename='includes/bootstrap-3.3.7/js/bootstrap.min.js') }}"></script>

<link rel="stylesheet" href="{{ url_for('static', filename='css/datatable.css') }}">

<script src="{{ url_for('static', filename='javascript/helpers.js') }}"></script>
<script src="{{ url_for('static', filename='javascript/alert.js') }}"></script>

<script src="{{ url_for('static', filename='javascript/hotkeys.js') }}"></script>

<link rel="stylesheet" href="{{ url_for('static', filename='css/alert.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/codify.css') }}">

<link rel="stylesheet" href="{{ url_for('static', filename='themes/default/default.css') }}">


</head>
<body class="theme-panelContainer">
<div class="container-fluid theme-panelContainer">
Import Data:<br>
<textarea id="importData" class="inputFullWidth theme-panelTextArea" style="height: 150px;"></textarea></br>
<input class="theme-panelCheckbox" type="checkbox" checked id="appendObjects">Append</input></br>
<input class="theme-panelCheckbox" type="checkbox" id="duplicateObjects">Duplicate all objects</input></br>
Offset UI x by: <input class="theme-panelTextbox" value="0" id="offsetX"></input></br>
Offset UI y by: <input class="theme-panelTextbox" value="0" id="offsetY"></input></br>
<button id="import" class="btn btn-primary theme-panelButton">Import</button></br>
</div>
</body>
</html>

<script>
var CSRF = "{{CSRF}}"
</script>

<script>
$("#import").click(function () {
$.ajax({type:"POST", data:JSON.stringify({ importData: $('#importData').val(), duplicateObjects: $("#duplicateObjects").is(":checked"), appendObjects: $("#appendObjects").is(":checked"), offsetX : $('#offsetX').val(), offsetY : $('#offsetY').val(), CSRF: CSRF }), contentType:"application/json", success: function(result) {
alert("Imported!");
}
});
});
</script>
{% extends "main.html" %}

{% block head %}
{{ jimi.jquery() }}
{{ jimi.tables() }}
{% endblock %}

{% block main %}
<div class="container-fluid theme-panelContainer">
Import Data:<br>
<textarea id="importData" class="inputFullWidth theme-panelTextArea" style="height: 150px;"></textarea></br>
<input class="theme-panelCheckbox" type="checkbox" checked id="appendObjects">Append</input></br>
<input class="theme-panelCheckbox" type="checkbox" id="duplicateObjects">Duplicate all objects</input></br>
Offset UI x by: <input class="theme-panelTextbox" value="0" id="offsetX"></input></br>
Offset UI y by: <input class="theme-panelTextbox" value="0" id="offsetY"></input></br>
<button id="import" class="btn btn-primary theme-panelButton">Import</button></br>
</div>
<script>
$("#import").click(function () {
$.ajax({type:"POST", data:JSON.stringify({ importData: $('#importData').val(), duplicateObjects: $("#duplicateObjects").is(":checked"), appendObjects: $("#appendObjects").is(":checked"), offsetX : $('#offsetX').val(), offsetY : $('#offsetY').val(), CSRF: CSRF }), contentType:"application/json", success: function(result) {
alert("Imported!");
}
});
});
</script>
{% endblock %}

0 comments on commit 56b274e

Please sign in to comment.