diff --git a/res/app/components/stf/logcat-table/index.js b/res/app/components/stf/logcat-table/index.js new file mode 100644 index 00000000..191244f8 --- /dev/null +++ b/res/app/components/stf/logcat-table/index.js @@ -0,0 +1,6 @@ +require('./logcat-table.css') + +module.exports = angular.module('stf.logcat-table', [ + +]) + .directive('logcatTable', require('./logcat-table-directive')) diff --git a/res/app/components/stf/logcat-table/logcat-table-directive.js b/res/app/components/stf/logcat-table/logcat-table-directive.js new file mode 100644 index 00000000..f6d70398 --- /dev/null +++ b/res/app/components/stf/logcat-table/logcat-table-directive.js @@ -0,0 +1,13 @@ +module.exports = function logcatTableDirective() { + return { + restrict: 'E', + replace: true, + scope: { + + }, + template: require('./logcat-table.jade'), + link: function (scope, element, attrs) { + + } + } +} diff --git a/res/app/components/stf/logcat-table/logcat-table-spec.js b/res/app/components/stf/logcat-table/logcat-table-spec.js new file mode 100644 index 00000000..58c34628 --- /dev/null +++ b/res/app/components/stf/logcat-table/logcat-table-spec.js @@ -0,0 +1,23 @@ +describe('logcatTable', function () { + + beforeEach(module('stf.logcat-table')); + + var scope, compile; + + beforeEach(inject(function ($rootScope, $compile) { + scope = $rootScope.$new(); + compile = $compile; + })); + + it('should ...', function () { + + /* + To test your directive, you need to create some html that would use your directive, + send that through compile() then compare the results. + + var element = compile('
hi
')(scope); + expect(element.text()).toBe('hello, world'); + */ + + }); +}); \ No newline at end of file diff --git a/res/app/components/stf/logcat-table/logcat-table.css b/res/app/components/stf/logcat-table/logcat-table.css new file mode 100644 index 00000000..05c719a9 --- /dev/null +++ b/res/app/components/stf/logcat-table/logcat-table.css @@ -0,0 +1,3 @@ +.stf-logcat-table { + +} \ No newline at end of file diff --git a/res/app/components/stf/logcat-table/logcat-table.jade b/res/app/components/stf/logcat-table/logcat-table.jade new file mode 100644 index 00000000..16b9583f --- /dev/null +++ b/res/app/components/stf/logcat-table/logcat-table.jade @@ -0,0 +1 @@ +div.stf-logcat-table \ No newline at end of file diff --git a/res/app/control-panes/logs/index.js b/res/app/control-panes/logs/index.js index b43a37d1..676464c5 100644 --- a/res/app/control-panes/logs/index.js +++ b/res/app/control-panes/logs/index.js @@ -1,7 +1,8 @@ require('./logs.less') module.exports = angular.module('stf.logs', [ - require('stf/logcat').name + require('stf/logcat').name, + require('stf/logcat-table').name ]) .run(["$templateCache", function ($templateCache) { $templateCache.put('control-panes/logs/logs.jade',