-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
254 additions
and
281 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,62 @@ | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
padding: 0 0 20px; | ||
box-sizing: border-box; | ||
margin: 0; | ||
background-color: #ECECEC; | ||
color: #000; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
body { | ||
background-color: #2A2927; | ||
color: #fff; | ||
} | ||
} | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
button { | ||
-webkit-appearance: button; | ||
margin: 5px; | ||
} | ||
|
||
.button-container { | ||
display: flex; | ||
justify-content: center; | ||
gap: 12px; | ||
width: 100%; | ||
position: absolute; | ||
bottom: 40px; | ||
} | ||
|
||
p { | ||
font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif; | ||
font-size: 15px; | ||
font-weight: 600; | ||
padding-top: 25pt; | ||
} | ||
|
||
input[type="text"]{ | ||
width:100%; | ||
height:26px; | ||
border-radius:4px; | ||
border-width:1px; | ||
margin-bottom:10px; | ||
padding-left:5px; | ||
box-sizing: border-box; | ||
} | ||
|
||
input[type="submit"]{ | ||
height: 20px; | ||
font-family: 'SFProText'; | ||
font-size: 13px; | ||
text-align: center; | ||
} |
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,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Request Auth Code</title> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" type="text/css" href="css/styles.css"> | ||
</head> | ||
<body> | ||
<form> | ||
<label> | ||
<p>Client ID</p> | ||
<input type="text" id="clientID"> | ||
</label> | ||
<label> | ||
<p>Scopes (Space Separated)</p> | ||
<input type="text" id="scopes"> | ||
</label> | ||
<p> | ||
<button type="button" id="submitButton">Request</button> | ||
</p> | ||
</form> | ||
<script src="form.js"></script> | ||
</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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const clientIDField = document.getElementById('clientID'); | ||
const scopesField = document.getElementById('scopes'); | ||
const submitButton = document.getElementById('submitButton'); | ||
|
||
submitButton.addEventListener('click', () => { | ||
window.setappBridge.requestAuthCode(clientIDField.value, scopesField.value); | ||
}); |
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,35 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | ||
<title>Setapp Client</title> | ||
<link rel="stylesheet" type="text/css" href="css/style.css"> | ||
</head> | ||
<body> | ||
<div> | ||
<img class="setapp-icon" src="res/SetappIcon.png"> | ||
</div> | ||
<div class="main-container"> | ||
<div class="header-text"> | ||
<p class="app-title">Setapp Client</p> | ||
<p class="app-description">Integration with Setapp library</p> | ||
</div> | ||
<div class="main-actions"> | ||
<input type="text" id="client-id" placeholder="Client ID"> | ||
<input type="text" id ="scope" placeholder="Scope (Space Separated)"> | ||
<div class="buttons-container"> | ||
<input class="request-button" id="request-button" type="submit" value="Request"> | ||
<div class="main-buttons"> | ||
<input class="share-email-button" id="share-email-button" type="submit" value="Share Email..." onclick="shareEmailButtonClick()"> | ||
<input class="release-notes-button" id="release-notes-button" type="submit" value="Release Notes..." onclick="releaseNotesButtonClick()"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="logs-container"> | ||
<p id="response-log" class="logs-text"></p> | ||
</div> | ||
</div> | ||
<script src="renderer.js"></script> | ||
</body> | ||
<head> | ||
<title>Sample App</title> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" type="text/css" href="css/styles.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<img src="res/checkmark.circle.svg" alt="Checkmark"> | ||
<p>Active Setapp Subscription</p> | ||
</div> | ||
<div class="button-container"> | ||
<button id="show-release-notes-button">Show Release Notes</button> | ||
<button id="ask-for-email-button">Ask for Email</button> | ||
<button id="request-auth-code-button">Request Auth Code</button> | ||
<script src="renderer.js"></script> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.