Customize.jsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import React, { Fragment } from 'react';
  2. import PropTypes from 'prop-types';
  3. import { withTranslation } from 'react-i18next';
  4. import AppContainer from '../../../services/AppContainer';
  5. import { createSubscribedElement } from '../../UnstatedUtils';
  6. class Customize extends React.Component {
  7. render() {
  8. const { t } = this.props;
  9. return (
  10. <Fragment>
  11. <div className="row my-3">
  12. <h2>{t('customize_page.Layout')}</h2>
  13. {/* レイアウトコンポーネントを設置する */}
  14. </div>
  15. <legend>{t('customize_page.Theme')}</legend>
  16. {/* テーマフォームの react componentをここで呼ぶ(GW-245) */}
  17. <legend>{t('customize_page.Behavior')}</legend>
  18. {/* 挙動フォームの react componentをここで呼ぶ(GW-246) */}
  19. <legend>{t('customize_page.Function')}</legend>
  20. {/* 機能フォームの react componentをここで呼ぶ(GW-276) */}
  21. <legend>{t('customize_page.Code Highlight')}</legend>
  22. {/* コードハイライトフォームの react componentをここで呼ぶ(GW-277) */}
  23. <legend>{t('customize_page.custom_title')}</legend>
  24. {/* カスタムタイトルフォームの react componentをここで呼ぶ(GW-278) */}
  25. <legend>{t('customize_page.Custom CSS')}</legend>
  26. {/* カスタムCSSフォームの react componentをここで呼ぶ(GW-279) */}
  27. <legend>{t('customize_page.Custom script')}</legend>
  28. {/* カスタムスクリプトフォームの react componentをここで呼ぶ(GW-280) */}
  29. </Fragment>
  30. );
  31. }
  32. }
  33. const CustomizeWrapper = (props) => {
  34. return createSubscribedElement(Customize, props, [AppContainer]);
  35. };
  36. Customize.propTypes = {
  37. t: PropTypes.func.isRequired, // i18next
  38. appContainer: PropTypes.instanceOf(AppContainer).isRequired,
  39. };
  40. export default withTranslation()(CustomizeWrapper);