Verified Commit b41191fc authored by Štěpán Henek's avatar Štěpán Henek 🐻
Browse files

Merge remote-tracking branch 'weblate/master'

parents 47d55bef d87ccdf5
......@@ -9,14 +9,16 @@ msgstr ""
"Project-Id-Version: Foris Pakon Plugin 2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-16 11:46+0200\n"
"PO-Revision-Date: 2018-08-16 11:45+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2018-11-30 00:09+0000\n"
"Last-Translator: ChrisDeath <chris.death@web.de>\n"
"Language-Team: German <https://hosted.weblate.org/projects/turris/"
"foris-pakon-plugin/de/>\n"
"Language: de\n"
"Language-Team: de <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.3-dev\n"
"Generated-By: Babel 2.6.0\n"
msgid "pakon"
......@@ -59,7 +61,7 @@ msgid "Duration"
msgstr ""
msgid "Client"
msgstr ""
msgstr "Client"
msgid "Hostname"
msgstr ""
......@@ -78,4 +80,3 @@ msgstr ""
msgid "everything"
msgstr ""
......@@ -9,71 +9,76 @@ msgstr ""
"Project-Id-Version: Foris Pakon Plugin 2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-16 11:46+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: 2018-11-02 09:24+0000\n"
"Last-Translator: Zoli <boritek@gmail.com>\n"
"Language-Team: Hungarian <https://hosted.weblate.org/projects/turris/"
"foris-pakon-plugin/hu/>\n"
"Language: hu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.3-dev\n"
"Generated-By: Babel 2.6.0\n"
msgid "pakon"
msgstr ""
msgstr "pakon"
msgid "Pakon"
msgstr ""
msgstr "Pakon"
msgid "Your browser doesn't support web workers, get a browser from this milenia."
msgstr ""
"Böngésző nem támogatja a webes feldolgozókat, szerezzen be böngészőt ebből "
"az évezredből."
msgid "Filtering:"
msgstr ""
msgstr "Szűrés:"
msgid "From:"
msgstr ""
msgstr "Kezdés:"
msgid "To:"
msgstr ""
msgstr "Befejezés:"
msgid "Aggregation by hostname:"
msgstr ""
msgstr "Összesítés gépnevenként:"
msgid "Only following hostnames:"
msgstr ""
msgstr "Csak a következő gépneveket:"
msgid "Only following clients:"
msgstr ""
msgstr "Csak a következő ügyfeleket:"
msgid "Overview"
msgstr ""
msgstr "Áttekintés"
msgid "Results"
msgstr ""
msgstr "Találatok"
msgid "Date"
msgstr ""
msgstr "Dátum"
msgid "Duration"
msgstr ""
msgstr "Időtartam"
msgid "Client"
msgstr ""
msgstr "Ügyfél"
msgid "Hostname"
msgstr ""
msgstr "Gépnév"
msgid "Port"
msgstr ""
msgstr "Port"
msgid "Sent"
msgstr ""
msgstr "Küldött"
msgid "Received"
msgstr ""
msgstr "Fogadott"
msgid "per page"
msgstr ""
msgstr "/ oldal"
msgid "everything"
msgstr ""
msgstr "minden"
# Translations template for Foris Pakon Plugin.
# Copyright (C) 2018 ORGANIZATION
# This file is distributed under the same license as the Foris Pakon Plugin
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
#
msgid ""
msgstr ""
"Project-Id-Version: Foris Pakon Plugin 2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-16 11:46+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: nb_NO\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.6.0\n"
msgid "pakon"
msgstr ""
msgid "Pakon"
msgstr ""
msgid "Your browser doesn't support web workers, get a browser from this milenia."
msgstr ""
msgid "Filtering:"
msgstr ""
msgid "From:"
msgstr ""
msgid "To:"
msgstr ""
msgid "Aggregation by hostname:"
msgstr ""
msgid "Only following hostnames:"
msgstr ""
msgid "Only following clients:"
msgstr ""
msgid "Overview"
msgstr ""
msgid "Results"
msgstr ""
msgid "Date"
msgstr ""
msgid "Duration"
msgstr ""
msgid "Client"
msgstr ""
msgid "Hostname"
msgstr ""
msgid "Port"
msgstr ""
msgid "Sent"
msgstr ""
msgid "Received"
msgstr ""
msgid "per page"
msgstr ""
msgid "everything"
msgstr ""
......@@ -9,71 +9,75 @@ msgstr ""
"Project-Id-Version: Foris Pakon Plugin 2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-16 11:46+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: 2018-11-30 00:09+0000\n"
"Last-Translator: Алексей Леньшин <alenshin@gmail.com>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/turris/"
"foris-pakon-plugin/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 3.3-dev\n"
"Generated-By: Babel 2.6.0\n"
msgid "pakon"
msgstr ""
msgstr "родительский контроль"
msgid "Pakon"
msgstr ""
msgstr "Родительский контроль"
msgid "Your browser doesn't support web workers, get a browser from this milenia."
msgstr ""
msgstr "Ваш браузер не поддерживает веб-службы, обновите браузер."
msgid "Filtering:"
msgstr ""
msgstr "Фильтр:"
msgid "From:"
msgstr ""
msgstr "От:"
msgid "To:"
msgstr ""
msgstr "Кому:"
msgid "Aggregation by hostname:"
msgstr ""
msgstr "Объединить по имени:"
msgid "Only following hostnames:"
msgstr ""
msgstr "Только следующие имена:"
msgid "Only following clients:"
msgstr ""
msgstr "Только следующие клиенты:"
msgid "Overview"
msgstr ""
msgstr "Обзор"
msgid "Results"
msgstr ""
msgstr "Результаты"
msgid "Date"
msgstr ""
msgstr "Дата"
msgid "Duration"
msgstr ""
msgstr "Длительность"
msgid "Client"
msgstr ""
msgstr "Клиент"
msgid "Hostname"
msgstr ""
msgstr "Имя хоста"
msgid "Port"
msgstr ""
msgstr "Порт"
msgid "Sent"
msgstr ""
msgstr "Отправлено"
msgid "Received"
msgstr ""
msgstr "Получено"
msgid "per page"
msgstr ""
msgstr "на страницу"
msgid "everything"
msgstr ""
msgstr "всё"
......@@ -9,8 +9,8 @@ msgstr ""
"Project-Id-Version: Foris Pakon Plugin 2\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-16 11:46+0200\n"
"PO-Revision-Date: 2018-10-21 18:35+0000\n"
"Last-Translator: Vladimír Záhradník <vladimir.zahradnik@gmail.com>\n"
"PO-Revision-Date: 2018-11-23 22:08+0000\n"
"Last-Translator: Novak Jiri <jirka.novak@upcmail.cz>\n"
"Language-Team: Slovak <https://hosted.weblate.org/projects/turris/"
"foris-pakon-plugin/sk/>\n"
"Language: sk\n"
......@@ -22,15 +22,15 @@ msgstr ""
"Generated-By: Babel 2.6.0\n"
msgid "pakon"
msgstr "pakon"
msgstr "Pakon"
msgid "Pakon"
msgstr "Pakon"
msgstr "PaKon"
msgid "Your browser doesn't support web workers, get a browser from this milenia."
msgstr ""
"Váš prehliadač nepodporuje web worker, zaobstarajte si prehliadač z tohto "
"tisícročia."
"Váš prehliadač nepodporuje web workers, použite aktuálnejšie verziu "
"prehliadača."
msgid "Filtering:"
msgstr "Filtrovanie:"
......
@keyframes spinner {
from {transform:rotate(0deg);}
to {transform: rotate(360deg);}
}
.spinner:after {
content: '';
box-sizing: border-box;
position: fixed;
top: 50%;
left: 50%;
width: 150px;
height: 150px;
margin-top: -75px;
margin-left: -75px;
border-radius: 50%;
border: 5px solid #ccc;
border-top-color: #00a2e2;
animation: spinner .6s linear infinite;
z-index: 100;
}
i {
padding-left: 5px;
padding-right: 5px;
......@@ -27,18 +5,20 @@ i {
#pakon-pager-page li {
display: inline;
margin: 5px;
text-decoration: underline;
}
#pakon-pager-page li.current-page {
text-decoration: none;
font-weight: bold;
}
.extra_row {
#pakon-results .extra_row {
display: none;
font-style: italic;
}
#pakon-results .extra_row td {
padding-left: 20px;
}
#date-from, #date-to, #time-from, #time-to, #apply-changes {
float: right;
margin-left: 10px;
......@@ -82,13 +62,13 @@ label {
font-weight: bold;
}
tr.odd, tr.even, tr.extra_row.even, tr.extra_row.odd {
border-style: none none solid none;
border-width: 1px;
border-color: rgba(255,255,255,0);
tr.odd, tr.even {
border-bottom-style: solid;
border-bottom-width: 1px;
border-bottom-color: rgba(255,255,255,0);
}
tr.odd:hover, tr.even:hover, tr.extra_row.even:hover, tr.extra_row.odd:hover {
tr.odd:hover, tr.even:hover {
border-color: rgba(0,162,226,1);
}
......@@ -98,12 +78,6 @@ tr.odd {
tr.even {
background: #FFF;
}
tr.extra_row.even {
background: #DDD;
}
tr.extra_row.odd {
background: #EEE;
}
td:nth-child(7), td:nth-child(8), th:nth-child(7), th:nth-child(8) {
text-align: right;
......@@ -123,3 +97,23 @@ td:nth-child(7), td:nth-child(8), th:nth-child(7), th:nth-child(8) {
display: inline-block;
width: 10em;
}
tr.extra_row {
border-right-width: 1px;
border-right-style: dotted;
border-right-color: black;
border-left-width: 1px;
border-left-style: dotted;
border-left-color: black;
}
tr.extra_last, tr.extra_first {
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: black;
}
table {
border-collapse: collapse;
border-spacing: 1px;
}
......@@ -58,7 +58,11 @@ function render_entry(data) {
table += '<td data-sort-value="' + data[y] + '" title="' + data[y] + '">' + shorten(data[y]) +
'<a href="#" onClick="add_hostname_filter(\'' + data[y] + '\')"><i class="fas fa-search"/></a>';
if(data[4] == 'http' || data[4] == 'https') {
table += '<a href="' + data[4] + '://' + data[y] + '" target="_blank_"><i class="fas fa-external-link-alt"/></a>';
let url=data[y];
if(url.match(/:.*:/)) {
url = '[' + url + ']';
}
table += '<a href="' + data[4] + '://' + url + '" target="_blank_"><i class="fas fa-external-link-alt"/></a>';
}
table += '</td>';
break;
......@@ -106,17 +110,30 @@ function render_results() {
if(filtered_data[x][8]) {
let y = 0;
for(y = 0; y < filtered_data[x][8].length; y++) {
table += '<tr class="extra_row extra_' + x + ' ' + (y % 2 ? 'odd' : 'even') + '"><td></td>' + render_entry(filtered_data[x][8][y]) + '</tr>\n';
let extra_class = ' ';
if(y == filtered_data[x][8].length - 1)
extra_class = ' extra_last ';
table += '<tr class="extra_row extra_' + x + extra_class + (y % 2 ? 'odd' : 'even') + '"><td></td>' + render_entry(filtered_data[x][8][y]) + '</tr>\n';
}
}
}
var pager = '<ul>'
if(page_size > 0) {
for(x = 0; x < filtered_data.length / page_size; x++) {
if(x == page) {
pager += '<li class="current-page" onClick="goto_page(' + x + ')">' + x + '</li>';
} else {
pager += '<li onClick="goto_page(' + x + ')"><a href="#">' + x + '</a></li>';
let pages = filtered_data.length / page_size;
if(pages * page_size < filtered_data.length)
pages++;
let dots = false;
for(x = 0; x < pages; x++) {
if(x < 4 || x > pages - 4 || Math.abs(x-page) < 3){
if(x == page) {
pager += '<li class="current-page" onClick="goto_page(' + x + ')">' + x + '</li>';
} else {
pager += '<li onClick="goto_page(' + x + ')"><a href="#">' + x + '</a></li>';
}
dots = false;
} else if(!dots) {
pager += '<li>...</li>';
dots = true;
}
}
}
......@@ -188,7 +205,7 @@ function aggregate_data() {
let i;
let proto = ""
aggregated_data = [];
for(i = 1; i < tmp.length; i++) {
for(i = 0; i < tmp.length; i++) {
cur_entry = tmp[i];
if(cur_entry[2] == last_entry[2] && cur_entry[3] == last_entry[3]) {
if(proto != cur_entry[4])
......@@ -216,6 +233,12 @@ function aggregate_data() {
}
last_entry = cur_entry;
}
if(a_entries.length < 2) {
if(a_entries.length == 1)
aggregated_data.push(a_entries[0]);
} else {
aggregated_data.push([print_date(st_date), (nd_date.getTime() - st_date.getTime()) / 1000, last_entry[2], last_entry[3], proto, '', send, recv, a_entries]);
}
console.log('Aggregated ' + tmp.length + ' -> ' + aggregated_data.length);
sort_data();
}
......
......@@ -16,9 +16,11 @@ function toogle_lines(line) {
if($('#line_' + line + ' td.line-toogle i').attr('class') == 'fas fa-plus') {
$('.extra_' + line).show();
$('#line_' + line + ' td.line-toogle i').removeClass('fa-plus').addClass('fa-minus');
$('#line_' + line).addClass('extra_first');
} else {
$('.extra_' + line).hide();
$('#line_' + line + ' td.line-toogle i').addClass('fa-plus').removeClass('fa-minus');
$('#line_' + line).removeClass('extra_first');
}
}
......@@ -101,7 +103,8 @@ function apply() {
}
function dnd() {
$("#spinner").addClass('spinner');
Foris.SpinnerDisplay('{% trans %}Loading data...{% endtrans %}');
$("#tagcloud").hide();
$("#tagcloud").css("height", '0px');
$("#apply-changes").prop("disabled", true);
$("#pakon-table-data").html('');
......@@ -109,7 +112,8 @@ function dnd() {
function available() {
$("#apply-changes").prop("disabled", false);
$("#spinner").removeClass('spinner');
Foris.SpinnerRemove();
$("#tagcloud").fadeIn('slow');
}
function zp(data) {
......@@ -183,7 +187,9 @@ $(document).ready(function () {
add_hostname_filter($(this).text());
}
});
$("#tagcloud").fadeIn('slow');
} else {
$("#tagcloud").hide();
$("#tagcloud").css("height", '0px');
}
if(e.data.sort_by) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment