-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remote: Scrypted remote plugin (#585)
* include implementation from standalone repo * simplify monkeypatching
- Loading branch information
Showing
10 changed files
with
517 additions
and
0 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,4 @@ | ||
.DS_Store | ||
out/ | ||
node_modules/ | ||
dist/ |
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,10 @@ | ||
.DS_Store | ||
out/ | ||
node_modules/ | ||
*.map | ||
fs | ||
src | ||
.vscode | ||
dist/*.js | ||
.venv | ||
tsconfig.json |
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 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Scrypted Debugger", | ||
"address": "${config:scrypted.debugHost}", | ||
"port": 10081, | ||
"request": "attach", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"preLaunchTask": "scrypted: deploy+debug", | ||
"sourceMaps": true, | ||
"localRoot": "${workspaceFolder}/out", | ||
"remoteRoot": "/plugin/", | ||
"type": "pwa-node" | ||
} | ||
] | ||
} |
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,4 @@ | ||
|
||
{ | ||
"scrypted.debugHost": "127.0.0.1", | ||
} |
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,20 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "scrypted: deploy+debug", | ||
"type": "shell", | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "silent", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"command": "npm run scrypted-vscode-launch ${config:scrypted.debugHost}", | ||
}, | ||
] | ||
} |
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,3 @@ | ||
# Scrypted Remote Plugin | ||
|
||
The Scrypted Remote Plugin allows connecting this Scrypted instance to a remote Scrypted server, using the Scrypted Client API. Devices from the remote Scrypted server will be imported to this current Scrypted instance. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,39 @@ | ||
{ | ||
"name": "@scrypted/scrypted-remote", | ||
"version": "0.0.1", | ||
"description": "Scrypted Remote Plugin", | ||
"scripts": { | ||
"scrypted-setup-project": "scrypted-setup-project", | ||
"prescrypted-setup-project": "scrypted-package-json", | ||
"build": "scrypted-webpack", | ||
"prepublishOnly": "NODE_ENV=production scrypted-webpack", | ||
"prescrypted-vscode-launch": "scrypted-webpack", | ||
"scrypted-vscode-launch": "scrypted-deploy-debug", | ||
"scrypted-deploy-debug": "scrypted-deploy-debug", | ||
"scrypted-debug": "scrypted-debug", | ||
"scrypted-deploy": "scrypted-deploy", | ||
"scrypted-readme": "scrypted-readme", | ||
"scrypted-package-json": "scrypted-package-json" | ||
}, | ||
"keywords": [ | ||
"scrypted", | ||
"plugin", | ||
"remote" | ||
], | ||
"scrypted": { | ||
"name": "Scrypted Remote Plugin", | ||
"type": "DeviceCreator", | ||
"interfaces": [ | ||
"DeviceProvider", | ||
"DeviceCreator" | ||
] | ||
}, | ||
"dependencies": { | ||
"@scrypted/client": "file:../../packages/client", | ||
"@scrypted/sdk": "file:../../sdk", | ||
"uuid": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.24" | ||
} | ||
} |
Oops, something went wrong.