discourse/app/assets/stylesheets
Martin Brennan 3e3f3f7b7e
DEV: Add time shortcut picker component and libs and refactor bookmark modal controller into component which uses time shortcut picker (#11802)
This PR moves all of the time picking functionality from the bookmark modal and controller into a reusable time-shortcut-picker component, which will be used for the topic timer UI revamp. All of the utility JS for getting dates like tomorrow/next week/next month etc. have also been moved into a separate utility lib.

The time-shortcut-picker has a couple of options that can be passed in:

* prefilledDatetime - The date and time to parse and prefill into the custom date and time section, useful for editing interfaces.
* onTimeSelected (callback) - Called when one of the time shortcuts is clicked, and passes the type of the shortcut (e.g. tomorrow) and the datetime selected.
* additionalOptionsToShow - An array of option ids to show (by default `later_today` and `later_this_week` are hidden)
* hiddenOptions - An array of option ids to hide
* customOptions - An array of custom options to display (e.g. the option to select a post date for the bookmarks modal). The options should have the below properties:
    * id
    * icon
    * label (I18n key)
    * time (moment datetime object)
    * timeFormatted
    * hidden

The other major work in this PR is moving all of the bookmark functionality out of the bookmark modal controller and into its own component, where it makes more sense to be able to access elements on the page via `document`. Tests have been added to accompany this move, and existing acceptance tests for bookmark are all passing.
2021-02-01 09:03:41 +10:00
..
common DEV: Add time shortcut picker component and libs and refactor bookmark modal controller into component which uses time shortcut picker (#11802) 2021-02-01 09:03:41 +10:00
desktop UX: Allow some overflow in composer preview (#11902) 2021-01-29 20:28:56 -05:00
mobile REFACTOR: Convert buttons to flexbox (#11785) 2021-01-27 16:17:08 -05:00
vendor DEV: Cleanup variables/mixins SCSS imports (#11618) 2021-01-05 14:05:34 -05:00
admin.scss
color_definitions.scss DEV: Cleanup variables/mixins SCSS imports (#11618) 2021-01-05 14:05:34 -05:00
common.scss DEV: Cleanup variables/mixins SCSS imports (#11618) 2021-01-05 14:05:34 -05:00
desktop_rtl.scss
desktop.scss DEV: Use indexes when importing SCSS from a folder (#11591) 2020-12-30 15:29:10 -05:00
embed.scss DEV: Cleanup variables/mixins SCSS imports (#11618) 2021-01-05 14:05:34 -05:00
mobile_rtl.scss
mobile.scss DEV: Use indexes when importing SCSS from a folder (#11591) 2020-12-30 15:29:10 -05:00
publish_desktop_rtl.scss FEATURE: adds support for mobile view on page publishing (#10662) 2020-09-13 13:50:23 +02:00
publish_desktop.scss FEATURE: adds support for mobile view on page publishing (#10662) 2020-09-13 13:50:23 +02:00
publish_mobile_rtl.scss FEATURE: adds support for mobile view on page publishing (#10662) 2020-09-13 13:50:23 +02:00
publish_mobile.scss FEATURE: adds support for mobile view on page publishing (#10662) 2020-09-13 13:50:23 +02:00
publish.scss FIX: Fix bg color of header on published page (#11652) 2021-01-06 16:54:37 -06:00
test_helper.css REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
wcag.scss FEATURE: WCAG compliant color schemes (#10882) 2020-10-15 14:05:48 -04:00
wizard.scss DEV: Cleanup variables/mixins SCSS imports (#11618) 2021-01-05 14:05:34 -05:00