Skip to content

Commit

Permalink
Move functions.js to modules/functions.js
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Dec 1, 2022
1 parent ae64cef commit c916acf
Show file tree
Hide file tree
Showing 55 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion js/src/common.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { Navigation } from './navigation.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/config.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/central_columns.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/events.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';

AJAX.registerTeardown('database/events.js', function () {
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/multi_table_query.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/operations.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';
import { CommonActions, CommonParams } from '../common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/database/qbe.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* @fileoverview function used in QBE for DB
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/query_generator.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* @fileoverview function used in QBE for DB
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/routines.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';

AJAX.registerTeardown('database/routines.js', function () {
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/search.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/structure.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';
import { CommonParams } from '../common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/database/tracking.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/database/triggers.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';

AJAX.registerTeardown('database/triggers.js', function () {
Expand Down
2 changes: 1 addition & 1 deletion js/src/designer/database.js
@@ -1,4 +1,4 @@
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

var designerTables = [
{
Expand Down
2 changes: 1 addition & 1 deletion js/src/designer/history.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* @fileoverview function used in this file builds history tab and generates query.
Expand Down
2 changes: 1 addition & 1 deletion js/src/designer/move.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonActions, CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/designer/page.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/* global DesignerOfflineDB */ // js/designer/database.js
/* global DesignerMove */ // js/designer/move.js
Expand Down
2 changes: 1 addition & 1 deletion js/src/drag_drop_import.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/* This script handles PMA Drag Drop Import, loaded only when configuration is enabled.*/
Expand Down
2 changes: 1 addition & 1 deletion js/src/error_report.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/export.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/gis_data_editor.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/import.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { Navigation } from './navigation.js';
import { CommonParams } from './common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/indexes.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { Navigation } from './navigation.js';
import { CommonActions, CommonParams } from './common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/main.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { KeyHandlerEvents } from './keyhandler.js';
import { Navigation } from './navigation.js';
import { PageSettings } from './page_settings.js';
Expand Down
2 changes: 1 addition & 1 deletion js/src/makegrid.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/* global Sql */
Expand Down
2 changes: 1 addition & 1 deletion js/src/menu_resizer.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';

/**
* Handles the resizing of a menu according to the available screen width
Expand Down
2 changes: 1 addition & 1 deletion js/src/modules/ajax.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from '../functions.js';
import { Functions } from './functions.js';
import { Navigation } from '../navigation.js';
import { CommonParams } from '../common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/modules/console.js
@@ -1,7 +1,7 @@
import $ from 'jquery';
import CodeMirror from 'codemirror';
import { AJAX } from './ajax.js';
import { Functions } from '../functions.js';
import { Functions } from './functions.js';
import { CommonParams } from '../common.js';
import { Navigation } from '../navigation.js';
import { Config } from './console/config.js';
Expand Down
2 changes: 1 addition & 1 deletion js/src/modules/console/config.js
@@ -1,4 +1,4 @@
import { Functions } from '../../functions.js';
import { Functions } from '../functions.js';

/**
* @link https://docs.phpmyadmin.net/en/latest/config.html#console-settings
Expand Down
12 changes: 6 additions & 6 deletions js/src/functions.js → js/src/modules/functions.js
@@ -1,10 +1,10 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Navigation } from './navigation.js';
import { CommonActions, CommonParams } from './common.js';
import { mysqlDocKeyword, mysqlDocBuiltin } from './modules/doc-links.js';
import { Indexes } from './indexes.js';
import { Config } from './config.js';
import { AJAX } from './ajax.js';
import { Navigation } from '../navigation.js';
import { CommonActions, CommonParams } from '../common.js';
import { mysqlDocKeyword, mysqlDocBuiltin } from './doc-links.js';
import { Indexes } from '../indexes.js';
import { Config } from '../config.js';

/* global ChartType, ColumnType, DataTable, JQPlotChartFactory */ // js/chart.js
/* global DatabaseStructure */ // js/database/structure.js
Expand Down
2 changes: 1 addition & 1 deletion js/src/modules/git-info.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from '../functions.js';
import { Functions } from './functions.js';
import { CommonParams } from '../common.js';

const GitInfo = {
Expand Down
2 changes: 1 addition & 1 deletion js/src/multi_column_sort.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/navigation.js
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';
import { Config } from './config.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/normalization.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { CommonParams } from './common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/replication.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';

/**
* @fileoverview Javascript functions used in server replication page
Expand Down
2 changes: 1 addition & 1 deletion js/src/server/databases.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';
import { CommonActions, CommonParams } from '../common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/server/privileges.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';
import { Navigation } from '../navigation.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/server/status/monitor.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../../modules/ajax.js';
import { Functions } from '../../functions.js';
import { Functions } from '../../modules/functions.js';
import { CommonParams } from '../../common.js';
import { Config } from '../../config.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/server/status/processes.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../../modules/ajax.js';
import { Functions } from '../../functions.js';
import { Functions } from '../../modules/functions.js';
import { CommonParams } from '../../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/server/status/queries.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../../modules/ajax.js';
import { Functions } from '../../functions.js';
import { Functions } from '../../modules/functions.js';

/**
* @fileoverview Javascript functions used in server status query page
Expand Down
2 changes: 1 addition & 1 deletion js/src/server/user_groups.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* @fileoverview Javascript functions used in server user groups page
Expand Down
2 changes: 1 addition & 1 deletion js/src/server/variables.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/sql.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from './modules/ajax.js';
import { Functions } from './functions.js';
import { Functions } from './modules/functions.js';
import { Navigation } from './navigation.js';
import { CommonActions, CommonParams } from './common.js';
import { Config } from './config.js';
Expand Down
2 changes: 1 addition & 1 deletion js/src/table/change.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* @fileoverview function used in table data manipulation pages
Expand Down
2 changes: 1 addition & 1 deletion js/src/table/chart.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/* global ColumnType, DataTable, JQPlotChartFactory */ // js/chart.js

Expand Down
2 changes: 1 addition & 1 deletion js/src/table/find_replace.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* Unbind all event handlers before tearing down a page
Expand Down
2 changes: 1 addition & 1 deletion js/src/table/gis_visualization.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';

/**
* @fileoverview functions used for visualizing GIS data
Expand Down
2 changes: 1 addition & 1 deletion js/src/table/operations.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { Navigation } from '../navigation.js';
import { CommonActions, CommonParams } from '../common.js';

Expand Down
2 changes: 1 addition & 1 deletion js/src/table/relation.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonActions, CommonParams } from '../common.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/src/table/select.js
@@ -1,6 +1,6 @@
import $ from 'jquery';
import { AJAX } from '../modules/ajax.js';
import { Functions } from '../functions.js';
import { Functions } from '../modules/functions.js';
import { CommonParams } from '../common.js';

/**
Expand Down

0 comments on commit c916acf

Please sign in to comment.