standardnotes / component-relay

A bridge that handles communication between Standard Notes and an external extension.
https://docs.standardnotes.com/extensions/components
GNU Affero General Public License v3.0
12 stars 5 forks source link

Did the install syntax change? #2

Closed ryanpcmcquen closed 6 years ago

ryanpcmcquen commented 6 years ago

I am attempting to install my Org mode editor using Import extension in the new Extensions menu, and nothing is happening. I paste the install link (https://github.com/ryanpcmcquen/standardnotes_org_mode_editor#install-link) in the Import extension box and hit enter, but the extension never gets installed.

moughxyz commented 6 years ago

Steps have changed: https://docs.standardnotes.org/extensions/publishing.html

ryanpcmcquen commented 6 years ago

How does this look? https://ryanpcmcquen.org/standardnotes_org_mode_editor/org_mode.json

Wasn't quite sure what all the different URLs were supposed to be ...

Getting errors when I use it:

dist.min.js:6 OPTIONS https://ryanpcmcquen.org/standardnotes_org_mode_editor/org_mode.json 405 ()
value @ dist.min.js:6
value @ dist.min.js:6
value @ dist.min.js:1
value @ dist.min.js:22
n.handleKeyPress @ dist.min.js:22
u @ dist.min.js:14
invokeGuardedCallback @ dist.min.js:22
invokeGuardedCallbackAndCatchFirstError @ dist.min.js:22
m @ dist.min.js:14
v @ dist.min.js:14
b @ dist.min.js:14
g @ dist.min.js:14
w @ dist.min.js:14
Kr @ dist.min.js:22
Oe @ dist.min.js:14
batchedUpdates @ dist.min.js:14
Z @ dist.min.js:14
Me @ dist.min.js:14
index.min.html:1 Failed to load https://ryanpcmcquen.org/standardnotes_org_mode_editor/org_mode.json: Response for preflight has invalid HTTP status code 405.
dist.min.js:6 Request error: 
(anonymous) @ dist.min.js:6
XMLHttpRequest.send (async)
value @ dist.min.js:6
value @ dist.min.js:6
value @ dist.min.js:1
value @ dist.min.js:22
n.handleKeyPress @ dist.min.js:22
u @ dist.min.js:14
invokeGuardedCallback @ dist.min.js:22
invokeGuardedCallbackAndCatchFirstError @ dist.min.js:22
m @ dist.min.js:14
v @ dist.min.js:14
b @ dist.min.js:14
g @ dist.min.js:14
w @ dist.min.js:14
Kr @ dist.min.js:22
Oe @ dist.min.js:14
batchedUpdates @ dist.min.js:14
Z @ dist.min.js:14
Me @ dist.min.js:14
dist.min.js:1 Error downloading package details 
dist.min.js:22 Uncaught TypeError: Cannot read property 'content_type' of null
    at dist.min.js:22
    at dist.min.js:1
    at e.<anonymous> (dist.min.js:6)
moughxyz commented 6 years ago

Check out the table "Key Descriptions" in https://docs.standardnotes.org/extensions/publishing.html.

url should be the hosted url of the web app.

ryanpcmcquen commented 6 years ago

OK, fixed the url, now I am getting a new error:

Request error: 
dist.min.js:6:1761
value/o.onreadystatechange<
https://app.standardnotes.org/extensions/extensions-manager/dist/dist.min.js:6:1761
Error downloading package details 
dist.min.js:1:4478
TypeError: n is null[Learn More]
dist.min.js:22:50807
value/<
https://app.standardnotes.org/extensions/extensions-manager/dist/dist.min.js:22:50807
value/<
https://app.standardnotes.org/extensions/extensions-manager/dist/dist.min.js:1:4529
value/o.onreadystatechange<
https://app.standardnotes.org/extensions/extensions-manager/dist/dist.min.js:6:1795
<anonymous> self-hosted:992:17
ryanpcmcquen commented 6 years ago

It was a CORS issue. Switching to https://gitcdn.link fixed it. Is there no longer a way to make an editor the default?

moughxyz commented 6 years ago

You can, from the Editor menu.