Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] [NO CACHE] Enable code style for Vue App Media Manager #30839

Merged
merged 9 commits into from
Oct 17, 2020

Conversation

dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Oct 1, 2020

Pull Request for Issue # .

Summary of Changes

  • Enable Eslint to lint also vue files
  • Rename the .js media files to .es6.js so that these could be listed as well
  • Fix indentation
  • Replace deprecated code
  • Fix slots
  • Suppress all other errors/warnings

From

✖ 1254 problems (1221 errors, 33 warnings)
  1082 errors and 18 warnings potentially fixable with the `--fix` option.

to No errors

Testing Instructions

Check that all the modals and the rest of the media manager functionality is intact

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.0-dev labels Oct 1, 2020
@dgrammatiko dgrammatiko changed the title [4.0] Enable code style for Vue App Media Manager [4.0] [NO CACHE] Enable code style for Vue App Media Manager Oct 1, 2020
@SharkyKZ
Copy link
Contributor

SharkyKZ commented Oct 1, 2020

Please use git mv to rename files.

@dgrammatiko
Copy link
Contributor Author

Please use git mv to rename files.

I did: 39693c2

@SharkyKZ
Copy link
Contributor

SharkyKZ commented Oct 1, 2020

Weird because Github shows somes files as deleted/added.

@dgrammatiko
Copy link
Contributor Author

dgrammatiko commented Oct 1, 2020

Weird because Github shows somes files as deleted/added.

Are we looking at the same thing? The first commit in this PR clearly shows that I just renamed the files (with git mv as you've asked eg $ git mv translate.js translate.es6.js)

According to SO this is expected: https://stackoverflow.com/questions/2314652/is-it-possible-to-move-rename-files-in-git-and-maintain-their-history

@dgrammatiko
Copy link
Contributor Author

@richard67 could you please restart drone here? Thanks

@SharkyKZ
Copy link
Contributor

SharkyKZ commented Oct 1, 2020

I'm looking at the Files tab here on Github. Some look to have been moved correctly (e.g getters.js) and others don't. The diff also shows some files being deleted:

diff --git a/administrator/components/com_media/resources/scripts/store/mutations.js b/administrator/components/com_media/resources/scripts/store/mutations.js
deleted file mode 100644

But git blame appears to be intact.

@dgrammatiko
Copy link
Contributor Author

and others don't

Maybe wrong permissions? I honestly redid this PR using git mv. I'm not a git guru...

@bonzani
Copy link

bonzani commented Oct 3, 2020

It depends on your similarity threshold setting in the Git client. In any case git mv oldname newname is just shorthand for:

mv oldname newname
git add newname
git rm oldname

@particthistle
Copy link
Member

I have tested this item 🔴 unsuccessfully on f39f6e1

### Before Patching ###
Modal for previewing an image has an X to close (fa-times icon), allowing you to close the image preview.

After Patching

Modal X no longer visible, had to press escape to close the image preview.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30839.

@dgrammatiko
Copy link
Contributor Author

@richard67 could you restart drone here?

@particthistle
Copy link
Member

I have tested this item ✅ successfully on 1e94346

Tested again after close icon was fixed.

  • Image preview modal works
  • Create new folder modal works
  • Rename file modal works (though renaming a file doesn't trigger a warning that it will affect existing links to the file throughout the site - perhaps needs another issue raised?)
  • Delete file modal works
  • Delete folder modal works

Everything looks to be working correctly, without any console errors appearing.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30839.

@wilsonge wilsonge merged commit 767860f into joomla:4.0-dev Oct 17, 2020
@wilsonge
Copy link
Contributor

LGTM on review too. Thanks!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Oct 17, 2020
@dgrammatiko dgrammatiko deleted the 4.0-dev-vue-cs branch October 17, 2020 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NPM Resource Changed This Pull Request can't be tested by Patchtester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants