fix conflicts.
This commit is contained in:
commit
d1bb02ab64
|
@ -138,7 +138,7 @@ public function primary(Table $table, Fluent $command)
|
||||||
{
|
{
|
||||||
$name = $command->name;
|
$name = $command->name;
|
||||||
|
|
||||||
$columns = $this->columnize($columns);
|
$columns = $this->columnize($command->$columns);
|
||||||
|
|
||||||
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
|
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,18 @@ ## Upgrading From 3.1
|
||||||
|
|
||||||
- Add new `asset_url` and `profiler` options to application configuration.
|
- Add new `asset_url` and `profiler` options to application configuration.
|
||||||
- Replace **auth** configuration file.
|
- Replace **auth** configuration file.
|
||||||
|
|
||||||
|
Add the following entry to the `aliases` array in `config/application.php`..
|
||||||
|
|
||||||
|
'Profiler' => 'Laravel\\Profiling\\Profiler',
|
||||||
|
|
||||||
|
Add the following code above `Blade::sharpen()` in `application/start.php`..
|
||||||
|
|
||||||
|
if (Config::get('application.profiler'))
|
||||||
|
{
|
||||||
|
Profiler::attach();
|
||||||
|
}
|
||||||
|
|
||||||
- Upgrade the **paths.php** file.
|
- Upgrade the **paths.php** file.
|
||||||
- Replace the **laravel** folder.
|
- Replace the **laravel** folder.
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ ## The Basics
|
||||||
|
|
||||||
Controllers are classes that are responsible for accepting user input and managing interactions between models, libraries, and views. Typically, they will ask a model for data, and then return a view that presents that data to the user.
|
Controllers are classes that are responsible for accepting user input and managing interactions between models, libraries, and views. Typically, they will ask a model for data, and then return a view that presents that data to the user.
|
||||||
|
|
||||||
The usage of controllers is the most common method of implementingapplication logic in modern web-development. However, Laravel also empowers developers to implement their application logic within routing declarations. This is explored in detail in the [routing document](/docs/routing). New users are encourage to start with controllers. There is nothing that route-based application logic can do that controllers can't.
|
The usage of controllers is the most common method of implementing application logic in modern web-development. However, Laravel also empowers developers to implement their application logic within routing declarations. This is explored in detail in the [routing document](/docs/routing). New users are encourage to start with controllers. There is nothing that route-based application logic can do that controllers can't.
|
||||||
|
|
||||||
Controller classes should be stored in **application/controllers** and should extend the Base\_Controller class. A Home\_Controller class is included with Laravel.
|
Controller classes should be stored in **application/controllers** and should extend the Base\_Controller class. A Home\_Controller class is included with Laravel.
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ .anbu-tabs
|
||||||
background-position:5px -8px;
|
background-position:5px -8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.anbu.hidden .anbu-tabs
|
.anbu-hidden .anbu-tabs
|
||||||
{
|
{
|
||||||
background-image:none;
|
background-image:none;
|
||||||
}
|
}
|
||||||
|
@ -214,3 +214,9 @@ .anbu pre
|
||||||
white-space: -o-pre-wrap;
|
white-space: -o-pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* hide panel-open elements, will become visible through anbu.start() */
|
||||||
|
|
||||||
|
#anbu-close, #anbu-zoom, .anbu-tab-pane {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
|
@ -5,78 +5,104 @@ var anbu = {
|
||||||
// Binding these elements early, stops jQuery from "querying"
|
// Binding these elements early, stops jQuery from "querying"
|
||||||
// the DOM every time they are used.
|
// the DOM every time they are used.
|
||||||
|
|
||||||
el : {
|
el: {
|
||||||
main : $('.anbu'),
|
main: $('.anbu'),
|
||||||
close : $('#anbu-close'),
|
close: $('#anbu-close'),
|
||||||
zoom : $('#anbu-zoom'),
|
zoom: $('#anbu-zoom'),
|
||||||
hide : $('#anbu-hide'),
|
hide: $('#anbu-hide'),
|
||||||
show : $('#anbu-show'),
|
show: $('#anbu-show'),
|
||||||
tab_pane : $('.anbu-tab-pane'),
|
tab_pane: $('.anbu-tab-pane'),
|
||||||
hidden_tab_pane : $('.anbu-tab-pane:visible'),
|
hidden_tab_pane: $('.anbu-tab-pane:visible'),
|
||||||
tab : $('.anbu-tab'),
|
tab: $('.anbu-tab'),
|
||||||
tabs : $('.anbu-tabs'),
|
tabs: $('.anbu-tabs'),
|
||||||
tab_links : $('.anbu-tabs a'),
|
tab_links: $('.anbu-tabs a'),
|
||||||
window : $('.anbu-window'),
|
window: $('.anbu-window'),
|
||||||
closed_tabs : $('#anbu-closed-tabs'),
|
closed_tabs: $('#anbu-closed-tabs'),
|
||||||
open_tabs : $('#anbu-open-tabs'),
|
open_tabs: $('#anbu-open-tabs'),
|
||||||
content_area : $('.anbu-content-area')
|
content_area: $('.anbu-content-area')
|
||||||
},
|
},
|
||||||
|
|
||||||
// CLASS ATTRIBUTES
|
// CLASS ATTRIBUTES
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Useful variable for Anbu.
|
// Useful variable for Anbu.
|
||||||
|
|
||||||
isZoomed : false, // is anbu in full screen mode
|
// is anbu in full screen mode
|
||||||
small_height : $('.anbu-content-area').height(), // initial height of content area
|
is_zoomed: false,
|
||||||
active_tab : 'anbu-active-tab', // the name of the active tab css
|
|
||||||
tab_data : 'data-anbu-tab', // the data attribute of the tab link
|
// initial height of content area
|
||||||
mini_button_width : '2.6em', // size of anbu when compact
|
small_height: $('.anbu-content-area').height(),
|
||||||
window_open : false, // is the top window open?
|
|
||||||
active_pane : '', // current active pane
|
// the name of the active tab css
|
||||||
|
active_tab: 'anbu-active-tab',
|
||||||
|
|
||||||
|
// the data attribute of the tab link
|
||||||
|
tab_data: 'data-anbu-tab',
|
||||||
|
|
||||||
|
// size of anbu when compact
|
||||||
|
mini_button_width: '2.6em',
|
||||||
|
|
||||||
|
// is the top window open?
|
||||||
|
window_open: false,
|
||||||
|
|
||||||
|
// current active pane
|
||||||
|
active_pane: '',
|
||||||
|
|
||||||
// START()
|
// START()
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Sets up all the binds for Anbu!
|
// Sets up all the binds for Anbu!
|
||||||
|
|
||||||
start : function ()
|
start: function() {
|
||||||
{
|
|
||||||
// hide initial elements
|
|
||||||
|
|
||||||
anbu.el.close.hide();
|
// hide initial elements
|
||||||
anbu.el.zoom.hide();
|
anbu.el.close.css('visibility', 'visible').hide();
|
||||||
anbu.el.tab_pane.hide();
|
anbu.el.zoom.css('visibility', 'visible').hide();
|
||||||
|
anbu.el.tab_pane.css('visibility', 'visible').hide();
|
||||||
|
|
||||||
// bind all click events
|
// bind all click events
|
||||||
anbu.el.close.click( function () { anbu.close_window(); });
|
anbu.el.close.click(function(event) {
|
||||||
anbu.el.hide.click( function () { anbu.hide(); });
|
anbu.close_window();
|
||||||
anbu.el.show.click( function () { anbu.show(); });
|
event.preventDefault();
|
||||||
anbu.el.zoom.click( function () { anbu.zoom(); });
|
});
|
||||||
anbu.el.tab.click( function () { anbu.clicked_tab($(this)); });
|
anbu.el.hide.click(function(event) {
|
||||||
|
anbu.hide();
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
anbu.el.show.click(function(event) {
|
||||||
|
anbu.show();
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
anbu.el.zoom.click(function(event) {
|
||||||
|
anbu.zoom();
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
anbu.el.tab.click(function(event) {
|
||||||
|
anbu.clicked_tab($(this));
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// CLICKED_TAB()
|
// CLICKED_TAB()
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// A tab has been clicked, decide what to do.
|
// A tab has been clicked, decide what to do.
|
||||||
|
|
||||||
clicked_tab : function (tab)
|
clicked_tab: function(tab) {
|
||||||
{
|
|
||||||
// if the tab is closed
|
// if the tab is closed
|
||||||
if(anbu.window_open && anbu.active_pane == tab.attr(anbu.tab_data))
|
if (anbu.window_open && anbu.active_pane == tab.attr(anbu.tab_data)) {
|
||||||
{
|
|
||||||
anbu.close_window();
|
anbu.close_window();
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
anbu.open_window(tab);
|
anbu.open_window(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// OPEN_WINDOW()
|
// OPEN_WINDOW()
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Animate open the top window to the appropriate tab.
|
// Animate open the top window to the appropriate tab.
|
||||||
|
|
||||||
open_window : function (tab)
|
open_window: function(tab) {
|
||||||
{
|
|
||||||
// can't directly assign this line, but it works
|
// can't directly assign this line, but it works
|
||||||
$('.anbu-tab-pane:visible').fadeOut(200);
|
$('.anbu-tab-pane:visible').fadeOut(200);
|
||||||
$('.' + tab.attr(anbu.tab_data)).delay(220).fadeIn(300);
|
$('.' + tab.attr(anbu.tab_data)).delay(220).fadeIn(300);
|
||||||
|
@ -87,15 +113,15 @@ var anbu = {
|
||||||
anbu.el.zoom.fadeIn(300);
|
anbu.el.zoom.fadeIn(300);
|
||||||
anbu.active_pane = tab.attr(anbu.tab_data);
|
anbu.active_pane = tab.attr(anbu.tab_data);
|
||||||
anbu.window_open = true;
|
anbu.window_open = true;
|
||||||
},
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
// CLOSE_WINDOW()
|
// CLOSE_WINDOW()
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Animate closed the top window hiding all tabs.
|
// Animate closed the top window hiding all tabs.
|
||||||
|
|
||||||
close_window : function()
|
close_window: function() {
|
||||||
{
|
|
||||||
anbu.el.tab_pane.fadeOut(100);
|
anbu.el.tab_pane.fadeOut(100);
|
||||||
anbu.el.window.slideUp(300);
|
anbu.el.window.slideUp(300);
|
||||||
anbu.el.close.fadeOut(300);
|
anbu.el.close.fadeOut(300);
|
||||||
|
@ -103,38 +129,41 @@ var anbu = {
|
||||||
anbu.el.tab_links.removeClass(anbu.active_tab);
|
anbu.el.tab_links.removeClass(anbu.active_tab);
|
||||||
anbu.active_pane = '';
|
anbu.active_pane = '';
|
||||||
anbu.window_open = false;
|
anbu.window_open = false;
|
||||||
},
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
// SHOW()
|
// SHOW()
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Show the Anbu toolbar when it has been compacted.
|
// Show the Anbu toolbar when it has been compacted.
|
||||||
|
|
||||||
show : function ()
|
show: function() {
|
||||||
{
|
|
||||||
anbu.el.closed_tabs.fadeOut(600, function () {
|
anbu.el.closed_tabs.fadeOut(600, function () {
|
||||||
|
anbu.el.main.removeClass('anbu-hidden');
|
||||||
anbu.el.open_tabs.fadeIn(200);
|
anbu.el.open_tabs.fadeIn(200);
|
||||||
})
|
});
|
||||||
anbu.el.main.animate({width: '100%'}, 700);
|
anbu.el.main.animate({width: '100%'}, 700);
|
||||||
anbu.el.main.removeClass('hidden');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// HIDE()
|
// HIDE()
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Hide the anbu toolbar, show a tiny re-open button.
|
// Hide the anbu toolbar, show a tiny re-open button.
|
||||||
|
|
||||||
hide : function ()
|
hide: function() {
|
||||||
{
|
|
||||||
|
|
||||||
anbu.close_window();
|
anbu.close_window();
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
anbu.el.window.slideUp(400, function () {
|
anbu.el.window.slideUp(400, function () {
|
||||||
anbu.close_window();
|
anbu.close_window();
|
||||||
anbu.el.main.addClass('hidden');
|
anbu.el.main.addClass('anbu-hidden');
|
||||||
anbu.el.open_tabs.fadeOut(200, function () {
|
anbu.el.open_tabs.fadeOut(200, function () {
|
||||||
anbu.el.closed_tabs.fadeIn(200);
|
anbu.el.closed_tabs.fadeIn(200);
|
||||||
})
|
});
|
||||||
anbu.el.main.animate({width: anbu.mini_button_width}, 700);
|
anbu.el.main.animate({width: anbu.mini_button_width}, 700);
|
||||||
});
|
});
|
||||||
|
}, 100);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -142,27 +171,24 @@ var anbu = {
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Toggle the zoomed mode of the top window.
|
// Toggle the zoomed mode of the top window.
|
||||||
|
|
||||||
zoom : function ()
|
zoom: function() {
|
||||||
{
|
|
||||||
if(anbu.isZoomed)
|
if (anbu.is_zoomed) {
|
||||||
{
|
|
||||||
height = anbu.small_height;
|
height = anbu.small_height;
|
||||||
anbu.isZoomed = false;
|
anbu.is_zoomed = false;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
// the 6px is padding on the top of the window
|
// the 6px is padding on the top of the window
|
||||||
height = ($(window).height() - anbu.el.tabs.height() - 6) + 'px';
|
height = ($(window).height() - anbu.el.tabs.height() - 6) + 'px';
|
||||||
anbu.isZoomed = true;
|
anbu.is_zoomed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
anbu.el.content_area.animate({height: height}, 700);
|
anbu.el.content_area.animate({height: height}, 700);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
|
// launch anbu on jquery dom ready
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function() {
|
||||||
// launch anbu
|
|
||||||
anbu.start();
|
anbu.start();
|
||||||
});
|
});
|
|
@ -166,7 +166,7 @@ .content>h1:not(:first-child) {
|
||||||
.content table
|
.content table
|
||||||
{
|
{
|
||||||
border-collapse:collapse
|
border-collapse:collapse
|
||||||
border:1px solid #eee;
|
border: 1px solid #eee;
|
||||||
width:100%;
|
width:100%;
|
||||||
line-height:1.5em;
|
line-height:1.5em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.gitignore
|
Loading…
Reference in New Issue