change table limit text

This commit is contained in:
pa
2026-03-02 14:21:47 +09:00
parent 6893d578da
commit 0e809a0a23
19 changed files with 154 additions and 170 deletions

View File

@@ -2,13 +2,13 @@
<Dialog v-model:open="tableLimitsDialog.visible">
<DialogContent class="x-dialog sm:max-w-110">
<DialogHeader>
<DialogTitle>{{ t('prompt.change_table_size.header') }}</DialogTitle>
<DialogDescription>{{ t('prompt.change_table_size.description') }}</DialogDescription>
<DialogTitle>{{ t('prompt.table_entries_settings.header') }}</DialogTitle>
<DialogDescription>{{ t('prompt.table_entries_settings.description') }}</DialogDescription>
</DialogHeader>
<FieldGroup class="mt-3 gap-3">
<Field>
<FieldLabel>{{ t('prompt.change_table_size.table_max_size') }}</FieldLabel>
<FieldLabel>{{ t('prompt.table_entries_settings.table_max_entries') }}</FieldLabel>
<FieldContent>
<InputGroupField
v-model="tableLimitsDialog.maxTableSize"
@@ -21,7 +21,7 @@
</p>
</Field>
<Field>
<FieldLabel>{{ t('prompt.change_table_size.search_limit') }}</FieldLabel>
<FieldLabel>{{ t('prompt.table_entries_settings.search_limit_returns') }}</FieldLabel>
<FieldContent>
<InputGroupField
v-model="tableLimitsDialog.searchLimit"
@@ -33,17 +33,17 @@
{{ searchLimitError || searchLimitHint }}
</p>
<p class="mt-1 text-xs text-muted-foreground">
{{ t('prompt.change_table_size.search_limit_warning') }}
{{ t('prompt.table_entries_settings.search_limit_returns_warning') }}
</p>
</Field>
</FieldGroup>
<DialogFooter>
<Button variant="secondary" class="mr-2" @click="closeTableLimitsDialog">
{{ t('prompt.change_table_size.cancel') }}
{{ t('prompt.table_entries_settings.cancel') }}
</Button>
<Button :disabled="isSaveDisabled" @click="saveTableLimitsDialog">
{{ t('prompt.change_table_size.save') }}
{{ t('prompt.table_entries_settings.save') }}
</Button>
</DialogFooter>
</DialogContent>
@@ -84,7 +84,7 @@
const maxTableSizeError = computed(() => {
const n = Number(tableLimitsDialog.value.maxTableSize);
if (!Number.isFinite(n) || n < TABLE_MAX_SIZE_MIN || n > TABLE_MAX_SIZE_MAX) {
return t('prompt.change_table_size.table_max_size_error', {
return t('prompt.table_entries_settings.table_max_entries_error', {
min: TABLE_MAX_SIZE_MIN,
max: TABLE_MAX_SIZE_MAX
});
@@ -93,7 +93,7 @@
});
const maxTableSizeHint = computed(() =>
t('prompt.change_table_size.table_max_size_error', {
t('prompt.table_entries_settings.table_max_entries_hint', {
min: TABLE_MAX_SIZE_MIN,
max: TABLE_MAX_SIZE_MAX
})
@@ -102,7 +102,7 @@
const searchLimitError = computed(() => {
const n = Number(tableLimitsDialog.value.searchLimit);
if (!Number.isFinite(n) || n < SEARCH_LIMIT_MIN || n > SEARCH_LIMIT_MAX) {
return t('prompt.change_table_size.search_limit_error', {
return t('prompt.table_entries_settings.search_limit_returns_error', {
min: SEARCH_LIMIT_MIN,
max: SEARCH_LIMIT_MAX
});
@@ -111,7 +111,7 @@
});
const searchLimitHint = computed(() =>
t('prompt.change_table_size.search_limit_error', {
t('prompt.table_entries_settings.search_limit_returns_hint', {
min: SEARCH_LIMIT_MIN,
max: SEARCH_LIMIT_MAX
})

View File

@@ -1486,13 +1486,6 @@
"success": "World YouTube preview changed"
}
},
"change_table_size": {
"header": "Max Table Size",
"description": "Limit amount of entries loaded from database to UI pages, larger table sizes will impact RAM usage and performance",
"table_max_size": "Magimální velikost tabulky",
"cancel": "Cancel",
"save": "Save"
},
"photon_lobby_timeout": {
"header": "User Timeout Threshold",
"description": "Enter amount of seconds (default: 3)",
@@ -1527,6 +1520,13 @@
"description": "Enter proxy server address and port",
"close": "Close",
"restart": "Restart"
},
"table_entries_settings": {
"header": "Max Table Size",
"description": "Limit amount of entries loaded from database to UI pages, larger table sizes will impact RAM usage and performance",
"table_max_entries": "Magimální velikost tabulky",
"cancel": "Cancel",
"save": "Save"
}
},
"message": {

View File

@@ -652,7 +652,6 @@
"sort_instance_users_by": "Sort Instance Users by",
"sort_instance_users_by_time": "Time",
"sort_instance_users_by_alphabet": "Alphabetical",
"table_max_size": "Table Max Size",
"table_page_sizes": "Table Page Sizes",
"table_page_sizes_error": "Page size must be a number between 1 and 1000",
"show_notification_icon_dot": "Show Tray Notification Dot",
@@ -661,7 +660,8 @@
"table_density": "Table Density",
"table_density_standard": "Standard",
"table_density_comfortable": "Comfortable",
"table_density_compact": "Compact"
"table_density_compact": "Compact",
"table_entries_settings": "Table Entries Settings"
},
"display": {
"header": "Display"
@@ -2182,17 +2182,6 @@
"success": "World YouTube preview changed"
}
},
"change_table_size": {
"header": "Max Table Size",
"description": "Limit amount of entries loaded from database to UI pages, larger table sizes will impact RAM usage and performance",
"table_max_size": "Table Max Size",
"table_max_size_error": "Enter a number between {min} and {max}.",
"search_limit": "Search limit",
"search_limit_error": "Enter a number between {min} and {max}.",
"search_limit_warning": "Too large values can freeze the app.",
"cancel": "Cancel",
"save": "Save"
},
"photon_lobby_timeout": {
"header": "User Timeout Threshold",
"description": "Enter amount of seconds (default: 3)",
@@ -2244,6 +2233,19 @@
"cancel": "Cancel",
"redeem": "Redeem",
"success": "Code redeemed successfully"
},
"table_entries_settings": {
"header": "Table Entries Settings",
"description": "Limit the number of entries the VRCX logs from the database to the UI. A large number may impact RAM usage and performance",
"table_max_entries": "Table Max Entries",
"table_max_entries_error": "Enter a number between {min} and {max}.",
"table_max_entries_hint": "Valid range: {min} {max}.",
"search_limit_returns": "Search Limit Returns",
"search_limit_returns_error": "Enter a number between {min} and {max}.",
"search_limit_returns_hint": "Valid range: {min} {max}.",
"search_limit_returns_warning": "Too large values can freeze the app.",
"cancel": "Cancel",
"save": "Save"
}
},
"message": {

View File

@@ -1606,13 +1606,6 @@
"success": "Vista previa de YouTube del mundo cambiada"
}
},
"change_table_size": {
"header": "Tamaño Máximo de Tabla",
"description": "Limitar la cantidad de entradas cargadas desde la base de datos a las páginas de la interfaz de usuario, tamaños de tabla más grandes impactarán el uso de RAM y el rendimiento",
"table_max_size": "Tamaño Máximo de Tabla",
"cancel": "Cancelar",
"save": "Guardar"
},
"photon_lobby_timeout": {
"header": "Umbral de Tiempo de Espera de Usuario",
"description": "Introduce la cantidad de segundos (predeterminado: 3)",
@@ -1647,6 +1640,13 @@
"description": "Introduce la dirección y el puerto del servidor proxy",
"close": "Cerrar",
"restart": "Reiniciar"
},
"table_entries_settings": {
"header": "Tamaño Máximo de Tabla",
"description": "Limitar la cantidad de entradas cargadas desde la base de datos a las páginas de la interfaz de usuario, tamaños de tabla más grandes impactarán el uso de RAM y el rendimiento",
"table_max_entries": "Tamaño Máximo de Tabla",
"cancel": "Cancelar",
"save": "Guardar"
}
},
"message": {

View File

@@ -1556,13 +1556,6 @@
"success": "L'aperçu YouTube a été changé"
}
},
"change_table_size": {
"header": "Taille maximale du tableau",
"description": "Limite le nombre d'entrées chargées depuis la base de données. Des tableaux plus grands auront un impact sur l'utilisation de la RAM et sur les performances.",
"table_max_size": "Taille maximale du tableau",
"cancel": "Annuler",
"save": "Sauvegarder"
},
"photon_lobby_timeout": {
"header": "Seuil d'attente de l'utilisateur",
"description": "Saisissez le nombre de secondes (par défaut : 3)",
@@ -1597,6 +1590,13 @@
"description": "Enter proxy server address and port",
"close": "Fermer",
"restart": "Restart"
},
"table_entries_settings": {
"header": "Taille maximale du tableau",
"description": "Limite le nombre d'entrées chargées depuis la base de données. Des tableaux plus grands auront un impact sur l'utilisation de la RAM et sur les performances.",
"table_max_entries": "Taille maximale du tableau",
"cancel": "Annuler",
"save": "Sauvegarder"
}
},
"message": {

View File

@@ -1399,13 +1399,6 @@
"success": "World YouTube preview changed"
}
},
"change_table_size": {
"header": "Max Table Size",
"description": "Limit amount of entries loaded from database to UI pages, larger table sizes will impact RAM usage and performance",
"table_max_size": "Maximális táblázatméret",
"cancel": "Mégse",
"save": "Save"
},
"photon_lobby_timeout": {
"header": "User Timeout Threshold",
"description": "Enter amount of seconds (default: 3)",
@@ -1440,6 +1433,13 @@
"description": "Enter proxy server address and port",
"close": "Close",
"restart": "Restart"
},
"table_entries_settings": {
"header": "Max Table Size",
"description": "Limit amount of entries loaded from database to UI pages, larger table sizes will impact RAM usage and performance",
"table_max_entries": "Maximális táblázatméret",
"cancel": "Mégse",
"save": "Save"
}
},
"table": {

View File

@@ -596,7 +596,6 @@
"sort_instance_users_by": "インスタンス人数を並び替え:",
"sort_instance_users_by_time": "時間順",
"sort_instance_users_by_alphabet": "アルファベット順",
"table_max_size": "最大読み込み件数",
"table_page_sizes": "1ページあたりの表示数",
"table_page_sizes_error": "1〜1000の数字を入力してください。",
"show_notification_icon_dot": "トレイ通知ドットを表示",
@@ -605,7 +604,8 @@
"table_density": "テーブルの行の高さ",
"table_density_standard": "標準",
"table_density_comfortable": "やや低め",
"table_density_compact": "低め"
"table_density_compact": "低め",
"table_entries_settings": "最大読み込み件数"
},
"timedate": {
"header": "時刻と日付",
@@ -2096,17 +2096,6 @@
"success": "ワールドのYouTubeプレビュー動画を変更しました。"
}
},
"change_table_size": {
"header": "テーブルの最大数",
"description": "データベースからUIページに読み込まれるエントリの量を制限します。テーブル数が多いとRAM使用量とパフォーマンスに影響を及ぼす可能性があります。",
"table_max_size": "読み込むエントリの最大数",
"table_max_size_error": "{min}〜{max}の数字を入力してください。",
"search_limit": "検索の上限",
"search_limit_error": "{min}〜{max}の数字を入力してください。",
"search_limit_warning": "値が大きすぎるとVRCXが重くなる可能性があります。",
"cancel": "キャンセル",
"save": "保存"
},
"photon_lobby_timeout": {
"header": "ユーザータイムアウトのしきい値",
"description": "タイムアウトまでの秒数を入力してください。 (デフォルト: 3)",
@@ -2153,6 +2142,19 @@
"cancel": "キャンセル",
"redeem": "引き換える",
"success": "コードを引き換えました。"
},
"table_entries_settings": {
"header": "テーブルの最大数",
"description": "データベースからUIページに読み込まれるエントリの量を制限します。テーブル数が多いとRAM使用量とパフォーマンスに影響を及ぼす可能性があります。",
"table_max_entries": "読み込むエントリの最大数",
"table_max_entries_error": "{min}〜{max}の数字を入力してください。",
"table_max_entries_hint": "{min}〜{max}の数字を入力してください。",
"search_limit_returns": "検索の上限",
"search_limit_returns_error": "{min}〜{max}の数字を入力してください。",
"search_limit_returns_hint": "{min}〜{max}の数字を入力してください。",
"search_limit_returns_warning": "値が大きすぎるとVRCXが重くなる可能性があります。",
"cancel": "キャンセル",
"save": "保存"
}
},
"message": {

View File

@@ -1410,13 +1410,6 @@
"success": "월드 유튜브 미리보기 변경됨"
}
},
"change_table_size": {
"header": "최대 테이블 크기",
"description": "테이블이 커질수록 메모리 사용량과 성능에 영향을 줍니다",
"table_max_size": "최대 테이블 크기",
"cancel": "취소",
"save": "저장"
},
"photon_lobby_timeout": {
"header": "유저 시간 제한",
"description": "초를 입력 (기본: 3)",
@@ -1451,6 +1444,13 @@
"description": "Enter proxy server address and port",
"close": "닫기",
"restart": "Restart"
},
"table_entries_settings": {
"header": "최대 테이블 크기",
"description": "테이블이 커질수록 메모리 사용량과 성능에 영향을 줍니다",
"table_max_entries": "최대 테이블 크기",
"cancel": "취소",
"save": "저장"
}
},
"table": {

View File

@@ -1905,13 +1905,6 @@
"success": "Zmieniono podgląd YouTube"
}
},
"change_table_size": {
"header": "Maksymalny rozmiar tabeli",
"description": "Ogranicz liczbę wpisów wyświetlanych z bazy danych, większe tabele wpłyną na zużycie RAM",
"table_max_size": "Maks. wyników w tabeli",
"cancel": "Anuluj",
"save": "Zapisz"
},
"photon_lobby_timeout": {
"header": "Próg limitu czasu użytkownika",
"description": "Wprowadź liczbę sekund (domyślnie: 3)",
@@ -1953,6 +1946,13 @@
"cancel": "Anuluj",
"redeem": "Użyj",
"success": "Pomyślnie wykorzystano kod"
},
"table_entries_settings": {
"header": "Maksymalny rozmiar tabeli",
"description": "Ogranicz liczbę wpisów wyświetlanych z bazy danych, większe tabele wpłyną na zużycie RAM",
"table_max_entries": "Maks. wyników w tabeli",
"cancel": "Anuluj",
"save": "Zapisz"
}
},
"message": {

View File

@@ -1399,13 +1399,6 @@
"success": "Pré-visualização do YouTube no Mundo foi alterada"
}
},
"change_table_size": {
"header": "Max Table Size",
"description": "Limitar quantidade de entradas carregadas do banco de dados para páginas da interface, tamanhos maiores de tabela terão impacto no uso e desempenho da memória RAM",
"table_max_size": "Tamanho Máximo da Tabela",
"cancel": "Cancelar",
"save": "Salvar"
},
"photon_lobby_timeout": {
"header": "Tempo limite do usuário",
"description": "Insira o valor em segundos (padrão: 3)",
@@ -1440,6 +1433,13 @@
"description": "Enter proxy server address and port",
"close": "Fechar",
"restart": "Reiniciar"
},
"table_entries_settings": {
"header": "Max Table Size",
"description": "Limitar quantidade de entradas carregadas do banco de dados para páginas da interface, tamanhos maiores de tabela terão impacto no uso e desempenho da memória RAM",
"table_max_entries": "Tamanho Máximo da Tabela",
"cancel": "Cancelar",
"save": "Salvar"
}
},
"table": {

View File

@@ -1593,13 +1593,6 @@
"success": "Предпросмотр мира YouTube изменен"
}
},
"change_table_size": {
"header": "Максимальный размер таблицы",
"description": "Ограничение количества записей, загружаемых из базы данных в пользовательский интерфейс. Большие размеры таблиц повлияют на использование и производительность ОЗУ",
"table_max_size": "Максимальный размер таблицы",
"cancel": "Отмена",
"save": "Сохранить"
},
"photon_lobby_timeout": {
"header": "Порог времени ожидания пользователя",
"description": "Введите количество секунд (по умолчанию: 3)",
@@ -1641,6 +1634,13 @@
"cancel": "Отмена",
"redeem": "Погасить",
"success": "Код покашен успешно"
},
"table_entries_settings": {
"header": "Максимальный размер таблицы",
"description": "Ограничение количества записей, загружаемых из базы данных в пользовательский интерфейс. Большие размеры таблиц повлияют на использование и производительность ОЗУ",
"table_max_entries": "Максимальный размер таблицы",
"cancel": "Отмена",
"save": "Сохранить"
}
},
"message": {

View File

@@ -1657,13 +1657,6 @@
"success": "เปลี่ยนวิดีโอพรีวิว YouTube ของโลกแล้ว"
}
},
"change_table_size": {
"header": "ขนาดตารางสูงสุด",
"description": "จำกัดจำนวนรายการที่โหลดจากฐานข้อมูลไปยังหน้า UI, ขนาดตารางที่ใหญ่ขึ้นจะส่งผลต่อการใช้ RAM และประสิทธิภาพ",
"table_max_size": "ขนาดตารางสูงสุด",
"cancel": "ยกเลิก",
"save": "บันทึก"
},
"photon_lobby_timeout": {
"header": "เกณฑ์การหมดเวลาของผู้ใช้",
"description": "ป้อนจำนวนวินาที (ค่าเริ่มต้น: 3)",
@@ -1698,6 +1691,13 @@
"description": "ป้อนที่อยู่และพอร์ตของพร็อกซีเซิร์ฟเวอร์",
"close": "ปิด",
"restart": "รีสตาร์ท"
},
"table_entries_settings": {
"header": "ขนาดตารางสูงสุด",
"description": "จำกัดจำนวนรายการที่โหลดจากฐานข้อมูลไปยังหน้า UI, ขนาดตารางที่ใหญ่ขึ้นจะส่งผลต่อการใช้ RAM และประสิทธิภาพ",
"table_max_entries": "ขนาดตารางสูงสุด",
"cancel": "ยกเลิก",
"save": "บันทึก"
}
},
"message": {

View File

@@ -1399,13 +1399,6 @@
"success": "YouTube Preview đã được thay đổi"
}
},
"change_table_size": {
"header": "Kích thước bảng tối đa",
"description": "Giới hạn số lượng thông tin trên bảng UI, bảng lớn sẽ sử dụng RAM và hiệu năng nhiều hơn",
"table_max_size": "Kích thước bảng tối đa",
"cancel": "Hủy",
"save": "Lưu"
},
"photon_lobby_timeout": {
"header": "User Timeout Threshold",
"description": "Nhập số giây (mặc định: 3)",
@@ -1440,6 +1433,13 @@
"description": "Enter proxy server address and port",
"close": "Đóng",
"restart": "Restart"
},
"table_entries_settings": {
"header": "Kích thước bảng tối đa",
"description": "Giới hạn số lượng thông tin trên bảng UI, bảng lớn sẽ sử dụng RAM và hiệu năng nhiều hơn",
"table_max_entries": "Kích thước bảng tối đa",
"cancel": "Hủy",
"save": "Lưu"
}
},
"table": {

View File

@@ -595,7 +595,6 @@
"sort_instance_users_by": "房间玩家排序规则",
"sort_instance_users_by_time": "时间",
"sort_instance_users_by_alphabet": "字母顺序",
"table_max_size": "条目读取设置",
"table_page_sizes": "自定义分页",
"table_page_sizes_error": "页面尺寸必须是 1 到 1000 之间的数字",
"show_notification_icon_dot": "显示托盘通知",
@@ -604,7 +603,8 @@
"table_density": "行高密度",
"table_density_standard": "标准",
"table_density_comfortable": "舒适",
"table_density_compact": "紧凑"
"table_density_compact": "紧凑",
"table_entries_settings": "条目读取设置"
},
"timedate": {
"header": "时间 / 日期",
@@ -2093,17 +2093,6 @@
"success": "世界的 YouTube 预览已成功更改"
}
},
"change_table_size": {
"header": "条目读取设置",
"description": "限制从数据库读取记录到界面接口的数量,较大的读取数量可能会影响内存用量和程序性能",
"table_max_size": "最大读取记录数",
"table_max_size_error": "请输入 {min} 到 {max} 之间的数字。",
"search_limit": "条目搜索限制",
"search_limit_error": "请输入 {min} 到 {max} 之间的数字。",
"search_limit_warning": "过大的数值可能会导致程序卡死,如无必要,不要修改这些值。",
"cancel": "取消",
"save": "保存"
},
"photon_lobby_timeout": {
"header": "玩家超时阀值",
"description": "输入秒数默认值3",
@@ -2150,6 +2139,19 @@
"cancel": "取消",
"redeem": "兑换",
"success": "兑换成功!"
},
"table_entries_settings": {
"header": "条目读取设置",
"description": "限制从数据库读取记录到界面接口的数量,较大的读取数量可能会影响内存用量和程序性能",
"table_max_entries": "最大读取记录数",
"table_max_entries_error": "请输入 {min} 到 {max} 之间的数字。",
"table_max_entries_hint": "请输入 {min} 到 {max} 之间的数字。",
"search_limit_returns": "条目搜索限制",
"search_limit_returns_error": "请输入 {min} 到 {max} 之间的数字。",
"search_limit_returns_hint": "请输入 {min} 到 {max} 之间的数字。",
"search_limit_returns_warning": "过大的数值可能会导致程序卡死,如无必要,不要修改这些值。",
"cancel": "取消",
"save": "保存"
}
},
"message": {

View File

@@ -591,7 +591,6 @@
"sort_instance_users_by": "房間用戶排序依據",
"sort_instance_users_by_time": "時間",
"sort_instance_users_by_alphabet": "字母順序",
"table_max_size": "表格最大尺寸",
"table_page_sizes": "表格每頁筆數",
"table_page_sizes_error": "每頁筆數必須是 1 到 1000 之間的數字",
"show_notification_icon_dot": "顯示系統匣通知紅點",
@@ -600,7 +599,8 @@
"table_density": "表格密度",
"table_density_standard": "標準",
"table_density_comfortable": "舒適",
"table_density_compact": "緊湊"
"table_density_compact": "緊湊",
"table_entries_settings": "表格最大尺寸"
},
"timedate": {
"header": "時間 / 日期",
@@ -2093,17 +2093,6 @@
"success": "世界 YouTube 預覽已變更"
}
},
"change_table_size": {
"header": "最大表格大小",
"description": "限制從資料庫讀取紀錄到介面的數量,較大的資料表大小可能會影響記憶體用量和效能",
"table_max_size": "表格大小",
"table_max_size_error": "請輸入介於 {min} 到 {max} 之間的數字",
"search_limit": "搜尋上限",
"search_limit_error": "請輸入介於 {min} 到 {max} 之間的數字",
"search_limit_warning": "數值過大可能會導致應用程式卡住",
"cancel": "取消",
"save": "儲存"
},
"photon_lobby_timeout": {
"header": "用戶超時閾值",
"description": "輸入秒數預設3",
@@ -2150,6 +2139,19 @@
"cancel": "取消",
"redeem": "兌換",
"success": "代碼兌換成功"
},
"table_entries_settings": {
"header": "最大表格大小",
"description": "限制從資料庫讀取紀錄到介面的數量,較大的資料表大小可能會影響記憶體用量和效能",
"table_max_entries": "表格大小",
"table_max_entries_error": "請輸入介於 {min} 到 {max} 之間的數字",
"table_max_entries_hint": "請輸入介於 {min} 到 {max} 之間的數字",
"search_limit_returns": "搜尋上限",
"search_limit_returns_error": "請輸入介於 {min} 到 {max} 之間的數字",
"search_limit_returns_hint": "請輸入介於 {min} 到 {max} 之間的數字",
"search_limit_returns_warning": "數值過大可能會導致應用程式卡住",
"cancel": "取消",
"save": "儲存"
}
},
"message": {

View File

@@ -34,11 +34,12 @@ const branches = {
const TABLE_MAX_SIZE_MIN = 100;
const TABLE_MAX_SIZE_MAX = 10000;
const SEARCH_LIMIT_MIN = 1000;
const SEARCH_LIMIT_MIN = 10000;
const SEARCH_LIMIT_MAX = 100000;
const DEFAULT_MAX_TABLE_SIZE = 500;
const DEFAULT_SEARCH_LIMIT = 10000;
const LEGACY_MAX_TABLE_SIZE_DEFAULT = 1000;
const DEFAULT_SEARCH_LIMIT = 50000;
export {
VRChatScreenshotResolutions,
@@ -49,6 +50,5 @@ export {
SEARCH_LIMIT_MIN,
SEARCH_LIMIT_MAX,
DEFAULT_MAX_TABLE_SIZE,
DEFAULT_SEARCH_LIMIT,
LEGACY_MAX_TABLE_SIZE_DEFAULT
DEFAULT_SEARCH_LIMIT
};

View File

@@ -902,7 +902,7 @@ export const useAppearanceSettingsStore = defineStore(
vrcxStore.maxTableSize ?? 500
);
tableLimitsDialog.value.searchLimit = Number(
vrcxStore.searchLimit ?? 5000
vrcxStore.searchLimit ?? 50000
);
tableLimitsDialog.value.visible = true;
}
@@ -931,9 +931,9 @@ export const useAppearanceSettingsStore = defineStore(
}
vrcxStore.maxTableSize = nextMaxTableSize;
await configRepository.setString(
'VRCX_maxTableSize',
vrcxStore.maxTableSize.toString()
await configRepository.setInt(
'VRCX_maxTableSize_v2',
vrcxStore.maxTableSize
);
database.setMaxTableSize(vrcxStore.maxTableSize);

View File

@@ -8,10 +8,8 @@ import Noty from 'noty';
import {
DEFAULT_MAX_TABLE_SIZE,
DEFAULT_SEARCH_LIMIT,
LEGACY_MAX_TABLE_SIZE_DEFAULT,
SEARCH_LIMIT_MAX,
SEARCH_LIMIT_MIN,
TABLE_MAX_SIZE_MAX
SEARCH_LIMIT_MIN
} from '../shared/constants';
import { avatarRequest, worldRequest } from '../api';
import {
@@ -156,31 +154,9 @@ export const useVrcxStore = defineStore('Vrcx', () => {
state.windowState = await VRCXStorage.Get('VRCX_WindowState');
maxTableSize.value = await configRepository.getInt(
'VRCX_maxTableSize',
LEGACY_MAX_TABLE_SIZE_DEFAULT
'VRCX_maxTableSize_v2',
DEFAULT_MAX_TABLE_SIZE
);
if (maxTableSize.value > TABLE_MAX_SIZE_MAX) {
maxTableSize.value = TABLE_MAX_SIZE_MAX;
}
const maxTableSizeMigrated = await configRepository.getBool(
'VRCX_maxTableSizeMigrated500',
false
);
// Migrate old default table size (1000) to new default (500)
if (
maxTableSize.value === LEGACY_MAX_TABLE_SIZE_DEFAULT &&
!maxTableSizeMigrated
) {
maxTableSize.value = DEFAULT_MAX_TABLE_SIZE;
await configRepository.setInt(
'VRCX_maxTableSize',
maxTableSize.value
);
await configRepository.setBool(
'VRCX_maxTableSizeMigrated500',
true
);
}
database.setMaxTableSize(maxTableSize.value);
searchLimit.value = await configRepository.getInt(

View File

@@ -197,7 +197,7 @@
<div class="options-container-item">
<Button size="sm" variant="outline" @click="showTableLimitsDialog">{{
t('view.settings.appearance.appearance.table_max_size')
t('view.settings.appearance.appearance.table_entries_settings')
}}</Button>
</div>
</div>