1. 08 Mar, 2017 4 commits
    • Sean Hammond's avatar
      Change "sidebar" to "client" in config.md · b16696db
      Sean Hammond authored
      config.md was interchangeably using "sidebar" and "client" to refer to
      the client. Fix it to always use "client" because it's more consistent.
      I chose client instead of sidebar because (both technically speaking and
      in terms of the UI) not all of these settings actually refer to the
      sidebar, e.g. showHighlights and assetRoot. Also client is the word used
      by the git repo name and in the README file.
      b16696db
    • Sean Hammond's avatar
      Fix config.md heading levels · e48830ed
      Sean Hammond authored
      For example "Client behavior" was a sibling heading of "Config keys",
      not a sub heading as intended. Fix all the heading levels so that
      headings are nested as they were intended to be.
      e48830ed
    • Robert Knight's avatar
      Merge pull request #272 from hypothesis/security-docs · 9d8ab81f
      Robert Knight authored
      Add overview of client security considerations
      9d8ab81f
    • Nick Stenning's avatar
      Add overview of client security considerations · 5b0a8349
      Nick Stenning authored
      Add a preliminary overview of client security considerations and
      implementation decisions.
      5b0a8349
  2. 06 Mar, 2017 11 commits
  3. 03 Mar, 2017 1 commit
  4. 02 Mar, 2017 3 commits
  5. 01 Mar, 2017 11 commits
  6. 28 Feb, 2017 5 commits
    • Robert Knight's avatar
      Make boot script load settings from correct config tags (#243) · 68be70df
      Robert Knight authored
      An inconsistency crept in where the annotator code reads settings from
      JSON script tags with a 'js-hypothesis-config' class name but the sidebar app
      reads settings from JSON script tags with a 'js-hypothesis-settings'
      class name. The boot script ended up using 'js-hypothesis-settings'
      which is the default class name specified in `settings.js`.
      
      We should use the same name everywhere, which needs to be
      'js-hypothesis-config' since that is used by the public documentation
      [1].
      
      This commit changes the default class to `js-hypothesis-config` and
      removes the ability to specify alternative class names when calling
      `settings()`.
      
      The extension and service will need to be updated to use the new class
      name.
      
      [1] See docs/config.md
      68be70df
    • Nick Stenning's avatar
      Merge pull request #229 from hypothesis/package-content-server · e743717c
      Nick Stenning authored
      Add an express server which serves the package's contents.
      e743717c
    • Sean Hammond's avatar
      Merge pull request #262 from hypothesis/fix-pdf-quote-anchoring-2 · 5b836627
      Sean Hammond authored
      Fix PDF quote anchoring (Part II)
      5b836627
    • Sean Hammond's avatar
      Support onLogin callbacks from partner sites · 0ca108c0
      Sean Hammond authored
      When the client is embedded in a partner site and a login button in the
      client is clicked, call the JavaScript onLogin function that was
      provided to us by the partner via the window.hypothesisConfig function.
      
      When not embedded in a partner site, just prompt for a first-party login
      as normal.
      
      Note that this means that if the client is embedded in a partner site
      with no onLogin callback in window.hypothesisConfig, then nothing will
      happen when the login button in the client is clicked.
      0ca108c0
    • Sean Hammond's avatar
      Separate bridge events by direction · 473fa634
      Sean Hammond authored
      Separate bridge events sent from sidebar to annotator and from annotator
      to sidebar into two separate sections in the source code. Just to make
      documentation of the events clearer.
      473fa634
  7. 27 Feb, 2017 5 commits