mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add desc for storage form (#1112)
This commit is contained in:
@@ -158,30 +158,37 @@ const CreateStorageServiceDialog: React.FC<Props> = (props: Props) => {
|
|||||||
<div className="dialog-content-container">
|
<div className="dialog-content-container">
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
Name
|
Name
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(Unique identifier)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="Name" value={storageCreate.name} onChange={handleNameChange} fullWidth />
|
<Input className="mb-2" placeholder="Name" value={storageCreate.name} onChange={handleNameChange} fullWidth />
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
EndPoint
|
EndPoint
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(S3-compatible server URL)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="EndPoint" value={storageCreate.endPoint} onChange={handleEndPointChange} fullWidth />
|
<Input className="mb-2" placeholder="EndPoint" value={storageCreate.endPoint} onChange={handleEndPointChange} fullWidth />
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
Region
|
Region
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(Region name)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="Region" value={storageCreate.region} onChange={handleRegionChange} fullWidth />
|
<Input className="mb-2" placeholder="Region" value={storageCreate.region} onChange={handleRegionChange} fullWidth />
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
AccessKey
|
AccessKey
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(Access Key / Access ID)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="AccessKey" value={storageCreate.accessKey} onChange={handleAccessKeyChange} fullWidth />
|
<Input className="mb-2" placeholder="AccessKey" value={storageCreate.accessKey} onChange={handleAccessKeyChange} fullWidth />
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
SecretKey
|
SecretKey
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(Secret Key / Secret Access Key)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="SecretKey" value={storageCreate.secretKey} onChange={handleSecretKeyChange} fullWidth />
|
<Input className="mb-2" placeholder="SecretKey" value={storageCreate.secretKey} onChange={handleSecretKeyChange} fullWidth />
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
Bucket
|
Bucket
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(Bucket name)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="Bucket" value={storageCreate.bucket} onChange={handleBucketChange} fullWidth />
|
<Input className="mb-2" placeholder="Bucket" value={storageCreate.bucket} onChange={handleBucketChange} fullWidth />
|
||||||
<Typography className="!mb-1" level="body2">
|
<Typography className="!mb-1" level="body2">
|
||||||
URLPrefix
|
URLPrefix
|
||||||
|
<span className="text-sm text-gray-400 ml-1">(Custom URL prefix; Optional)</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Input className="mb-2" placeholder="URLPrefix" value={storageCreate.urlPrefix} onChange={handleURLPrefixChange} fullWidth />
|
<Input className="mb-2" placeholder="URLPrefix" value={storageCreate.urlPrefix} onChange={handleURLPrefixChange} fullWidth />
|
||||||
<div className="mt-2 w-full flex flex-row justify-end items-center space-x-1">
|
<div className="mt-2 w-full flex flex-row justify-end items-center space-x-1">
|
||||||
|
Reference in New Issue
Block a user