Escaneie com o iPhone para instalar
Made this a long time ago but here you go anyways
Novidades
Versão 3.98
Fixed
O que ele faz
40 ações-
Ask for InputEmail
-
Get Text from Input
-
If
-
Show NotificationCan't be blank
-
If
-
If
-
Show NotificationPlease remove the space
-
If
-
If
-
Split Text
-
Get Item from List
-
Get Item from List
-
Text
-
Open URLs
-
If
-
If
-
Show NotificationPlease add @
-
If
-
If
-
Show NotificationCan't only be a .
-
If
-
If
-
Show NotificationCan't begin with .
-
If
-
If
-
Show NotificationCan't end with .
-
If
-
If
-
Show NotificationCan't just be @
-
If
-
If
-
Show NotificationCan't begin with @
-
If
-
If
-
Show NotificationCan't end with @
-
If
-
If
-
Show NotificationPlease add .
-
If
-
Show NotificationUnknown Error
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#include 'actions/web'
#include 'actions/text'
#define color darkblue
#define glyph shield
const AskForInput = prompt("Email", false)
const Text = getText(AskForInput)
if !Text {
showNotification("Can't be blank", "Error", false)
} else {
if Text contains " " {
showNotification("Please remove the space", "Error", false)
} else {
if Text contains "@" && Text contains "." {
const SplitText = splitText(Text, "@")
getLastItem(SplitText)
getLastItem(SplitText)
const Text1 = "https://accounts.google.com/AddSession?Email={}%40{}&continue=https%3A%2F%2Fwww.google.com%2F"
openURL(Text1)
} else {
if Text !contains "@" {
showNotification("Please add @", "Error", false)
} else {
if Text == "." {
showNotification("Can't only be a .", "Error", false)
} else {
if Text beginsWith "." {
showNotification("Can't begin with .", "Error", false)
} else {
if Text endsWith "." {
showNotification("Can't end with .", "Error", false)
} else {
if Text == "@" {
showNotification("Can't just be @", "Error", false)
} else {
if Text beginsWith "@" {
showNotification("Can't begin with @", "Error", false)
} else {
if Text endsWith "@" {
showNotification("Can't end with @", "Error", false)
} else {
if Text !contains "." {
showNotification("Please add .", "Error", false)
} else {
showNotification("Unknown Error", "Error", false)
}
}
}
}
}
}
}
}
}
}
}
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de coltensus
Você também pode gostar
Publicidade