✨ 增加回收站保留期设置
This commit is contained in:
1 parent
53bcaeae8a
commit
d7e8acfe46
5 files changed
+22
No files matched your search
@@ -210,6 +210,8 @@ export default {
|
||||
count: 'Download Count'
|
||||
},
|
||||
maxSaveTime: 'Max Retention Period',
|
||||
trashRetentionDays: 'Recycle Bin Default Retention',
|
||||
trashRetentionDaysNote: 'Changing this recalculates cleanup time for dated items currently in the recycle bin. Permanent and already purged items are not affected.',
|
||||
timeUnits: {
|
||||
second: 'sec',
|
||||
minute: 'min',
|
||||
@@ -757,6 +759,8 @@ export default {
|
||||
count: 'Download Count'
|
||||
},
|
||||
maxSaveTime: 'Max Retention Period',
|
||||
trashRetentionDays: 'Recycle Bin Default Retention',
|
||||
trashRetentionDaysNote: 'Changing this recalculates cleanup time for dated items currently in the recycle bin. Permanent and already purged items are not affected.',
|
||||
timeUnits: {
|
||||
second: 'sec',
|
||||
minute: 'min',
|
||||
@@ -839,6 +843,8 @@ export default {
|
||||
count: 'Download Count'
|
||||
},
|
||||
maxSaveTime: 'Max Retention Period',
|
||||
trashRetentionDays: 'Recycle Bin Default Retention',
|
||||
trashRetentionDaysNote: 'Changing this recalculates cleanup time for dated items currently in the recycle bin. Permanent and already purged items are not affected.',
|
||||
timeUnits: {
|
||||
second: 'sec',
|
||||
minute: 'min',
|
||||
|
||||
@@ -210,6 +210,8 @@ export default {
|
||||
count: '按下载次数'
|
||||
},
|
||||
maxSaveTime: '文件最长保存时间',
|
||||
trashRetentionDays: '回收站默认保留期',
|
||||
trashRetentionDaysNote: '修改后会重新计算当前回收站中有期限文件的清理时间;已设为永久或已清理的文件不受影响。',
|
||||
timeUnits: {
|
||||
second: '秒',
|
||||
minute: '分钟',
|
||||
@@ -926,6 +928,8 @@ export default {
|
||||
count: '按下载次数'
|
||||
},
|
||||
maxSaveTime: '文件最长保存时间',
|
||||
trashRetentionDays: '回收站默认保留期',
|
||||
trashRetentionDaysNote: '修改后会重新计算当前回收站中有期限文件的清理时间;已设为永久或已清理的文件不受影响。',
|
||||
timeUnits: {
|
||||
second: '秒',
|
||||
minute: '分钟',
|
||||
|
||||
@@ -43,6 +43,7 @@ export interface ConfigState {
|
||||
storage_path: string
|
||||
uploadMinute: number
|
||||
max_save_seconds: number
|
||||
trashRetentionDays: number
|
||||
opacity: number
|
||||
enableChunk: number
|
||||
s3_access_key_id: string
|
||||
|
||||
@@ -41,6 +41,7 @@ export const DEFAULT_CONFIG_STATE: ConfigState = {
|
||||
storage_path: '',
|
||||
uploadMinute: 1,
|
||||
max_save_seconds: DEFAULT_PUBLIC_CONFIG.max_save_seconds,
|
||||
trashRetentionDays: 30,
|
||||
opacity: 0.9,
|
||||
enableChunk: DEFAULT_PUBLIC_CONFIG.enableChunk,
|
||||
s3_access_key_id: '',
|
||||
|
||||
@@ -748,6 +748,16 @@ onMounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<SettingNumberInput
|
||||
v-model="config.trashRetentionDays"
|
||||
:label="t('manage.settings.trashRetentionDays')"
|
||||
:suffix="t('common.day')"
|
||||
/>
|
||||
|
||||
<div class="col-span-full text-xs" :class="isDarkMode ? 'text-gray-400' : 'text-gray-600'">
|
||||
{{ t('manage.settings.trashRetentionDaysNote') }}
|
||||
</div>
|
||||
|
||||
<SettingSwitch
|
||||
:label="t('manage.settings.guestUpload')"
|
||||
:model-value="config.openUpload"
|
||||
|
||||
Reference in new issue
Block a user