|
|
@@ -8,6 +8,8 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
const [connectionErrorCode, setConnectionErrorCode] = useState(null);
|
|
|
const [connectionErrorMessage, setConnectionErrorMessage] = useState(null);
|
|
|
const [connectionSuccessMessage, setConnectionSuccessMessage] = useState(null);
|
|
|
+ // TODO: get url
|
|
|
+ const [url, setUrl] = useState('http://localhost:3000/');
|
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
@@ -101,15 +103,18 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
<button type="button" className="btn btn-primary mx-2">{ t('Update') }</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <p className="font-weight-bold">2. GROWI Official Bot Proxy サービスへの登録</p>
|
|
|
+ <p className="font-weight-bold">2. {t('admin:slack_integration.accordion.register_for_growi_official_bot_proxy_service')}</p>
|
|
|
<div className="d-flex flex-column align-items-center">
|
|
|
<ol className="p-0">
|
|
|
- <li><p className="ml-2">Slack上で`/growi register`と打つ</p></li>
|
|
|
+ <li><p className="ml-2">{t('admin:slack_integration.accordion.enter_growi_register_on_slack')}</p></li>
|
|
|
{/* TODO: Copy to clipboard on click */}
|
|
|
<li>
|
|
|
- <p className="ml-2"><b>GROWI URL</b>には`http://localhost:3000/`<i className="fa fa-clipboard mx-1 text-secondary" aria-hidden="true"></i>を貼り付ける</p>
|
|
|
+ <p
|
|
|
+ className="ml-2"
|
|
|
+ dangerouslySetInnerHTML={{ __html: t('admin:slack_integration.accordion.paste_growi_url') }}
|
|
|
+ />
|
|
|
</li>
|
|
|
- <li><p className="ml-2">上記で発行した<b>Access Token for GROWI と Access Token for Proxy</b>を入れる</p></li>
|
|
|
+ <li><p className="ml-2">{t('admin:slack_integration.accordion.enter_access_token_for_growi_and_proxy')}</p></li>
|
|
|
</ol>
|
|
|
{/* TODO: Insert photo */}
|
|
|
<div className="rounded border w-50 d-flex justify-content-center align-items-center" style={{ height: '15rem' }}>
|
|
|
@@ -119,10 +124,10 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
</div>
|
|
|
</Accordion>
|
|
|
<Accordion
|
|
|
- title={<><span className="mr-2">④</span>ProxyのURLをGROWIに登録する</>}
|
|
|
+ title={<><span className="mr-2">④</span>{t('admin:slack_integration.accordion.set_proxy_url_on_growi')}</>}
|
|
|
>
|
|
|
<div className="p-4">
|
|
|
- <p className="text-center">Slack上に通知された<b>Proxy URL</b>を入力し、更新してください。</p>
|
|
|
+ <p className="text-center">{t('admin:slack_integration.accordion.enter_proxy_url_and_update')}</p>
|
|
|
<div className="form-group row my-4">
|
|
|
<label className="text-left text-md-right col-md-3 col-form-label">Proxy URL</label>
|
|
|
<div className="col-md-6">
|
|
|
@@ -140,7 +145,7 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
</div>
|
|
|
</Accordion>
|
|
|
<Accordion
|
|
|
- title={<><span className="mr-2">⑤</span>連携状況のテストをする</>}
|
|
|
+ title={<><span className="mr-2">⑤</span>{t('admin:slack_integration.accordion.test_connection')}</>}
|
|
|
>
|
|
|
{/* TODO: Responsive */}
|
|
|
<p className="text-center m-4">{t('admin:slack_integration.accordion.test_connection_by_pressing_button')}</p>
|