Commit Graph

47 Commits

Author SHA1 Message Date
Robin Ward adb73180f7 FEATURE: Let plugins register themes easily 2017-01-13 11:50:52 -05:00
Guo Xiang Tan 9a800107cb FIX: Associate category logo and background to uploads record. 2016-12-12 17:37:28 +08:00
Rafael dos Santos Silva 41d2620d06 Add some styling to print redux version 2016-10-12 14:00:05 -03:00
Guo Xiang Tan 169d17edc3
Include cdn path in the stylesheet digest. 2016-06-16 00:19:38 +08:00
Guo Xiang Tan fb6e7c1e19
Refactor `DiscourseSassImporter`. 2016-04-19 14:58:03 +08:00
Guo Xiang Tan 256d7a00e9 Update sprockets. (#4167)
* Update sass-rails.

* FIX: Tilt dependency has been removed from Ember::Handlebars::Template.

* Update `DiscourseIIFE` to new Sprockets API.

* `Rails.application.assets` returns `nil` in production.

* Move sprockets-rails out of the assets group.

* Pin ember-rails to 0.18.5 which works with Sprockets 3.x.

* Update sprockets to 3.6.0.

* Make `DiscourseSassCompiler` work with Sprockets 3.

* Use `Sass::Rails::SassImporterGlobbing` instead of haxxing our own.

* Moneky patch so that we don't add dependencies for our custom css.

* FIX: Missing class.

* Upgrade ember-handlebars-template.

* FIX: require path needs to share the same root as the folder's path.

* Bump discourse-qunit-rails.

* Update ember-template-compiler.js to 1.12.2.

* `prepend` is private in Ruby 2.0.0.
2016-04-18 10:47:52 +08:00
Kane York 7147c0e8af DEV: Replace sqrt() implementation with lib
Copied the needed functions out of https://github.com/terkel/mathsass
MIT license
2015-08-20 13:10:54 -07:00
Sam 5a0dc12733 correct regression 2015-07-30 17:02:28 +10:00
Sam 3ccae5ed32 FIX: CDN paths not respected for background category images 2015-07-30 10:25:36 +10:00
Sam bcaed90744 fix missing rtl stylesheets 2015-05-23 15:25:05 +10:00
Sam 96dbeb8608 fix stylesheet cache to recover if file is on disk 2015-05-22 11:22:12 +10:00
Sam 45bdd23689 FEATURE: support user local switching to RTL correctly
FEATURE: support RTL in multisite
2015-05-20 15:56:54 +10:00
Neil Lalonde 7f9504abb2 PERF: sites in multisite config can share css files if they are not using a color scheme or category backgrounds 2015-05-12 16:12:49 -04:00
Neil Lalonde 406c8bb340 PERF: don't recompile css files that have already been compiled 2015-05-12 16:12:49 -04:00
Sam ea670118c1 Add better error handling, correct the location on disk of stylesheet 2015-05-05 23:28:40 +10:00
Sam f58d85edea FEATURE: move stylesheet cache out of the uploads directory 2015-05-05 15:50:13 +10:00
Simon Cossar b0a3401186 Fix if defined? conditional for R2 2015-04-14 20:14:04 -07:00
Simon Cossar 51ebc56f89 Move 'if defined?' conditional to before 'require' statement for r2 gem 2015-04-14 19:50:55 -07:00
Simon Cossar e52ab2ecf1 Update rtl conditional check in DiscourseSassCompiler 2015-04-14 19:02:52 -07:00
Sam f5af4768eb FEATURE: add clean support for running Discourse in a subfolder
To setup set DISCOURSE_RELATIVE_URL_ROOT to the folder you wish
2015-03-09 13:14:29 +11:00
Régis Hanol 7b8c7ff3ef FIX: sub-categories with the same name had the same background image 2015-02-12 18:21:07 +01:00
Régis Hanol f82e8ce5f1 remove discourse stylesheets const warning when auto-reloading 2015-02-09 18:53:49 +01:00
Régis Hanol 8a5a229c3f FIX: category backgrounds were broken 2015-02-04 16:38:42 +01:00
Sam fe57ebcd33 typo 2015-01-05 13:03:43 +11:00
Sam b713688ce2 FIX: deliver discourse stylesheets over cdn 2015-01-05 12:50:42 +11:00
Greg Kempe e2fb5310d8 Traverse symlinks to plugins in dev mode when compiling stylesheets
When developing plugins it's useful to symlink the to the plugin directory from the discourse directory, since that means the two are separate git repos.

However, Dir.glob doesn't by default traverse symlinks. This change means that the SASS compilation caching detects when any of a plugin's files have changed.
2014-12-01 15:59:21 +02:00
Robin Ward 4090ed226a FIX: Don't use a process cache in development mode 2014-11-12 13:51:16 -05:00
Sam 0c7c738a94 don't send html safe strings into the cache 2014-11-12 10:32:46 +11:00
Sam ec496a71b1 tag should be html safe 2014-11-12 10:06:02 +11:00
Sam c98d0a8eb6 Revert "Revert "PERF: use distributed cache for site text and category slugs""
This reverts commit 65e7cd1d1d.
2014-11-12 10:01:41 +11:00
Sam 65e7cd1d1d Revert "PERF: use distributed cache for site text and category slugs"
This reverts commit a97f2eee05.
2014-11-12 10:01:07 +11:00
Sam a97f2eee05 PERF: use distributed cache for site text and category slugs 2014-11-12 09:44:44 +11:00
Sam b2af49251d PERF: remove superflous queries from initial page loads
stop doing expensive work to figure out discourse style sheet
2014-11-11 15:32:44 +11:00
Godfrey Chan f749961d97 `Sprockets::Context` takes a `Pathname` for its third argument
As far as I can tell, sprockets has always expected the third argument to be a
`Pathname` object. Not sure what actually changed and why it was working before,
but it now throws a `NoMethodError` for `dirname` on `String` in
`Context#resolve`

    # , not sure why this was working before
2014-11-10 01:05:47 -08:00
Sam 742c5e29c9 FEATURE: advanced search help 2014-10-18 14:27:33 +11:00
Zohar Arad c99ab7fb06 ensure RTLit gem is included and CSS is RTLed if css_rtl is enabled in discourse config 2014-08-08 16:06:29 +03:00
Zohar Arad 557af8b8bd Add RTL support to Discourse CSS pre-processing using the RTLit gem and configurable via discourse.conf 2014-08-08 09:31:31 +03:00
Kris Aubuchon 4a1ec20585 adding border to poster expansion, changing media screen to media all, trying new notification style 2014-07-24 12:21:22 -04:00
Robin Ward 288bb5588f Use different approach for background image 2014-07-01 13:40:09 -04:00
Robin Ward 952426d358 FEATURE: Uploaded images to categories are shown when browsing 2014-06-30 14:14:00 -04:00
Neil Lalonde f9e80e1eb2 FIX: make sure rails sprockets sass functions are included when compiling sass 2014-06-17 12:45:33 -04:00
Neil Lalonde 15e91f2da9 FIX: detect css changes in plugins that use register_css 2014-06-03 16:46:32 -04:00
Neil Lalonde d69472c9fb FIX: production css digest not changing 2014-05-29 15:42:50 -04:00
Neil Lalonde 39bac5b36c FIX: don't create digestless css files in production. With multisite setup, it's keeps getting swapped out for the current site, which is slow and pointless. Digestless css files are for auto-reload of css in dev env 2014-05-27 16:08:47 -04:00
Neil Lalonde d412cd370e FIX: compare Time with nil error in dev env. Remove nils when looking for max mtime. 2014-05-22 18:46:29 -04:00
Neil Lalonde 9445bea530 FIX: add line numbers and file names to generated css 2014-05-20 14:23:50 -04:00
Neil Lalonde c4d3aa3d47 Theming: a UI to choose some base colors that are applied to all the site css. CSS compiled outside of asset pipeline. 2014-05-14 10:18:12 -04:00