discourse/app/assets/javascripts/application.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

106 lines
4.5 KiB
JavaScript
Raw Normal View History

//= require_tree ./truth-helpers/addon
//= require_tree ./discourse-common/addon
//= require ./polyfills
//= require_tree ./select-kit/addon
//= require ./discourse/app/app
//= require ./app-boot
2016-07-03 13:33:05 -04:00
// Stuff we need to load first
2018-05-05 04:51:54 -04:00
//= require ./discourse/app/lib/to-markdown
//= require ./discourse/app/lib/utilities
//= require ./discourse/app/lib/user-presence
//= require ./discourse/app/lib/logout
//= require ./discourse/app/mixins/singleton
//= require ./discourse/app/models/rest
//= require ./discourse/app/models/session
2016-06-30 13:55:44 -04:00
//= require ./discourse/app/lib/ajax
//= require ./discourse/app/lib/text
//= require ./discourse/app/lib/hash
//= require ./discourse/app/lib/load-script
//= require ./discourse/app/lib/notification-levels
//= require ./discourse/app/services/app-events
2016-05-17 13:03:08 -04:00
//= require ./discourse/app/lib/offset-calculator
//= require ./discourse/app/lib/lock-on
2015-08-10 17:11:27 -04:00
//= require ./discourse/app/lib/url
FEATURE: Improve group email settings UI (#13083) This overhauls the user interface for the group email settings management, aiming to make it a lot easier to test the settings entered and confirm they are correct before proceeding. We do this by forcing the user to test the settings before they can be saved to the database. It also includes some quality of life improvements around setting up IMAP and SMTP for our first supported provider, GMail. This PR does not remove the old group email config, that will come in a subsequent PR. This is related to https://meta.discourse.org/t/imap-support-for-group-inboxes/160588 so read that if you would like more backstory. ### UI Both site settings of `enable_imap` and `enable_smtp` must be true to test this. You must enable SMTP first to enable IMAP. You can prefill the SMTP settings with GMail configuration. To proceed with saving these settings you must test them, which is handled by the EmailSettingsValidator. If there is an issue with the configuration or credentials a meaningful error message should be shown. IMAP settings must also be validated when IMAP is enabled, before saving. When saving IMAP, we fetch the mailboxes for that account and populate them. This mailbox must be selected and saved for IMAP to work (the feature acts as though it is disabled until the mailbox is selected and saved): ### Database & Backend This adds several columns to the Groups table. The purpose of this change is to make it much more explicit that SMTP/IMAP is enabled for a group, rather than relying on settings not being null. Also included is an UPDATE query to backfill these columns. These columns are automatically filled when updating the group. For GMail, we now filter the mailboxes returned. This is so users cannot use a mailbox like Sent or Trash for syncing, which would generally be disastrous. There is a new group endpoint for testing email settings. This may be useful in the future for other places in our UI, at which point it can be extracted to a more generic endpoint or module to be included.
2021-05-27 19:28:18 -04:00
//= require ./discourse/app/lib/email-provider-default-settings
2015-08-10 17:11:27 -04:00
//= require ./discourse/app/lib/debounce
//= require ./discourse/app/lib/quote
2015-09-01 13:29:47 -04:00
//= require ./discourse/app/lib/key-value-store
//= require ./discourse/app/lib/computed
2015-08-07 15:08:27 -04:00
//= require ./discourse/app/lib/formatter
2018-01-28 21:33:55 -05:00
//= require ./discourse/app/lib/text-direction
2015-08-07 15:08:27 -04:00
//= require ./discourse/app/lib/eyeline
//= require ./discourse/app/lib/show-modal
//= require ./discourse/app/lib/download-calendar
//= require ./discourse/app/mixins/scrolling
2017-07-05 16:47:01 -04:00
//= require ./discourse/app/lib/ajax-error
//= require ./discourse/app/models/result-set
//= require ./discourse/app/models/store
//= require ./discourse/app/models/action-summary
//= require ./discourse/app/models/permission-type
//= require ./discourse/app/models/category
2017-07-05 16:47:01 -04:00
//= require ./discourse/app/models/topic
//= require ./discourse/app/models/draft
//= require ./discourse/app/models/composer
2015-08-18 21:24:09 -04:00
//= require ./discourse/app/models/badge-grouping
//= require ./discourse/app/models/badge
2015-12-01 19:15:22 -05:00
//= require ./discourse/app/models/permission-type
//= require ./discourse/app/models/user-action-group
//= require ./discourse/app/models/trust-level
//= require ./discourse/app/lib/search
2014-12-22 19:12:26 -05:00
//= require ./discourse/app/lib/user-search
//= require ./discourse/app/lib/export-csv
2014-12-22 19:12:26 -05:00
//= require ./discourse/app/lib/autocomplete
//= require ./discourse/app/lib/after-transition
//= require ./discourse/app/lib/safari-hacks
//= require ./discourse/app/lib/put-cursor-at-end
//= require_tree ./discourse/app/adapters
//= require ./discourse/app/models/post-action-type
//= require ./discourse/app/models/post
2015-12-07 13:13:59 -05:00
//= require ./discourse/app/lib/posts-with-placeholders
//= require ./discourse/app/models/post-stream
//= require ./discourse/app/models/topic-details
2014-06-23 13:32:24 -04:00
//= require ./discourse/app/models/topic
2015-08-07 15:08:27 -04:00
//= require ./discourse/app/models/user-action
2015-08-10 17:11:27 -04:00
//= require ./discourse/app/models/draft
//= require ./discourse/app/models/composer
//= require ./discourse/app/models/user-badge
//= require_tree ./discourse/app/lib
2015-11-24 13:04:24 -05:00
//= require_tree ./discourse/app/mixins
2015-08-10 17:11:27 -04:00
//= require ./discourse/app/models/invite
//= require ./discourse/app/controllers/discovery-sortable
2014-05-20 12:49:25 -04:00
//= require ./discourse/app/controllers/navigation/default
//= require ./discourse/app/components/edit-category-panel
//= require ./discourse/app/lib/link-mentions
//= require ./discourse/app/components/site-header
//= require ./discourse/app/components/d-editor
2015-08-07 15:08:27 -04:00
//= require ./discourse/app/lib/screen-track
//= require ./discourse/app/routes/discourse
2014-08-07 15:46:58 -04:00
//= require ./discourse/app/routes/build-topic-route
//= require ./discourse/app/routes/restricted-user
//= require ./discourse/app/routes/user-topic-list
//= require ./discourse/app/routes/user-activity-stream
//= require ./discourse/app/routes/topic-from-params
//= require ./discourse/app/components/text-field
//= require ./discourse/app/components/conditional-loading-spinner
2014-08-19 16:32:35 -04:00
//= require ./discourse/app/helpers/user-avatar
//= require ./discourse/app/helpers/cold-age-class
//= require ./discourse/app/helpers/loading-spinner
2014-12-18 11:22:02 -05:00
//= require ./discourse/app/helpers/category-link
2014-12-22 11:17:04 -05:00
//= require ./discourse/app/lib/export-result
//= require ./discourse/app/mapping-router
2014-12-22 19:12:26 -05:00
//= require_tree ./discourse/app/controllers
//= require_tree ./discourse/app/models
//= require_tree ./discourse/app/components
//= require_tree ./discourse/app/raw-views
//= require_tree ./discourse/app/helpers
//= require_tree ./discourse/app/templates
//= require_tree ./discourse/app/routes
2015-08-11 17:34:02 -04:00
//= require_tree ./discourse/app/pre-initializers
//= require_tree ./discourse/app/initializers
//= require_tree ./discourse/app/services
//= require_tree ./discourse/app/widgets
//= require ./widget-runtime