disable avatar DB log cleanup UI and functionality

This commit is contained in:
pa
2026-03-17 21:53:07 +09:00
parent ded9ce6da2
commit 1a16a2116a
5 changed files with 168 additions and 152 deletions

View File

@@ -165,6 +165,7 @@
<span>{{ t('view.settings.advanced.advanced.sqlite_table_size.event') }} <span v-text="sqliteTableSizes.event"></span></span>
</div>
<!-- [Disabled] Avatar DB log cleanup UI - auto cleanup select & purge button & dialog
<SettingsItem
:label="t('view.settings.advanced.advanced.database_cleanup.auto_cleanup')"
:description="t('view.settings.advanced.advanced.database_cleanup.auto_cleanup_description')">
@@ -190,8 +191,10 @@
{{ t('view.settings.advanced.advanced.database_cleanup.purge') }}
</Button>
</SettingsItem>
-->
</SettingsGroup>
<!-- [Disabled] Avatar DB log cleanup - purge dialog
<Dialog :open="isPurgeDialogVisible" @update:open="(open) => { if (!open) isPurgeDialogVisible = false; }">
<DialogContent class="x-dialog sm:max-w-md">
<DialogHeader>
@@ -236,6 +239,7 @@
</DialogFooter>
</DialogContent>
</Dialog>
-->
<SettingsGroup :title="t('view.settings.advanced_groups.diagnostics.header')">
<SettingsGroup :title="t('view.profile.game_info.header')">
@@ -294,13 +298,16 @@
</template>
<script setup>
import { RefreshCcw, Trash2, TriangleAlert } from 'lucide-vue-next';
import { RefreshCcw, Trash2 } from 'lucide-vue-next';
// [Disabled] Avatar DB log cleanup - unused imports
// import { TriangleAlert } from 'lucide-vue-next';
import { computed, reactive, ref } from 'vue';
import { Button } from '@/components/ui/button';
import { Switch } from '@/components/ui/switch';
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
import { Alert, AlertDescription } from '@/components/ui/alert';
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';
// [Disabled] Avatar DB log cleanup - unused imports
// import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
// import { Alert, AlertDescription } from '@/components/ui/alert';
// import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';
@@ -372,8 +379,9 @@
showConfirmationOnSwitchAvatar,
gameLogDisabled,
sqliteTableSizes,
avatarAutoCleanup,
purgeInProgress,
// [Disabled] Avatar DB log cleanup
// avatarAutoCleanup,
// purgeInProgress,
sentryErrorReporting
} = storeToRefs(advancedSettingsStore);
@@ -387,16 +395,18 @@
setEnableAppLauncherRunProcessOnce,
setShowConfirmationOnSwitchAvatar,
getSqliteTableSizes,
setAvatarAutoCleanup,
purgeAvatarFeedData,
// [Disabled] Avatar DB log cleanup
// setAvatarAutoCleanup,
// purgeAvatarFeedData,
promptAutoClearVRCXCacheFrequency,
setSentryErrorReporting
} = advancedSettingsStore;
const configTreeData = ref({});
const visits = ref(0);
const selectedPurgePeriod = ref('180');
const isPurgeDialogVisible = ref(false);
// [Disabled] Avatar DB log cleanup
// const selectedPurgePeriod = ref('180');
// const isPurgeDialogVisible = ref(false);
const cacheSize = reactive({
cachedUsers: 0,
@@ -409,14 +419,15 @@
const isLinux = computed(() => LINUX);
function handlePurge() {
const days =
selectedPurgePeriod.value === 'all'
? null
: parseInt(selectedPurgePeriod.value, 10);
isPurgeDialogVisible.value = false;
purgeAvatarFeedData(days);
}
// [Disabled] Avatar DB log cleanup - handlePurge
// function handlePurge() {
// const days =
// selectedPurgePeriod.value === 'all'
// ? null
// : parseInt(selectedPurgePeriod.value, 10);
// isPurgeDialogVisible.value = false;
// purgeAvatarFeedData(days);
// }
/**
*