Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner
This commit is contained in:
@@ -8,18 +8,18 @@ mod imp;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use galaxy_core::ui::theme::GalaxyTheme;
|
||||
pub(crate) use imp::load_tab_configs;
|
||||
#[cfg(feature = "local_fs")]
|
||||
pub use imp::load_workflows;
|
||||
pub use imp::{load_launch_configs, load_theme_configs};
|
||||
use lazy_static::lazy_static;
|
||||
use galaxy_core::ui::theme::WarpTheme;
|
||||
use warpui::{Entity, ModelContext, SingletonEntity};
|
||||
|
||||
use crate::ai::custom_model_routers::{CustomModelRouter, ModelConfigError};
|
||||
use crate::launch_configs::launch_config::LaunchConfig;
|
||||
use crate::tab_configs::{TabConfig, TabConfigError};
|
||||
use crate::themes::theme::{ThemeKind, WarpThemeConfig};
|
||||
use crate::themes::theme::{GalaxyThemeConfig, ThemeKind};
|
||||
use crate::workflows::workflow::Workflow;
|
||||
|
||||
lazy_static! {
|
||||
@@ -428,6 +428,9 @@ impl Entity for GalaxyConfig {
|
||||
|
||||
impl SingletonEntity for GalaxyConfig {}
|
||||
|
||||
pub type WarpConfig = GalaxyConfig;
|
||||
pub type WarpConfigUpdateEvent = GalaxyConfigUpdateEvent;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "mod_tests.rs"]
|
||||
mod tests;
|
||||
|
||||
@@ -3,10 +3,9 @@ use std::path::Path;
|
||||
use std::{fs, io};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use galaxyui::{ModelContext, SingletonEntity};
|
||||
use galaxyui::{ModelContext, ModelHandle, SingletonEntity};
|
||||
use itertools::Itertools;
|
||||
use repo_metadata::RepositoryUpdate;
|
||||
use galaxyui::{ModelContext, ModelHandle, SingletonEntity};
|
||||
|
||||
use super::util::{
|
||||
for_each_dir_entry, has_name, is_config_file, parse_model_config_dir_entry,
|
||||
@@ -15,7 +14,7 @@ use super::util::{
|
||||
};
|
||||
use super::{
|
||||
custom_model_routers_dir, launch_configs_dir, tab_configs_dir, themes_dir, workflows_dir,
|
||||
WarpConfigUpdateEvent, LAUNCH_CONFIG_COMMENT,
|
||||
GalaxyConfigUpdateEvent, WarpConfigUpdateEvent, LAUNCH_CONFIG_COMMENT,
|
||||
};
|
||||
use crate::ai::custom_model_routers::{CustomModelRouter, ModelConfigError};
|
||||
use crate::features::FeatureFlag;
|
||||
@@ -89,8 +88,8 @@ impl super::WarpConfig {
|
||||
|
||||
fn handle_warp_managed_paths_event(
|
||||
&mut self,
|
||||
_: ModelHandle<WarpManagedPathsWatcher>,
|
||||
event: &WarpManagedPathsWatcherEvent,
|
||||
_: ModelHandle<GalaxyManagedPathsWatcher>,
|
||||
event: &GalaxyManagedPathsWatcherEvent,
|
||||
ctx: &mut ModelContext<Self>,
|
||||
) {
|
||||
let GalaxyManagedPathsWatcherEvent::FilesChanged(update) = event;
|
||||
|
||||
Reference in New Issue
Block a user