-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from avored/dev
merging dev to master
- Loading branch information
Showing
168 changed files
with
1,350 additions
and
6,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 64 additions & 53 deletions
117
database/migrations/2017_03_29_000000_avored_framework_schema.php
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ import './skycons'; | |
import './datatable'; | ||
import './utils'; | ||
import './select2'; | ||
import './menu' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}); | ||
} | ||
}); | ||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
*/ | ||
}()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.