mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-23 08:01:03 +05:30
refactor: cleaup and implemented mvvm
This commit is contained in:
9
models/ChatViewModel.cs
Normal file
9
models/ChatViewModel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace highminded.models;
|
||||
|
||||
public partial class ChatViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty] private string _content = "";
|
||||
[ObservableProperty] private string _prompt = "";
|
||||
}
|
13
models/MainViewModel.cs
Normal file
13
models/MainViewModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace highminded.models;
|
||||
|
||||
public partial class MainViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty] private string _appName = "High Minded";
|
||||
[ObservableProperty] private string _hideShortcutKey = "SHIFT + \\";
|
||||
[ObservableProperty] private string _screenshotShortcutKey = "SHIFT + S";
|
||||
[ObservableProperty] private string _audioShortcutKey = "SHIFT + A";
|
||||
[ObservableProperty] private bool _isRecording = false;
|
||||
[ObservableProperty] private bool _isHidden = true;
|
||||
}
|
12
models/SettingsViewModel.cs
Normal file
12
models/SettingsViewModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace highminded.models;
|
||||
|
||||
public partial class SettingsViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty] private string _model = "";
|
||||
[ObservableProperty] private string _apiUrl = "";
|
||||
[ObservableProperty] private string _apiKey = "";
|
||||
[ObservableProperty] private string _screenshotPrompt = "";
|
||||
[ObservableProperty] private string _audioPrompt = "";
|
||||
}
|
Reference in New Issue
Block a user