discourse/app/assets/javascripts/application.js

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

105 lines
4.4 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-04 01:33:05 +08:00
// Stuff we need to load first
2018-05-05 16:51:54 +08: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-07-01 01:55:44 +08: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-18 01:03:08 +08:00
//= require ./discourse/app/lib/offset-calculator
//= require ./discourse/app/lib/lock-on
2015-08-11 05:11:27 +08: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-28 07:28:18 +08:00
//= require ./discourse/app/lib/email-provider-default-settings
2015-08-11 05:11:27 +08:00
//= require ./discourse/app/lib/debounce
//= require ./discourse/app/lib/quote
2015-09-02 01:29:47 +08:00
//= require ./discourse/app/lib/key-value-store
//= require ./discourse/app/lib/computed
2015-08-08 03:08:27 +08:00
//= require ./discourse/app/lib/formatter
2018-01-29 10:33:55 +08:00
//= require ./discourse/app/lib/text-direction
2015-08-08 03:08:27 +08: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-06 04:47:01 +08: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-06 04:47:01 +08:00
//= require ./discourse/app/models/topic
//= require ./discourse/app/models/draft
//= require ./discourse/app/models/composer
2015-08-19 09:24:09 +08:00
//= require ./discourse/app/models/badge-grouping
//= require ./discourse/app/models/badge
2015-12-02 08:15:22 +08: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-23 08:12:26 +08:00
//= require ./discourse/app/lib/user-search
//= require ./discourse/app/lib/export-csv
2014-12-23 08:12:26 +08: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-08 02:13:59 +08:00
//= require ./discourse/app/lib/posts-with-placeholders
//= require ./discourse/app/models/post-stream
//= require ./discourse/app/models/topic-details
2014-06-24 01:32:24 +08:00
//= require ./discourse/app/models/topic
2015-08-08 03:08:27 +08:00
//= require ./discourse/app/models/user-action
2015-08-11 05:11:27 +08:00
//= require ./discourse/app/models/draft
//= require ./discourse/app/models/composer
//= require ./discourse/app/models/user-badge
//= require_tree ./discourse/app/lib
2015-11-25 02:04:24 +08:00
//= require_tree ./discourse/app/mixins
2015-08-11 05:11:27 +08:00
//= require ./discourse/app/models/invite
//= require ./discourse/app/controllers/discovery-sortable
2014-05-21 00:49:25 +08: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
//= require ./discourse/app/routes/discourse
2014-08-08 03:46:58 +08: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-20 04:32:35 +08:00
//= require ./discourse/app/helpers/user-avatar
//= require ./discourse/app/helpers/cold-age-class
//= require ./discourse/app/helpers/loading-spinner
2014-12-19 00:22:02 +08:00
//= require ./discourse/app/helpers/category-link
2014-12-23 00:17:04 +08:00
//= require ./discourse/app/lib/export-result
//= require ./discourse/app/mapping-router
2014-12-23 08:12:26 +08: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-12 05:34:02 +08: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