diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-23 16:19:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 16:19:54 +0100 |
commit | ed2fff193eca9e5407e42a32e54eef02daca0fb7 (patch) | |
tree | 29093fd442888ffa5446dba6142ab93d3290ab7a /it/it-plugins | |
parent | cc65eb695394d533c0124c53742a5bb36f948a70 (diff) | |
download | sonarqube-ed2fff193eca9e5407e42a32e54eef02daca0fb7.tar.gz sonarqube-ed2fff193eca9e5407e42a32e54eef02daca0fb7.zip |
SONAR-8554 Load and display page extensions (#1482)
Diffstat (limited to 'it/it-plugins')
8 files changed, 20 insertions, 4 deletions
diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/GlobalPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/GlobalPage.java index d243da0828d..2dcbd264181 100644 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/GlobalPage.java +++ b/it/it-plugins/ui-extensions-plugin/src/main/java/GlobalPage.java @@ -24,7 +24,7 @@ import org.sonar.api.web.Page; public class GlobalPage implements Page { public String getId() { - return "global_page"; + return "uiextensionsplugin/global_page"; } public String getTitle() { diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/ProjectPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/ProjectPage.java index db08565862a..66da8e6ad33 100644 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/ProjectPage.java +++ b/it/it-plugins/ui-extensions-plugin/src/main/java/ProjectPage.java @@ -27,7 +27,7 @@ import org.sonar.api.web.ResourceQualifier; public class ProjectPage implements Page { public String getId() { - return "/project_page"; + return "uiextensionsplugin/project_page"; } public String getTitle() { diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/ResourceConfigurationPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/ResourceConfigurationPage.java index b804359642d..953b1f9df15 100644 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/ResourceConfigurationPage.java +++ b/it/it-plugins/ui-extensions-plugin/src/main/java/ResourceConfigurationPage.java @@ -29,7 +29,7 @@ import org.sonar.api.web.UserRole; public class ResourceConfigurationPage implements Page { public String getId() { - return "/resource_configuration_sample"; + return "uiextensionsplugin/resource_configuration_sample"; } public String getTitle() { diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/SettingsPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/SettingsPage.java index 9c3fd26c990..c5b801a6c90 100644 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/SettingsPage.java +++ b/it/it-plugins/ui-extensions-plugin/src/main/java/SettingsPage.java @@ -27,7 +27,7 @@ import org.sonar.api.web.UserRole; public class SettingsPage implements Page { public String getId() { - return "settings_page"; + return "uiextensionsplugin/settings_page"; } public String getTitle() { diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/static/global_page.js b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/global_page.js new file mode 100644 index 00000000000..02369e084e1 --- /dev/null +++ b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/global_page.js @@ -0,0 +1,4 @@ +window.registerExtension('uiextensionsplugin/global_page', function (options) { + options.el.textContent = 'uiextensionsplugin/global_page'; + return function () {}; +});
\ No newline at end of file diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/static/project_page.js b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/project_page.js new file mode 100644 index 00000000000..1e28dace449 --- /dev/null +++ b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/project_page.js @@ -0,0 +1,4 @@ +window.registerExtension('uiextensionsplugin/project_page', function (options) { + options.el.textContent = 'uiextensionsplugin/project_page'; + return function () {}; +});
\ No newline at end of file diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/static/resource_configuration_sample.js b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/resource_configuration_sample.js new file mode 100644 index 00000000000..6d84892378a --- /dev/null +++ b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/resource_configuration_sample.js @@ -0,0 +1,4 @@ +window.registerExtension('uiextensionsplugin/resource_configuration_sample', function (options) { + options.el.textContent = 'uiextensionsplugin/resource_configuration_sample'; + return function () {}; +});
\ No newline at end of file diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/static/settings_page.js b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/settings_page.js new file mode 100644 index 00000000000..d3a69f44aeb --- /dev/null +++ b/it/it-plugins/ui-extensions-plugin/src/main/resources/static/settings_page.js @@ -0,0 +1,4 @@ +window.registerExtension('uiextensionsplugin/settings_page', function (options) { + options.el.textContent = 'uiextensionsplugin/settings_page'; + return function () {}; +});
\ No newline at end of file |