diff --git a/Cargo.lock b/Cargo.lock index 8e40b59..f9e01e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -154,8 +154,13 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" name = "cube" version = "0.1.0" dependencies = [ + "axum", "cube-core", + "reqwest", + "serde", + "serde_json", "tokio", + "tracing", ] [[package]] diff --git a/apps/cube/Cargo.toml b/apps/cube/Cargo.toml index 7d772a8..8395de3 100644 --- a/apps/cube/Cargo.toml +++ b/apps/cube/Cargo.toml @@ -8,4 +8,9 @@ description = "cube.famzheng.me — cube 平台入口门户(app #0)" [dependencies] cube-core = { path = "../../crates/cube-core" } +axum = { workspace = true } tokio = { workspace = true } +tracing = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +reqwest = { workspace = true } diff --git a/apps/cube/frontend/src/App.vue b/apps/cube/frontend/src/App.vue index 0481a02..817bda6 100644 --- a/apps/cube/frontend/src/App.vue +++ b/apps/cube/frontend/src/App.vue @@ -1,5 +1,6 @@ @@ -33,6 +34,8 @@ import { apps } from './apps' cube · monorepo at famzheng.me/gitea/fam/cube + + diff --git a/apps/cube/frontend/src/components/Chatbot.vue b/apps/cube/frontend/src/components/Chatbot.vue new file mode 100644 index 0000000..fa0091a --- /dev/null +++ b/apps/cube/frontend/src/components/Chatbot.vue @@ -0,0 +1,292 @@ + + +