Items in LESS_STYLESHEETS do not automatically rebuild when imported files
change. Items in SPRITED_STYLESHEETS automatically build when any other less
file updates, so that works for now. Stylesheets run through the spriter
will throw an error if they don't actually contain any sprites, so I added a
dummy sprite rule to modtools.less.
Adds a new js module and css file for mod tools, and a new page that
includes them. This is so that, moving forward, we don’t have to cram
everything into the reddit.js package.
This adds simple integration with the new baseplate library so we can
use thrift clients. Further down the line we can hopefully replace
config parsing and metrics with the baseplate equivalents.
All that happens in `make i18n` is creating a .py file with
a bunch of automated messages that are marked for translation. Also
simplify rand_strings (now get_funny_translated_string).
This keeps nymphified and unnymphified LESS inputs in the same location
so that "../whatever.png" references work with uncompressedJS true or
false and we can use the LESS `data-uri` function.
Ok, now I'm getting some angst in my commit messages like my
predecessors had. I understand now. It's a terrible burden. Why must
the calendar progress? Why must numbers increment? The world is
forever turning.
The future is here.
It is 2014.
This removes the need to run `make pyx` before running setup.py on an
initial install which had stopped working due to various imports needed
for the makefile. Additionally, cythonize is capable of tracking
dependencies the cython files have, such as external headers or other
cython files.
I had to upgrade setuptools to distribute to get v0.6.16 which is the
minimum required to properly use `cythonize` due to a bug in setuptools:
https://bitbucket.org/tarek/distribute/issue/195/
It takes a tonne of memory. If the countries.json file is present
(generated by "make countries") then the app will prefer to use it
saving itself megabytes of space.
This is for non-moderators to be able to view the commented / unminified
CSS so they can learn / cherry-pick bits from it.
This uses highlight.js from
isagalaev/highlight.js@45c03cd045.
Note that pylons.wsgiapp uses pylons.i18n's get_lang()
and friends, instead of our modified versions in
r2.lib.translation. This means that setting 'lang' in the
conf causes it to try and 'help' us by looking up PO files
in r2/i18n. Changing the ini files to use 'site_lang' as the
key gets around that.
* Upgrade flot and include the new timeseries flot plugin.
(flot/flot@ca050b26c2)
* All times mentioned by traffic are now in UTC, not "local."
* Traffic data is generated as actual tables and JavaScript
generates the Flot charts from the tables for accessibility.
* Many pieces of traffic data that were only accessible from the
old traffic app are now moved into the reddit app.
* Traffic backend lag time is indicated on the graphs for clarity.
* Use excanvas with Flot instead of Google Charts for old-IE fallback.