- 29 Jul, 2015 1 commit
-
-
Randall Leeds authored
-
- 28 Jul, 2015 1 commit
-
-
Sean Hammond authored
Consolidate and style the admin interface
-
- 27 Jul, 2015 6 commits
-
-
Randall Leeds authored
While the URL object stringifies nicely, meaning this does work, it is liable to confuse request interceptors that expect a string.
-
Randall Leeds authored
-
Randall Leeds authored
-
Nick Stenning authored
This commit brings together "administrator" views into one place -- the Hypothesis admin console, found at /admin. So far, the only to admin views we have are for flagging/unflagging users as NIPSA, and for administering administrative user status. In the near future, we may also have a feature flag console in here. - I've moved all the admin views into `h.admin` so that we don't confused business logic view functions with administrative view functions, and so that in future it is easier to treat the `/admin` tree as a single entity for the purposes of permissions, etc. - I've added an "admin" page layout, which uses Twitter Bootstrap for basic styling. - I've rejigged both the NIPSA and the administrator users pages to make use of bootstrap.
-
Nick Stenning authored
Update Firefox extension for Jetpack Manager tool
-
Randall Leeds authored
Simpler session service
-
- 24 Jul, 2015 6 commits
-
-
Nick Stenning authored
Rather than using a separate named value to keep track of the current CSRF token, simply treat this as part of the session state.
-
Nick Stenning authored
This commit does three things. In order of importance: - wraps the ngResource for managing session state in a service, which allows us to expose current session state as `session.state` on that instance. This means that components of the application that don't want to alter or explicitly fetch session state, but wish to display some part of it (such as the current authenticated userid, etc.) can do so more easily. - moves configuration of the session resources into the session service rather than requiring configuration from outside via a sessionProvider. - translates the session service to JavaScript from CoffeeScript.
-
Sean Hammond authored
Fix infinite digest cycle caused by feature flag client
-
Nick Stenning authored
This was a fun bug. If multiple feature checks are done in rapid succession when the features cache is empty (such as, for example, during the first digest cycle at application boot time) then the features client would keep kicking off HTTP requests until the first one returned. This would clearly be a misfeature, but wouldn't actually have caused any problems but for the fact that the spinner in `h/directives/simple-search.coffee` does this to determine whether to spin: scope.$watch (-> $http.pendingRequests.length), (pending) -> scope.loading = (pending > 0) This means that kicking off dozens of requests at a time keeps invalidating the digest cycle (because the value of `$http.pendingRequests.length` keeps changing), so it never ends. The result is the ever-horrible `infdig` (infinite digest cycle) error from Angular: https://docs.angularjs.org/error/$rootScope/infdig.
-
Nick Stenning authored
The angular $httpBackend mocking service supports two primary means of usage: .expect(...).respond(...) and .when(...).respond(...) The latter pattern allows a single handler to respond to multiple requests, in any order. The latter is precise -- one .expect() must be matched by one request, in the correct order. This commit changes the tests for the "features" service to use this more precise form of testing.
-
Randall Leeds authored
-
- 23 Jul, 2015 1 commit
-
-
Randall Leeds authored
PDF usages might want to specify relative URLs to get around proxy restrictions with a custom viewer. Even link tags support relative URLs for rel=canonical though it's probably a bad idea as a publisher. In any case, we should clearly just do this.
-
- 22 Jul, 2015 4 commits
-
-
Randall Leeds authored
-
Randall Leeds authored
Make Makefile more dumb
-
Nick Stenning authored
Add support for flagging user accounts as "not in public site areas"
-
Randall Leeds authored
-
- 21 Jul, 2015 12 commits
-
-
Nick Stenning authored
Getting picky with our code styles
-
BigBlueHat authored
-
BigBlueHat authored
Added use strict. Removed unused `attrs` var;
-
BigBlueHat authored
-
BigBlueHat authored
Docs URL line length is a bit too long...
-
BigBlueHat authored
-
Sean Hammond authored
-
Sean Hammond authored
The single it() in this test module was not being run (it was indented inside a beforeEach()) and dedenting it reveals that the beforeEach() is actually crashing anyway (controller somehow not registering with the $controller service, looks like). Rewrite the module to work and be clearer.
-
Nick Stenning authored
Stop two sources of dangling transactions
-
Nick Stenning authored
Add angular-csp.css
-
Randall Leeds authored
-
Sean Hammond authored
When on individual annotation pages like /a/<annotation_id> make an API request to /api/annotations/<annotaion_id> instead of to the search API. This bypasses the search API's NIPSA-filtering. If you have a direct link to an annotations individual page, then you can see the annotation (and all its replies) regardless of whether anything is NIPSA'd or any user is logged-in.
-
- 20 Jul, 2015 9 commits
-
-
Randall Leeds authored
Decaffeinate config/accounts.coffee & accounts/*.coffee
-
Randall Leeds authored
Add .jscrc for JavaScript Code Style help
-
Randall Leeds authored
-
BigBlueHat authored
JSCS is like JSHint, but specifically for Code Style. It comes with a Google Code Style (which we use currently) pre-set. This config file sets that and can be extended later for any departures we make (if any) from that style guide.
-
BigBlueHat authored
-
BigBlueHat authored
-
Randall Leeds authored
Replace pyramid_layout with basic template inheritance
-
Randall Leeds authored
Don't via via
-
Jake Hartnell authored
Fixes #2371 Adds test.
-