Commit 8c0a4326 by 徐超

Merge branch 'feature/update-beagle' into 'master'

Feature/update beagle

See merge request !1
parents 531b60ce cefe8fd6
......@@ -6,3 +6,7 @@
/pkg/
/spec/reports/
/tmp/
# Ignore all swap files
*.DS_Store
# Ignore Rubymine config
.idea/
\ No newline at end of file
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
App.ajaxLoader = function( ){
var mprogress = new Mprogress();
mprogress.start();
setTimeout(function(){mprogress.end()}, 3000);
$('.toggle-loader').click(function(){
mprogress.start();
setTimeout(function(){mprogress.inc()}, 1000);
setTimeout(function(){mprogress.end()}, 3000);
});
};
return App;
})(App || {});
\ No newline at end of file
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......@@ -15,7 +22,8 @@ var App = (function () {
//Select2
$(".select2").select2({
width: '100%'
width: '100%',
placeholder: 'Select a state'
});
//Select2 tags
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
App.megaMenu = function( ){
var config = {
megaMenuSectionClass: 'be-mega-menu-section',
navTabsClass: 'be-nav-tabs',
subNavClass: 'be-sub-nav'
};
var megaMenu, navTabs;
//Main tabs active state sync
function tabSync() {
var tabs = $( '.navbar-nav > .nav-item', navTabs );
var openTabs = tabs.filter( '.open' );
if( !openTabs.length ) {
tabs.filter( ':first-child' ).addClass( 'open' );
}
}
//Wait for final event on window resize
var waitForFinalEvent = (function () {
var timers = {};
return function (callback, ms, uniqueId) {
if (!uniqueId) {
uniqueId = "x1x2x3x4";
}
if (timers[uniqueId]) {
clearTimeout (timers[uniqueId]);
}
timers[uniqueId] = setTimeout(callback, ms);
};
})();
//Sub navigation interaction
function subNav(){
$('.be-sub-header .nav-link, .be-sub-header .dropdown-item', navTabs).on('click',function( e ){
var _this = $( this );
var parent = _this.parent();
var openElements = parent.siblings( '.open' );
var subNav = _this.next( '.' + config.subNavClass );
var slideSpeed = config.leftSidebarSlideSpeed;
function closeSubMenu( subMenu ){
var _parent = $( subMenu ).parent();
var openChildren = $( '.nav-item.open, .' + config.megaMenuSectionClass + '.open', _parent );
subMenu.slideUp({ duration: slideSpeed, complete: function(){
_parent.removeClass( 'open' );
openChildren.removeClass( 'open' );
$( this ).removeAttr( 'style' );
}});
}
function openSubMenu( subMenu ){
var _parent = subMenu.parent();
var openSubMenus = false;
// Get the open sub menus
openSubMenus = _parent.siblings( '.open' );
if( _parent.hasClass( config.megaMenuSectionClass ) ) {
var megaColumn = _parent.parent();
openSubMenus = openSubMenus.add( megaColumn.siblings().find( '.' + config.megaMenuSectionClass + '.open' ) );
}
// If there are open sub menus close them
if( openSubMenus ) {
closeSubMenu( $( '> .' + config.subNavClass, openSubMenus ) );
}
subMenu.slideDown({ duration: slideSpeed, complete: function(){
_parent.addClass( 'open' );
$( this ).removeAttr( 'style' );
}});
}
// Check if the event is fired from mobile
if( $.isSm() ) {
if( subNav.length ) {
if( parent.hasClass( 'open' ) ) {
closeSubMenu( subNav );
} else {
openSubMenu( subNav );
}
e.preventDefault();
}
// Stop default bootstrap dropdown interaction
e.stopPropagation();
} else if ( parent.parent().hasClass('navbar-nav') ) {
if ( subNav.length ) {
openElements.removeClass( 'open' );
parent.addClass( 'open' );
e.preventDefault();
}
}
});
// Sync tabs when resize between mobile and desktop resolutions
$(window).resize(function() {
waitForFinalEvent(function() {
if( !$.isSm() ) {
tabSync();
}
}, 100, "sync_tabs");
});
}
/*Navigation tabs*/
subNav();
};
return App;
})(App || {});
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
'use strict';
App.tableFilters = function( ){
//Select2 init
$('.select2').select2({
width: '100%'
});
//Select2 tags init
$('.tags').select2({tags: true, width: '100%'});
App.tableFilters = function( ){
//Put your code here
//Bootstrap Slider init
$('.bslider').bootstrapSlider();
//Bootstrap Slider
$('.bslider').bootstrapSlider({
tooltip: 'hide'
//Date Picker init
$(".datetimepicker").datetimepicker({
autoclose: true,
componentIcon: '.mdi.mdi-calendar',
format: 'mm/dd/yyyy',
navIcons:{
rightIcon: 'mdi mdi-chevron-right',
leftIcon: 'mdi mdi-chevron-left'
}
});
$("#milestone_slider").slider().on("slide",function(e){
//Filters
$.fn.dataTable.ext.search.push(
function( settings, searchData, index, rowData, counter ) {
//Milestone slider
var filter_progress = $('#milestone_slider').val().split(',');
var progress = $(settings.aoData[index].anCells[3]).data('progress').split(',');
//Select2
var filter_project = $('.select2').val();
var project = $(settings.aoData[index].anCells[2]).data('project');
//Date
var filter_date_since = $('#dateSince').val() !== '' ? new Date($('#dateSince').val()) : new Date('01/01/1999');
var filter_date_to = $('#dateTo').val() !== '' ? new Date($('#dateTo').val()) : new Date('01/01/2099');
var date = new Date($('.date', settings.aoData[index].anCells[5]).html());
//Status
var filter_to_do = $('#toDo').is(':checked');
var filter_in_progress = $('#inProgress').is(':checked');
var filter_in_review = $('#inReview').is(':checked');
var filter_done = $('#done').is(':checked');
var status = $(settings.aoData[index].nTr).attr('class').split(" ");
//Conditional filters
if( !(parseInt(progress[1]) >= parseInt(filter_progress[0]) && parseInt(progress[1]) <= parseInt(filter_progress[1])) ){ return false; }
if( !(filter_project == project || filter_project == 'All') ){ return false; }
if( !(date >= filter_date_since && date <= filter_date_to) ){ return false; }
if( !(filter_to_do == false && filter_in_progress == false && filter_in_review == false && filter_done == false || filter_to_do == true && status[1] == 'to-do' || filter_in_progress == true && status[1] == 'in-progress' || filter_in_review == true && status[1] == 'in-review' || filter_done == true && status[1] == 'done') ){ return false; }
return true;
}
);
//Table init
var table = $('#table1').DataTable({
pageLength: 5,
dom: "<'row be-datatable-body'<'col-sm-12'tr>>" +
"<'row be-datatable-footer'<'col-sm-5'i><'col-sm-7'p>>"
});
//Slider event
$('#milestone_slider').slider().on('slide',function(e){
var v1 = e.value[0];
var v2 = e.value[1];
$("#slider-value").html( v1 + "%" + " - " + v2 + "%");
$('#slider-value').html( v1 + '%' + ' - ' + v2 + '%');
table.draw();
});
//Select2 event
$('.select2').on('change', function() {
table.draw();
});
//Select2
$(".select2").select2({
width: '100%'
//Date since-to
$('#dateSince, #dateTo').on('change', function(){
table.draw();
});
//Select2 tags
$(".tags").select2({tags: true, width: '100%'});
//Js Code
$(".datetimepicker").datetimepicker({
autoclose: true,
componentIcon: '.mdi.mdi-calendar',
navIcons:{
rightIcon: 'mdi mdi-chevron-right',
leftIcon: 'mdi mdi-chevron-left'
}
//Status
$('#toDo, #inProgress, #inReview, #done').on('click', function(){
table.draw();
});
};
};
return App;
})(App || {});
\ No newline at end of file
return App;
})(App || {});
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
App.dataTables = function( ){
//We use this to apply style to certain elements
$.fn.DataTable.ext.pager.numbers_length = 4;
$.extend( true, $.fn.dataTable.defaults, {
dom:
"<'row be-datatable-header'<'col-sm-6'l><'col-sm-6'f>>" +
......@@ -23,7 +31,7 @@ var App = (function () {
//Enable toolbar button functions
$("#table3").dataTable({
buttons: [
'copy', 'excel', 'pdf', 'print'
'copy', 'csv', 'excel', 'pdf', 'print'
],
"lengthMenu": [[6, 10, 25, 50, -1], [6, 10, 25, 50, "All"]],
dom: "<'row be-datatable-header'<'col-sm-6'l><'col-sm-6 text-right'B>>" +
......@@ -31,6 +39,34 @@ var App = (function () {
"<'row be-datatable-footer'<'col-sm-5'i><'col-sm-7'p>>"
});
$("#table4").dataTable({
responsive: true
});
$("#table5").dataTable({
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.childRowImmediate,
type: ''
}
}
});
$("#table6").dataTable({
responsive: {
details: {
display: $.fn.dataTable.Responsive.display.modal ({
header: function (row) {
var data = row.data();
return 'Details';
}
}),
renderer: $.fn.dataTable.Responsive.renderer.tableAll ({
tableClass: 'table'
})
}
}
});
};
return App;
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () {
'use strict';
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
module BootstrapBeagle
VERSION = '0.1.8'
VERSION = '0.1.9'
end
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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