1. 06 Apr, 2016 1 commit
    • Robert Knight's avatar
      Require templates with require() in components · 25d03849
      Robert Knight authored
      Include Angular component templates as strings in the app bundle using
      the stringify Browserify transform and use them from directives using
      'template' instead of 'templateUrl'.
      
      This is faster, because it avoids going through the async $http
      machinery to load templates, but it is also synchronous, which generally
      means fewer surprises due to async template loading and specifically in
      the context of the <excerpt> directive will be useful as it will make it
      possible for the <excerpt> directive to measure the height of its
      content in the link function, because all components inside the
      exercept's content will have been fully resolved at that point.
      25d03849
  2. 05 Apr, 2016 4 commits
    • Christof Dorner's avatar
      Merge pull request #3151 from hypothesis/postgres-write-models · 17e6556c
      Christof Dorner authored
      Postgres Write 2/4: Model code for creating new annotations in Postgres
      17e6556c
    • Nick Stenning's avatar
      Merge pull request #3038 from hypothesis/client-live-reload · e80973ec
      Nick Stenning authored
      Live reload development tool for Hypothesis client
      e80973ec
    • Robert Knight's avatar
      Debounce live-reload notifications · 386e3552
      Robert Knight authored
      If multiple asset bundles are regenerated in quick succession, including
      JS or template files, the client might try to reload whilst some of the
      bundles are still being regenerated, resulting in the client failing to
      load.
      
      This commit reduces the likelihood of this happening by debouncing
      live-reload notifications and makes a note of the issue.
      386e3552
    • Robert Knight's avatar
      Live reload dev tool for the Hypothesis client · 70f5676d
      Robert Knight authored
      This implements support and a test environment
      in which the Hypothesis client can live reload
      when scripts, styles etc. are changed.
      
      Live reloading when scripts change currently requires
      support from the hosting page.
      
      There are two parts to this:
      
       - A server which serves test pages
         with the Hypothesis client embedded and notifies
         it when front-end assets (styles, scripts) are changed.
      
         Test pages are served at http://localhost:3000/<any path>
         by default.
      
       - A small client script which connects to the server and
         listens for notifications of asset changes.
      
         When styles change it will reload styles for the page.
      
         When scripts or Angular templates change it will send a
         request to the top-level page to reload.
      
         This enables reloading to work when changing
         both the sidebar app and Annotator code but also avoids
         the need to manually unload the existing Annotator instance
         before reloading.
      70f5676d
  3. 04 Apr, 2016 2 commits
  4. 01 Apr, 2016 17 commits
  5. 31 Mar, 2016 4 commits
  6. 30 Mar, 2016 7 commits
  7. 29 Mar, 2016 5 commits