Commit Graph

73 Commits

Author SHA1 Message Date
Neil Williams
a3c8867525 i18n: Extract messages from all installed plugins.
This makes "make i18n" extract messages for translation from all
installed plugins as well.
2013-07-24 13:54:41 -07:00
Max Goodman
4b53396821 Privacy policy and user agreement viewer. 2013-05-01 14:10:50 -07:00
Neil Williams
8af415476b Update and fix license headers for 2013.
Angst!
2013-03-19 20:03:40 -07:00
Max Goodman
b793f20a3a Add admin bar: top bar UI for status info/stats/tools. 2013-02-27 14:25:31 -08:00
Max Goodman
b770a4b1e2 reddit.css -> reddit.less
Note: you'll need to update your .ini stylesheet name to have a .less
extension.
2013-02-27 14:25:30 -08:00
Max Goodman
4e24bff045 Add js.py/strings.py as deps to JS modules.
If either python file changes, we may need to change the compiled JS
files. We'll take the conservative approach and always rebuild.
2013-02-27 14:25:29 -08:00
Neil Williams
ce57835394 Avoid loading pycountry in the app.
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.
2013-02-27 13:37:55 -08:00
Andre D
61d9da0f3c wiki: Replace wiki css with less. 2013-01-07 13:54:57 -08:00
Keith Mitchell
3c2356c1a5 Changes to example.ini should trigger "make ini" 2013-01-03 14:26:56 -08:00
Max Goodman
a900e4e325 Shiny new gold info page. 2012-11-08 10:12:51 -08:00
Max Goodman
f52f223bcc Add temporary bundled copy of less.js.
This is for use until we have less.js packaged in production.
2012-11-08 10:12:50 -08:00
Max Goodman
0b88e33b59 Add support for LESS compiled stylesheets. 2012-11-08 10:12:50 -08:00
Neil Williams
09de367263 Subreddit CSS: Make /about/stylesheet show unminified CSS.
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.
2012-09-27 16:01:02 -07:00
Neil Williams
5c2679fbf6 static: Use rCSSMin to minify CSS files during static file compilation.
This shows a 10% reduction in size of the compressed results on the
current reddit.css stylesheet.
2012-09-25 13:01:37 -07:00
Keith Mitchell
01146c301e Remove unused r2.po and friends from repo
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.
2012-08-14 12:19:20 -07:00
Max Goodman
768663b032 Abort Makefile if Makefile.py fails. 2012-08-08 13:47:03 -07:00
Max Goodman
bcbba69a7e Simplify handling/mangling of should_compile special case.
or: How I Learned to Stop Worrying and Love the Mangling.
2012-07-19 16:25:55 -07:00
Keith Mitchell
07af98ff4f Make each of the JS files individually responsible
Make will still only build once
2012-07-19 16:25:55 -07:00
Max Goodman
05afaf6580 Fix jQuery gzipping in the Makefile. 2012-07-18 14:48:07 -04:00
Neil Williams
94945f7341 Overhaul traffic pages (and update a few self-serve pages).
* 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.
2012-07-12 14:56:27 -07:00
Neil Williams
914b949286 Update / add license headers.
I'm actually quite excited to do this.
2012-06-19 14:02:42 -07:00
Max Goodman
8b4f584f76 Move plugin Makefile extensions to Makefile.plugin include. 2012-06-12 15:36:31 -07:00
Max Goodman
cdd8177622 Speed up Makefile by combining python portions. 2012-06-12 15:36:31 -07:00
Max Goodman
c20ca4e5d5 Remove mangled js output symlinks.
Fixes issue with JS files / names falling out of sync.
2012-06-12 15:36:31 -07:00
Max Goodman
ea9d33177c Clean up plugin static buildstamps when make cleaning static. 2012-06-12 15:36:31 -07:00
Max Goodman
f48eb3bf31 Locate, build, and merge plugin statics in the Makefile. 2012-06-12 15:36:30 -07:00
Max Goodman
fbece1d183 Tweak js module buildstamp names so they sort together. 2012-06-12 15:36:30 -07:00
Max Goodman
619bcdc4a2 Compile static files in build/public/static. 2012-06-12 15:36:30 -07:00
Max Goodman
47e559495b Cleanup mangled files completely.
Static file mangling now renames files to their mangled form and
symlinks the original name. This cleanup rule deleted only the mangled
names, leaving broken symlinks. The quick'n'dirty solution is to clear
out all of the mangled and unmangled filenames so we don't leave things
in an inconsistent state.
2012-06-12 15:36:30 -07:00
Keith Mitchell
abe385cc74 Add note to top of generated ini files 2012-03-29 11:36:53 -07:00
Keith Mitchell
5f0c23a75e Makefile was looking for I18N_PATH in removed module 2012-01-05 16:50:24 -08:00
Neil Williams
98d8268d08 Make sure to remove static file symlinks before overwriting.
Fixes issue with RTL stylesheet not being rebuilt properly.
2011-12-09 12:02:14 -08:00
Neil Williams
7ac293d3d6 Makefile: Fix .update -> .ini rule. 2011-12-01 14:36:43 -08:00
Neil Williams
1ca4d56b98 Use .gzip as extension for pre-gzipped files.
Some versions of Safari are stupid about files with
.gz suffix.
2011-11-29 14:56:33 -08:00
Neil Williams
ffb62ff076 Rewrite makefile to better track dependencies. 2011-11-29 14:56:33 -08:00
Neil Williams
2b61f9f236 Add static() equivalent on client-side.
and make sure the code uses it.
2011-11-14 20:45:34 -08:00
Neil Williams
0a5e08b005 Rewrite spriter to lay out sprites more intelligently.
Currently results in a ~10% decrease in sprite file size.

This required some tweaks to the way some sprites were clipped
since there's no longer a huge amount of padding around them,
these changes incidentally fix the issues with other sprites
showing up where they shouldn't when text ran too long etc.
2011-11-14 20:45:06 -08:00
Neil Williams
ba8e1da19f Remove a bunch of unused stuff.
* spreadshirt support which was discontinued in 1684da9 (Jun 2010)
* old socialite page css
* image preload markup
* lipstick.com, frame.css, and wired comments css
* "reddit is down" page
2011-11-14 20:44:40 -08:00
Neil Williams
4d2c3c2835 Generate gzipped versions of JS/CSS static files.
Also, flip the symlinking so that unmangled points to the latest
mangled file.
2011-11-14 20:44:31 -08:00
Neil Williams
8e0e90d76f Use default python in Makefile. 2011-11-14 20:44:19 -08:00
Keith Mitchell
2a63d862f4 Make r2.pot generation work again
Also, blame a random admin on failure
2011-11-10 11:48:43 -08:00
Max Goodman
b847757069 Use cross domain https for slightly safer login.
Login UI code has been simplified and moved into the client side. CORS
is used for the cross-domain POST if available, otherwise an iframe and
cookie polling technique is used. Start fleshing out the new JS tree. :)
2011-10-07 14:51:25 -07:00
Max Goodman
205cfb5967 Add general jQuery cookie library and replace jquery.json. 2011-10-07 14:51:25 -07:00
Max Goodman
bf1ff113a7 Move external JS libs to their own directory. 2011-10-07 14:51:25 -07:00
Neil Williams
581cb4eac5 Make clean_static remove reddit.js and mobile.js. 2011-10-06 08:12:34 -07:00
Neil Williams
e754d7f93a Clean up the Cython build process. 2011-08-24 18:02:08 -07:00
Keith Mitchell
0709a0a0af Outbound click tracking
Clicks on listing links to be tracked via google-analytics
End users may disable google analytics to opt-out of tracking
2011-08-17 15:44:22 -07:00
Logan Hanks
19d09b37d6 Add flair.js module. 2011-07-28 11:21:47 -07:00
Max Goodman
e7ad7232ad Clean up css sprite building in the Makefile. 2011-07-22 11:42:04 -07:00
Max Goodman
ef5e77a289 Add sprite for compact.css to the make process. 2011-07-22 11:41:35 -07:00