Browse Source

Merge remote-tracking branch 'origin/master' into fix/respone-slack-reviews

zahmis 4 years ago
parent
commit
03b5169ea8

+ 1 - 1
packages/slackbot-proxy/src/Server.ts

@@ -52,7 +52,7 @@ const helmetOptions = isProduction ? {
     directives: {
       defaultSrc: ['\'self\''],
       styleSrc: ['\'self\'', '\'unsafe-inline\''],
-      imgSrc: ['\'self\'', 'data:', 'validator.swagger.io'],
+      imgSrc: ['\'self\'', 'data:', 'https:'],
       scriptSrc: ['\'self\'', 'https: \'unsafe-inline\''],
     },
   },

+ 19 - 7
packages/slackbot-proxy/src/views/install-succeeded.ejs

@@ -6,16 +6,28 @@
       <div class="col text-center">
         <h1 class="my-5">Congratulations!</h1>
         <h2 class="my-5">GROWI Bot installation has succeeded!</h2>
-        <p>
-          Access to
-          <a href=<%- appPageUrl %>>
-            Slack App detail page.
-          </a>
+      </div>
+    </div>
+
+    <div class="row justify-content-md-center">
+      <div class="col col-xl-6 col-md-8">
+        <h4>The steps required to configure GROWI Slack app.</h4>
+        <ol>
+          <li>First, <code>/growi register</code> in any slack channel.</li>
+          <img class="w-100" src="https://docs.growi.org/assets/images/slack-bot-growi-register.png" alt="growi-register"/>
+          <li>Looking for additional help? Try <code>/growi help</code></li>
+        </ol>
+        <h4 class="mt-5">Need more infomation?</h4>
+        <p>Please refer to the document below.</p>
+        <p class="text-center">
+          <a class="btn btn-success my-4" href="https://docs.growi.org/en/admin-guide/management-cookbook/slack-integration/official-bot-settings.html">Getting started</a>
         </p>
-        <p>
-          <a class="btn btn-outline-success" href="https://docs.growi.org/en/admin-guide/management-cookbook/slack-integration/official-bot-settings.html">Getting started</a>
+        <hr>
+        <p class="text-center">
+          <a href=<%- appPageUrl %>>Slack App detail page.</a>
         </p>
       </div>
     </div>
+
   </div>
 </body>