- Adding Upload component skeleton.

This commit is contained in:
Gunther Brunner
2014-03-31 14:34:33 +09:00
parent 325eaaf199
commit e173a4f648
7 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
require('./upload.css')
module.exports = angular.module('stf.upload', [
])
.run(["$templateCache", function ($templateCache) {
$templateCache.put('control-panes/dashboard/upload/upload.jade',
require('./upload.jade')
)
}])
.controller('UploadCtrl', require('./upload-controller'))

View File

@@ -0,0 +1,3 @@
module.exports = function UploadCtrl($scope) {
}

View File

@@ -0,0 +1,17 @@
describe('UploadCtrl', function () {
beforeEach(module('stf.upload'));
var scope, ctrl;
beforeEach(inject(function ($rootScope, $controller) {
scope = $rootScope.$new();
ctrl = $controller('UploadCtrl', {$scope: scope});
}));
it('should ...', inject(function () {
expect(1).toEqual(1);
}));
});

View File

@@ -0,0 +1,3 @@
.stf-upload {
}

View File

@@ -0,0 +1,6 @@
.widget-container.fluid-height.stf-upload(ng-controller='UploadCtrl')
.heading
i.fa
span(translate) Upload
.widget-content.padded
div