-
-
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 #11 from ciderapp/next
Cider 2.5.x
- Loading branch information
Showing
7 changed files
with
379 additions
and
485 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"axe/forms": "off" | ||
} | ||
} |
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
53 changes: 53 additions & 0 deletions
53
src/sh.cider.streamdeck.sdPlugin/actions/authorization/inspector.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,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui,viewport-fit=cover" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
<title>CiderDeck Settings</title> | ||
<link rel="stylesheet" href="../../libs/css/sdpi.css" /> | ||
</head> | ||
|
||
<body> | ||
<div class="sdpi-wrapper"> | ||
<hr class="tab-separator"> | ||
<form id="property-inspector"> | ||
<div id="tab1" class="tab-container"> | ||
<div class="sdpi-item"> | ||
<div data-localize class="sdpi-item-label" title="RPC Key">RPC Key</div> | ||
<input data-localize class="sdpi-item-value" name="authkey" id="authKey" type="password" /> | ||
</div> | ||
</div> | ||
</form> | ||
<div class="sdpi-item"> | ||
<button | ||
class="sdpi-item-value" | ||
value="authorize" | ||
data-localize | ||
id="authorize"> | ||
Authorize | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="sdpi-info-label hidden" style="top: -1000" value=""></div> | ||
|
||
<!-- Stream Deck Libs --> | ||
<script src="../../libs/js/constants.js"></script> | ||
<script src="../../libs/js/prototypes.js"></script> | ||
<script src="../../libs/js/timers.js"></script> | ||
<script src="../../libs/js/utils.js"></script> | ||
<script src="../../libs/js/events.js"></script> | ||
<script src="../../libs/js/api.js"></script> | ||
<script src="../../libs/js/property-inspector.js"></script> | ||
<script src="../../libs/js/dynamic-styles.js"></script> | ||
|
||
<!-- Property Inspector Source --> | ||
<script src="inspector.js"></script> | ||
</body> | ||
|
||
</html> |
22 changes: 22 additions & 0 deletions
22
src/sh.cider.streamdeck.sdPlugin/actions/authorization/inspector.js
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,22 @@ | ||
/// <reference path="../../libs/js/property-inspector.js" /> | ||
/// <reference path="../../libs/js/utils.js" /> | ||
|
||
$PI.onConnected((jsn) => { | ||
const {actionInfo, appInfo, connection, messageType, port, uuid} = jsn; | ||
const {payload, context} = actionInfo; | ||
const {settings} = payload; | ||
$PI.getGlobalSettings(); | ||
}); | ||
|
||
let form = document.querySelector('#property-inspector'); | ||
|
||
$PI.onDidReceiveGlobalSettings(({payload}) => { | ||
console.log('onDidReceiveGlobalSettings', payload); | ||
form.querySelector('#authKey').value = payload.settings.authkey; | ||
}) | ||
|
||
document.querySelector('#authorize').addEventListener('click', () => { | ||
let authKey = Utils.getFormValue(form); | ||
$PI.setGlobalSettings(authKey); | ||
console.log('button clicked yo!', authKey); | ||
}); |
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
Oops, something went wrong.