aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/facets-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/facets-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets-view.js91
1 files changed, 36 insertions, 55 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets-view.js b/server/sonar-web/src/main/js/apps/coding-rules/facets-view.js
index 47f9e2edae5..c3da8bbe54b 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets-view.js
@@ -1,59 +1,40 @@
-define([
- 'components/navigator/facets-view',
- './facets/base-facet',
- './facets/query-facet',
- './facets/key-facet',
- './facets/language-facet',
- './facets/repository-facet',
- './facets/tag-facet',
- './facets/quality-profile-facet',
- './facets/characteristic-facet',
- './facets/severity-facet',
- './facets/status-facet',
- './facets/available-since-facet',
- './facets/inheritance-facet',
- './facets/active-severity-facet',
- './facets/template-facet'
- ],
- function (FacetsView,
- BaseFacet,
- QueryFacet,
- KeyFacet,
- LanguageFacet,
- RepositoryFacet,
- TagFacet,
- QualityProfileFacet,
- CharacteristicFacet,
- SeverityFacet,
- StatusFacet,
- AvailableSinceFacet,
- InheritanceFacet,
- ActiveSeverityFacet,
- TemplateFacet) {
+import FacetsView from 'components/navigator/facets-view';
+import BaseFacet from './facets/base-facet';
+import QueryFacet from './facets/query-facet';
+import KeyFacet from './facets/key-facet';
+import LanguageFacet from './facets/language-facet';
+import RepositoryFacet from './facets/repository-facet';
+import TagFacet from './facets/tag-facet';
+import QualityProfileFacet from './facets/quality-profile-facet';
+import CharacteristicFacet from './facets/characteristic-facet';
+import SeverityFacet from './facets/severity-facet';
+import StatusFacet from './facets/status-facet';
+import AvailableSinceFacet from './facets/available-since-facet';
+import InheritanceFacet from './facets/inheritance-facet';
+import ActiveSeverityFacet from './facets/active-severity-facet';
+import TemplateFacet from './facets/template-facet';
- var viewsMapping = {
- q: QueryFacet,
- rule_key: KeyFacet,
- languages: LanguageFacet,
- repositories: RepositoryFacet,
- tags: TagFacet,
- qprofile: QualityProfileFacet,
- debt_characteristics: CharacteristicFacet,
- severities: SeverityFacet,
- statuses: StatusFacet,
- available_since: AvailableSinceFacet,
- inheritance: InheritanceFacet,
- active_severities: ActiveSeverityFacet,
- is_template: TemplateFacet
- };
+var viewsMapping = {
+ q: QueryFacet,
+ rule_key: KeyFacet,
+ languages: LanguageFacet,
+ repositories: RepositoryFacet,
+ tags: TagFacet,
+ qprofile: QualityProfileFacet,
+ debt_characteristics: CharacteristicFacet,
+ severities: SeverityFacet,
+ statuses: StatusFacet,
+ available_since: AvailableSinceFacet,
+ inheritance: InheritanceFacet,
+ active_severities: ActiveSeverityFacet,
+ is_template: TemplateFacet
+};
- return FacetsView.extend({
+export default FacetsView.extend({
- getChildView: function (model) {
- var view = viewsMapping[model.get('property')];
- return view ? view : BaseFacet;
- }
+ getChildView: function (model) {
+ var view = viewsMapping[model.get('property')];
+ return view ? view : BaseFacet;
+ }
- });
-
- });
+});