|
|
@@ -12,6 +12,41 @@ function AwsSetting(props) {
|
|
|
|
|
|
return (
|
|
|
<React.Fragment>
|
|
|
+
|
|
|
+ <div className="row form-group my-3">
|
|
|
+ <label
|
|
|
+ className="text-left text-md-right col-md-3 col-form-label"
|
|
|
+ >
|
|
|
+ 内部のファイル
|
|
|
+ </label>
|
|
|
+ <div className="col-md-6 py-1">
|
|
|
+ <div className="custom-control custom-checkbox custom-checkbox-info">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ id="cbS3IsEnabledInternalStreamSystem"
|
|
|
+ className="custom-control-input"
|
|
|
+ name="changeS3IsEnabledInternalStreamSystem"
|
|
|
+ checked={adminAppContainer.state.s3IsEnabledInternalStreamSystem}
|
|
|
+ onChange={(e) => {
|
|
|
+ adminAppContainer.changeS3IsEnabledInternalStreamSystem(e.target.checked);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <label
|
|
|
+ className="custom-control-label"
|
|
|
+ htmlFor="cbS3IsEnabledInternalStreamSystem"
|
|
|
+ >
|
|
|
+ {/* {t('admin:app_setting.enable_files_except_image')} */}
|
|
|
+ hoge
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <p className="form-text text-muted">
|
|
|
+ explane
|
|
|
+ {/* {t('admin:app_setting.attach_enable')} */}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div className="row form-group">
|
|
|
<label className="text-left text-md-right col-md-3 col-form-label">
|
|
|
{t('admin:app_setting.region')}
|
|
|
@@ -22,8 +57,8 @@ function AwsSetting(props) {
|
|
|
placeholder={`${t('eg')} ap-northeast-1`}
|
|
|
defaultValue={adminAppContainer.state.s3Region || ''}
|
|
|
onChange={(e) => {
|
|
|
- adminAppContainer.changeS3Region(e.target.value);
|
|
|
- }}
|
|
|
+ adminAppContainer.changeS3Region(e.target.value);
|
|
|
+ }}
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -39,8 +74,8 @@ function AwsSetting(props) {
|
|
|
placeholder={`${t('eg')} http://localhost:9000`}
|
|
|
defaultValue={adminAppContainer.state.s3CustomEndpoint || ''}
|
|
|
onChange={(e) => {
|
|
|
- adminAppContainer.changeS3CustomEndpoint(e.target.value);
|
|
|
- }}
|
|
|
+ adminAppContainer.changeS3CustomEndpoint(e.target.value);
|
|
|
+ }}
|
|
|
/>
|
|
|
<p className="form-text text-muted">{t('admin:app_setting.custom_endpoint_change')}</p>
|
|
|
</div>
|
|
|
@@ -57,15 +92,15 @@ function AwsSetting(props) {
|
|
|
placeholder={`${t('eg')} crowi`}
|
|
|
defaultValue={adminAppContainer.state.s3Bucket || ''}
|
|
|
onChange={(e) => {
|
|
|
- adminAppContainer.changeS3Bucket(e.target.value);
|
|
|
- }}
|
|
|
+ adminAppContainer.changeS3Bucket(e.target.value);
|
|
|
+ }}
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div className="row form-group">
|
|
|
<label className="text-left text-md-right col-md-3 col-form-label">
|
|
|
- Access key ID
|
|
|
+ Access key ID
|
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
|
<input
|
|
|
@@ -73,15 +108,15 @@ function AwsSetting(props) {
|
|
|
type="text"
|
|
|
defaultValue={adminAppContainer.state.s3AccessKeyId || ''}
|
|
|
onChange={(e) => {
|
|
|
- adminAppContainer.changeS3AccessKeyId(e.target.value);
|
|
|
- }}
|
|
|
+ adminAppContainer.changeS3AccessKeyId(e.target.value);
|
|
|
+ }}
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div className="row form-group">
|
|
|
<label className="text-left text-md-right col-md-3 col-form-label">
|
|
|
- Secret access key
|
|
|
+ Secret access key
|
|
|
</label>
|
|
|
<div className="col-md-6">
|
|
|
<input
|
|
|
@@ -89,11 +124,13 @@ function AwsSetting(props) {
|
|
|
type="text"
|
|
|
defaultValue={adminAppContainer.state.s3SecretAccessKey || ''}
|
|
|
onChange={(e) => {
|
|
|
- adminAppContainer.changeS3SecretAccessKey(e.target.value);
|
|
|
- }}
|
|
|
+ adminAppContainer.changeS3SecretAccessKey(e.target.value);
|
|
|
+ }}
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
</React.Fragment>
|
|
|
);
|
|
|
}
|