|
|
@@ -50,117 +50,86 @@ class AwsSetting extends React.Component {
|
|
|
</span>
|
|
|
</p>
|
|
|
|
|
|
- <div className="row">
|
|
|
- <div className="col-md-12">
|
|
|
- <div className="form-group">
|
|
|
- <label htmlFor="settingForm[app:region]" className="col-xs-3 control-label">
|
|
|
- {t('app_setting.region')}
|
|
|
- </label>
|
|
|
- <div className="col-xs-6">
|
|
|
- <input
|
|
|
- className="form-control"
|
|
|
- id="settingForm[app:region]"
|
|
|
- type="text"
|
|
|
- name="settingForm[aws:region]"
|
|
|
- placeholder={`${t('eg')} ap-northeast-1`}
|
|
|
- defaultValue={adminAppContainer.state.region}
|
|
|
- onChange={(e) => {
|
|
|
- adminAppContainer.changeRegion(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div className="row mb-5">
|
|
|
+ <label className="col-xs-3 control-label">
|
|
|
+ {t('app_setting.region')}
|
|
|
+ </label>
|
|
|
+ <div className="col-xs-6">
|
|
|
+ <input
|
|
|
+ className="form-control"
|
|
|
+ placeholder={`${t('eg')} ap-northeast-1`}
|
|
|
+ defaultValue={adminAppContainer.state.region}
|
|
|
+ onChange={(e) => {
|
|
|
+ adminAppContainer.changeRegion(e.target.value);
|
|
|
+ }}
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div className="row">
|
|
|
- <div className="col-md-12">
|
|
|
- <div className="form-group">
|
|
|
- <label htmlFor="settingForm[aws:customEndpoint]" className="col-xs-3 control-label">
|
|
|
- {t('app_setting.custom endpoint')}
|
|
|
- </label>
|
|
|
- <div className="col-xs-6">
|
|
|
- <input
|
|
|
- className="form-control"
|
|
|
- id="settingForm[aws:customEndpoint]"
|
|
|
- type="text"
|
|
|
- name="settingForm[aws:customEndpoint]"
|
|
|
- placeholder={`${t('eg')} http://localhost:9000`}
|
|
|
- defaultValue={adminAppContainer.state.customEndpoint}
|
|
|
- onChange={(e) => {
|
|
|
- adminAppContainer.changeCustomEndpoint(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- <p className="help-block">{t('app_setting.custom_endpoint_change')}</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div className="row mb-5">
|
|
|
+ <label className="col-xs-3 control-label">
|
|
|
+ {t('app_setting.custom endpoint')}
|
|
|
+ </label>
|
|
|
+ <div className="col-xs-6">
|
|
|
+ <input
|
|
|
+ className="form-control"
|
|
|
+ type="text"
|
|
|
+ placeholder={`${t('eg')} http://localhost:9000`}
|
|
|
+ defaultValue={adminAppContainer.state.customEndpoint}
|
|
|
+ onChange={(e) => {
|
|
|
+ adminAppContainer.changeCustomEndpoint(e.target.value);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <p className="help-block">{t('app_setting.custom_endpoint_change')}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div className="row">
|
|
|
- <div className="col-md-12">
|
|
|
- <div className="form-group">
|
|
|
- <label htmlFor="settingForm[aws:bucket]" className="col-xs-3 control-label">
|
|
|
- {t('app_setting.bucket name')}
|
|
|
- </label>
|
|
|
- <div className="col-xs-6">
|
|
|
- <input
|
|
|
- className="form-control"
|
|
|
- id="settingForm[aws:bucket]"
|
|
|
- type="text"
|
|
|
- name="settingForm[aws:bucket]"
|
|
|
- placeholder={`${t('eg')} crowi`}
|
|
|
- defaultValue={adminAppContainer.state.bucket}
|
|
|
- onChange={(e) => {
|
|
|
- adminAppContainer.changeBucket(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div className="row mb-5">
|
|
|
+ <label className="col-xs-3 control-label">
|
|
|
+ {t('app_setting.bucket name')}
|
|
|
+ </label>
|
|
|
+ <div className="col-xs-6">
|
|
|
+ <input
|
|
|
+ className="form-control"
|
|
|
+ type="text"
|
|
|
+ placeholder={`${t('eg')} crowi`}
|
|
|
+ defaultValue={adminAppContainer.state.bucket}
|
|
|
+ onChange={(e) => {
|
|
|
+ adminAppContainer.changeBucket(e.target.value);
|
|
|
+ }}
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div className="row">
|
|
|
- <div className="col-md-12">
|
|
|
- <div className="form-group">
|
|
|
- <label htmlFor="settingForm[aws:accessKeyId]" className="col-xs-3 control-label">
|
|
|
- Access Key ID
|
|
|
- </label>
|
|
|
- <div className="col-xs-6">
|
|
|
- <input
|
|
|
- className="form-control"
|
|
|
- id="settingForm[aws:accessKeyId]"
|
|
|
- type="text"
|
|
|
- name="settingForm[aws:accessKeyId]"
|
|
|
- defaultValue={adminAppContainer.state.accessKeyId}
|
|
|
- onChange={(e) => {
|
|
|
- adminAppContainer.changeAccessKeyId(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div className="row mb-5">
|
|
|
+ <label className="col-xs-3 control-label">
|
|
|
+ Access Key ID
|
|
|
+ </label>
|
|
|
+ <div className="col-xs-6">
|
|
|
+ <input
|
|
|
+ className="form-control"
|
|
|
+ type="text"
|
|
|
+ defaultValue={adminAppContainer.state.accessKeyId}
|
|
|
+ onChange={(e) => {
|
|
|
+ adminAppContainer.changeAccessKeyId(e.target.value);
|
|
|
+ }}
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div className="row">
|
|
|
- <div className="col-md-12">
|
|
|
- <div className="form-group">
|
|
|
- <label htmlFor="settingForm[aws:secretAccessKey]" className="col-xs-3 control-label">
|
|
|
- Secret Access Key
|
|
|
- </label>
|
|
|
- <div className="col-xs-6">
|
|
|
- <input
|
|
|
- className="form-control"
|
|
|
- id="settingForm[aws:secretAccessKey]"
|
|
|
- type="text"
|
|
|
- name="settingForm[aws:secretAccessKey]"
|
|
|
- defaultValue={adminAppContainer.state.secretKey}
|
|
|
- onChange={(e) => {
|
|
|
- adminAppContainer.changeSecretKey(e.target.value);
|
|
|
- }}
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div className="row mb-5">
|
|
|
+ <label className="col-xs-3 control-label">
|
|
|
+ Secret Access Key
|
|
|
+ </label>
|
|
|
+ <div className="col-xs-6">
|
|
|
+ <input
|
|
|
+ className="form-control"
|
|
|
+ type="text"
|
|
|
+ defaultValue={adminAppContainer.state.secretKey}
|
|
|
+ onChange={(e) => {
|
|
|
+ adminAppContainer.changeSecretKey(e.target.value);
|
|
|
+ }}
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
|