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
parent 3925176b49
commit 48ce8c3fa1
7 changed files with 8 additions and 10 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

4
dist/files-init.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long