mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: enable upload when switching workspace (#6080)
* chore: enable upload when switching workspace * chore: update client api
This commit is contained in:
parent
e3a68d3ecb
commit
40e627c303
26
frontend/appflowy_tauri/src-tauri/Cargo.lock
generated
26
frontend/appflowy_tauri/src-tauri/Cargo.lock
generated
@ -172,7 +172,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
|
||||
[[package]]
|
||||
name = "app-error"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bincode",
|
||||
@ -192,7 +192,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "appflowy-ai-client"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@ -826,7 +826,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-api"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"again",
|
||||
"anyhow",
|
||||
@ -877,7 +877,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-api-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"collab-entity",
|
||||
"collab-rt-entity",
|
||||
@ -890,7 +890,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-websocket"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"futures-channel",
|
||||
"futures-util",
|
||||
@ -1138,7 +1138,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "collab-rt-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bincode",
|
||||
@ -1163,7 +1163,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "collab-rt-protocol"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
@ -1426,7 +1426,7 @@ dependencies = [
|
||||
"cssparser-macros",
|
||||
"dtoa-short",
|
||||
"itoa 1.0.6",
|
||||
"phf 0.11.2",
|
||||
"phf 0.8.0",
|
||||
"smallvec",
|
||||
]
|
||||
|
||||
@ -1551,7 +1551,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"
|
||||
[[package]]
|
||||
name = "database-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
@ -3076,7 +3076,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gotrue"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"futures-util",
|
||||
@ -3093,7 +3093,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gotrue-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
@ -3525,7 +3525,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "infra"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@ -6122,7 +6122,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "shared-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
|
@ -53,7 +53,7 @@ collab-user = { version = "0.2" }
|
||||
# Run the script:
|
||||
# scripts/tool/update_client_api_rev.sh new_rev_id
|
||||
# ⚠️⚠️⚠️️
|
||||
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }
|
||||
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }
|
||||
|
||||
[dependencies]
|
||||
serde_json.workspace = true
|
||||
|
26
frontend/appflowy_web_app/src-tauri/Cargo.lock
generated
26
frontend/appflowy_web_app/src-tauri/Cargo.lock
generated
@ -163,7 +163,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
|
||||
[[package]]
|
||||
name = "app-error"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bincode",
|
||||
@ -183,7 +183,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "appflowy-ai-client"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@ -800,7 +800,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-api"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"again",
|
||||
"anyhow",
|
||||
@ -851,7 +851,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-api-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"collab-entity",
|
||||
"collab-rt-entity",
|
||||
@ -864,7 +864,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-websocket"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"futures-channel",
|
||||
"futures-util",
|
||||
@ -1121,7 +1121,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "collab-rt-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bincode",
|
||||
@ -1146,7 +1146,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "collab-rt-protocol"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
@ -1416,7 +1416,7 @@ dependencies = [
|
||||
"cssparser-macros",
|
||||
"dtoa-short",
|
||||
"itoa 1.0.10",
|
||||
"phf 0.11.2",
|
||||
"phf 0.8.0",
|
||||
"smallvec",
|
||||
]
|
||||
|
||||
@ -1541,7 +1541,7 @@ checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5"
|
||||
[[package]]
|
||||
name = "database-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
@ -3143,7 +3143,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gotrue"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"futures-util",
|
||||
@ -3160,7 +3160,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gotrue-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
@ -3597,7 +3597,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "infra"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@ -6186,7 +6186,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "shared-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
|
@ -52,7 +52,7 @@ collab-user = { version = "0.2" }
|
||||
# Run the script:
|
||||
# scripts/tool/update_client_api_rev.sh new_rev_id
|
||||
# ⚠️⚠️⚠️️
|
||||
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }
|
||||
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }
|
||||
|
||||
[dependencies]
|
||||
serde_json.workspace = true
|
||||
|
24
frontend/rust-lib/Cargo.lock
generated
24
frontend/rust-lib/Cargo.lock
generated
@ -163,7 +163,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
|
||||
[[package]]
|
||||
name = "app-error"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bincode",
|
||||
@ -183,7 +183,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "appflowy-ai-client"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@ -718,7 +718,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-api"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"again",
|
||||
"anyhow",
|
||||
@ -769,7 +769,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-api-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"collab-entity",
|
||||
"collab-rt-entity",
|
||||
@ -782,7 +782,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "client-websocket"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"futures-channel",
|
||||
"futures-util",
|
||||
@ -999,7 +999,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "collab-rt-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bincode",
|
||||
@ -1024,7 +1024,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "collab-rt-protocol"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
@ -1375,7 +1375,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"
|
||||
[[package]]
|
||||
name = "database-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
@ -2754,7 +2754,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gotrue"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"futures-util",
|
||||
@ -2771,7 +2771,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "gotrue-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
@ -3136,7 +3136,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "infra"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@ -5344,7 +5344,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "shared-entity"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"
|
||||
source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"app-error",
|
||||
|
@ -100,8 +100,8 @@ dashmap = "6.0.1"
|
||||
# Run the script.add_workspace_members:
|
||||
# scripts/tool/update_client_api_rev.sh new_rev_id
|
||||
# ⚠️⚠️⚠️️
|
||||
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }
|
||||
client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }
|
||||
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }
|
||||
client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0
|
||||
|
@ -1,19 +1,19 @@
|
||||
use client_api::entity::search_dto::SearchDocumentResponseItem;
|
||||
use flowy_search_pub::cloud::SearchCloudService;
|
||||
use std::collections::HashMap;
|
||||
use std::path::Path;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Error;
|
||||
use client_api::collab_sync::{SinkConfig, SyncObject, SyncPlugin};
|
||||
use client_api::entity::ai_dto::{CompletionType, RepeatedRelatedQuestion};
|
||||
use client_api::entity::search_dto::SearchDocumentResponseItem;
|
||||
use client_api::entity::ChatMessageType;
|
||||
use collab::core::origin::{CollabClient, CollabOrigin};
|
||||
use collab::entity::EncodedCollab;
|
||||
use collab::preclude::CollabPlugin;
|
||||
use collab_entity::CollabType;
|
||||
use flowy_search_pub::cloud::SearchCloudService;
|
||||
use serde_json::Value;
|
||||
use std::collections::HashMap;
|
||||
use std::path::Path;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use tokio_stream::wrappers::WatchStream;
|
||||
use tracing::{debug, info};
|
||||
|
||||
@ -532,6 +532,7 @@ impl CollabCloudPluginProvider for ServerProvider {
|
||||
stream,
|
||||
Some(channel),
|
||||
ws_connect_state,
|
||||
Some(Duration::from_secs(60)),
|
||||
);
|
||||
plugins.push(Box::new(sync_plugin));
|
||||
},
|
||||
|
@ -181,6 +181,7 @@ impl UserStatusCallback for UserStatusCallbackImpl {
|
||||
self.database_manager.initialize(user_id).await?;
|
||||
self.document_manager.initialize(user_id).await?;
|
||||
self.ai_manager.initialize(&user_workspace.id).await?;
|
||||
self.storage_manager.initialize(&user_workspace.id).await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -311,6 +311,9 @@ pub enum ErrorCode {
|
||||
#[error("In progress")]
|
||||
// when client receives InProgress, it should retry
|
||||
InProgress = 107,
|
||||
|
||||
#[error("Upload part size exceeds the limit")]
|
||||
SingleUploadLimitExceeded = 108,
|
||||
}
|
||||
|
||||
impl ErrorCode {
|
||||
|
@ -74,6 +74,7 @@ impl FlowyError {
|
||||
|
||||
pub fn is_file_limit_exceeded(&self) -> bool {
|
||||
self.code == ErrorCode::FileStorageLimitExceeded
|
||||
|| self.code == ErrorCode::SingleUploadLimitExceeded
|
||||
}
|
||||
|
||||
pub fn is_ai_response_limit_exceeded(&self) -> bool {
|
||||
|
@ -26,6 +26,7 @@ impl From<AppResponseError> for FlowyError {
|
||||
AppErrorCode::WorkspaceMemberLimitExceeded => ErrorCode::WorkspaceMemberLimitExceeded,
|
||||
AppErrorCode::AIResponseLimitExceeded => ErrorCode::AIResponseLimitExceeded,
|
||||
AppErrorCode::FileStorageLimitExceeded => ErrorCode::FileStorageLimitExceeded,
|
||||
AppErrorCode::SingleUploadLimitExceeded => ErrorCode::SingleUploadLimitExceeded,
|
||||
_ => ErrorCode::Internal,
|
||||
};
|
||||
|
||||
|
@ -97,6 +97,10 @@ impl StorageManager {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn initialize(&self, _workspace_id: &str) {
|
||||
self.enable_storage_write_access();
|
||||
}
|
||||
|
||||
pub fn update_network_reachable(&self, reachable: bool) {
|
||||
if reachable {
|
||||
self.uploader.resume();
|
||||
|
Loading…
Reference in New Issue
Block a user