chore(frontend): add caption for maxFileSize
This commit is contained in:
		
							parent
							
								
									fe38115883
								
							
						
					
					
						commit
						0b642cf446
					
				|  | @ -7869,6 +7869,10 @@ export interface Locale extends ILocale { | |||
|              * アップロード可能な最大ファイルサイズ | ||||
|              */ | ||||
|             "maxFileSize": string; | ||||
|             /** | ||||
|              * リバースプロキシやCDNなど、前段で別の設定値が存在する場合があります。 | ||||
|              */ | ||||
|             "maxFileSize_caption": string; | ||||
|             /** | ||||
|              * ファイルにNSFWを常に付与 | ||||
|              */ | ||||
|  |  | |||
|  | @ -2040,6 +2040,7 @@ _role: | |||
|     canManageAvatarDecorations: "アバターデコレーションの管理" | ||||
|     driveCapacity: "ドライブ容量" | ||||
|     maxFileSize: "アップロード可能な最大ファイルサイズ" | ||||
|     maxFileSize_caption: "リバースプロキシやCDNなど、前段で別の設定値が存在する場合があります。" | ||||
|     alwaysMarkNsfw: "ファイルにNSFWを常に付与" | ||||
|     canUpdateBioMedia: "アイコンとバナーの更新を許可" | ||||
|     pinMax: "ノートのピン留めの最大数" | ||||
|  |  | |||
|  | @ -420,6 +420,9 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</MkSwitch> | ||||
| 					<MkInput v-model="role.policies.maxFileSizeMb.value" :disabled="role.policies.maxFileSizeMb.useDefault" type="number" :readonly="readonly"> | ||||
| 						<template #suffix>MB</template> | ||||
| 						<template #caption> | ||||
| 							<div><i class="ti ti-alert-triangle" style="color: var(--MI_THEME-warn);"></i> {{ i18n.ts._role._options.maxFileSize_caption }}</div> | ||||
| 						</template> | ||||
| 					</MkInput> | ||||
| 					<MkRange v-model="role.policies.maxFileSizeMb.priority" :min="0" :max="2" :step="1" easing :textConverter="(v) => v === 0 ? i18n.ts._role._priority.low : v === 1 ? i18n.ts._role._priority.middle : v === 2 ? i18n.ts._role._priority.high : ''"> | ||||
| 						<template #label>{{ i18n.ts._role.priority }}</template> | ||||
|  |  | |||
|  | @ -155,6 +155,9 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 						<template #suffix>{{ policies.maxFileSizeMb }}MB</template> | ||||
| 						<MkInput v-model="policies.maxFileSizeMb" type="number"> | ||||
| 							<template #suffix>MB</template> | ||||
| 							<template #caption> | ||||
| 								<div><i class="ti ti-alert-triangle" style="color: var(--MI_THEME-warn);"></i> {{ i18n.ts._role._options.maxFileSize_caption }}</div> | ||||
| 							</template> | ||||
| 						</MkInput> | ||||
| 					</MkFolder> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue