From b0bd3f34f163fbfcd96ce4cddf808243ae6245ac Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Mon, 24 Jun 2013 16:41:59 -0700 Subject: [PATCH] removed NzbDrone. namespace, everything is done using require. --- Gruntfile.js | 8 +- UI/.idea/NzbDrone.UI.iml | 1 - UI/.idea/codeStyleSettings.xml | 5 +- UI/.idea/dictionaries/Keivan_Beigi.xml | 1 + UI/.idea/jsLibraryMappings.xml | 2 +- UI/.idea/jsLinters/jshint.xml | 2 +- UI/.idea/libraries/libraries.xml | 51 ---- UI/AddSeries/AddSeriesView.js | 6 +- UI/AddSeries/Collection.js | 7 +- UI/AddSeries/RootFolders/Collection.js | 8 +- UI/Calendar/CalendarLayout.js | 22 +- UI/Calendar/CalendarView.js | 148 +++++----- UI/Calendar/Collection.js | 26 +- UI/Calendar/UpcomingCollection.js | 26 +- UI/Calendar/UpcomingCollectionView.js | 14 +- UI/Calendar/UpcomingItemView.js | 17 +- UI/Calendar/calendar.less | 100 +++---- UI/Cells/AirDateCell.js | 24 +- UI/Cells/EpisodeNumberCell.js | 65 +++-- UI/Cells/EpisodeStatusCell.js | 41 +-- UI/Cells/EpisodeTitleCell.js | 35 ++- UI/Cells/FileSizeCell.js | 24 +- UI/Cells/IndexerCell.js | 21 +- UI/Cells/NzbDroneCell.js | 65 +++-- UI/Cells/QualityCell.js | 13 +- UI/Cells/RelativeDateCell.js | 21 +- UI/Cells/SeriesStatusCell.js | 25 -- UI/Cells/SeriesTitleCell.js | 13 +- UI/Cells/TemplatedCell.js | 28 +- UI/Cells/ToggleCell.js | 51 ++-- UI/Commands/CommandController.js | 25 +- UI/Config.js | 49 ++-- UI/Content/Messenger/messenger.future.css | 4 - UI/Content/form.less | 14 +- UI/Controller.js | 41 ++- UI/Episode/Layout.js | 135 ++++----- UI/Episode/Search/Layout.js | 112 ++++---- UI/Episode/Summary/View.js | 13 +- UI/Form/FormBuilder.js | 75 +++-- .../backbone.marionette.templates.js | 45 +-- UI/History/Collection.js | 70 ++--- UI/History/EventTypeCell.js | 61 ++-- UI/History/HistoryLayout.js | 150 +++++----- UI/History/Model.js | 39 +-- UI/Index.html | 38 +-- UI/Instrumentation/ErrorHandler.js | 10 +- UI/Logs/Collection.js | 10 +- UI/Logs/Layout.js | 17 +- UI/Logs/Model.js | 20 +- UI/MainMenuView.js | 6 +- UI/Missing/Collection.js | 70 ++--- UI/Missing/MissingLayout.js | 43 +-- UI/Mixins/AutoComplete.js | 8 +- UI/Mixins/backbone.signalr.mixin.js | 78 ++--- UI/Quality/QualitySizeCollection.js | 17 +- UI/Quality/QualitySizeModel.js | 29 +- UI/Quality/qualityProfileCollection.js | 28 +- UI/Quality/qualityProfileModel.js | 22 +- UI/Release/ApprovalStatusCell.js | 32 ++- UI/Release/Collection.js | 30 +- UI/Release/DownloadReportCell.js | 43 ++- UI/Release/Layout.js | 119 ++++---- UI/Release/Model.js | 6 +- UI/Router.js | 15 +- UI/Series/Delete/DeleteSeriesView.js | 11 +- UI/Series/Details/SeasonCollectionView.js | 42 +-- UI/Series/Details/SeasonLayout.js | 104 +++---- UI/Series/Details/SeriesDetailsLayout.js | 35 ++- UI/Series/Edit/EditSeriesView.js | 73 ++--- UI/Series/EpisodeCollection.js | 33 ++- UI/Series/EpisodeModel.js | 163 +++++------ UI/Series/Index/EmptySeriesIndexView.js | 15 +- UI/Series/Index/EmptyView.js | 15 +- UI/Series/Index/List/CollectionView.js | 20 +- UI/Series/Index/List/ItemView.js | 55 ++-- UI/Series/Index/Posters/CollectionView.js | 20 +- UI/Series/Index/Posters/ItemView.js | 67 +++-- UI/Series/Index/SeriesIndexLayout.js | 268 +++++++++-------- UI/Series/Index/Table/Row.js | 38 +-- UI/Series/Index/Table/SeriesStatusCell.js | 28 ++ UI/Series/SeasonCollection.js | 39 +-- UI/Series/SeasonModel.js | 35 +-- UI/Series/SeriesCollection.js | 32 ++- UI/Series/SeriesModel.js | 157 +++++----- UI/ServerStatus.js | 4 +- .../DownloadClient/DownloadClientView.js | 136 ++++----- UI/Settings/General/GeneralSettingsModel.js | 34 ++- UI/Settings/Indexers/Collection.js | 15 +- UI/Settings/Indexers/EditView.js | 40 +-- UI/Settings/Naming/NamingModel.js | 20 +- UI/Settings/Naming/NamingView.js | 30 +- UI/Settings/Notifications/Collection.js | 15 +- UI/Settings/Notifications/Model.js | 11 +- .../Quality/Profile/DeleteTemplate.html | 11 + UI/Settings/Quality/Profile/DeleteView.js | 24 ++ .../Quality/Profile/QualityProfileView.js | 61 ++-- UI/Settings/Quality/QualityLayout.js | 19 +- UI/Settings/SettingsLayout.js | 57 ++-- UI/Settings/SettingsModel.js | 4 +- UI/Shared/FormatHelpers.js | 61 ++-- UI/Shared/Grid/HeaderCell.js | 166 +++++------ UI/Shared/Grid/Pager.js | 269 +++++++++--------- UI/Shared/LoadingView.js | 18 +- UI/Shared/NotFoundView.js | 13 +- UI/Shared/NotificationCollection.js | 11 - UI/Shared/NotificationModel.js | 39 --- UI/Shared/NotificationTemplate.html | 10 - UI/Shared/NotificationView.js | 42 --- UI/Shared/SpinnerView.js | 10 +- UI/Shared/Styles/card.less | 2 +- UI/Shared/Styles/clickable.less | 5 +- UI/Shared/TemplateHelpers.js | 7 +- .../Toolbar/Button/ButtonCollectionView.js | 14 +- UI/Shared/Toolbar/Button/ButtonView.js | 175 ++++++------ UI/Shared/Toolbar/ButtonCollection.js | 12 +- UI/Shared/Toolbar/ButtonModel.js | 26 +- .../Radio/RadioButtonCollectionView.js | 8 +- UI/Shared/Toolbar/Radio/RadioButtonView.js | 64 +++-- UI/Shared/Toolbar/ToolbarLayout.js | 33 +-- UI/app.js | 93 ++---- UI/jQuery/RouteBinder.js | 4 +- 121 files changed, 2570 insertions(+), 2587 deletions(-) delete mode 100644 UI/.idea/libraries/libraries.xml delete mode 100644 UI/Cells/SeriesStatusCell.js create mode 100644 UI/Series/Index/Table/SeriesStatusCell.js create mode 100644 UI/Settings/Quality/Profile/DeleteTemplate.html create mode 100644 UI/Settings/Quality/Profile/DeleteView.js delete mode 100644 UI/Shared/NotificationCollection.js delete mode 100644 UI/Shared/NotificationModel.js delete mode 100644 UI/Shared/NotificationTemplate.html delete mode 100644 UI/Shared/NotificationView.js diff --git a/Gruntfile.js b/Gruntfile.js index bcfba4f64..b913688e4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,8 +10,6 @@ module.exports = function (grunt) { 'UI/JsLibraries/backbone.modelbinder.js' : 'http://raw.github.com/theironcook/Backbone.ModelBinder/master/Backbone.ModelBinder.js', 'UI/JsLibraries/backbone.mutators.js' : 'http://raw.github.com/asciidisco/Backbone.Mutators/master/backbone.mutators.js', 'UI/JsLibraries/backbone.shortcuts.js' : 'http://raw.github.com/bry4n/backbone-shortcuts/master/backbone.shortcuts.js', - 'UI/JsLibraries/backbone.relational.js' : 'http://raw.github.com/PaulUithol/Backbone-relational/0.8.5/backbone-relational.js', - 'UI/JsLibraries/backbone.associations.js' : 'http://raw.github.com/dhruvaray/backbone-associations/master/backbone-associations.js', 'UI/JsLibraries/backbone.pageable.js' : 'http://raw.github.com/wyuenho/backbone-pageable/master/lib/backbone-pageable.js', 'UI/JsLibraries/backbone.backgrid.js' : 'http://raw.github.com/wyuenho/backgrid/master/lib/backgrid.js', @@ -28,6 +26,7 @@ module.exports = function (grunt) { 'UI/JsLibraries/require.js' : 'http://raw.github.com/jrburke/requirejs/master/require.js', 'UI/JsLibraries/sugar.js' : 'http://raw.github.com/andrewplummer/Sugar/master/release/sugar-full.development.js', 'UI/JsLibraries/underscore.js' : 'http://underscorejs.org/underscore.js', + 'UI/JsLibraries/lodash.underscore.js' : 'http://raw.github.com/bestiejs/lodash/master/dist/lodash.underscore.js', 'UI/JsLibraries/lunr.js' : 'http://raw.github.com/olivernn/lunr.js/master/lunr.js', 'UI/JsLibraries/messenger.js' : 'http://raw.github.com/HubSpot/messenger/master/build/js/messenger.js', @@ -36,6 +35,7 @@ module.exports = function (grunt) { 'UI/Content/bootstrap.toggle-switch.css' : 'http://raw.github.com/ghinda/css-toggle-switch/gh-pages/toggle-switch.css', + /* 'UI/Content/FontAwesome/fontawesome.otf' : 'http://github.com/FortAwesome/Font-Awesome/blob/master/build/assets/font-awesome/font/FontAwesome.otf?raw=true', 'UI/Content/FontAwesome/fontawesome-webfont.eot' : 'http://github.com/FortAwesome/Font-Awesome/blob/master/build/assets/font-awesome/font/fontawesome-webfont.eot?raw=true', 'UI/Content/FontAwesome/fontawesome-webfont.svg' : 'http://github.com/FortAwesome/Font-Awesome/blob/master/build/assets/font-awesome/font/fontawesome-webfont.svg?raw=true', @@ -51,6 +51,7 @@ module.exports = function (grunt) { 'UI/Content/FontAwesome/mixins.less' : 'http://raw.github.com/FortAwesome/Font-Awesome/master/build/assets/font-awesome/less/mixins.less', 'UI/Content/FontAwesome/path.less' : 'http://raw.github.com/FortAwesome/Font-Awesome/master/build/assets/font-awesome/less/path.less', 'UI/Content/FontAwesome/variables.less' : 'http://raw.github.com/FortAwesome/Font-Awesome/master/build/assets/font-awesome/less/variables.less' + */ }, clean: { @@ -125,6 +126,9 @@ module.exports = function (grunt) { }, watch: { + options: { + nospawn: false, + }, bootstrap : { files: ['UI/**/Bootstrap/**', 'UI/**/FontAwesome/**'], tasks: ['less:bootstrap'] diff --git a/UI/.idea/NzbDrone.UI.iml b/UI/.idea/NzbDrone.UI.iml index 7c7853f2f..9ffbb36a1 100644 --- a/UI/.idea/NzbDrone.UI.iml +++ b/UI/.idea/NzbDrone.UI.iml @@ -5,7 +5,6 @@ - diff --git a/UI/.idea/codeStyleSettings.xml b/UI/.idea/codeStyleSettings.xml index f16a0e64f..83bfe2c0c 100644 --- a/UI/.idea/codeStyleSettings.xml +++ b/UI/.idea/codeStyleSettings.xml @@ -35,10 +35,7 @@