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

Modularize JS files related to 'structure' #14524

Merged

Conversation

Piyush3079
Copy link
Contributor

This pr contains the structured code of javascript.

This pr is in continuation of Mod_Js_Config_Js, Before reviewing this pr, review and merge Mod_Js_Config_Js and then review this pr.
Before submitting pull request, please check that every commit:

  • Has proper Signed-Off-By
  • Has commit message which describes it
  • Is needed on it's own, if you have just minor fixes to previous commits, you can squash them
  • Any new functionality is covered by tests

@devenbansod devenbansod changed the base branch from master to gsoc-js-refactoring August 1, 2018 11:31
@codecov
Copy link

codecov bot commented Aug 5, 2018

Codecov Report

Merging #14524 into gsoc-js-refactoring will not change coverage.
The diff coverage is 100%.

@@                  Coverage Diff                   @@
##             gsoc-js-refactoring   #14524   +/-   ##
======================================================
  Coverage                  50.53%   50.53%           
  Complexity                 14434    14434           
======================================================
  Files                        501      501           
  Lines                      68012    68012           
======================================================
  Hits                       34372    34372           
  Misses                     33640    33640

Js code is stuctured properly with comments.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Copy link
Member

@devenbansod devenbansod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Just a few minor comments.

js/src/export.js Outdated
* Module import
*/
import {
createTemplate,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we do a import *?

@@ -4,7 +4,7 @@
*/
import { AJAX } from '../ajax';
import { PMA_Messages as PMA_messages } from '../variables/export_variables';
import { PMA_commonParams } from '../variables/common_params';
import PMA_commonParams from '../variables/common_params';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shortcut handler and page settings js files added in modular code.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Copy link
Member

@devenbansod devenbansod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of methods still have the PMA_ prefix, but we can tackle that at the end.

@devenbansod devenbansod merged commit 24f91b1 into phpmyadmin:gsoc-js-refactoring Aug 9, 2018
@devenbansod devenbansod changed the title Mod js structuring 1 Modularize JS files related to 'structure' Aug 9, 2018
@nightwarriorftw
Copy link

@devenbansod I want to work on this issue Introduce modern JS features and tools to phpMyAdmin codebase . Can you guide me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants