Escaneie com o iPhone para instalar
Pré-visualização
Auto pil tasarruf modu kestirmesinin güncellemelerini ve değişikliklerini bu kestirme ile çekebilirsiniz. Ayrıca size versiyon değişikliği ve nelerin değiştiğini gösterecektir
Novidades
Versão 2.0
Güncel
O que ele faz
30 ações-
Dictionary
-
Repeat
-
Set VariableLocalData
-
Get IP Address
-
Count
-
If
-
Show Alert
-
If
-
URLhttps://routinehub.co/api/v1/shortcuts/…/versions/latest
-
Get Contents of URL…
-
If
-
Dictionary
-
Text
-
URLdata:text/html,…
-
Get Contents of Web Page
-
If
-
Show AlertExLow Power Mode is up to date
-
If
-
If
-
Text
-
If
-
Text
-
Choose from Menu… … Güncellemeler devam edecektir, takipte kalın 👀
-
Choose from Menuİndir result (Version)
-
URLhttps://routinehub.co/download/…
-
Open URLs
-
Stop and Output
-
Choose from MenuYenile
-
If
-
Show Alert
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/network'
#define color red
#define glyph networkStorage
repeat _ for 3 {
@LocalData = {
"ID": "13943",
"Version": "4.2"
}
const CurrentIPAddress = getExternalIP()
const Count = count(CurrentIPAddress)
if Count == 0 {
confirm("Güncellemeler kontrol edilemedi, internet bağlantısı yok.")
} else {
url("https://routinehub.co/api/v1/shortcuts/{@LocalData['ID']}/versions/latest")
const result = downloadURL()
if result contains "success" {
const CompareVersionsData = {
"current": "{@LocalData['Version']}",
"new": "{result['Version']}"
}
const CompareVersionsHTML = "<html><head></head><body><script>\n// Embed-a-Engine 1.0\nfunction cmp (a, b) {\nlet pa = a.split('.');\nlet pb = b.split('.');\nfor (let i = 0; i < Math.max(pa.length, pb.length); i++) {\nlet na = Number(pa[i]);\nlet nb = Number(pb[i]);\nif (isNaN(na)) na = 0;\nif (isNaN(nb)) nb = 0;\nif (na > nb) return \\"RollbackAvailable\\";\nif (nb > na) return \\"UpdateAvailable\\";\n}\nreturn \\"NoChanges\\";\n};\nlet data = {CompareVersionsData};\ndocument.write(cmp(data.current, data.new));\n</script></body></html>"
url("data:text/html,{CompareVersionsHTML}")
const ContentsOfWebPage = getWebpageContents()
if ContentsOfWebPage == "NoChanges" {
alert("", "ExLow Power Mode is up to date")
} else {
if ContentsOfWebPage == "RollbackAvailable" {
} else {
}
menu "{}\n\n{result['Notes']}\nGüncellemeler devam edecektir, takipte kalın 👀 " {
item "İndir {result['Version']}":
const URL = url("https://routinehub.co/download/{result['id']}")
openURL(URL)
output(URL)
item :
}
}
} else {
alert("\nBir RoutineHub hatası nedeniyle güncellemeler kontrol edilemedi:", "")
}
}
}
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 majorata
Você também pode gostar
Publicidade