Skip to content

Commit 6e99431

Browse files
Migrated wwwroot
1 parent 0cdab45 commit 6e99431

File tree

69 files changed

+58049
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+58049
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
2+
for details on configuring this project to bundle and minify static web assets. */
3+
4+
a.navbar-brand {
5+
white-space: normal;
6+
text-align: center;
7+
word-break: break-all;
8+
}
9+
10+
/* Sticky footer styles
11+
-------------------------------------------------- */
12+
html {
13+
font-size: 14px;
14+
}
15+
@media (min-width: 768px) {
16+
html {
17+
font-size: 16px;
18+
}
19+
}
20+
21+
.border-top {
22+
border-top: 1px solid #e5e5e5;
23+
}
24+
.border-bottom {
25+
border-bottom: 1px solid #e5e5e5;
26+
}
27+
28+
.box-shadow {
29+
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
30+
}
31+
32+
button.accept-policy {
33+
font-size: 1rem;
34+
line-height: inherit;
35+
}
36+
37+
/* Sticky footer styles
38+
-------------------------------------------------- */
39+
html {
40+
position: relative;
41+
min-height: 100%;
42+
}
43+
44+
body {
45+
/* Margin bottom by footer height */
46+
margin-bottom: 60px;
47+
}
48+
.footer {
49+
position: absolute;
50+
bottom: 0;
51+
width: 100%;
52+
white-space: nowrap;
53+
/* Set the fixed height of the footer here */
54+
height: 60px;
55+
line-height: 60px; /* Vertically center the text there */
56+
}
31.3 KB
Binary file not shown.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
$(document).ready(function () {
2+
$.fn.dataTable.moment("DD/MM/YYYY HH:mm:ss");
3+
$.fn.dataTable.moment("DD/MM/YYYY");
4+
5+
$("#test-registers").DataTable({
6+
// Design Assets
7+
stateSave: true,
8+
autoWidth: true,
9+
// ServerSide Setups
10+
processing: true,
11+
serverSide: true,
12+
// Paging Setups
13+
paging: true,
14+
// Searching Setups
15+
searching: { regex: true },
16+
// Ajax Filter
17+
ajax: {
18+
url: "/TestRegisters/LoadTable",
19+
type: "POST",
20+
contentType: "application/json",
21+
dataType: "json",
22+
data: function (d) {
23+
return JSON.stringify(d);
24+
}
25+
},
26+
// Columns Setups
27+
columns: [
28+
{ data: "id" },
29+
{ data: "name" },
30+
{ data: "firstSurname" },
31+
{ data: "secondSurname" },
32+
{ data: "street" },
33+
{ data: "phone" },
34+
{ data: "zipCode" },
35+
{ data: "country" },
36+
{ data: "notes" },
37+
{
38+
data: "creationDate",
39+
render: function (data, type, row) {
40+
// If display or filter data is requested, format the date
41+
if (type === "display" || type === "filter") {
42+
return moment(data).format("ddd DD/MM/YYYY HH:mm:ss");
43+
}
44+
// Otherwise the data type requested (`type`) is type detection or
45+
// sorting data, for which we want to use the raw date value, so just return
46+
// that, unaltered
47+
return data;
48+
}
49+
}
50+
],
51+
// Column Definitions
52+
columnDefs: [
53+
{ targets: "no-sort", orderable: false },
54+
{ targets: "no-search", searchable: false },
55+
{
56+
targets: "trim",
57+
render: function (data, type, full, meta) {
58+
if (type === "display") {
59+
data = strtrunc(data, 10);
60+
}
61+
62+
return data;
63+
}
64+
},
65+
{ targets: "date-type", type: "date-eu" }
66+
]
67+
});
68+
});
69+
70+
function strtrunc(str, num) {
71+
if (str.length > num) {
72+
return str.slice(0, num) + "...";
73+
}
74+
else {
75+
return str;
76+
}
77+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
2+
// for details on configuring this project to bundle and minify static web assets.
3+
4+
// Write your JavaScript code.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2011-2018 Twitter, Inc.
4+
Copyright (c) 2011-2018 The Bootstrap Authors
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

0 commit comments

Comments
 (0)