Commit 999ff816 by 徐超

Merge branch 'revert-8c0a4326' into 'master'

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

See merge request !2
parents 8c0a4326 58cdf22f
...@@ -6,7 +6,3 @@ ...@@ -6,7 +6,3 @@
/pkg/ /pkg/
/spec/reports/ /spec/reports/
/tmp/ /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 () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
...@@ -22,8 +15,7 @@ var App = (function () { ...@@ -22,8 +15,7 @@ var App = (function () {
//Select2 //Select2
$(".select2").select2({ $(".select2").select2({
width: '100%', width: '100%'
placeholder: 'Select a state'
}); });
//Select2 tags //Select2 tags
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; '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 () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
App.tableFilters = function( ){ App.tableFilters = function( ){
//Put your code here
//Select2 init //Bootstrap Slider
$('.select2').select2({ $('.bslider').bootstrapSlider({
width: '100%' tooltip: 'hide'
}); });
//Select2 tags init $("#milestone_slider").slider().on("slide",function(e){
$('.tags').select2({tags: true, width: '100%'}); var v1 = e.value[0];
var v2 = e.value[1];
//Bootstrap Slider init $("#slider-value").html( v1 + "%" + " - " + v2 + "%");
$('.bslider').bootstrapSlider();
//Date Picker init });
//Select2
$(".select2").select2({
width: '100%'
});
//Select2 tags
$(".tags").select2({tags: true, width: '100%'});
//Js Code
$(".datetimepicker").datetimepicker({ $(".datetimepicker").datetimepicker({
autoclose: true, autoclose: true,
componentIcon: '.mdi.mdi-calendar', componentIcon: '.mdi.mdi-calendar',
format: 'mm/dd/yyyy',
navIcons:{ navIcons:{
rightIcon: 'mdi mdi-chevron-right', rightIcon: 'mdi mdi-chevron-right',
leftIcon: 'mdi mdi-chevron-left' leftIcon: 'mdi mdi-chevron-left'
} }
}); });
//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 + '%');
table.draw();
});
//Select2 event
$('.select2').on('change', function() {
table.draw();
});
//Date since-to
$('#dateSince, #dateTo').on('change', function(){
table.draw();
});
//Status
$('#toDo, #inProgress, #inReview, #done').on('click', function(){
table.draw();
});
}; };
return App; return App;
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
App.dataTables = function( ){ App.dataTables = function( ){
//We use this to apply style to certain elements //We use this to apply style to certain elements
$.fn.DataTable.ext.pager.numbers_length = 4;
$.extend( true, $.fn.dataTable.defaults, { $.extend( true, $.fn.dataTable.defaults, {
dom: dom:
"<'row be-datatable-header'<'col-sm-6'l><'col-sm-6'f>>" + "<'row be-datatable-header'<'col-sm-6'l><'col-sm-6'f>>" +
...@@ -31,7 +23,7 @@ var App = (function () { ...@@ -31,7 +23,7 @@ var App = (function () {
//Enable toolbar button functions //Enable toolbar button functions
$("#table3").dataTable({ $("#table3").dataTable({
buttons: [ buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' 'copy', 'excel', 'pdf', 'print'
], ],
"lengthMenu": [[6, 10, 25, 50, -1], [6, 10, 25, 50, "All"]], "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>>" + dom: "<'row be-datatable-header'<'col-sm-6'l><'col-sm-6 text-right'B>>" +
...@@ -39,34 +31,6 @@ var App = (function () { ...@@ -39,34 +31,6 @@ var App = (function () {
"<'row be-datatable-footer'<'col-sm-5'i><'col-sm-7'p>>" "<'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; return App;
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; 'use strict';
......
/*!
* Beagle v1.5.2
* https://foxythemes.net
*
* Copyright (c) 2018 Foxy Themes
*/
var App = (function () { var App = (function () {
'use strict'; '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 module BootstrapBeagle
VERSION = '0.1.9' VERSION = '0.1.8'
end 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.
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