mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
refactor(control): rename file_display.db to database
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
import { run_on_all_selected_displays } from '$lib/ts/stores/displays';
|
||||
import { get_thumbnail_url } from '$lib/ts/stores/thumbnails';
|
||||
import { liveQuery, type Observable } from 'dexie';
|
||||
import { db } from '$lib/ts/files_display.db';
|
||||
import { db } from '$lib/ts/database';
|
||||
|
||||
let { file, not_interactable = false }: { file: Inode; not_interactable?: boolean } = $props();
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { db } from './files_display.db';
|
||||
import { db } from './database';
|
||||
import { get_display_by_id } from './stores/displays';
|
||||
import {
|
||||
get_current_folder_elements,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { screenshot_loop } from './stores/displays';
|
||||
import { ping_ip } from './api_handler';
|
||||
import type { Display } from './types';
|
||||
import { update_folder_elements_recursively } from './stores/files';
|
||||
import { db } from './files_display.db';
|
||||
import { db } from './database';
|
||||
|
||||
const update_display_status_interval_seconds = 20;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { is_selected, select, selected_display_ids } from './select';
|
||||
import { get_uuid, image_content_hash } from '../utils';
|
||||
import { get_screenshot } from '../api_handler';
|
||||
import { delete_and_deselect_unique_files_from_display } from './files';
|
||||
import { db } from '../files_display.db';
|
||||
import { db } from '../database';
|
||||
|
||||
export async function is_display_name_taken(name: string): Promise<boolean> {
|
||||
const exists = await db.displays.where('name').equals(name).first();
|
||||
|
||||
@@ -10,7 +10,7 @@ import { get_display_by_id } from './displays';
|
||||
import { is_selected, select, selected_display_ids, selected_file_ids } from './select';
|
||||
import { create_folders, get_file_data, get_file_tree_data } from '../api_handler';
|
||||
import { deactivate_old_thumbnail_urls, generate_thumbnail } from './thumbnails';
|
||||
import { db } from '../files_display.db';
|
||||
import { db } from '../database';
|
||||
|
||||
export const current_file_path: Writable<string> = writable<string>('/');
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { get, writable, type Writable } from 'svelte/store';
|
||||
import { get_thumbnail_blob } from '../api_handler';
|
||||
import { type Inode } from '../types';
|
||||
import { db } from '../files_display.db';
|
||||
import { db } from '../database';
|
||||
import { get_file_type } from '../utils';
|
||||
import { get_file_by_id } from './files';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user