> 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)
77 lines
2.4 KiB
JavaScript
77 lines
2.4 KiB
JavaScript
|
|
$( document ).ready(function() {
|
|
$(".tabs").tabs();
|
|
|
|
init_ini_form($("#settings-editor-settings-form-container"));
|
|
|
|
init_select();
|
|
|
|
initTCdrop('#images-tcdrop');
|
|
|
|
$(".settings-editor-ag-row").on('click', function(e) {
|
|
var table = $("#settings-editor-ag-table")
|
|
var form = $("#settings-editor-ag-form-container")
|
|
$.ajax({
|
|
url: $(this).attr('data-url'),
|
|
type: 'GET',
|
|
data: {ag_id: $(this).attr('data-id')},
|
|
success: function(data){
|
|
after_ini_form_ajax_load(form, table, data);
|
|
}
|
|
});
|
|
});
|
|
|
|
$(".settings-editor-user-row").on('click', function(e) {
|
|
var table = $("#settings-editor-user-table")
|
|
var form = $("#settings-editor-user-form-container")
|
|
$.ajax({
|
|
url: $(this).attr('data-url'),
|
|
type: 'GET',
|
|
data: {user_id: $(this).attr('data-id')},
|
|
success: function(data){
|
|
after_ini_form_ajax_load(form, table, data);
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#save-images-btn").on('click', function(e) {
|
|
$("#add-images-input").val(tcdrop_files['images-tcdrop'].toString());
|
|
$.ajax({
|
|
url: $(this).attr('data-url'),
|
|
type: 'POST',
|
|
data: $("#add-images-form").serialize(),
|
|
success: function(data){
|
|
$("#add-images-form").trigger('reset');
|
|
$("#files-div").empty();
|
|
$("#files-div").append(data);
|
|
tcdropResetAll();
|
|
}
|
|
});
|
|
});
|
|
|
|
$(".settings-editor-add-ag-btn").on('click', function(e) {
|
|
var table = $("#settings-editor-ag-table")
|
|
var form = $("#settings-editor-ag-form-container")
|
|
$.ajax({
|
|
url: $(this).attr('data-url'),
|
|
type: 'GET',
|
|
data: {new: "True"},
|
|
success: function(data){
|
|
after_ini_form_ajax_load(form, table, data);
|
|
}
|
|
});
|
|
});
|
|
|
|
$(".settings-editor-add-user-btn").on('click', function(e) {
|
|
var table = $("#settings-editor-user-table")
|
|
var form = $("#settings-editor-user-form-container")
|
|
$.ajax({
|
|
url: $(this).attr('data-url'),
|
|
type: 'GET',
|
|
data: {new: "True"},
|
|
success: function(data){
|
|
after_ini_form_ajax_load(form, table, data);
|
|
}
|
|
});
|
|
});
|
|
}); |