- Improving the shell. Still not a real shell.

This commit is contained in:
Gunther Brunner
2014-04-01 22:04:36 +09:00
parent e17f306d30
commit af47e535e4
10 changed files with 95 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
# stf-tooltips
Based on Angular Bootstrap.
Usage:
```html
help-title='{{"Run Command"|translate}}'
help-key='Enter'
```
Maps to:
```html
tooltip-html-unsafe='{{"Run Command<br /><br /><code>Enter</code>"|translate}}'
```

View File

@@ -0,0 +1,4 @@
module.exports = angular.module('stf.tooltips', [
])
.directive('tooltips', require('./tooltips-directive'))

View File

@@ -0,0 +1,8 @@
module.exports = function tooltipsDirective() {
return {
restrict: 'A',
link: function (scope, element, attrs) {
}
}
}

View File

@@ -0,0 +1,23 @@
describe('tooltips', function () {
beforeEach(module('stf.tooltips'));
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('<div tooltips name="name">hi</div>')(scope);
expect(element.text()).toBe('hello, world');
*/
});
});