1. 24 Jan, 2017 4 commits
  2. 23 Jan, 2017 3 commits
  3. 19 Jan, 2017 3 commits
  4. 18 Jan, 2017 1 commit
    • Robert Knight's avatar
      Fetch access tokens and add Authorization header to API requests · 4b03e69d
      Robert Knight authored
      Remove the global HTTP interceptor provided by angular-jwt which added
      the Authorization header to API requests and replace it with explicit
      logic in `createAPICall` to do the same thing.
      
      This will enable replacing the JWT tokens with opaque access tokens when
      using a publisher-provided grant token for authentication.
      
      It also provides a more explicit way to only include the access token
      with requests to the API, rather than filtering based on the URL prefix
      of the request in the `tokenGetter` implementation.
      
       * Remove angular-jwt's HTTP interceptor and replace it with logic in
         store.js to explicitly fetch an access token using the `auth` module
         and add an Authorization header to API requests.
      
       * Convert standalone functions and global variables in auth.js to
         methods on the auth service. This will enable swapping out the
         current auth service implementation which uses cookies + CSRF
         for authentication with one that uses the OAuth grant token.
      
       * Fix several cases in store-test.js where functions that made
         assertions inside Promise callbacks did not explicitly wait for the
         Promise to resolve before finishing the test.
      4b03e69d
  5. 17 Jan, 2017 2 commits
  6. 16 Jan, 2017 7 commits
  7. 12 Jan, 2017 2 commits
  8. 10 Jan, 2017 7 commits
  9. 09 Jan, 2017 1 commit
  10. 05 Jan, 2017 3 commits
    • Robert Knight's avatar
      Remove initial redirect when sidebar loads · 1c933e5a
      Robert Knight authored
      Avoid redirecting to '/viewer' when the sidebar loads.
      
      This redirect is unnecessary since the sidebar never changes its mode
      once loaded and it caused the viewer embedded on a page to fail to load
      when restoring a closed tab in Chrome.
      
      This may also resolve issues where the user agent disallows the
      'replaceState' call in certain situations (search prod-client reports on
      Sentry for "replaceState")
      
      Fixes #178
      1c933e5a
    • Robert Knight's avatar
      0.50.0 · 26bd2791
      Robert Knight authored
      26bd2791
    • Robert Knight's avatar
      Update Change Log · 743ce656
      Robert Knight authored
      743ce656
  11. 23 Dec, 2016 4 commits
  12. 22 Dec, 2016 1 commit
    • Robert Knight's avatar
      Display annotations in Annotations tab after timeout · cd4039ca
      Robert Knight authored
      Instead of marking annotations as orphans after the anchoring timeout
      expires, instead display them in the Annotations tab but with a visual
      indicator that they have not yet anchored. This avoids showing
      annotations that are still anchoring in the Orphans tab, which can be
      confusing when it happens in long PDF documents with many annotations.
      
       * Add an `$anchorTimeout` flag to annotations that is set if
         annotations fail to anchor within the timeout period.
      
       * Display annotations with this flag set in the Annotations tab,
         on the optimistic basis that they will eventually anchor.
      
       * When rendering annotations with this flag set, display them with
         a quote struck through (same as orphans) to indicate that they are
         pending. The visual representation of the pending state may be
         tweaked in future.
      cd4039ca
  13. 21 Dec, 2016 2 commits