-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Empty password support; Pass login mode to profile window; Cache pools only if assets were synced;
- Loading branch information
Showing
10 changed files
with
223 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE | ||
// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD. | ||
|
||
#[allow(unused)] | ||
use spacetimedb_sdk::{ | ||
anyhow::{anyhow, Result}, | ||
identity::Identity, | ||
reducer::{Reducer, ReducerCallbackId, Status}, | ||
sats::{de::Deserialize, ser::Serialize}, | ||
spacetimedb_lib, | ||
table::{TableIter, TableType, TableWithPrimaryKey}, | ||
Address, | ||
}; | ||
|
||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] | ||
pub struct LogoutArgs {} | ||
|
||
impl Reducer for LogoutArgs { | ||
const REDUCER_NAME: &'static str = "logout"; | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn logout() { | ||
LogoutArgs {}.invoke(); | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn on_logout( | ||
mut __callback: impl FnMut(&Identity, Option<Address>, &Status) + Send + 'static, | ||
) -> ReducerCallbackId<LogoutArgs> { | ||
LogoutArgs::on_reducer(move |__identity, __addr, __status, __args| { | ||
let LogoutArgs {} = __args; | ||
__callback(__identity, __addr, __status); | ||
}) | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn once_on_logout( | ||
__callback: impl FnOnce(&Identity, Option<Address>, &Status) + Send + 'static, | ||
) -> ReducerCallbackId<LogoutArgs> { | ||
LogoutArgs::once_on_reducer(move |__identity, __addr, __status, __args| { | ||
let LogoutArgs {} = __args; | ||
__callback(__identity, __addr, __status); | ||
}) | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn remove_on_logout(id: ReducerCallbackId<LogoutArgs>) { | ||
LogoutArgs::remove_on_reducer(id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE | ||
// WILL NOT BE SAVED. MODIFY TABLES IN RUST INSTEAD. | ||
|
||
#[allow(unused)] | ||
use spacetimedb_sdk::{ | ||
anyhow::{anyhow, Result}, | ||
identity::Identity, | ||
reducer::{Reducer, ReducerCallbackId, Status}, | ||
sats::{de::Deserialize, ser::Serialize}, | ||
spacetimedb_lib, | ||
table::{TableIter, TableType, TableWithPrimaryKey}, | ||
Address, | ||
}; | ||
|
||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] | ||
pub struct RegisterEmptyArgs {} | ||
|
||
impl Reducer for RegisterEmptyArgs { | ||
const REDUCER_NAME: &'static str = "register_empty"; | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn register_empty() { | ||
RegisterEmptyArgs {}.invoke(); | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn on_register_empty( | ||
mut __callback: impl FnMut(&Identity, Option<Address>, &Status) + Send + 'static, | ||
) -> ReducerCallbackId<RegisterEmptyArgs> { | ||
RegisterEmptyArgs::on_reducer(move |__identity, __addr, __status, __args| { | ||
let RegisterEmptyArgs {} = __args; | ||
__callback(__identity, __addr, __status); | ||
}) | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn once_on_register_empty( | ||
__callback: impl FnOnce(&Identity, Option<Address>, &Status) + Send + 'static, | ||
) -> ReducerCallbackId<RegisterEmptyArgs> { | ||
RegisterEmptyArgs::once_on_reducer(move |__identity, __addr, __status, __args| { | ||
let RegisterEmptyArgs {} = __args; | ||
__callback(__identity, __addr, __status); | ||
}) | ||
} | ||
|
||
#[allow(unused)] | ||
pub fn remove_on_register_empty(id: ReducerCallbackId<RegisterEmptyArgs>) { | ||
RegisterEmptyArgs::remove_on_reducer(id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.