discourse/test/javascripts
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
..
acceptance DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
admin Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
components DEV: improves sk api (#9653) 2020-05-06 17:16:20 +02:00
controllers DEV: Upgrade sinon and fix time based bookmark tests (#9647) 2020-05-07 09:10:32 +10:00
ember Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
fixtures FEATURE: add category banner for why a user cannot post (#9576) 2020-04-30 10:39:11 -07:00
helpers DEV: Upgrade sinon and fix time based bookmark tests (#9647) 2020-05-07 09:10:32 +10:00
initializers Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
lib DEV: Remove INLINE_ONEBOX_* constants 2020-05-07 16:14:38 -04:00
mixins Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
models FEATURE: don't display new/unread notification for muted topics (#9482) 2020-04-23 14:57:35 +10:00
utils Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
widgets DEV: Add remove button function to PluginAPI (#9627) 2020-05-05 09:18:02 -04:00
plugin_tests.js.erb Support for Acceptance tests in plugins 2015-08-27 17:07:11 -04:00
test_helper.js FIX: preload-store was moved 2020-05-06 15:55:52 -04:00