Skip to content

Commit

Permalink
Merge pull request #54 from avored/dev
Browse files Browse the repository at this point in the history
merging dev to master
  • Loading branch information
indpurvesh authored Nov 2, 2018
2 parents 5094a42 + 7d42d44 commit 7050f19
Show file tree
Hide file tree
Showing 168 changed files with 1,350 additions and 6,249 deletions.
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"laravel/framework" : "5.7.*",
"barryvdh/laravel-dompdf": "0.8.*",
"laravel/passport": "7.0.*",
"stripe/stripe-php": "^6.3",
"beyondcode/laravel-self-diagnosis": "^1.0"

"stripe/stripe-php": "^6.3"
},
"require-dev" : {
"phpunit/phpunit" : "~7.0",
Expand Down Expand Up @@ -58,7 +56,7 @@
"Cart" : "AvoRed\\Framework\\Cart\\Facade",
"DataGrid" : "AvoRed\\Framework\\DataGrid\\Facade",
"Image" : "AvoRed\\Framework\\Image\\Facade",
"Menu" : "AvoRed\\Framework\\Menu\\Facade",
"Menu" : "AvoRed\\Framework\\Menu\\Facades\\Menu",
"Payment" : "AvoRed\\Framework\\Payment\\Facade",
"Permission" : "AvoRed\\Framework\\Permission\\Facade",
"Shipping" : "AvoRed\\Framework\\Shipping\\Facade",
Expand All @@ -76,4 +74,4 @@
"wiki" : "https://www.avored.com/docs",
"source" : "https://www.github.com/avored/framework"
}
}
}
117 changes: 64 additions & 53 deletions database/migrations/2017_03_29_000000_avored_framework_schema.php

Large diffs are not rendered by default.

Binary file removed resources/assets/fonts/fa-brands-400.eot
Binary file not shown.
1,007 changes: 0 additions & 1,007 deletions resources/assets/fonts/fa-brands-400.svg

This file was deleted.

Binary file removed resources/assets/fonts/fa-brands-400.ttf
Binary file not shown.
Binary file removed resources/assets/fonts/fa-brands-400.woff
Binary file not shown.
Binary file removed resources/assets/fonts/fa-brands-400.woff2
Binary file not shown.
Binary file removed resources/assets/fonts/fa-regular-400.eot
Binary file not shown.
362 changes: 0 additions & 362 deletions resources/assets/fonts/fa-regular-400.svg

This file was deleted.

Binary file removed resources/assets/fonts/fa-regular-400.ttf
Binary file not shown.
Binary file removed resources/assets/fonts/fa-regular-400.woff
Binary file not shown.
Binary file removed resources/assets/fonts/fa-regular-400.woff2
Binary file not shown.
Binary file removed resources/assets/fonts/fa-solid-900.eot
Binary file not shown.
1,640 changes: 0 additions & 1,640 deletions resources/assets/fonts/fa-solid-900.svg

This file was deleted.

Binary file removed resources/assets/fonts/fa-solid-900.ttf
Binary file not shown.
Binary file removed resources/assets/fonts/fa-solid-900.woff
Binary file not shown.
Binary file removed resources/assets/fonts/fa-solid-900.woff2
Binary file not shown.
Binary file removed resources/assets/fonts/summernote.eot
Binary file not shown.
Binary file removed resources/assets/fonts/summernote.ttf
Binary file not shown.
Binary file removed resources/assets/fonts/summernote.woff
Binary file not shown.
3 changes: 1 addition & 2 deletions resources/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ try {
} catch (e) {}

require('select2');
require('summernote');
require('pc-bootstrap4-datetimepicker');
require('chartjs');
require('sweetalert');
require('jquery-sortable');

window.SimpleMDE = require('simplemde');
window.Vue = require('vue');
window.axios = require('axios');

Expand Down
1 change: 1 addition & 0 deletions resources/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ import './skycons';
import './datatable';
import './utils';
import './select2';
import './menu'
14 changes: 7 additions & 7 deletions resources/assets/js/masonry/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as $ from 'jquery';
import $ from 'jquery';
import Masonry from 'masonry-layout';

export default (function () {
window.addEventListener('load', () => {
if ($('.masonry').length > 0) {
new Masonry('.masonry', {
itemSelector: '.masonry-item',
columnWidth: '.masonry-sizer',
percentPosition: true,
});
}
return new Masonry('.masonry', {
itemSelector: '.masonry-item',
columnWidth: '.masonry-sizer',
percentPosition: true,
});
}
});
}());
84 changes: 84 additions & 0 deletions resources/assets/js/menu/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@


import jQuery from 'jquery';

export default (function () {
class Menu {

constructor() {
jQuery('.left-menu li').on('dragstart', this.navDragStart);

jQuery('.dropable-menu-tree li').on('drop', this.navDropEvent);
jQuery('.dropable-menu-tree li').on('dragover', this.navDragOver);
}


navDragStart(e) {
e.preventDefault();
window.x = e;
e.originalEvent.dataTransfer.setData("draggable_nav_id", e.target.id);
console.log(e.target.id);
}

navDragOver(e) {
alert('jhere');
e.preventDefault();
}

navDropEvent(e) {
alert('drop event');
let navId = e.originalEvent.dataTransfer.getData("draggable_nav_id");
console.log(navId);
}


}

let menu = new Menu();



jQuery('#menu-nav-list li:first-child a').tab('show')

/* var frontMenu = jQuery("ul.front-menu").sortable({
nested: true,
group: "front-menu",
onDragStart: function ($item, container, _super) {
if (!container.options.drop) {
$item.clone().insertAfter($item);
}
_super($item, container);
},
onDrop: function ($item, container, _super) {
var data = frontMenu.sortable("serialize").get();
var jsonString = JSON.stringify(data, null, ' ');
jQuery('#menu-list').val(jsonString);
_super($item, container);
}
});
jQuery('.left-menu').sortable({
group: "front-menu",
itemSelector: 'li',
drag: true,
drop: false
});
jQuery(document).on('click', '.destroy-menu', function (e) {
e.preventDefault();
jQuery(e.target).parents('li:first').remove();
var data = frontMenu.sortable("serialize").get();
var jsonString = JSON.stringify(data, null, ' ');
jQuery('#menu-list').val(jsonString);
_super($item, container);
});
//let data = frontMenu.sortable("serialize").get();
//let current_menu = JSON.stringify(data, null, ' ');
//jQuery('#menu-list').val(current_menu);
*/
}())
2 changes: 1 addition & 1 deletion resources/assets/js/scrollbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default (function () {
const scrollables = $('.scrollable');
if (scrollables.length > 0) {
scrollables.each((index, el) => {
new PerfectScrollbar(el);
return new PerfectScrollbar(el);
});
}
}());
14 changes: 13 additions & 1 deletion resources/assets/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import "~bootstrap/scss/bootstrap";
@import 'spec/index';
@import 'vendor/index';
@import '~simplemde/dist/simplemde.min.css';

.card-header {
color: $white;
Expand All @@ -21,7 +22,18 @@ img {
#dataTable tr th:last-of-type {
min-width: 95px;
}

.display-menu-tree {
border: 3px dotted;
border-color: $primary;
padding: 10px;
margin-bottom: 10px;
}
.left-menu {
li {
cursor: move;
border: 3px dotted;
}
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown {
Expand Down
Loading

0 comments on commit 7050f19

Please sign in to comment.