Skip to content

Instantly share code, notes, and snippets.

@TurkerTunali
Last active March 18, 2022 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TurkerTunali/ff26773447c028bee5de0785a6bb6949 to your computer and use it in GitHub Desktop.
Save TurkerTunali/ff26773447c028bee5de0785a6bb6949 to your computer and use it in GitHub Desktop.
{
"$jason": {
"head": {
"title": "Frappe Mobile"
},
"body": {
"style": {
"border": "none",
"background": "#FFFFFF"
},
"header": {
"title": "Welcome 3",
"style": {
"background": "#AAAAAA",
"color": "#FFFFFF"
}
},
"sections": [
{
"items": [
{
"type": "space",
"height": "20"
},
{
"type": "textfield",
"name": "email",
"style": {
"size": "20",
"color": "#EEEEEE",
"font": "HelveticaNeue-Bold",
"background": "#EEEEEE",
"padding": "20"
},
"placeholder": "username"
},
{
"type": "space",
"height": "10"
},
{
"type": "textfield",
"name": "password",
"placeholder": "password",
"style": {
"size": "20",
"color": "#EEEEEE",
"font": "HelveticaNeue-Bold",
"background": "#EEEEEE",
"padding": "20",
"secure": "true"
}
},
{
"type": "textfield",
"name": "server_url",
"placeholder": "server",
"style": {
"size": "20",
"color": "#EEEEEE",
"font": "HelveticaNeue-Bold",
"background": "#EEEEEE",
"padding": "20"
}
},
{
"type": "space",
"height": "5"
},
{
"type": "label",
"style": {
"width": "100%",
"align": "center",
"font": "HelveticaNeue-Bold",
"size": "30",
"padding": "10",
"background": "#8bb92d",
"color": "#ffffff"
},
"text": "Sign in >",
"action": {
"type": "$network.request",
"options": {
"url": "https://demo.logedo.com/api/method/login",
"method": "post",
"data": {
"usr": "uzeyiroztemur@gmail.com",
"pwd": "uo@2022"
}
},
"success": {
"type": "$href",
"options": {
"url": "https://demo.logedo.com/app",
"transition": "replace"
}
},
"error": {
"type": "$util.banner",
"options": {
"title": "Error",
"description": "Something went wrong. Please check if you entered your email and password correctly"
}
}
}
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment