Skip to content
Merged

Dev #27

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 19 additions & 39 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,42 +1,22 @@
[package]
name = "SimpleAIEditor"
version = "0.1.0"
edition = "2021"

[[bin]]
name = "SimpleAIEditor"
path = "src/main.rs"

[build-dependencies]
copy_dir = { version = "0.1.3" }

[dependencies]
sai_macros = { path = "extern/macros" }
async-recursion = { version = "1.1.1" }
chrono = { version = "0.4.38", features = ["serde"] }
sai_backend = { path = "extern/backend" }
dioxus = { git = "https://github.com/DioxusLabs/dioxus.git" }
futures = "0.3.31"
reqwest = { version = "0.12.9", features = ["json"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = { version = "1.0.133" }
dirs = { version = "6.0.0" }
toml = { version = "0.8.19" }
include_dir = { version = "0.7.3" }
anyhow = { version = "1.0.95" }
colored = { version = "3.0.0" }
regex = { version = "1.11.1" }
derive-new = { version = "0.7.0" }
derive_builder = { version = "0.20.2" }
thiserror = { version = "2.0.11"}
tokio = { version = "1.43.0", features = ["sync"]}

[features]
default = []
desktop = ["dioxus/desktop"]
web = ["dioxus/web", "dioxus/router"]
mobile = ["dioxus/mobile"]
dev = ["dioxus/devtools", "dioxus/liveview"]
[workspace]
resolver = "2"
members = [
"packages/backend",
"packages/frontend",
"packages/macros",
"packages/platforms/desktop",
"packages/platforms/web"
]

[workspace.package]
version = "0.6.3"

[workspace.dependencies]
simple-ai-backend = { path = "packages/backend" }
simple-ai-frontend = { path = "packages/frontend" }
simple-ai-macros = { path = "packages/macros" }

dioxus = { version = "0.6.3" }

[profile]

Expand Down
23 changes: 6 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
CARGO := cargo
DIOXUS := dx

APP_NAME = SimpleAIEditor
TAURI_TARGET = target/release/bundle
WEB_TARGET = target/wasm32-unknown-unknown/release
DESKTOP_TARGET = target/release

APP_PATH = $(DESKTOP_TARGET)/$(APP_NAME)


all: build-web build-desktop

build-web:
@echo "Building for WebAssembly..."
$(CARGO) build --release --target wasm32-unknown-unknown --features "web"

$(DIOXUS) build --release --package simple-ai-web --platform web
build-desktop:
@echo "Building for Desktop..."
$(CARGO) build --release --features "desktop"
$(DIOXUS) build --release --package simple-ai-desktop --platform desktop

run-web:
@echo "Running Web version..."
$(DIOXUS) serve --platform web --features "web"
$(DIOXUS) serve --package simple-ai-web --platform web

run-desktop: build-desktop
run-desktop:
@echo "Running Desktop version..."
exec $(APP_PATH)
$(DIOXUS) serve --package simple-ai-desktop --platform desktop

clean:
@echo "Cleaning the project..."
$(CARGO) clean
rm -rf $(WEB_TARGET)
$(DIOXUS) clean

.PHONY: all build-web build-desktop run-web run-desktop clean
40 changes: 0 additions & 40 deletions assets/themes/styles/cybr1/pages/editor/index.css

This file was deleted.

Binary file not shown.
Binary file not shown.
10 changes: 0 additions & 10 deletions extern/backend/nodes/test_delete_invalid_version/meta.toml

This file was deleted.

Binary file not shown.
10 changes: 0 additions & 10 deletions extern/backend/nodes/test_delete_version/meta.toml

This file was deleted.

12 changes: 0 additions & 12 deletions extern/macros/Cargo.toml

This file was deleted.

178 changes: 0 additions & 178 deletions extern/macros/src/element.rs

This file was deleted.

File renamed without changes.
7 changes: 4 additions & 3 deletions extern/backend/Cargo.toml → packages/backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "sai_backend"
name = "simple-ai-backend"
version = { workspace = true }
edition = "2021"

[features]
default = []
desktop = []
web = []
web = ["uuid/js"]
mobile = []

[dependencies]
Expand All @@ -18,7 +19,7 @@ derive-new = { version = "0.7.0" }
derive_builder = { version = "0.20.2" }
anyhow = { version = "1.0.95" }
sha2 = { version = "0.10.8" }
uuid = { version = "1.15.1", features = ["v4"] }
uuid = { version = "1.15.1", features = ["v4"]}
bincode = { version = "1.1.3" }
tokio = { version = "1.43.0", features = ["sync"] }
fuzzy-matcher = "0.3.7"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading