- 13 Jun, 2017 3 commits
-
-
Robert Knight authored
This fixes a build error with Node v8.
-
Sean Roberts authored
Multiple frame detection and injection
-
Sean Roberts authored
Enable ES2015 transpilation in the client
-
- 12 Jun, 2017 12 commits
-
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
(was testing `srcdoc` and forgot to remove this before pushing)
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
Juan Corona authored
-
- 08 Jun, 2017 10 commits
-
-
Robert Knight authored
Extract isBrowserExtension() into a separate settings function
-
Sean Hammond authored
-
Sean Hammond authored
-
Sean Hammond authored
-
Sean Hammond authored
-
Sean Hammond authored
If the host page contains a service setting then the client should de…
-
Robert Knight authored
Don't throw if hypothesisConfig() isn't a function
-
Robert Knight authored
Don't throw on invalid JSON
-
Robert Knight authored
Simplify reading query and annotations
-
Sheetal Umesh Kumar authored
We need to be able to support the client to work with different annotation services, other than just `https://hypothes.is/api`. If the settings from the host doesn't specify a service, the client should fall back to using the default apiUrl which would be `https://hypothes.is/api`. https://github.com/hypothesis/product-backlog/issues/278
-
- 07 Jun, 2017 13 commits
-
-
Robert Knight authored
Running the code through Babelify before instrumenting it for code coverage resulted in incorrect statement location metadata. See the "statementMap" sections of the two files in https://gist.github.com/robertknight/4ec0f2c3509af61c31ffd574fe16cb74 Since Isparta already supports ES6 internally, it can instrument the original untranspiled source, the problem can be resolved by switching the order of the transforms. See https://github.com/karma-runner/karma-coverage/issues/157#issuecomment-302133802
-
Robert Knight authored
dom-anchor-fragment's package.json specifies that the untranspiled source should be used in the browser, together with Browserify configuration. This isn't compatible with the Babelify configuration that is used to transpile the main client's code. Resolve the issue by configuring the client explicitly to use the pre-transpiled version of the source in the package.
-
Robert Knight authored
The previous version of dom-seek included untranspiled source and provided Browserify transform configuration for an older version of Babelify, which is incompatible with the version being used to transform the client's main source. The latest dom-seek release ships pre-transpiled code which doesn't have this problem.
-
Robert Knight authored
* Enable Babelify transform for Browserify in tests. * Rename `await` helper function because `await` is a reserved keyword in ES2015+.
-
Robert Knight authored
Enable use of ES6 language features via Babel in the sidebar app and annotator code. - Update Babelify to the current version - Add preset for transpiling ES2015
-
Sean Hammond authored
Log a warning, rather than throwing an error, if window.hypothesisConfig() exists but isn't a function. "Warn but continue" is in line with our general approach to handling invalid configuration in the client. For example if there's an invalid js-hypothesis-config script in the page it logs a warning and continues. For some required config settings, such as config.app, if the setting is invalid then the client crashes out immediately because it can't continue. But otherwise it should warn and continue.
-
Sean Hammond authored
Don't throw an error when parsing an invalid js-hypothesis-config JSON script. This error thrown by shared.settings#jsonConfigsFrom() was caught in one of the places where that function is called, but not in other places where it's called. Move the error catching and warning logging into the shared function instead. This now means, for example, that boot/index.js no longer crashes (bringing down the entire app) if the host page contains an invalid js-hypothesis-config. Unfortunately since jsonConfigsFrom() is called _twice_ on page load to read the same js-hypothesis-config objects from the host page (it's called once by boot/index.js and once by annotator/config/config.js) if there's an invalid js-hypothesis-config a warning about it will be logged twice.
-
Sean Hammond authored
-
Sean Hammond authored
There was some code complexity here aimed at ensuring that _either_ config.annotations or config.query would be set but never both. It isn't really necessary for the code to maintain this condition, especially given that the way that both settings are read from the URL fragment means that both cannot be present at once anyway.
-
Sean Hammond authored
Extract a new configFuncSettingsFrom() function
-
Sean Hammond authored
-
Robert Knight authored
Extract app() into separate function
-
Robert Knight authored
Simplify a test fake
-
- 06 Jun, 2017 2 commits
-
-
Sean Roberts authored
-
Sean Roberts authored
-