Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
drlight17 authored Jul 22, 2023
1 parent af80bad commit 5eb9ac1
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
16 changes: 15 additions & 1 deletion mlp/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,18 @@ summary {
}
.api_error_container {
width: 100%;
overflow: auto;
}
.logo, .logout {
display: inline-flex;
flex-direction: row;
align-items: center;
margin-bottom: 1em;
justify-content: center;
justify-content: flex-start;
}
#login > div.logo.login {
width: 100%;
justify-content: center;
}
#login {
margin-top: 20vh;
Expand Down Expand Up @@ -337,6 +339,18 @@ summary {
}
}

@media only screen and (max-width: 500px) {
.title {
max-width: 40%;
}
}

@media only screen and (max-width: 375px) {
.title {
display: none;
}
}

.ui.grid+.grid {
margin-top: 1rem;
margin-bottom: 1rem;
Expand Down
4 changes: 2 additions & 2 deletions mlp/static/js/local_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<input v-model="settings.page_limit" type="range" step="5" min="5" max="300" class="ui input range">
</div>
<div style="display:none" id="default_period_div">
<div v-if="!$parent.loading" :title="$parent.localeData.tips.twelve" class="ui field"><i class="clock icon"/><label style="display:inline" v-if="!$parent.loading" v-html="$parent.localeData.user_settings.show_last_min"></label> {{ settings.default_period_processed }} </div>
<div v-if="!$parent.loading" :title="$parent.localeData.user_settings.show_last_min_title" class="ui field"><i class="clock icon"/><label style="display:inline" v-if="!$parent.loading" v-html="$parent.localeData.user_settings.show_last_min"></label> {{ settings.default_period_processed }} </div>
<div class="ui input">
<input v-if="!$parent.loading" v-model="settings.default_period" type="range" step="5" min="5" max="4320" :title="$parent.localeData.tips.twelve" class="ui input range">
<input v-if="!$parent.loading" v-model="settings.default_period" type="range" step="5" min="5" max="4320" :title="$parent.localeData.user_settings.show_last_min_title" class="ui input range">
</div>
</div>
<div v-if="settings.refresh !== 0" class="ui field"><i class="sync icon"/><label style="display:inline" v-if="!$parent.loading" v-html="$parent.localeData.user_settings.refresh"></label> {{ settings.refresh }} <label style="display:inline" v-if="!$parent.loading" v-html="$parent.localeData.user_settings.refresh_end"></label></div>
Expand Down
13 changes: 12 additions & 1 deletion mlp/static/js/main_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,12 +1079,23 @@ const app = Vue.createApp({
//$('select.dropdown').addClass("menu");
//$('select.dropdown ').addClass("dropdown ui");

// detect dark mode
// detect dark mode
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches && (localStorage.getItem('dark') === null)) {
this.settings.dark = true;
localStorage.setItem('dark','true');
}

// fix of footer position
this.waitForElm('#footer').then((elm) => {
//$(elm).addClass('inverted');
if ($("div.logo.login").length > 0) {
$(elm).css({'position':'absolute', 'bottom': 0, 'width': '99%'});
}
});




this.setDark();

// set refresh interval
Expand Down
1 change: 1 addition & 0 deletions mlp/static/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"page_limit": "Maximum results per page:",
"show_last_min": "Show logs for",
"show_last_min_end": "min",
"show_last_min_title":"If \"Save filters\" is off then you can only change end date field, start date is dynamically filled based on the \"Show logs for\" slider value!",
"seconds": "second(s)",
"minutes": "minute(s)",
"hours": "hour(s)",
Expand Down
1 change: 1 addition & 0 deletions mlp/static/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"page_limit": "Строк на страницу:",
"show_last_min": "Показывать логи за ",
"show_last_min_end": "мин.",
"show_last_min_title": "Если переключатель \"Сохранять фильтры\" выключен, то возможно поменять только значение поля \"Конечная дата\", а значение поля \"Начальная дата\" будет заполняться автоматически на основе значения слайдера \"Показывать логи за\"!",
"seconds": "сек.",
"minutes": "мин.",
"hours": "час.",
Expand Down

0 comments on commit 5eb9ac1

Please sign in to comment.