mirror of
https://github.com/fluencelabs/fluent-pad
synced 2025-04-25 17:02:12 +00:00
Fixes for build script
This commit is contained in:
parent
87cc957580
commit
6d3f41cff3
@ -6,7 +6,7 @@
|
|||||||
(par
|
(par
|
||||||
(seq
|
(seq
|
||||||
(call u.$.relay_id! ("peer" "is_connected") [u.$.peer_id!] is_connected)
|
(call u.$.relay_id! ("peer" "is_connected") [u.$.peer_id!] is_connected)
|
||||||
(match is_connected ""
|
(match is_connected false
|
||||||
(call %init_peer_id% ({{user_list}} "leave") [u.$.peer_id!])
|
(call %init_peer_id% ({{user_list}} "leave") [u.$.peer_id!])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
|
|
||||||
rm -f app/*.wasm
|
rm -f app/*.wasm
|
||||||
cp -f services/artifacts/*.wasm app/
|
cp -f services/artifacts/*.wasm app/
|
||||||
echo fldist deploy_app "$@" -i app/app.config.json -o client/src/app.json
|
fldist deploy_app --env local -s Fs6nQaGEsM5EgnprUbUtoLYWhUC8o6QK1gseP9pfhzUm -i app/app.config.json -o client/src/app.json
|
||||||
|
@ -16,7 +16,7 @@ interface User {
|
|||||||
isOnline: boolean;
|
isOnline: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const refreshTimeoutMs = 2000;
|
const refreshOnlineStatusTimeoutMs = 2000;
|
||||||
|
|
||||||
export const UserList = (props: { selfName: string }) => {
|
export const UserList = (props: { selfName: string }) => {
|
||||||
const client = useFluenceClient()!;
|
const client = useFluenceClient()!;
|
||||||
@ -28,7 +28,7 @@ export const UserList = (props: { selfName: string }) => {
|
|||||||
withErrorHandlingAsync(async () => {
|
withErrorHandlingAsync(async () => {
|
||||||
await api.updateOnlineStatuses(client);
|
await api.updateOnlineStatuses(client);
|
||||||
});
|
});
|
||||||
}, refreshTimeoutMs);
|
}, refreshOnlineStatusTimeoutMs);
|
||||||
|
|
||||||
const unsub1 = subscribeToEvent(client, fluentPadServiceId, notifyUserAddedFnName, (args, _) => {
|
const unsub1 = subscribeToEvent(client, fluentPadServiceId, notifyUserAddedFnName, (args, _) => {
|
||||||
const [user, isOnline] = args as [api.User, boolean];
|
const [user, isOnline] = args as [api.User, boolean];
|
||||||
|
@ -1 +1 @@
|
|||||||
{ "name": "history" }
|
{"name":"history"}
|
||||||
|
@ -1 +1 @@
|
|||||||
{ "name": "user-list" }
|
{"name":"user-list"}
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
fce build --release
|
fce build --release
|
||||||
)
|
)
|
||||||
|
|
||||||
rm -f artifacts/user-list.wasm
|
rm -f artifacts/user_list.wasm
|
||||||
rm -f artifacts/history.wasm
|
rm -f artifacts/history.wasm
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
cp user-list-inmemory/target/wasm32-wasi/release/user-list.wasm artifacts/
|
cp user-list-inmemory/target/wasm32-wasi/release/user_list.wasm artifacts/
|
||||||
echo '{"name":"user-list"}' > artifacts/user-list.json
|
echo '{"name":"user-list"}' > artifacts/user-list.json
|
||||||
cp history-inmemory/target/wasm32-wasi/release/history.wasm artifacts/
|
cp history-inmemory/target/wasm32-wasi/release/history.wasm artifacts/
|
||||||
echo '{"name":"history"}' > artifacts/history.json
|
echo '{"name":"history"}' > artifacts/history.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user