> Version 0.6 brings DashMachine one big step forward to being a finished product by adding a gui to edit the various settings in the config.ini. **Changelog** - improvements to /home including 'pinned' cards, multi-select tag filtering, 'action providers' allowing you to do web searches from the searchbar - rebuilt sidenav with list view, mirroring filter/search/collapse state of the homepage - /settings and /home now on same route - dynamic reloading of settings (no more page reloads) - dedicated config.ini editor slide-out - settings editor slide-out - card editor slide-out - better access group control - dedicated documentation pages - improved documentation - new system for automatically generating documentation for platforms - ability to load custom platforms - added an 'on_starup' method for platforms allowing for registering api routes. (example coming soon)
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
function get_data_source(el){
|
|
el.html("");
|
|
el.closest('.col').find('.data-source-loading').removeClass('hide');
|
|
$.ajax({
|
|
async: true,
|
|
url: el.attr('data-url'),
|
|
type: 'GET',
|
|
data: {id: el.attr('data-id')},
|
|
success: function(data){
|
|
el.closest('.col').find('.data-source-loading').addClass('hide');
|
|
el.html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function init_home_cards(){
|
|
$(".data-source-container").each(function(e) {
|
|
get_data_source($(this));
|
|
});
|
|
|
|
$(".refresh-data-source-btn").on('click', function(e) {
|
|
e.preventDefault();
|
|
$(this).closest('.app-card').find(".data-source-container").each(function(e) {
|
|
get_data_source($(this));
|
|
});
|
|
});
|
|
|
|
$(".tag-group-btn").off('click');
|
|
$(".tag-group-btn").on('click', function(e) {
|
|
var tag_name = $(this).closest('.tag-group').attr("data-tag");
|
|
$(".toggle-tag-expand-btn").each(function(e) {
|
|
if ($(this).closest('.tag-group').attr("data-tag") == tag_name){
|
|
toggle_tag_expand($(this));
|
|
}
|
|
});
|
|
});
|
|
}
|
|
|
|
|
|
$( document ).ready(function() {
|
|
$(".tooltipped").tooltip();
|
|
|
|
init_home_cards();
|
|
|
|
}); |