- 24 Sep, 2014 2 commits
-
-
Aron Carroll authored
-
Randall Leeds authored
The embed code has for some time been the place where our application is bootstrapped. When we did the epub.js integration, we added query parameters to the embed.js view to control which plugins were loaded by each instance of the application (a widget host for the reader frame and a slimmer guest annotator for the chapter frames). Change the injection bundle to instead include a separate bootstrap script. This has the nice benefit of ensuring that while we still use yepnope or a similar technique for script injection that our bootstrap code runs in the same global context as the application dependencies whether or not the embed script is run in a normal context or a Chrome extension content script context. The need for an inline script created by the embed code is no longer, since it is a separate script fetched from the server (it's bundled in production, inside the monolithic hypothesis-assets.js). Instead of passing the URI of the sidebar iframe by templating the bootstrap script, the embed script adds a link tag to the page with ``rel=sidebar`` and ``type=application/annotator+html``, which the bootstrap script looks for. This pattern fits nicely with the existing role of ``rel=sidebar`` in Firefox and Opera and nicely decouples the embeding and the bootstrapping. Further customization that used to take place in the query parameters is now done through ``window.hypothesisRole``, which can specify an alternate constructor, and ``window.hypothesisConfig``, which can be a function to configure the options passed to the constructor. This function will be useful for Single Sign On options, too, as laid out in #1437. The destroy script from the Chrome extension is put alongside the new bootstrap script, as they complement one another and are not extension specific.
-
- 22 Sep, 2014 1 commit
-
-
Randall Leeds authored
Search for usernames
-
- 19 Sep, 2014 6 commits
-
-
gergely-ujvari authored
Remove d3 dependency
-
Aron Carroll authored
Replace the background with a grey bar using a div.
-
Aron Carroll authored
Previously it would update on every scroll or resize event fired on either the document or body.
-
Aron Carroll authored
This improves performance while scrolling as we're no longer destroying and recreating every tab on each call to update.
-
Aron Carroll authored
This makes the style and attribute iterators work correctly
-
Randall Leeds authored
-
- 18 Sep, 2014 10 commits
-
-
Randall Leeds authored
Cleanup font icons and add Markdown glyphs
-
Aron Carroll authored
-
Aron Carroll authored
We now only have one of each icon type where possible.
-
Aron Carroll authored
-
Aron Carroll authored
-
Aron Carroll authored
-
Gergely Ujvari authored
As now we only use it with a false parameter every time, it is no longer serving any purpose
-
Gergely Ujvari authored
This way we can search both for the username and the full user format. Fix #1456
-
Gergely Ujvari authored
-
Aron Carroll authored
-
- 17 Sep, 2014 13 commits
-
-
gergely-ujvari authored
Sync the bridge after beforeAnnotationCreated
-
Gergely Ujvari authored
-
Randall Leeds authored
Spotted by @gergely-ujvari
-
Randall Leeds authored
This ensures that plugins on both sides have fired and any resulting modifications are synchronized (document plugin, for instance). Fix #1502
-
Randall Leeds authored
Remove parent and url values in streamer and notifications
-
Randall Leeds authored
Conflicts: h/static/styles/app.scss
-
Aron Carroll authored
Change save shortcut to meta/ctrl + enter.
-
Aron Carroll authored
Classes had been added to the stylesheet but not to the template, and those that were had typos.
-
Aron Carroll authored
-
Aron Carroll authored
This was causing the annotation to render with too much whitespace now that it uses sections rather than divs.
-
Aron Carroll authored
-
gergely-ujvari authored
Hyphenate camel case filenames
-
Aron Carroll authored
-
- 16 Sep, 2014 8 commits
-
-
Randall Leeds authored
Add sphinx to doc
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
Aron Carroll authored
Overhaul view and sort behaviour.
-