Task attempt 6481dff0-5262-4260-ab55-112df093b125 - Final changes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
export type ApiResponse<T> = { success: boolean, data: T | null, message: string | null, };
|
||||
|
||||
export type Config = { theme: ThemeMode, executor: ExecutorConfig, disclaimer_acknowledged: boolean, onboarding_acknowledged: boolean, sound_alerts: boolean, push_notifications: boolean, editor: EditorConfig, };
|
||||
export type Config = { theme: ThemeMode, executor: ExecutorConfig, disclaimer_acknowledged: boolean, onboarding_acknowledged: boolean, sound_alerts: boolean, sound_file: SoundFile, push_notifications: boolean, editor: EditorConfig, };
|
||||
|
||||
export type ThemeMode = "light" | "dark" | "system";
|
||||
|
||||
@@ -14,6 +14,12 @@ export type EditorType = "vscode" | "cursor" | "windsurf" | "intellij" | "zed" |
|
||||
|
||||
export type EditorConstants = { editor_types: Array<EditorType>, editor_labels: Array<string>, };
|
||||
|
||||
export type SoundFile = "abstract-sound1" | "abstract-sound2" | "abstract-sound3" | "abstract-sound4" | "cow-mooing" | "phone-vibration" | "rooster";
|
||||
|
||||
export type SoundConstants = { sound_files: Array<SoundFile>, sound_labels: Array<string>, };
|
||||
|
||||
export type ConfigConstants = { editor: EditorConstants, sound: SoundConstants, };
|
||||
|
||||
export type ExecutorConfig = { "type": "echo" } | { "type": "claude" } | { "type": "amp" };
|
||||
|
||||
export type ExecutorConstants = { executor_types: Array<ExecutorConfig>, executor_labels: Array<string>, };
|
||||
@@ -111,4 +117,24 @@ export const EDITOR_LABELS: Record<string, string> = {
|
||||
"intellij": "IntelliJ IDEA",
|
||||
"zed": "Zed",
|
||||
"custom": "Custom"
|
||||
};
|
||||
|
||||
export const SOUND_FILES: SoundFile[] = [
|
||||
"abstract-sound1",
|
||||
"abstract-sound2",
|
||||
"abstract-sound3",
|
||||
"abstract-sound4",
|
||||
"cow-mooing",
|
||||
"phone-vibration",
|
||||
"rooster"
|
||||
];
|
||||
|
||||
export const SOUND_LABELS: Record<string, string> = {
|
||||
"abstract-sound1": "Gentle Chime",
|
||||
"abstract-sound2": "Soft Bell",
|
||||
"abstract-sound3": "Digital Tone",
|
||||
"abstract-sound4": "Subtle Alert",
|
||||
"cow-mooing": "Cow Mooing",
|
||||
"phone-vibration": "Phone Vibration",
|
||||
"rooster": "Rooster Call"
|
||||
};
|
||||
Reference in New Issue
Block a user