-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Andreag00/dev
Merge ShorteNB v1.2b2 into main
- Loading branch information
Showing
24 changed files
with
316 additions
and
108 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,89 @@ | ||
<!DOCTYPE html> | ||
<html lang="it"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
<title>Nuova versione disponibile!</title> | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
touch-action: manipulation; | ||
outline: none; | ||
} | ||
|
||
body { | ||
padding: 30px 25px 30px 30px; | ||
background: #ffffff; | ||
color: #000; | ||
font-family: system-ui; | ||
font-weight: 700; | ||
letter-spacing: 0.025em; | ||
} | ||
|
||
h1 { | ||
font-size: 40px; | ||
font-weight: 800; | ||
line-height: 40px; | ||
margin-top: 10px; | ||
} | ||
|
||
h2 { | ||
margin-top: 15px; | ||
font-size: 30px; | ||
font-weight: 700; | ||
} | ||
|
||
h3 { | ||
margin-top: 15px; | ||
margin-bottom: 30px; | ||
} | ||
|
||
p { | ||
margin-top: 20px; | ||
font-weight: 300; | ||
} | ||
|
||
.name { | ||
color: #7c4cb2; | ||
} | ||
|
||
.blue { | ||
color: #0a84ff; | ||
font-weight: 800; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
p, | ||
button { | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
user-select: none; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
body { | ||
background-color: #000; | ||
color: #f1f1f1; | ||
} | ||
|
||
p { | ||
color: #f1f1f1; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<h2> È disponibile una nuova versione di <span class="name">ShorteNB</span>! </h2> | ||
|
||
<p>È stata pubblicata una versione più recente dello Shortcut rispetto a quella installata <strong>(Dictionary (currentVersion) -> Dictionary (latestVersion))</strong> </p> | ||
|
||
<h3>Changelog:</h3> | ||
<p>Puoi leggere il changelog della nuova release su GitHub, premendo <span class="blue"><a href="https://www.github.com/Andreag00/ShorteNB/releases/tag/vDictionary (latestVersion)/">qui</a></span>.</p> | ||
|
||
<p>Per procedere, premere sul tasto <span class="blue">Fine</span> in alto a destra.</p> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,19 +1,16 @@ | ||
let currentVersion = "Dictionary (currentVersion)"; | ||
var bool = ""; | ||
|
||
let req = new Request("https://raw.githubusercontent.com/Andreag00/ShorteNB/main/version"); | ||
let data = await req.load(); | ||
latestVersion = data.toRawString(); | ||
|
||
if (latestVersion == currentVersion) { | ||
bool = 1; | ||
return{bool}; | ||
} else { | ||
let req2 = new Request("https://raw.githubusercontent.com/Andreag00/ShorteNB/main/changelog"); | ||
let data2 = await req2.load(); | ||
changelog = data2.toRawString(); | ||
bool = 0; | ||
return{bool,changelog,latestVersion}; | ||
} | ||
|
||
let currentVersion = "Dictionary (currentVersion)"; | ||
var bool = ""; | ||
|
||
let req = new Request("https://raw.githubusercontent.com/Andreag00/ShorteNB/main/version"); | ||
let data = await req.load(); | ||
latestVersion = data.toRawString(); | ||
|
||
if (latestVersion == currentVersion) { | ||
bool = 1; | ||
return{bool}; | ||
} else { | ||
bool = 0; | ||
return{bool,latestVersion}; | ||
} | ||
|
||
Script.complete(); |
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,6 @@ | ||
if (Keychain.contains("setup") == false) { | ||
Keychain.set("setup","false") | ||
} | ||
let bool = Keychain.get("setup"); | ||
return{bool}; | ||
Script.complete(); |
Oops, something went wrong.