- 09 Oct, 2018 1 commit
-
-
Robert Knight authored
-
- 24 Sep, 2018 3 commits
-
-
Robert Knight authored
-
Robert Knight authored
Fix leaving a group from the client
-
Robert Knight authored
https://github.com/hypothesis/h/commit/46e4bbadc991d550ca9706b5237e35d68675a6cc made a breaking change to the public API of the endpoint for removing the current user from a group by renaming the "user" path parameter to "userid". Given that this change has been out for some time, I have opted to fix the client rather than revert the change in the service. Fixes #774
-
- 18 Sep, 2018 3 commits
-
-
Dave Wolfe authored
-
Dave Wolfe authored
-
Robert Knight authored
Update core-js
-
- 17 Sep, 2018 1 commit
-
-
Dave Wolfe authored
Add aria label to share button in client menu
-
- 14 Sep, 2018 16 commits
-
-
Dave Wolfe authored
In addition to adding the label, this changes the <a> to a <button> as well. Fixes https://github.com/hypothesis/product-backlog/issues/780
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
Fetch config via postMessage RPC if `requestConfigFromFrame` is set
-
Robert Knight authored
This causes the client to fetch settings from an ancestor frame on startup if necessary.
-
Robert Knight authored
Implement `fetchConfig` function which fetches config from the host page / embedding web app and merges it with config rendered into the sidebar HTML page. This function supports a new method of fetching config from the embedder by performing a "requestSidebarConfig" RPC call to the origin set with the "requestSidebarConfigFromFrameWithOrigin" setting. That setting must itself by set in the page where the embed.js script is loaded. Also extract the `assertPromiseIsRejected` helper into `promise-util.js` for re-use and add a note about needing to return the result.
-
Robert Knight authored
Read sidebar app config asynchronously on startup
-
Robert Knight authored
Add client for making JSON-RPC calls over postMessage
-
Robert Knight authored
In preparation for introducing an optional new postMessage-based method for the sidebar app to fetch configuration from its embedder, make the setting fetch flow async. - Move the Angular app startup logic into a function which receives settings as an argument. - Add a function to merge config rendered into the sidebar app HTML page with config fetched asynchronously from a host frame.
-
Robert Knight authored
Add "requestConfigFromFrame" string setting
-
Robert Knight authored
Without this field all the test cases still pass, but for the wrong reason, since the origin field is checked before other event properties.
-
Robert Knight authored
Replace "var" with "const" or "let" everywhere
-
Robert Knight authored
-
Robert Knight authored
Update our JS standard library polyfills to the latest stable release.
-
Robert Knight authored
This setting will cause the sidebar app to fetch its configuration via a postMessage request to frames with the given origin on startup. The setting is not actually used yet. This is coming in future commits.
-
Robert Knight authored
We need a way for the client to request configuration from an embedding frame over `postMessage`. JSON-RPC is a well-known, simple and convenient format for RPC messages. There are several npm packages which claim to offer this functionality but at the time of writing, none appeared to be sufficiently well tested/supported/documented. There is an existing partial postMessage JSON-RPC server implementation in src/sidebar/cross-origin-rpc.js. The non-app specific parts of that will be moved into this module in future.
-
- 13 Sep, 2018 5 commits
-
-
Robert Knight authored
To ensure consistency going forwards, enforce usage of const/let
-
Robert Knight authored
Fix the uses which js-codemod's "no vars" transform was unable to change automatically.
-
Robert Knight authored
This is the result of using jscodeshift [1] to apply the "no-vars" transform from js-codemod [2] on all code in scripts/ and to gulpfile.js [1] https://github.com/facebook/jscodeshift [2] https://github.com/cpojer/js-codemod
-
Robert Knight authored
-
Robert Knight authored
This is the result of using jscodeshift [1] to apply the "no-vars" transform from js-codemod [2] on all code in src/ except for src/{annotator, sidebar}/vendor. [1] https://github.com/facebook/jscodeshift [2] https://github.com/cpojer/js-codemod
-
- 04 Sep, 2018 1 commit
-
-
Sean Hammond authored
Add documentation for externalContainerSelector
-
- 30 Aug, 2018 1 commit
-
-
Robert Knight authored
Update to Node 10 for Jenkins and Travis builds
-
- 22 Aug, 2018 5 commits
-
-
Robert Knight authored
-
Robert Knight authored
The official Docker node builds now have Yarn preinstalled, so use that instead of a community-provided image.
-
Robert Knight authored
Use `yarn version --minor` to bump the package version. This requires Yarn >= v1.7.0.
-
Robert Knight authored
-
Robert Knight authored
-
- 21 Aug, 2018 1 commit
-
-
Sean Hammond authored
Inject a default organization into groups objects without organizations
-
- 15 Aug, 2018 2 commits
-
-
Lyza Danger Gardner authored
-
Hannah Stepanek authored
Create annotation when clicking "Annotate" button label
-
- 10 Aug, 2018 1 commit
-
-
Robert Knight authored
-