From 55d7f2cb80e42113b046412a7eefd1f76ee2dac9 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Thu, 23 May 2019 09:07:00 +0200 Subject: [PATCH] SONAR-12137 Introduce a new comment syntax for rendering plugin data We can now fetch plugin data from updates.sonarsource.com, and dynamically render this information on the page. --- server/sonar-docs/README.md | 18 ++ server/sonar-docs/src/@types/types.d.ts | 27 +++ .../src/components/PluginMetaData.tsx | 162 ++++++++++++++++++ .../src/components/PluginVersionMetaData.tsx | 118 +++++++++++++ .../__tests__/PluginMetaData-test.tsx | 81 +++++++++ .../__tests__/PluginVersionMetaData-test.tsx | 77 +++++++++ .../PluginMetaData-test.tsx.snap | 11 ++ .../PluginVersionMetaData-test.tsx.snap | 93 ++++++++++ server/sonar-docs/src/components/utils.tsx | 16 ++ server/sonar-docs/src/layouts/index.tsx | 2 + server/sonar-docs/src/layouts/layout.css | 83 +++++++++ 11 files changed, 688 insertions(+) create mode 100644 server/sonar-docs/src/components/PluginMetaData.tsx create mode 100644 server/sonar-docs/src/components/PluginVersionMetaData.tsx create mode 100644 server/sonar-docs/src/components/__tests__/PluginMetaData-test.tsx create mode 100644 server/sonar-docs/src/components/__tests__/PluginVersionMetaData-test.tsx create mode 100644 server/sonar-docs/src/components/__tests__/__snapshots__/PluginMetaData-test.tsx.snap create mode 100644 server/sonar-docs/src/components/__tests__/__snapshots__/PluginVersionMetaData-test.tsx.snap diff --git a/server/sonar-docs/README.md b/server/sonar-docs/README.md index 89646417296..11400efc5c2 100644 --- a/server/sonar-docs/README.md +++ b/server/sonar-docs/README.md @@ -307,3 +307,21 @@ Note that an iframe is **not** a self-closing tag. This means that the following