Plugin Directory

Changeset 2432883


Ignore:
Timestamp:
12/07/2020 06:44:13 AM (5 years ago)
Author:
pressmaninc
Message:

tagging version 2.0.1

Location:
beyond-wpdb
Files:
6 edited
6 copied

Legend:

Unmodified
Added
Removed
  • beyond-wpdb/tags/2.0.1/beyond-wpdb.php

    r2432881 r2432883  
    44Plugin URI:
    55Description: Speed up your WordPress database by making use of JSON type columns in MySQL.
    6 Version: 2.0.0
     6Version: 2.0.1
    77Author: PRESSMAN
    88Author URI: https://www.pressman.ne.jp/
  • beyond-wpdb/tags/2.0.1/class/admin-ajax.php

    r2352101 r2432883  
    2727        $handle = 'beyond-wpdb-script';
    2828
    29         wp_enqueue_script( 'axios', 'https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js', array(), '', true );
    3029        wp_enqueue_script( $handle, plugin_dir_url( __FILE__ ) . '../js/beyond-wpdb.js', array('jquery'), '1.0', true );
    3130        // Localizing constants.
  • beyond-wpdb/tags/2.0.1/js/beyond-wpdb.js

    r2352101 r2432883  
    99   * @returns {Promise<*>}
    1010   */
    11     getExistJsonTablesApi: async() => {
     11    getExistJsonTablesApi() {
    1212        const formData = new FormData();
    1313        formData.append( 'action', BEYOND_WPDB_CONFIG.exist_tables.get.action );
    1414        formData.append( 'nonce', BEYOND_WPDB_CONFIG.exist_tables.get.nonce );
    1515
    16         return await axios.post( BEYOND_WPDB_CONFIG.api, formData )
    17             .catch( ( err ) => err.response );
     16        return BEYOND_WPDB.api( formData );
    1817    },
    1918
     
    2322   * @returns {Promise<*>}
    2423   */
    25     getExistVirtualColumnsApi: async() => {
     24    getExistVirtualColumnsApi() {
    2625        const formData = new FormData();
    2726        formData.append( 'action', BEYOND_WPDB_CONFIG.virtual_columns.get.action );
    2827        formData.append( 'nonce', BEYOND_WPDB_CONFIG.virtual_columns.get.nonce );
    2928
    30         return await axios
    31             .post( BEYOND_WPDB_CONFIG.api, formData )
    32             .catch( ( err ) => err.response );
    33     },
    34     createVirtualColumnsApi: async( primary, columns ) => {
     29        return BEYOND_WPDB.api( formData );
     30    },
     31    createVirtualColumnsApi( primary, columns ) {
    3532        const formData = new FormData();
    3633        formData.append( 'action', BEYOND_WPDB_CONFIG.virtual_columns.create.action );
     
    3936        formData.append( 'columns', columns );
    4037
    41         return await axios
    42             .post( BEYOND_WPDB_CONFIG.api, formData )
    43             .catch( ( err ) => err.response );
     38        return BEYOND_WPDB.api( formData );
    4439    },
    4540
     
    5045   * @returns {Promise<*>}
    5146   */
    52     activateActionApi: async( primary ) => {
     47    activateActionApi( primary ) {
    5348        const formData = new FormData();
    5449        formData.append( 'action', BEYOND_WPDB_CONFIG.data_init.create.action );
     
    5651        formData.append( 'primary', primary );
    5752
    58         return await axios
    59             .post( BEYOND_WPDB_CONFIG.api, formData )
    60             .catch( ( err ) => err.response );
     53        return BEYOND_WPDB.api( formData );
    6154    },
    6255
     
    6760   * @returns {Promise<*>}
    6861   */
    69     deactivateActionApi: async( primary ) => {
     62    deactivateActionApi( primary ) {
    7063        const formData = new FormData();
    7164        formData.append( 'action', BEYOND_WPDB_CONFIG.data_init.delete.action );
     
    7366        formData.append( 'primary', primary );
    7467
    75         return await axios
    76             .post( BEYOND_WPDB_CONFIG.api, formData )
    77             .catch( ( err ) => err.response );
     68        return BEYOND_WPDB.api( formData );
     69    },
     70
     71    /**
     72   * send api
     73   *
     74   * @param formData
     75   * @returns {Promise<*>}
     76   */
     77    api( formData ) {
     78        return new Promise(function(resolve, reject) {
     79            jQuery.ajax({
     80                url: BEYOND_WPDB_CONFIG.api,
     81                type: "POST",
     82                async: true,
     83                contentType: false,
     84                processData: false,
     85                data: formData,
     86                dataType: "json",
     87            }).then(
     88                function (result, status, jqXHR) {
     89                    const re = {
     90                        data: result,
     91                        status: jqXHR.status
     92                    };
     93                    resolve(re);
     94                },
     95                function () {
     96                    reject();
     97                }
     98            )
     99        });
    78100    },
    79101
  • beyond-wpdb/tags/2.0.1/readme.txt

    r2432881 r2432883  
    22Contributors: pressmaninc,kazunao,hiroshisekiguchi,hommakoharu,pmhirotaka
    33Tags: pressman,pressmaninc,json,meta_query,wpdb,database,fast,speed,speed up,sql,replace sql
    4 Stable tag: 2.0.0
     4Stable tag: 2.0.1
    55License: GPLv2 or later
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html
    7 Requires Wordpress: 5.4
     7Requires Wordpress: 5.5.3
    88Requires PHP: 7.0
    99Requires MySQL: 5.7
    1010Requires MariaDB: 10.2
    11 Tested up to: 5.4
     11Tested up to: 5.5.3
    1212
    1313※ Table names have been changed since v2.0.Please delete the meta_json table and reactivate it in the options screen.
     
    3838== Custom meta tables generated by plugin ==
    3939The actual table names are prefixed with $table_prefix.
    40 
    4140* postmeta_beyond (for posts table)
    4241* usermeta_beyond (for users table)
     
    4544== Columns in each table ==
    4645The actual table names are prefixed with $table_prefix.
    47 
    4846* postmeta_beyond
    4947    * post_id(int)
  • beyond-wpdb/trunk/beyond-wpdb.php

    r2352101 r2432883  
    44Plugin URI:
    55Description: Speed up your WordPress database by making use of JSON type columns in MySQL.
    6 Version: 2.0.0
     6Version: 2.0.1
    77Author: PRESSMAN
    88Author URI: https://www.pressman.ne.jp/
  • beyond-wpdb/trunk/class/admin-ajax.php

    r2352101 r2432883  
    2727        $handle = 'beyond-wpdb-script';
    2828
    29         wp_enqueue_script( 'axios', 'https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js', array(), '', true );
    3029        wp_enqueue_script( $handle, plugin_dir_url( __FILE__ ) . '../js/beyond-wpdb.js', array('jquery'), '1.0', true );
    3130        // Localizing constants.
  • beyond-wpdb/trunk/js/beyond-wpdb.js

    r2352101 r2432883  
    99   * @returns {Promise<*>}
    1010   */
    11     getExistJsonTablesApi: async() => {
     11    getExistJsonTablesApi() {
    1212        const formData = new FormData();
    1313        formData.append( 'action', BEYOND_WPDB_CONFIG.exist_tables.get.action );
    1414        formData.append( 'nonce', BEYOND_WPDB_CONFIG.exist_tables.get.nonce );
    1515
    16         return await axios.post( BEYOND_WPDB_CONFIG.api, formData )
    17             .catch( ( err ) => err.response );
     16        return BEYOND_WPDB.api( formData );
    1817    },
    1918
     
    2322   * @returns {Promise<*>}
    2423   */
    25     getExistVirtualColumnsApi: async() => {
     24    getExistVirtualColumnsApi() {
    2625        const formData = new FormData();
    2726        formData.append( 'action', BEYOND_WPDB_CONFIG.virtual_columns.get.action );
    2827        formData.append( 'nonce', BEYOND_WPDB_CONFIG.virtual_columns.get.nonce );
    2928
    30         return await axios
    31             .post( BEYOND_WPDB_CONFIG.api, formData )
    32             .catch( ( err ) => err.response );
    33     },
    34     createVirtualColumnsApi: async( primary, columns ) => {
     29        return BEYOND_WPDB.api( formData );
     30    },
     31    createVirtualColumnsApi( primary, columns ) {
    3532        const formData = new FormData();
    3633        formData.append( 'action', BEYOND_WPDB_CONFIG.virtual_columns.create.action );
     
    3936        formData.append( 'columns', columns );
    4037
    41         return await axios
    42             .post( BEYOND_WPDB_CONFIG.api, formData )
    43             .catch( ( err ) => err.response );
     38        return BEYOND_WPDB.api( formData );
    4439    },
    4540
     
    5045   * @returns {Promise<*>}
    5146   */
    52     activateActionApi: async( primary ) => {
     47    activateActionApi( primary ) {
    5348        const formData = new FormData();
    5449        formData.append( 'action', BEYOND_WPDB_CONFIG.data_init.create.action );
     
    5651        formData.append( 'primary', primary );
    5752
    58         return await axios
    59             .post( BEYOND_WPDB_CONFIG.api, formData )
    60             .catch( ( err ) => err.response );
     53        return BEYOND_WPDB.api( formData );
    6154    },
    6255
     
    6760   * @returns {Promise<*>}
    6861   */
    69     deactivateActionApi: async( primary ) => {
     62    deactivateActionApi( primary ) {
    7063        const formData = new FormData();
    7164        formData.append( 'action', BEYOND_WPDB_CONFIG.data_init.delete.action );
     
    7366        formData.append( 'primary', primary );
    7467
    75         return await axios
    76             .post( BEYOND_WPDB_CONFIG.api, formData )
    77             .catch( ( err ) => err.response );
     68        return BEYOND_WPDB.api( formData );
     69    },
     70
     71    /**
     72   * send api
     73   *
     74   * @param formData
     75   * @returns {Promise<*>}
     76   */
     77    api( formData ) {
     78        return new Promise(function(resolve, reject) {
     79            jQuery.ajax({
     80                url: BEYOND_WPDB_CONFIG.api,
     81                type: "POST",
     82                async: true,
     83                contentType: false,
     84                processData: false,
     85                data: formData,
     86                dataType: "json",
     87            }).then(
     88                function (result, status, jqXHR) {
     89                    const re = {
     90                        data: result,
     91                        status: jqXHR.status
     92                    };
     93                    resolve(re);
     94                },
     95                function () {
     96                    reject();
     97                }
     98            )
     99        });
    78100    },
    79101
  • beyond-wpdb/trunk/readme.txt

    r2352165 r2432883  
    22Contributors: pressmaninc,kazunao,hiroshisekiguchi,hommakoharu,pmhirotaka
    33Tags: pressman,pressmaninc,json,meta_query,wpdb,database,fast,speed,speed up,sql,replace sql
    4 Stable tag: 2.0.0
     4Stable tag: 2.0.1
    55License: GPLv2 or later
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html
    7 Requires Wordpress: 5.4
     7Requires Wordpress: 5.5.3
    88Requires PHP: 7.0
    99Requires MySQL: 5.7
    1010Requires MariaDB: 10.2
    11 Tested up to: 5.4
     11Tested up to: 5.5.3
    1212
    1313※ Table names have been changed since v2.0.Please delete the meta_json table and reactivate it in the options screen.
     
    3838== Custom meta tables generated by plugin ==
    3939The actual table names are prefixed with $table_prefix.
    40 
    4140* postmeta_beyond (for posts table)
    4241* usermeta_beyond (for users table)
     
    4544== Columns in each table ==
    4645The actual table names are prefixed with $table_prefix.
    47 
    4846* postmeta_beyond
    4947    * post_id(int)
Note: See TracChangeset for help on using the changeset viewer.