mirror of
https://github.com/fluencelabs/fluent-pad
synced 2025-04-24 16:32:13 +00:00
Fixes for build script
This commit is contained in:
parent
87cc957580
commit
6d3f41cff3
@ -6,7 +6,7 @@
|
||||
(par
|
||||
(seq
|
||||
(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!])
|
||||
)
|
||||
)
|
||||
|
@ -7,4 +7,4 @@
|
||||
|
||||
rm -f app/*.wasm
|
||||
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;
|
||||
}
|
||||
|
||||
const refreshTimeoutMs = 2000;
|
||||
const refreshOnlineStatusTimeoutMs = 2000;
|
||||
|
||||
export const UserList = (props: { selfName: string }) => {
|
||||
const client = useFluenceClient()!;
|
||||
@ -28,7 +28,7 @@ export const UserList = (props: { selfName: string }) => {
|
||||
withErrorHandlingAsync(async () => {
|
||||
await api.updateOnlineStatuses(client);
|
||||
});
|
||||
}, refreshTimeoutMs);
|
||||
}, refreshOnlineStatusTimeoutMs);
|
||||
|
||||
const unsub1 = subscribeToEvent(client, fluentPadServiceId, notifyUserAddedFnName, (args, _) => {
|
||||
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
|
||||
)
|
||||
|
||||
rm -f artifacts/user-list.wasm
|
||||
rm -f artifacts/user_list.wasm
|
||||
rm -f artifacts/history.wasm
|
||||
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
|
||||
cp history-inmemory/target/wasm32-wasi/release/history.wasm artifacts/
|
||||
echo '{"name":"history"}' > artifacts/history.json
|
||||
|
Loading…
x
Reference in New Issue
Block a user