~sirn/fanboi2

ref: 98796226802a26b82c888365ad5b9cd331006792 fanboi2/typings.json -rw-r--r-- 584 bytes
Cleanup components and README.

* Update README for current development process.
* Enable strictNullChecks in TypeScript and update accordingly.
* Use new naming convention for element variables in TypeScript.
Implement theme selector.

User can now choose the default theme to display the website in.

The theme will be applied immediately without page reload once
selected in the theme selector. After selected, the theme identifier
will be stored in a cookie (`_theme`) and the app will use that cookie
to select the correct CSS class to render on the next page load.

Theme selection is done in both client side (via the theme selector)
and on the server side (via the `user_theme`) in order to prevent a
quick page flashing in large pages (e.g. full topic view) which is
caused by JavaScript components waiting for DOM to finished loading
before running.
Move from whatwg-fetch to XMLHttpRequest.

Since whatwg-fetch currently doesn't support cancellation and
we need to be able to cancel the request. This commit replace
whatwg-fetch and any code that relies on it to use XHR with
cancellation token.
Use Typings instead of TSD.

TSD is now deprecated. See also GitHub issue:
https://github.com/DefinitelyTyped/tsd/issues/269