Skip to content

Commit

Permalink
chore: release 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-macpaw committed Nov 13, 2023
1 parent bb2309a commit 822f260
Show file tree
Hide file tree
Showing 27 changed files with 254 additions and 281 deletions.
11 changes: 6 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Add this line to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/
.swiftpm/
Expand All @@ -80,7 +80,7 @@ Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Add this line to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts
Carthage/Build

Expand All @@ -90,7 +90,7 @@ Dependencies/

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# It is recommended not to store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
Expand All @@ -100,9 +100,10 @@ fastlane/screenshots/
fastlane/test_output

# node.js, yarn, electron
node_modules
yarn-error.log
*.tgz
yarn.lock
yarn-error.log
node_modules/
/nodejs/lib/binding
/nodejs/dist
/Samples/Electron/dist
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.0.2] - 2023-11-13

### Fixed
* [Electron] `npm install` and `yarn install` now work correctly.


## [4.0.0] - 2023-10-18

### Updated
Expand Down
2 changes: 0 additions & 2 deletions Samples/Electron/.wrapper/.gitkeep

This file was deleted.

98 changes: 0 additions & 98 deletions Samples/Electron/app/css/style.css

This file was deleted.

62 changes: 62 additions & 0 deletions Samples/Electron/app/css/styles.css
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;
}
24 changes: 24 additions & 0 deletions Samples/Electron/app/form.html
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>
7 changes: 7 additions & 0 deletions Samples/Electron/app/form.js
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);
});
49 changes: 17 additions & 32 deletions Samples/Electron/app/index.html
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>
Loading

0 comments on commit 822f260

Please sign in to comment.