Skip to content

Instantly share code, notes, and snippets.

@xesrevinu
Last active July 7, 2023 07:04
Show Gist options
  • Select an option

  • Save xesrevinu/757b7f708ed989aedc9c09890a412159 to your computer and use it in GitHub Desktop.

Select an option

Save xesrevinu/757b7f708ed989aedc9c09890a412159 to your computer and use it in GitHub Desktop.
Aspiration应用逻辑
Aspiration应用逻辑
从主屏幕打开应用 -> 用户之前登录过吗
注销流程
用户之前登录过吗
是 -> 设备身份验证设置完成吗
否 -> 应用欢迎界面
应用欢迎界面
点击登录 -> 设备身份验证设置完成吗
点击注册 -> 注册流程
设备身份验证设置完成吗
是 - 触控ID -> 检查身份验证
是 - 面容ID -> 检查身份验证
否 -> 登录表单
检查身份验证
通过 -> 加载帐户信息
失败 -> 登录表单
登录表单
登录成功
是 -> 多因素认证选项
否 -> 登录错误
登录错误
取消 -> 登录表单
多因素认证选项
通过短信请求代码 -> 输入多因素认证码
通过电子邮件请求代码 -> 输入多因素认证码
输入多因素认证码
提交 -> 多因素认证正确
多因素认证正确
否 -> 输入多因素认证码
加载帐户信息
失败 -> 登录错误
注册流程
取消 -> 应用欢迎界面
function render(model){
function addImage() {
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
} else {
return "No image available."
}
}
return (
<div style={{textAlign: "center"}}>
<h1>{model.active_states[0].name}</h1>
{addImage()}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment