chore: formatting fixes
This commit is contained in:
parent
dd6af5e879
commit
119a46c339
167 changed files with 4507 additions and 3248 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { FormatterConfig } from '../formatter';
|
||||
import { FormatterConfig } from "../formatter";
|
||||
import {
|
||||
getSettingsSection,
|
||||
updateSettingsSection,
|
||||
getAppSettings,
|
||||
updateAppSettings,
|
||||
} from '../../db/app-settings';
|
||||
import type { AppSettingsData } from '../../db/schema';
|
||||
} from "../../db/app-settings";
|
||||
import type { AppSettingsData } from "../../db/schema";
|
||||
|
||||
/**
|
||||
* Database-backed settings service with typed configuration
|
||||
|
|
@ -26,7 +26,7 @@ export class SettingsService {
|
|||
* Get formatter configuration
|
||||
*/
|
||||
async getFormatterConfig(): Promise<FormatterConfig | null> {
|
||||
const formatterConfig = await getSettingsSection('formatterConfig');
|
||||
const formatterConfig = await getSettingsSection("formatterConfig");
|
||||
return formatterConfig || null;
|
||||
}
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ export class SettingsService {
|
|||
* Set formatter configuration
|
||||
*/
|
||||
async setFormatterConfig(config: FormatterConfig): Promise<void> {
|
||||
await updateSettingsSection('formatterConfig', config);
|
||||
await updateSettingsSection("formatterConfig", config);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -47,51 +47,55 @@ export class SettingsService {
|
|||
/**
|
||||
* Update multiple settings at once
|
||||
*/
|
||||
async updateSettings(settings: Partial<AppSettingsData>): Promise<AppSettingsData> {
|
||||
async updateSettings(
|
||||
settings: Partial<AppSettingsData>,
|
||||
): Promise<AppSettingsData> {
|
||||
return await updateAppSettings(settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get UI settings
|
||||
*/
|
||||
async getUISettings(): Promise<AppSettingsData['ui']> {
|
||||
return await getSettingsSection('ui');
|
||||
async getUISettings(): Promise<AppSettingsData["ui"]> {
|
||||
return await getSettingsSection("ui");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update UI settings
|
||||
*/
|
||||
async setUISettings(uiSettings: AppSettingsData['ui']): Promise<void> {
|
||||
await updateSettingsSection('ui', uiSettings);
|
||||
async setUISettings(uiSettings: AppSettingsData["ui"]): Promise<void> {
|
||||
await updateSettingsSection("ui", uiSettings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get transcription settings
|
||||
*/
|
||||
async getTranscriptionSettings(): Promise<AppSettingsData['transcription']> {
|
||||
return await getSettingsSection('transcription');
|
||||
async getTranscriptionSettings(): Promise<AppSettingsData["transcription"]> {
|
||||
return await getSettingsSection("transcription");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update transcription settings
|
||||
*/
|
||||
async setTranscriptionSettings(
|
||||
transcriptionSettings: AppSettingsData['transcription']
|
||||
transcriptionSettings: AppSettingsData["transcription"],
|
||||
): Promise<void> {
|
||||
await updateSettingsSection('transcription', transcriptionSettings);
|
||||
await updateSettingsSection("transcription", transcriptionSettings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get recording settings
|
||||
*/
|
||||
async getRecordingSettings(): Promise<AppSettingsData['recording']> {
|
||||
return await getSettingsSection('recording');
|
||||
async getRecordingSettings(): Promise<AppSettingsData["recording"]> {
|
||||
return await getSettingsSection("recording");
|
||||
}
|
||||
|
||||
/**
|
||||
* Update recording settings
|
||||
*/
|
||||
async setRecordingSettings(recordingSettings: AppSettingsData['recording']): Promise<void> {
|
||||
await updateSettingsSection('recording', recordingSettings);
|
||||
async setRecordingSettings(
|
||||
recordingSettings: AppSettingsData["recording"],
|
||||
): Promise<void> {
|
||||
await updateSettingsSection("recording", recordingSettings);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue