From e3eb37ba5628bfb900a7c8f9d308ec67b5ecd1e3 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Fri, 28 Nov 2014 22:24:55 -0600 Subject: [PATCH] Moved builder to its own submodule --- app/app.js | 2 +- {partials => app/components/builder}/builder.html | 0 app/components/builder/builderController.js | 5 +++++ app/controllers.js | 4 ---- index.html | 1 + 5 files changed, 7 insertions(+), 5 deletions(-) rename {partials => app/components/builder}/builder.html (100%) create mode 100644 app/components/builder/builderController.js diff --git a/app/app.js b/app/app.js index 57dbb4072..b483df41a 100644 --- a/app/app.js +++ b/app/app.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings']) +angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'}); $routeProvider.when('/containers/', {templateUrl: 'app/components/containers/containers.html', controller: 'ContainersController'}); diff --git a/partials/builder.html b/app/components/builder/builder.html similarity index 100% rename from partials/builder.html rename to app/components/builder/builder.html diff --git a/app/components/builder/builderController.js b/app/components/builder/builderController.js new file mode 100644 index 000000000..7af32e1e7 --- /dev/null +++ b/app/components/builder/builderController.js @@ -0,0 +1,5 @@ +angular.module('builder', []) +.controller('BuilderController', ['$scope', 'Dockerfile', 'Messages', +function($scope, Dockerfile, Messages) { + $scope.template = 'partials/builder.html'; +}]); diff --git a/app/controllers.js b/app/controllers.js index 67d8853d3..df0fc5157 100644 --- a/app/controllers.js +++ b/app/controllers.js @@ -47,10 +47,6 @@ function getChart(id) { return new Chart(ctx); } -function BuilderController($scope, Dockerfile, Messages) { - $scope.template = 'partials/builder.html'; -} - function failedRequestHandler(e, Messages) { Messages.send({class: 'text-error', data: e.data}); } diff --git a/index.html b/index.html index f8bc9eddc..3b71065ad 100644 --- a/index.html +++ b/index.html @@ -47,6 +47,7 @@ +