refactor(recent-files): remove user config from frontend files

Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
This commit is contained in:
Cristian Scheid 2026-03-24 15:38:53 -03:00 committed by backportbot[bot]
parent 924c1b0224
commit 7e7af209e6
3 changed files with 2 additions and 4 deletions

View file

@ -41,7 +41,7 @@ export async function getContents(path = '/', options: { signal: AbortSignal }):
const contentsResponse = await client.search('/', {
signal: options.signal,
details: true,
data: getRecentSearch(lastTwoWeeksTimestamp, Number(store.userConfig.recent_files_limit)),
data: getRecentSearch(lastTwoWeeksTimestamp),
}) as ResponseDataDetailed<SearchResult>
const contents = contentsResponse.data.results

View file

@ -23,7 +23,6 @@ const initialUserConfig = loadState<UserConfig>('files', 'config', {
show_mime_column: true,
sort_favorites_first: true,
sort_folders_first: true,
recent_files_limit: 100,
show_dialog_deletion: false,
show_dialog_file_extension: true,

View file

@ -51,7 +51,7 @@ export interface PathOptions {
// User config store
export interface UserConfig {
[key: string]: boolean | string | number | undefined
[key: string]: boolean | string | undefined
crop_image_previews: boolean
default_view: 'files' | 'personal'
@ -59,7 +59,6 @@ export interface UserConfig {
grid_view: boolean
sort_favorites_first: boolean
sort_folders_first: boolean
recent_files_limit: number
show_files_extensions: boolean
show_hidden: boolean