Skip to content

Commit 7932923

Browse files
authored
Merge pull request #26 from sertschgi/dev
Dev
2 parents ef2c5fa + e6195d1 commit 7932923

151 files changed

Lines changed: 950 additions & 969 deletions

File tree

Some content is hidden

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

Cargo.toml

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,22 @@
1-
[package]
2-
name = "SimpleAIEditor"
3-
version = "0.1.0"
4-
edition = "2021"
5-
6-
[[bin]]
7-
name = "SimpleAIEditor"
8-
path = "src/main.rs"
9-
10-
[build-dependencies]
11-
copy_dir = { version = "0.1.3" }
12-
13-
[dependencies]
14-
sai_macros = { path = "extern/macros" }
15-
async-recursion = { version = "1.1.1" }
16-
chrono = { version = "0.4.38", features = ["serde"] }
17-
sai_backend = { path = "extern/backend" }
18-
dioxus = { git = "https://github.com/DioxusLabs/dioxus.git" }
19-
futures = "0.3.31"
20-
reqwest = { version = "0.12.9", features = ["json"] }
21-
serde = { version = "1.0.215", features = ["derive"] }
22-
serde_json = { version = "1.0.133" }
23-
dirs = { version = "6.0.0" }
24-
toml = { version = "0.8.19" }
25-
include_dir = { version = "0.7.3" }
26-
anyhow = { version = "1.0.95" }
27-
colored = { version = "3.0.0" }
28-
regex = { version = "1.11.1" }
29-
derive-new = { version = "0.7.0" }
30-
derive_builder = { version = "0.20.2" }
31-
thiserror = { version = "2.0.11"}
32-
tokio = { version = "1.43.0", features = ["sync"]}
33-
34-
[features]
35-
default = []
36-
desktop = ["dioxus/desktop"]
37-
web = ["dioxus/web", "dioxus/router"]
38-
mobile = ["dioxus/mobile"]
39-
dev = ["dioxus/devtools", "dioxus/liveview"]
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"packages/backend",
5+
"packages/frontend",
6+
"packages/macros",
7+
"packages/platforms/desktop",
8+
"packages/platforms/web"
9+
]
10+
11+
[workspace.package]
12+
version = "0.6.3"
13+
14+
[workspace.dependencies]
15+
simple-ai-backend = { path = "packages/backend" }
16+
simple-ai-frontend = { path = "packages/frontend" }
17+
simple-ai-macros = { path = "packages/macros" }
18+
19+
dioxus = { version = "0.6.3" }
4020

4121
[profile]
4222

Makefile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,24 @@
1-
CARGO := cargo
21
DIOXUS := dx
32

4-
APP_NAME = SimpleAIEditor
5-
TAURI_TARGET = target/release/bundle
6-
WEB_TARGET = target/wasm32-unknown-unknown/release
7-
DESKTOP_TARGET = target/release
8-
9-
APP_PATH = $(DESKTOP_TARGET)/$(APP_NAME)
10-
11-
123
all: build-web build-desktop
134

145
build-web:
156
@echo "Building for WebAssembly..."
16-
$(CARGO) build --release --target wasm32-unknown-unknown --features "web"
17-
7+
$(DIOXUS) build --release --package simple-ai-web --platform web
188
build-desktop:
199
@echo "Building for Desktop..."
20-
$(CARGO) build --release --features "desktop"
10+
$(DIOXUS) build --release --package simple-ai-desktop --platform desktop
2111

2212
run-web:
2313
@echo "Running Web version..."
24-
$(DIOXUS) serve --platform web --features "web"
14+
$(DIOXUS) serve --package simple-ai-web --platform web
2515

26-
run-desktop: build-desktop
16+
run-desktop:
2717
@echo "Running Desktop version..."
28-
exec $(APP_PATH)
18+
$(DIOXUS) serve --package simple-ai-desktop --platform desktop
2919

3020
clean:
3121
@echo "Cleaning the project..."
32-
$(CARGO) clean
33-
rm -rf $(WEB_TARGET)
22+
$(DIOXUS) clean
3423

3524
.PHONY: all build-web build-desktop run-web run-desktop clean

assets/themes/styles/cybr1/pages/editor/index.css

Lines changed: 0 additions & 40 deletions
This file was deleted.

extern/backend/src/modules/utils/search.rs

Lines changed: 0 additions & 23 deletions
This file was deleted.

extern/macros/Cargo.toml

Lines changed: 0 additions & 12 deletions
This file was deleted.

extern/macros/src/element.rs

Lines changed: 0 additions & 178 deletions
This file was deleted.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[package]
2-
name = "sai_backend"
2+
name = "simple-ai-backend"
3+
version = { workspace = true }
34
edition = "2021"
45

56
[features]
67
default = []
78
desktop = []
8-
web = []
9+
web = ["uuid/js"]
910
mobile = []
1011

1112
[dependencies]
@@ -18,6 +19,6 @@ derive-new = { version = "0.7.0" }
1819
derive_builder = { version = "0.20.2" }
1920
anyhow = { version = "1.0.95" }
2021
sha2 = { version = "0.10.8" }
21-
uuid = { version = "1.15.1", features = ["v4"] }
22+
uuid = { version = "1.15.1", features = ["v4"]}
2223
bincode = { version = "1.1.3" }
2324
tokio = { version = "1.43.0", features = ["sync"] }

extern/backend/nodes/bundled_node/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/node.bin renamed to packages/backend/nodes/bundled_node/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/node.bin

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)