Daniel Waterworth
3344312fb5
FIX: Replace this.get("foo") with this.foo to fix linting checks
2019-11-21 11:29:50 +00:00
Daniel Waterworth
556b29952c
FIX: followup to a8d58c3b
...
It helps to include the files you intend to add
2019-11-21 10:52:50 +00:00
Dan Ungureanu
3650c64bca
FIX: Ensure load-more considers current position ( #8357 )
...
The loadMore action was not called if user was already at the bottom
of the page.
2019-11-18 15:09:47 +02:00
Robin Ward
d4b7c028fa
REFACTOR: Move upload utilities to their own file
2019-11-14 12:51:08 -05:00
Mark VanLandingham
38cc1962e7
WIP - discourse/models/user not defined
2019-11-13 15:34:30 -05:00
Mark VanLandingham
f9894aec97
DEV: Remove Discourse.User and import instead
2019-11-13 15:34:30 -05:00
Robin Ward
f518065654
FIX: computed is part of @ember/object not @ember/object/computed
2019-11-13 11:58:09 -05:00
Robin Ward
e39d89ecd9
REFACTOR: Remove InputValidation which was simply an Ember.Object
2019-11-11 15:48:56 -05:00
Robin Ward
da04c602ba
REFACTOR: Remove debounce to discourseDebounce
...
Otherwise it can be confused with the ember debounce
2019-11-11 13:34:01 -05:00
Mark VanLandingham
e51efce356
DEV: Remove all instances of Ember.computed ( #8324 )
2019-11-08 12:28:11 -06:00
Mark VanLandingham
6275c05c0d
DEV: Move computed to discourseComputed ( #8312 )
2019-11-07 15:38:28 -06:00
Robin Ward
d74546f50e
REFACTOR: Remove Discourse.Topic constant
2019-11-07 15:46:58 -05:00
Mark VanLandingham
9ffdbf912f
DEV: Import ember ENV instead of Ember.testing ( #8305 )
2019-11-07 11:20:35 -06:00
Robin Ward
0e2261c414
FIX: Linting
2019-11-01 13:57:22 -04:00
Robin Ward
90f934a660
REFACTOR: Use a module for Ember.isEmpty
2019-11-01 13:50:15 -04:00
Sam Saffron
13cca3eaa0
DEV: run files through prettier
...
2ae21e9 was prettiered using an old version of prettier.
This re-applies it using latest.
2019-10-31 10:18:29 +11:00
Mark VanLandingham
02a886ce13
DEV: Import Ember.on from @ember/object/evented ( #8268 )
...
* DEV: Import `Ember.on` from @ember/object/evented
* Dont import "on" outsie of the js or admin app
* Fixed error when resolving merge conflicts
2019-10-30 17:05:27 -05:00
Mark VanLandingham
2ae21e9c35
DEV: Import every instance of Ember.computed function ( #8267 )
...
* DEV: Import every instance of Ember.computed function
* export default for Ember.computed
2019-10-30 15:28:29 -05:00
Mark VanLandingham
ced3807b23
FIX: Prettier on importing mixin ( #8270 )
2019-10-30 15:13:48 -05:00
Mark VanLandingham
ba4b557114
DEV: Remove Ember.Mixin to import @ember/object/mixin ( #8269 )
2019-10-30 15:03:08 -04:00
Robin Ward
8d34f4bbd9
Revert "Revert Ember.run refactors"
...
This reverts commit fcb1ca52f9 .
2019-10-30 09:48:24 -04:00
Robin Ward
fcb1ca52f9
Revert Ember.run refactors
...
This reverts commit 5ca60fcb6b .
2019-10-29 17:10:47 -04:00
Robin Ward
5ca60fcb6b
REFACTOR: Use imports for Ember.run
2019-10-29 15:31:56 -04:00
Mark VanLandingham
c7475ee03b
DEV: Import EmberObject rather than global variable ( #8256 )
...
* DEV: Import ember/object rather than Ember.Object globally
* fixed broken object proxy import
* prettier on js
* added @ember/object/proxy to loader
* added unstaged file
* Fixed objet proxy reference is loader
* Linting!
2019-10-29 14:23:50 -05:00
Sam Saffron
98d6cee7c7
FIX: various fixes to draft system
...
- destroyDraft which is called when we cancel a draft is now async,
removing race conditions when you click "reply" to a post and are
already editing. We used to trigger double dialogs for cancelling
drafts which was confusing.
- Remove reply as new topic / reply as pm keys, they are no longer
used and only caused confustion. For example we used to pop up a
warning when you are composing a reply and flick to reply as
new topic
- Remove createTopic key, this was a bug that proliferated. Whenever
creating a topic via the C shortcut or clicking on new topic on full
screen search the correct new topic draft key will be used
consistently
- When abandoning an edit we now say "Are you sure you want to discard
your changes" (instead of abandon your post which is confusing)
2019-10-21 17:24:06 +11:00
Jarek Radosz
ac06c87b43
DEV: Remove badge-select-controller ( #8207 )
...
* DEV: Remove badge-select-controller
1. The `selectableUserBadges` computed property of `badge-title` was being incorrectly overwritten, which triggered computed-property.override deprecation.
2. The `badge-select-controller` mixin contained properties that were used either by `badge-title` component or `badges/show` controller, but none were being used by both. This change moves properties where they belong, and removes the mixin.
* Update app/assets/javascripts/discourse/controllers/badges/show.js.es6
Co-Authored-By: Robin Ward <robin.ward@gmail.com>
* Improve code brevity
2019-10-18 02:17:05 +02:00
Jarek Radosz
7de3e7b322
DEV: Fix the Function.prototype.on deprecation ( #8205 )
...
https://deprecations.emberjs.com/v3.x/#toc_function-prototype-extensions-on
2019-10-18 01:49:41 +02:00
Daniel Waterworth
d59746cdc1
SECURITY: Don't send CSRF token in query string
...
The token is already present in the headers thanks to the csrf-token
initializer.
2019-08-21 13:16:38 +01:00
Blake Erickson
893d30fb92
REVERT: External auth when redeeming invites
...
Reverting this commit:
87a0a6664e
because I'm extracting all of this logic into a plugin instead.
2019-08-16 12:44:14 -06:00
Blake Erickson
d7c73ded14
Ran prettier to clean up some formatting
...
Follow up to:
https://review.discourse.org/t/feature-external-auth-when-redeeming-invites/5152?u=blake
2019-08-11 19:00:52 -06:00
Blake Erickson
87a0a6664e
FEATURE: External auth when redeeming invites
...
This feature (when enabled) will allow for invite_only sites to require
external authentication before they can redeem an invite.
- Created hidden site setting to toggle this
- Enables sending invites with local logins disabled
- OAuth button added to invite form
- Requires OAuth email address to match invite email address
- Prevents redeeming invite if OAuth authentication fails
2019-08-11 12:20:02 -06:00
Joffrey JAFFEUX
8a9ce7336d
FIX: removes uncategorized context if not allowed in composer ( #7922 )
2019-07-23 17:05:49 +02:00
Joffrey JAFFEUX
617c74bc79
DEV: remove .property() deprecations ( #7906 )
...
More context at https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property
2019-07-18 13:28:23 -04:00
Joffrey JAFFEUX
b3eb67976d
DEV: Upgrades to Ember 3.10 ( #7871 )
...
Co-Authored-By: majakomel <maja.komel@gmail.com>
2019-07-16 12:45:15 +02:00
Sam Saffron
5bc5c02af6
FIX: mark topics in sub categories as unread when dismissing parent
...
Previously we would only dismiss the parent category and leave the
child categories unread
2019-06-27 13:26:48 +10:00
Joffrey JAFFEUX
c462c2f271
FIX: prevents appEvents to leak ( #7714 )
2019-06-06 12:33:52 +02:00
Joffrey JAFFEUX
68147cedd1
REFACTOR: username-validation mixin ( #7693 )
2019-06-04 17:41:33 +02:00
Joffrey JAFFEUX
b2fc80e4b7
REFACTOR: build-topic-selection mixin ( #7635 )
2019-05-29 16:09:19 +02:00
Joffrey JAFFEUX
d93f753b17
apply prettier on gigantic find and replace ( #7604 )
2019-05-27 10:42:53 +02:00
Joffrey JAFFEUX
bfea922167
DEV: global s/this.get\("(\w+)"\)/this.$1 ( #7592 )
2019-05-27 10:15:39 +02:00
Maja Komel
4b455e741e
DEV: Ember 3.8.0
...
Co-Authored-By: majakomel <maja.komel@gmail.com>
2019-04-26 12:16:21 +02:00
Joffrey JAFFEUX
e386fa7674
FIX: ensures we have touches when starting pan event ( #7435 )
2019-04-25 10:36:41 +02:00
Penar Musaraj
51630b5187
Footer nav tweaks
2019-04-12 12:29:54 -04:00
Penar Musaraj
f060c9b3ff
UI: improvements to footer nav for app and PWAs
...
Adds support for iPad and Chrome PWAs
Better scroll direction logic when reaching bottom of the page
2019-04-11 14:11:26 -04:00
Penar Musaraj
eae22548de
Footer navigation for iOS PWAs and DiscourseHub app ( #7347 )
2019-04-10 12:23:18 -04:00
Penar Musaraj
44fe2eec03
Better fix for Safari user card position
...
Better than a2c6683e3b
2019-04-02 15:36:47 -04:00
Penar Musaraj
15e27d9e2c
Prettier fix
2019-04-02 11:56:21 -04:00
Penar Musaraj
a2c6683e3b
FIX: inconsistent user card position in Safari
...
User cards triggered in header were incorrectly positioned in Safari desktop.
Using `position()` instead of `offset()` is more consistent, since header is a fixed element in this scenario.
2019-04-02 10:32:50 -04:00
Joe
8b8d528b88
Hide mobile cards when user scrolls ( #7291 )
2019-03-31 11:16:52 +02:00
Joe
ec2123809f
FEATURE: user and group cards on mobile ( #7246 )
2019-03-25 13:37:17 +01:00