? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
14 May 2018

Move javascript to enqueue through JDocument and convert from jquery to native js (@dgrammatiko i did something maybe good?)

To test: Ensure that when you have multiple 2FA plugins installed you can swap between them successfully

avatar wilsonge wilsonge - open - 14 May 2018
avatar wilsonge wilsonge - change - 14 May 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2018
Category Front End com_users
avatar wilsonge wilsonge - change - 14 May 2018
The description was changed
avatar wilsonge wilsonge - edited - 14 May 2018
avatar wilsonge wilsonge - change - 14 May 2018
Labels Added: ?
avatar brianteeman brianteeman - change - 14 May 2018
Title
Move javascript to be inline
[4.0] Move javascript to be inline
avatar brianteeman brianteeman - edited - 14 May 2018
avatar brianteeman
brianteeman - comment - 14 May 2018

updated the title

avatar laoneo
laoneo - comment - 18 May 2018

Should this not be moved to a script to remove inline at all? At least that's what we did in the ES6 repo too.

avatar wilsonge
wilsonge - comment - 2 Jun 2018

It's not a big deal either way. This was the minimum required for the CSP work we were doing at the JSST sprint.

avatar laoneo
laoneo - comment - 9 Jun 2018

Still would be good to have it as its own script like we did with others. To keep consistency.

avatar joomla-cms-bot joomla-cms-bot - change - 2 Jul 2018
Category Front End com_users Front End com_users JavaScript
avatar wilsonge
wilsonge - comment - 2 Jul 2018

OK So I moved it to a standalone file. But looks like there's some sort of bug because the es6 files don't run through babel (I can't see anywhere where the es6 compiler is even called in build.js)

avatar wilsonge
wilsonge - comment - 2 Jul 2018

@dgrammatiko can you please ensure that we are actually running babel on the es6 files - bit of an issue if we are not!

avatar laoneo
laoneo - comment - 2 Jul 2018

Commands are in the description of #20396.

avatar dgrammatiko
dgrammatiko - comment - 2 Jul 2018

@wilsonge #20954 should do that.

There is a #todo for all the commands to become totally async, right now few are synchronous some are using promises and this will bite us at some point

avatar wilsonge
wilsonge - comment - 2 Jul 2018

I ran that command @laoneo - thats how i got my minified es6 file. it does not generate the es5 files... #20954 looks like the missing part tho!

avatar laoneo
laoneo - comment - 2 Jul 2018

Ok, I assume you saw the two commands. Then we need the help of @dgrammatiko.

avatar wilsonge
wilsonge - comment - 2 Jul 2018

OK got there in the end.

avatar dgrammatiko
dgrammatiko - comment - 2 Jul 2018

Javascript is fun! Nobody said that in 2018... ?

avatar laoneo
laoneo - comment - 2 Jul 2018

Are the failing system tests related to this pr?

avatar brianteeman
brianteeman - comment - 2 Jul 2018

@laoneo I dont think so - I think that has been there since #20841 but I could be very wrong

avatar laoneo
laoneo - comment - 2 Jul 2018

Drone was there green.

avatar laoneo
laoneo - comment - 2 Jul 2018

I guess it was #20919.

avatar laoneo laoneo - close - 2 Jul 2018
avatar laoneo laoneo - merge - 2 Jul 2018
avatar laoneo laoneo - change - 2 Jul 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-07-02 22:31:14
Closed_By laoneo
avatar laoneo
laoneo - comment - 2 Jul 2018

So I'm going to merge this one.

Add a Comment

Login with GitHub to post a comment