mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 06:15:16 +02:00
- Adding Upload component skeleton.
This commit is contained in:
11
res/app/control-panes/dashboard/upload/index.js
Normal file
11
res/app/control-panes/dashboard/upload/index.js
Normal 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'))
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = function UploadCtrl($scope) {
|
||||
|
||||
}
|
||||
17
res/app/control-panes/dashboard/upload/upload-spec.js
Normal file
17
res/app/control-panes/dashboard/upload/upload-spec.js
Normal 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);
|
||||
|
||||
}));
|
||||
|
||||
});
|
||||
3
res/app/control-panes/dashboard/upload/upload.css
Normal file
3
res/app/control-panes/dashboard/upload/upload.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.stf-upload {
|
||||
|
||||
}
|
||||
6
res/app/control-panes/dashboard/upload/upload.jade
Normal file
6
res/app/control-panes/dashboard/upload/upload.jade
Normal file
@@ -0,0 +1,6 @@
|
||||
.widget-container.fluid-height.stf-upload(ng-controller='UploadCtrl')
|
||||
.heading
|
||||
i.fa
|
||||
span(translate) Upload
|
||||
.widget-content.padded
|
||||
div
|
||||
Reference in New Issue
Block a user