/// module Configs { export var pluginName = "Configs"; export var context = "/config"; export var pluginPath = 'plugins/configs/'; export var templatePath = pluginPath + 'html/'; export var _module = angular.module(pluginName, ['hawtio-core', 'hawtio-ui', 'ui.codemirror', 'nvd3', 'ngTable', 'ngDialog']); export var route = PluginHelpers.createRoutingFunction(templatePath); export var controller = PluginHelpers.createControllerFunction(_module, pluginName); _module.config(['$provide', '$routeProvider', ($provide, $routeProvider) =>{ $routeProvider.when(UrlHelpers.join(context, 'gluster-fs/setting'), route('glusterfsSetting.html', false)) .when(UrlHelpers.join(context, 'kube-cluster/setting'), route('kubeClusterSetting.html', false)) .when(UrlHelpers.join(context, 'regionalism-code/searching'), route('regionalismCodeSearch.html', false)) .when(UrlHelpers.join(context, 'system-code/searching'), route('systemCodeSearch.html', false)) .when(context, {redirectTo: UrlHelpers.join(context, '/kube-cluster/setting')}); }]); _module.run(['viewRegistry', '$templateCache', 'HawtioExtension', '$compile', (viewRegistry, $templateCache:ng.ITemplateCacheService, ext, $compile:ng.ICompileService) => { ext.add('config-setting', ($scope) => { var template = $templateCache.get(UrlHelpers.join(templatePath, "configMenuItem.html")); return $compile(template)($scope); }); viewRegistry['config'] = templatePath + "shareLayout.html"; }]); _module.directive('gfsConfigTable', [() =>{ return{ restrict: 'AE', replace : true, scope: { tableTitle: '=', tableContent: '=' }, template: `
{{column.title}}
{{col.title}}
`, link: (scope, element, attr) =>{ } } }]); hawtioPluginLoader.addModule(pluginName); }