This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app
Robin Ward f9608c0af5 DEV: Remove INLINE_ONEBOX_* constants
There were two constants here, `INLINE_ONEBOX_LOADING_CSS_CLASS` and
`INLINE_ONEBOX_CSS_CLASS` that were both longer than the strings they
were DRYing up: `inline-onebox-loading` and `inline-onebox`

I normally appreciate constants, but in this case it meant that we had
a lot of JS imports resulting in many more lines of code (and CPU cycles
spent figuring them out.)

It also meant we had an `.erb` file and had to invoke Ruby to create the
JS file, which meant the app was harder to port to Ember CLI.

I removed the constants. It's less DRY but faster and simpler, and
arguably the loss of DRYness is not significant as you can still search
for the `inline-onebox-loading` and `inline-onebox` strings easily if
you are refactoring.
2020-05-07 16:14:38 -04:00
..
adapters DEV: Move preload-store to discourse/lib/preload-store 2020-05-06 15:28:06 -04:00
components DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
controllers REFACTOR: removes overwritten properties and duplicates fn (#9686) 2020-05-07 16:39:53 +02:00
helpers DEV: Move preload-store to discourse/lib/preload-store 2020-05-06 15:28:06 -04:00
initializers FIX: Show the Bookmark button for PM topics (#9659) 2020-05-07 14:30:10 +10:00
lib REFACTOR: removes superfluous argument (#9684) 2020-05-07 16:38:23 +02:00
mixins REFACTOR: useless conditional as 'data' always evaluates to true (#9685) 2020-05-07 16:38:38 +02:00
models FEATURE: Optionally delete bookmark when reminder sent (#9637) 2020-05-07 13:37:39 +10:00
pre-initializers DEV: Remove Discourse constants from focus mixin. 2020-05-06 10:36:08 -04:00
raw-views Revert "UX: replace closed topic icon with discourse-no-entry" 2020-04-25 13:12:56 +10:00
routes DEV: Move preload-store to discourse/lib/preload-store 2020-05-06 15:28:06 -04:00
services DEV: Support for import Handlebars from 'handlebars'; (#9600) 2020-04-30 16:41:02 -04:00
templates FEATURE: Optionally delete bookmark when reminder sent (#9637) 2020-05-07 13:37:39 +10:00
widgets REFACTOR: removes useless self assignment (#9681) 2020-05-07 16:37:20 +02:00
app.js DEV: Remove Discourse constants from focus mixin. 2020-05-06 10:36:08 -04:00
mapping-router.js DEV: Add the missing app subdirectory (#9499) 2020-04-23 10:07:54 -03:00