Skip to content

Commit bb20c94

Browse files
committed
refactor(assets): add LlmProvider and Language enums with strum
- Add LlmProvider enum with strum for string parsing and IconNamed impl - Add Language enum for programming languages with IconNamed impl - Add IntoIcon trait for easy Icon conversion - Implement IntoElement for direct use in .child() - Reorganize icons into ui/, llm_provider/, language/ directories - Add rewrite_path to Assets for icon path compatibility - Update chat_sidebar and settings_view to use new enums
1 parent ee297cb commit bb20c94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1043
-392
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ chrono = "0.4"
7878
# i18n
7979
rust-i18n = "3"
8080

81+
# Enum utilities
82+
strum = { version = "0.26", features = ["derive"] }
83+
8184
# Database
8285
postgresql_embedded = { version = "0.20", features = ["bundled"], optional = true }
8386
sea-orm = { version = "1.1", features = ["runtime-tokio-rustls", "macros"] }

assets/icons/brand/grok-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/brand/model-context-protocol-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/brand/model-context-protocol-light.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/brand/ollama-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/brand/openrouter-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/brand/xai-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/language/css_old.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)