diff --git a/Gruntfile.js b/Gruntfile.js index 6409ae289..8956b314f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -78,6 +78,7 @@ module.exports = function (grunt) { '**/*.png', '**/*.jpg', '**/*.ico', + '**/*.swf', '**/FontAwesome/*.*', '**/fonts/*.*' ], diff --git a/build.ps1 b/build.ps1 index c690b62bb..2656822ae 100644 --- a/build.ps1 +++ b/build.ps1 @@ -119,7 +119,7 @@ Function PackageOsx() if(Test-Path $outputFolderOsx) { - Remove-Item -Recurse -Force $outputFolderMono -ErrorAction Continue + Remove-Item -Recurse -Force $outputFolderOsx -ErrorAction Continue } Copy-Item $outputFolderMono $outputFolderOsx -recurse diff --git a/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs b/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs index 76c24161d..8995f96bc 100644 --- a/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs +++ b/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs @@ -295,6 +295,14 @@ namespace Microsoft.AspNet.SignalR.Messaging Trace.TraceEvent(TraceEventType.Verbose, 0, "Dispoing the broker"); + //Check if OS is not Windows and exit + var platform = (int)Environment.OSVersion.Platform; + + if ((platform == 4) || (platform == 6) || (platform == 128)) + { + return; + } + // Wait for all threads to stop working WaitForDrain(); diff --git a/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj b/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj index be784e000..f9d7a747e 100644 --- a/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj +++ b/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj @@ -275,6 +275,7 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html b/src/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html index c984fbef1..6e7de342c 100644 --- a/src/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html +++ b/src/UI/Settings/MediaManagement/FileManagement/FileManagementViewTemplate.html @@ -51,4 +51,19 @@ + +
+ + +
+ + + + +
+
diff --git a/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html b/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html index ca0a685a7..2a15e6420 100644 --- a/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html +++ b/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html @@ -1,4 +1,4 @@ -{{#if_linux}} +{{#if_mono}}
Permissions @@ -67,4 +67,4 @@
-{{/if_linux}} \ No newline at end of file +{{/if_mono}} \ No newline at end of file diff --git a/src/UI/Settings/settings.less b/src/UI/Settings/settings.less index 9f0ce6ac2..c46a629bc 100644 --- a/src/UI/Settings/settings.less +++ b/src/UI/Settings/settings.less @@ -93,3 +93,11 @@ li.save-and-add:hover { display: none; } } + +.api-key { + + input { + width : 280px; + cursor : text; + } +} diff --git a/src/UI/Shared/Grid/JumpToPageTemplate.html b/src/UI/Shared/Grid/JumpToPageTemplate.html new file mode 100644 index 000000000..d257ccc6d --- /dev/null +++ b/src/UI/Shared/Grid/JumpToPageTemplate.html @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/src/UI/Shared/Grid/Pager.js b/src/UI/Shared/Grid/Pager.js index e230f8d1d..876f1fe5d 100644 --- a/src/UI/Shared/Grid/Pager.js +++ b/src/UI/Shared/Grid/Pager.js @@ -1,16 +1,20 @@ 'use strict'; define( [ + 'jquery', 'marionette', 'backgrid.paginator' - ], function (Marionette, Paginator) { + ], function ($, Marionette, Paginator) { return Paginator.extend({ template: 'Shared/Grid/PagerTemplate', events: { - 'click .pager-btn': 'changePage' + 'click .pager-btn' : 'changePage', + 'click .x-page-number' : '_showPageJumper', + 'change .x-page-select' : '_jumpToPage', + 'blur .x-page-select' : 'render' }, windowSize: 1, @@ -25,7 +29,7 @@ define( changePage: function (e) { e.preventDefault(); - var target =this.$(e.target); + var target = this.$(e.target); if (target.closest('li').hasClass('disabled')) { return; @@ -77,7 +81,7 @@ define( var lastPage = +state.lastPage; lastPage = Math.max(0, firstPage ? lastPage - 1 :lastPage); var currentPage = Math.max(state.currentPage, state.firstPage); - currentPage = firstPage ? currentPage - 1 :currentPage; + currentPage = firstPage ? currentPage - 1 : currentPage; var windowStart = Math.floor(currentPage / this.windowSize) * this.windowSize; var windowEnd = Math.min(lastPage + 1, windowStart + this.windowSize); @@ -145,6 +149,45 @@ define( this.delegateEvents(); return this; + }, + + _showPageJumper: function (e) { + if ($(e.target).is('select')) { + return; + } + + var templateFunction = Marionette.TemplateCache.get('Shared/Grid/JumpToPageTemplate'); + var state = this.collection.state; + var currentPage = Math.max(state.currentPage, state.firstPage); + currentPage = state.firstPage ? currentPage - 1 : currentPage; + + var pages = []; + + for (var i = 0; i < this.collection.state.lastPage; i++) { + if (i === currentPage) { + pages.push({ page: i + 1, current: true }); + } + + else { + pages.push({ page: i + 1 }); + } + } + + this.$el.find('.x-page-number').html(templateFunction({ + pages : pages + })); + }, + + _jumpToPage: function () { + var target = this.$el.find('.x-page-select'); + + //Remove event handlers so the blur event is not triggered + this.undelegateEvents(); + + var selectedPage = parseInt(target.val(), 10); + + this.$el.find('.x-page-number').html(''); + this.collection.getPage(selectedPage); } }); }); diff --git a/src/UI/Shared/Grid/PagerTemplate.html b/src/UI/Shared/Grid/PagerTemplate.html index 3e829409e..44b6f9d78 100644 --- a/src/UI/Shared/Grid/PagerTemplate.html +++ b/src/UI/Shared/Grid/PagerTemplate.html @@ -2,7 +2,7 @@ {{#each handles}}
  • {{#if pageNumber}} - {{pageNumber}} / {{lastPage}} + {{pageNumber}} / {{lastPage}} {{else}} {{/if}} diff --git a/src/UI/app.js b/src/UI/app.js index 2ab1cbdd1..85d8a566d 100644 --- a/src/UI/app.js +++ b/src/UI/app.js @@ -27,6 +27,7 @@ require.config({ 'jquery.dotdotdot' : 'JsLibraries/jquery.dotdotdot', 'messenger' : 'JsLibraries/messenger', 'jquery' : 'JsLibraries/jquery', + 'zero.clipboard' : 'JsLibraries/zero.clipboard', 'libs' : 'JsLibraries/', 'api': 'Require/require.api' diff --git a/src/UpgradeLog.htm b/src/UpgradeLog.htm deleted file mode 100644 index 2732cdfdc..000000000 Binary files a/src/UpgradeLog.htm and /dev/null differ diff --git a/src/UpgradeLog2.htm b/src/UpgradeLog2.htm deleted file mode 100644 index 2732cdfdc..000000000 Binary files a/src/UpgradeLog2.htm and /dev/null differ