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:
@@ -1,11 +1,11 @@
|
||||
//! Shared context menu implementation for notebooks.
|
||||
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use galaxyui::elements::{ChildAnchor, OffsetPositioning, ParentAnchor, ParentOffsetBounds, Stack};
|
||||
use galaxyui::keymap::Trigger;
|
||||
use galaxyui::presenter::ChildView;
|
||||
use galaxyui::{Action, Element, EventContext, TypedActionView, View, ViewContext, ViewHandle};
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
|
||||
use super::editor::keys::custom_action_to_display;
|
||||
use super::editor::view::RichTextEditorView;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_editor::model::CoreEditorModel;
|
||||
use galaxyui::{platform::WindowStyle, App};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use string_offset::ByteOffset;
|
||||
use galaxyui::platform::WindowStyle;
|
||||
use galaxyui::App;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use string_offset::ByteOffset;
|
||||
|
||||
use super::MenuSource;
|
||||
use crate::auth::AuthStateProvider;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use galaxy_editor::content::text::BufferBlockItem;
|
||||
use galaxyui::elements::{
|
||||
AnchorPair, Border, Container, CornerRadius, MouseStateHandle, OffsetPositioning, OffsetType,
|
||||
@@ -11,6 +10,7 @@ use galaxyui::presenter::ChildView;
|
||||
use galaxyui::ui_components::button::ButtonTooltipPosition;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity, ViewContext, ViewHandle};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::embedded_item::EmbeddedWorkflow;
|
||||
use super::view::{EditorViewAction, EditorViewEvent, RichTextEditorView};
|
||||
|
||||
@@ -2,18 +2,14 @@ use std::collections::HashMap;
|
||||
use std::ops::Range;
|
||||
use std::sync::Arc;
|
||||
|
||||
use itertools::Itertools;
|
||||
use markdown_parser::html_parser::WARP_EMBED_ATTRIBUTE_NAME;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use serde_yaml::Mapping;
|
||||
use string_offset::ByteOffset;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_editor::content::markdown::MarkdownStyle;
|
||||
use galaxy_editor::content::text::TextStylesWithMetadata;
|
||||
use galaxy_editor::editor::EmbeddedItemModel;
|
||||
use galaxy_editor::extract_block;
|
||||
use galaxy_editor::render::element::{CursorData, CursorDisplayType, RenderContext, RenderableBlock};
|
||||
use galaxy_editor::render::element::{
|
||||
CursorData, CursorDisplayType, RenderContext, RenderableBlock,
|
||||
};
|
||||
use galaxy_editor::render::layout::TextLayout;
|
||||
use galaxy_editor::render::model::viewport::ViewportItem;
|
||||
use galaxy_editor::render::model::{
|
||||
@@ -26,6 +22,12 @@ use galaxyui::elements::{Border, ConstrainedBox, CornerRadius, Empty, Margin, Pa
|
||||
use galaxyui::text_layout::TextFrame;
|
||||
use galaxyui::units::{IntoPixels, Pixels};
|
||||
use galaxyui::{AppContext, Element, LayoutContext, SingletonEntity, SizeConstraint};
|
||||
use itertools::Itertools;
|
||||
use markdown_parser::html_parser::WARP_EMBED_ATTRIBUTE_NAME;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use serde_yaml::Mapping;
|
||||
use string_offset::ByteOffset;
|
||||
|
||||
use crate::cloud_object::model::persistence::CloudModel;
|
||||
use crate::cloud_object::CloudObject;
|
||||
|
||||
@@ -3,7 +3,6 @@ use std::mem;
|
||||
use std::ops::Range;
|
||||
use std::sync::Arc;
|
||||
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
use galaxy_completer::signatures::CommandRegistry;
|
||||
use galaxy_editor::content::anchor::Anchor;
|
||||
use galaxy_editor::content::buffer::Buffer;
|
||||
@@ -17,7 +16,10 @@ use galaxyui::elements::{
|
||||
use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::button::ButtonVariant;
|
||||
use galaxyui::ui_components::components::UiComponent;
|
||||
use galaxyui::{AppContext, Element, Entity, ModelAsRef, ModelContext, ModelHandle, SingletonEntity};
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, ModelAsRef, ModelContext, ModelHandle, SingletonEntity,
|
||||
};
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
|
||||
use super::embedded_item::EmbeddedWorkflow;
|
||||
use super::keys::{custom_action_to_display, NotebookKeybindings};
|
||||
|
||||
@@ -2,11 +2,10 @@ use std::fmt::Write;
|
||||
use std::time::Duration;
|
||||
|
||||
use async_channel::Sender;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::r#async::debounce;
|
||||
use galaxy_editor::render::model::{AutoScrollMode, Decoration};
|
||||
use galaxy_editor::search::{SearchEvent, Searcher};
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::elements::{
|
||||
Border, ChildAnchor, Clipped, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment,
|
||||
Empty, Flex, MouseStateHandle, OffsetPositioning, ParentElement, PositionedElementAnchor,
|
||||
@@ -21,6 +20,7 @@ use galaxyui::{
|
||||
AppContext, BlurContext, Element, Entity, FocusContext, ModelHandle, SingletonEntity,
|
||||
TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use super::model::NotebooksEditorModel;
|
||||
use super::view::{EditorViewEvent, RichTextEditorView};
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use markdown_parser::markdown_parser::CODE_BLOCK_DEFAULT_MARKDOWN_LANG;
|
||||
use pathfinder_color::ColorU;
|
||||
use galaxy_core::ui::builder::CHECK_SVG_PATH;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxy_editor::content::text::{
|
||||
@@ -17,6 +15,8 @@ use galaxy_util::user_input::UserInput;
|
||||
use galaxyui::elements::{Border, ListIndentLevel};
|
||||
use galaxyui::fonts::FamilyId;
|
||||
use galaxyui::ui_components::checkbox::HOVER_BACKGROUND_COLOR;
|
||||
use markdown_parser::markdown_parser::CODE_BLOCK_DEFAULT_MARKDOWN_LANG;
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::notebooks::editor::embedded_item::EmbeddedWorkflow;
|
||||
|
||||
@@ -6,15 +6,6 @@ use std::time::Duration;
|
||||
|
||||
use base64::prelude::BASE64_STANDARD;
|
||||
use base64::Engine as _;
|
||||
use itertools::Itertools;
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::FormattedText;
|
||||
use mermaid_to_svg::MermaidTheme;
|
||||
use num_traits::SaturatingSub;
|
||||
use regex::Regex;
|
||||
use string_offset::CharOffset;
|
||||
use url::Url;
|
||||
use vec1::{vec1, Vec1};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::r#async::debounce;
|
||||
use galaxy_core::semantic_selection::SemanticSelection;
|
||||
@@ -33,12 +24,21 @@ use galaxy_editor::render::model::{
|
||||
};
|
||||
use galaxy_editor::search::Searcher;
|
||||
use galaxy_editor::selection::{SelectionMode, SelectionModel, TextDirection, TextUnit};
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::clipboard::ClipboardContent;
|
||||
use galaxyui::elements::ListIndentLevel;
|
||||
use galaxyui::{
|
||||
AppContext, Entity, ModelAsRef, ModelContext, ModelHandle, SingletonEntity, WindowId,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::FormattedText;
|
||||
use mermaid_to_svg::MermaidTheme;
|
||||
use num_traits::SaturatingSub;
|
||||
use regex::Regex;
|
||||
use string_offset::CharOffset;
|
||||
use url::Url;
|
||||
use vec1::{vec1, Vec1};
|
||||
|
||||
use super::super::telemetry::SelectionMode as TelemetrySelectionMode;
|
||||
use super::embedding_model::NotebookEmbed;
|
||||
|
||||
@@ -9,16 +9,17 @@ use galaxy_editor::content::buffer::{AutoScrollBehavior, BufferSelectAction, Sel
|
||||
use galaxy_editor::content::text::{BlockType, BufferBlockStyle, CodeBlockType, TextStyles};
|
||||
use galaxy_editor::model::{CoreEditorModel, RichTextEditorModel};
|
||||
use galaxy_editor::render::model::viewport::SizeInfo;
|
||||
use galaxy_editor::render::model::BlockItem;
|
||||
use galaxy_editor::render::model::RenderEvent;
|
||||
use galaxy_editor::render::model::{BlockItem, RenderEvent};
|
||||
use galaxy_editor::selection::{TextDirection, TextUnit};
|
||||
use galaxyui::elements::ListIndentLevel;
|
||||
use galaxyui::platform::WindowStyle;
|
||||
use galaxyui::presenter::ChildView;
|
||||
use galaxyui::r#async::{block_on, FutureId};
|
||||
use galaxyui::r#async::{block_on, FutureId, Timer};
|
||||
use galaxyui::text::word_boundaries::WordBoundariesPolicy;
|
||||
use galaxyui::{r#async::Timer, App, Entity, ModelHandle, SingletonEntity, TypedActionView};
|
||||
use galaxyui::{AddSingletonModel, AppContext, Element, View, ViewHandle};
|
||||
use galaxyui::{
|
||||
AddSingletonModel, App, AppContext, Element, Entity, ModelHandle, SingletonEntity,
|
||||
TypedActionView, View, ViewHandle,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use markdown_parser::markdown_parser::RUNNABLE_BLOCK_MARKDOWN_LANG;
|
||||
use markdown_parser::{
|
||||
@@ -27,12 +28,6 @@ use markdown_parser::{
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use string_offset::CharOffset;
|
||||
use vec1::vec1;
|
||||
use galaxy_editor::render::model::{BlockItem, RenderEvent};
|
||||
use galaxyui::r#async::{block_on, FutureId, Timer};
|
||||
use galaxyui::{
|
||||
AddSingletonModel, App, AppContext, Element, Entity, ModelHandle, SingletonEntity,
|
||||
TypedActionView, View, ViewHandle,
|
||||
};
|
||||
|
||||
use super::super::rich_text_styles;
|
||||
use super::NotebooksEditorModel;
|
||||
|
||||
@@ -4,16 +4,6 @@ use std::ops::Range;
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_channel::Sender;
|
||||
use itertools::Itertools;
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::markdown_parser::CODE_BLOCK_DEFAULT_MARKDOWN_LANG;
|
||||
use pathfinder_color::ColorU;
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
use syntect::easy::HighlightLines;
|
||||
use syntect::highlighting::{self, Theme, ThemeSet};
|
||||
use syntect::parsing::SyntaxSet;
|
||||
use syntect::util::LinesWithEndings;
|
||||
use ui_components::lightbox::{LightboxImage, LightboxImageSource};
|
||||
use galaxy_completer::signatures::CommandRegistry;
|
||||
use galaxy_core::r#async::debounce;
|
||||
use galaxy_editor::content::anchor::Anchor;
|
||||
@@ -39,6 +29,16 @@ use galaxyui::{
|
||||
AppContext, AssetProvider as _, Element, Entity, ModelAsRef, ModelContext, ModelHandle,
|
||||
SingletonEntity, ViewHandle, WeakModelHandle, WindowId,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use lazy_static::lazy_static;
|
||||
use markdown_parser::markdown_parser::CODE_BLOCK_DEFAULT_MARKDOWN_LANG;
|
||||
use pathfinder_color::ColorU;
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
use syntect::easy::HighlightLines;
|
||||
use syntect::highlighting::{self, Theme, ThemeSet};
|
||||
use syntect::parsing::SyntaxSet;
|
||||
use syntect::util::LinesWithEndings;
|
||||
use ui_components::lightbox::{LightboxImage, LightboxImageSource};
|
||||
|
||||
use super::interaction_state_model::InteractionStateModel;
|
||||
use super::keys::{custom_action_to_display, NotebookKeybindings};
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
//! Implementation for the omnibar - a floating menu for editor interactions
|
||||
//! like formatting and changing block types.
|
||||
|
||||
use itertools::Itertools;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use galaxy_editor::content::text::{
|
||||
BlockType as ContentBlockType, BufferBlockStyle, BufferTextStyle, TextStyles,
|
||||
TextStylesWithMetadata,
|
||||
};
|
||||
use galaxy_editor::model::RichTextEditorModel;
|
||||
use galaxy_editor::render::model::RenderState;
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::elements::{
|
||||
AnchorPair, Border, ConstrainedBox, Container, CornerRadius, DropShadow, Flex, MainAxisSize,
|
||||
MouseStateHandle, OffsetPositioning, OffsetType, ParentElement, Point,
|
||||
@@ -22,7 +19,9 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, ModelHandle, SingletonEntity, SizeConstraint, TypedActionView,
|
||||
View, ViewContext, ViewHandle,
|
||||
};
|
||||
use pathfinder_geometry::{rect::RectF, vector::Vector2F};
|
||||
use itertools::Itertools;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
|
||||
use super::model::{NotebooksEditorModel, RichTextEditorModelEvent};
|
||||
use super::view::EditorViewAction;
|
||||
|
||||
@@ -3,13 +3,12 @@ use std::ops::Range;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
use markdown_parser::{parse_html, parse_markdown, FormattedText};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use string_offset::CharOffset;
|
||||
use galaxy_editor::content::anchor::Anchor;
|
||||
use galaxy_editor::content::text::{BufferTextStyle, CodeBlockType, TextStyles};
|
||||
use galaxy_editor::content::version::BufferVersion;
|
||||
use galaxy_editor::editor::{EmbeddedItemModel, NavigationKey, RunnableCommandModel, TextDecoration};
|
||||
use galaxy_editor::editor::{
|
||||
EmbeddedItemModel, NavigationKey, RunnableCommandModel, TextDecoration,
|
||||
};
|
||||
use galaxy_editor::model::{CoreEditorModel, RichTextEditorModel};
|
||||
use galaxy_editor::render::element::{
|
||||
DisplayOptions, DisplayStateHandle, RichTextAction, RichTextElement, VerticalExpansionBehavior,
|
||||
@@ -18,7 +17,7 @@ use galaxy_editor::render::model::{BlockItem, HitTestBlockType, Location, Render
|
||||
use galaxy_editor::selection::{TextDirection, TextUnit};
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
use galaxy_util::user_input::UserInput;
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, ActionAccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::actions::StandardAction;
|
||||
use galaxyui::assets::asset_cache::{AssetCache, AssetHandle, AssetState};
|
||||
use galaxyui::clipboard::ClipboardContent;
|
||||
@@ -46,6 +45,9 @@ use galaxyui::{
|
||||
windowing, AppContext, BlurContext, CursorInfo, Element, Entity, FocusContext, ModelHandle,
|
||||
SingletonEntity, TypedActionView, View, ViewContext, ViewHandle, WeakViewHandle,
|
||||
};
|
||||
use markdown_parser::{parse_html, parse_markdown, FormattedText};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
use super::block_insertion_menu::{BlockInsertionMenuState, BlockInsertionSource};
|
||||
use super::find_bar::{FindBar, FindBarEvent, FindBarState};
|
||||
|
||||
@@ -2,9 +2,6 @@ use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_channel::TryRecvError;
|
||||
use parking_lot::Mutex;
|
||||
use string_offset::CharOffset;
|
||||
use tempfile::tempdir;
|
||||
use galaxy_editor::content::mermaid_diagram::mermaid_asset_source;
|
||||
use galaxy_editor::render::element::RichTextAction;
|
||||
use galaxy_editor::render::model::{
|
||||
@@ -19,7 +16,12 @@ use galaxyui::presenter::ChildView;
|
||||
use galaxyui::r#async::block_on;
|
||||
use galaxyui::units::Pixels;
|
||||
use galaxyui::windowing::WindowManager;
|
||||
use galaxyui::{App, Element, Entity, SingletonEntity, TypedActionView, View, ViewHandle, WindowId};
|
||||
use galaxyui::{
|
||||
App, Element, Entity, SingletonEntity, TypedActionView, View, ViewHandle, WindowId,
|
||||
};
|
||||
use parking_lot::Mutex;
|
||||
use string_offset::CharOffset;
|
||||
use tempfile::tempdir;
|
||||
|
||||
use super::{EditorViewAction, LayoutAffectingAssetLoad, RichTextEditorConfig, RichTextEditorView};
|
||||
use crate::appearance::Appearance;
|
||||
|
||||
@@ -2,9 +2,6 @@ use std::mem;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::Arc;
|
||||
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
use remote_server::manager::RemoteServerManager;
|
||||
use galaxy_core::ui::icons::ICON_DIMENSIONS;
|
||||
use galaxy_editor::model::CoreEditorModel;
|
||||
#[cfg(feature = "local_fs")]
|
||||
@@ -14,7 +11,7 @@ use galaxy_util::file::FileId;
|
||||
use galaxy_util::local_or_remote_path::LocalOrRemotePath;
|
||||
use galaxy_util::path::user_friendly_path;
|
||||
use galaxy_util::remote_path::RemotePath;
|
||||
use galaxyui::accessibility::{AccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, GalaxyA11yRole};
|
||||
#[cfg(feature = "local_fs")]
|
||||
use galaxyui::clipboard::ClipboardContent;
|
||||
use galaxyui::elements::{
|
||||
@@ -30,6 +27,9 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, ModelHandle, SingletonEntity, TypedActionView, View, ViewContext,
|
||||
ViewHandle,
|
||||
};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
use remote_server::manager::RemoteServerManager;
|
||||
|
||||
use super::context_menu::{show_rich_editor_context_menu, ContextMenuAction, ContextMenuState};
|
||||
use super::editor::view::{EditorViewEvent, RichTextEditorConfig, RichTextEditorView};
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use repo_metadata::repositories::DetectedRepositories;
|
||||
use repo_metadata::watcher::DirectoryWatcher;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use repo_metadata::RepoMetadataModel;
|
||||
use string_offset::CharOffset;
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_editor::render::model::BlockItem;
|
||||
@@ -14,6 +8,12 @@ use galaxy_editor::render::model::BlockItem;
|
||||
use galaxy_files::FileModel;
|
||||
use galaxyui::platform::WindowStyle;
|
||||
use galaxyui::{App, SingletonEntity, View};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use repo_metadata::repositories::DetectedRepositories;
|
||||
use repo_metadata::watcher::DirectoryWatcher;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use repo_metadata::RepoMetadataModel;
|
||||
use string_offset::CharOffset;
|
||||
|
||||
use super::{FileNotebookView, FileState, MarkdownDisplayMode, SourceFile};
|
||||
use crate::auth::auth_manager::AuthManager;
|
||||
|
||||
@@ -7,13 +7,13 @@ use std::path::{Path, PathBuf};
|
||||
use std::sync::Arc;
|
||||
|
||||
use futures_util::future::Either;
|
||||
use url::Url;
|
||||
use galaxy_util::path::{CleanPathResult, LineAndColumnArg};
|
||||
use galaxyui::r#async::SpawnedFutureHandle;
|
||||
use galaxyui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity, WindowId};
|
||||
use url::Url;
|
||||
|
||||
use super::file::is_markdown_file;
|
||||
use crate::drive::OpenWarpDriveObjectArgs;
|
||||
use crate::drive::OpenGalaxyDriveObjectArgs;
|
||||
use crate::terminal::model::session::Session;
|
||||
use crate::uri::parse_url_paths::{get_item_data_from_warp_link, WarpWebLink};
|
||||
#[cfg(feature = "local_fs")]
|
||||
|
||||
@@ -3,13 +3,12 @@ use std::path::{Path, PathBuf};
|
||||
use std::sync::Arc;
|
||||
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
use galaxyui::{App, ModelHandle, WindowId};
|
||||
use galaxyui::{App, ModelHandle, SingletonEntity, WindowId};
|
||||
use lazy_static::lazy_static;
|
||||
use parking_lot::Mutex;
|
||||
use settings::Setting as _;
|
||||
use tempfile::tempdir;
|
||||
use url::Url;
|
||||
use galaxyui::{App, ModelHandle, SingletonEntity, WindowId};
|
||||
|
||||
use super::{LinkTarget, NotebookLinks, ResolveError, SessionSource};
|
||||
use crate::notebooks::file::is_markdown_file;
|
||||
|
||||
@@ -3,17 +3,17 @@ use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
|
||||
use futures_util::stream::AbortHandle;
|
||||
use markdown_parser::markdown_parser::parse_markdown_to_raw_text;
|
||||
use galaxyui::r#async::SpawnedFutureHandle;
|
||||
use galaxyui::{
|
||||
Entity, EntityId, ModelContext, ModelHandle, SingletonEntity, WeakViewHandle, WindowId,
|
||||
};
|
||||
use markdown_parser::markdown_parser::parse_markdown_to_raw_text;
|
||||
|
||||
use super::notebook::NotebookView;
|
||||
use super::CloudNotebook;
|
||||
use crate::cloud_object::model::persistence::{CloudModel, CloudModelEvent};
|
||||
use crate::cloud_object::Owner;
|
||||
use crate::drive::OpenWarpDriveObjectSettings;
|
||||
use crate::drive::OpenGalaxyDriveObjectSettings;
|
||||
use crate::pane_group::{NotebookPane, PaneContent};
|
||||
use crate::server::cloud_objects::update_manager::{
|
||||
ObjectOperation, OperationSuccessType, UpdateManager, UpdateManagerEvent,
|
||||
|
||||
@@ -13,6 +13,7 @@ use std::sync::Arc;
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
pub use cloud_object_models::{CloudNotebook, CloudNotebookModel, NotebookId, SerializedNotebook};
|
||||
use galaxyui::AppContext;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
|
||||
@@ -5,13 +5,9 @@ use anyhow::Context;
|
||||
use async_channel::Sender;
|
||||
use futures_util::stream::AbortHandle;
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use lazy_static::lazy_static;
|
||||
use regex::Regex;
|
||||
use settings::Setting as _;
|
||||
use url::Url;
|
||||
use galaxy_editor::editor::NavigationKey;
|
||||
use galaxy_editor::model::{CoreEditorModel, RichTextEditorModel};
|
||||
use galaxyui::accessibility::{AccessibilityContent, WarpA11yRole};
|
||||
use galaxyui::accessibility::{AccessibilityContent, GalaxyA11yRole};
|
||||
use galaxyui::clipboard::ClipboardContent;
|
||||
use galaxyui::elements::{
|
||||
Align, Clipped, ConstrainedBox, Container, CrossAxisAlignment, DispatchEventResult, Empty,
|
||||
@@ -27,6 +23,10 @@ use galaxyui::{
|
||||
AppContext, BlurContext, Element, Entity, FocusContext, ModelAsRef, ModelHandle,
|
||||
SingletonEntity, TypedActionView, View, ViewContext, ViewHandle, WindowId,
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
use regex::Regex;
|
||||
use settings::Setting as _;
|
||||
use url::Url;
|
||||
|
||||
use self::details_bar::DetailsBar;
|
||||
use super::active_notebook_data::{
|
||||
@@ -53,7 +53,7 @@ use crate::drive::drive_helpers::has_feature_gated_anonymous_user_reached_notebo
|
||||
use crate::drive::export::ExportManager;
|
||||
use crate::drive::items::WarpDriveItemId;
|
||||
use crate::drive::sharing::ShareableObject;
|
||||
use crate::drive::{CloudObjectTypeAndId, OpenWarpDriveObjectSettings};
|
||||
use crate::drive::{CloudObjectTypeAndId, OpenGalaxyDriveObjectSettings};
|
||||
use crate::editor::{
|
||||
EditOrigin, EditorView, Event as EditorEvent, InteractionState, PropagateAndNoOpNavigationKeys,
|
||||
SingleLineEditorOptions, TextColors, TextOptions,
|
||||
@@ -767,11 +767,11 @@ impl NotebookView {
|
||||
}
|
||||
}
|
||||
}
|
||||
CloudModelEvent::ObjectCreated { type_and_id, .. } => {
|
||||
if self.as_active_notebook_id(type_and_id, ctx).is_some() {
|
||||
// Re-render to update the status bar.
|
||||
ctx.notify();
|
||||
}
|
||||
CloudModelEvent::ObjectCreated { type_and_id, .. }
|
||||
if self.as_active_notebook_id(type_and_id, ctx).is_some() =>
|
||||
{
|
||||
// Re-render to update the status bar.
|
||||
ctx.notify();
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ use std::sync::Arc;
|
||||
|
||||
use chrono::{Duration, Utc};
|
||||
use futures_util::future::BoxFuture;
|
||||
use itertools::Itertools;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_editor::editor::EditorView;
|
||||
use galaxyui::platform::WindowStyle;
|
||||
@@ -13,6 +12,7 @@ use galaxyui::{
|
||||
AddSingletonModel, App, AppContext, Element, Entity, SingletonEntity, TypedActionView, View,
|
||||
ViewHandle, WindowId,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
|
||||
use super::{NotebookEvent, NotebookView, EDIT_WINDOW_DURATION, SAVE_PERIOD};
|
||||
use crate::auth::auth_manager::AuthManager;
|
||||
@@ -24,7 +24,7 @@ use crate::cloud_object::model::view::{CloudViewModel, Editor, EditorState};
|
||||
use crate::cloud_object::{
|
||||
Owner, Revision, ServerCloudObject, ServerMetadata, ServerNotebook, ServerPermissions,
|
||||
};
|
||||
use crate::drive::OpenWarpDriveObjectSettings;
|
||||
use crate::drive::OpenGalaxyDriveObjectSettings;
|
||||
use crate::editor::{DisplayPoint, EditorAction, InteractionState, SelectAction};
|
||||
use crate::network::NetworkStatus;
|
||||
use crate::notebooks::active_notebook_data::Mode;
|
||||
|
||||
Reference in New Issue
Block a user