mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 15:57:52 -02:30
Update UI build system
* Faster build times * Smaller bundle sizes * Adjust paths * Cleanup npm dependencies * Remove unneded Grunt tasks
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const templateUrl = require('@components/truncate/truncate.partial.html');
|
||||
|
||||
function atTruncateLink (scope, el, attr, ctrl) {
|
||||
let truncateController = ctrl;
|
||||
let string = attr.string;
|
||||
@@ -44,12 +46,12 @@ function AtTruncateController (strings) {
|
||||
|
||||
AtTruncateController.$inject = ['ComponentsStrings'];
|
||||
|
||||
function atTruncate(pathService) {
|
||||
function atTruncate() {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
transclude: true,
|
||||
templateUrl: pathService.getPartialPath('components/truncate/truncate'),
|
||||
templateUrl,
|
||||
controller: AtTruncateController,
|
||||
controllerAs: 'vm',
|
||||
link: atTruncateLink,
|
||||
@@ -61,8 +63,4 @@ function atTruncate(pathService) {
|
||||
}
|
||||
}
|
||||
|
||||
atTruncate.$inject = [
|
||||
'PathService'
|
||||
];
|
||||
|
||||
export default atTruncate;
|
||||
|
||||
Reference in New Issue
Block a user