Plugin Directory

Changeset 2294134


Ignore:
Timestamp:
04/29/2020 06:59:44 AM (6 years ago)
Author:
cloudimage
Message:

Release 1.5.0

Location:
filerobot-digital-asset-management-and-acceleration/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • filerobot-digital-asset-management-and-acceleration/trunk/README.txt

    r2181633 r2294134  
    44Tags: CDN, speed, storage, image resizing, image, SEO, resize, fast, compression, optimize
    55Requires at least: 4.8
    6 Tested up to: 5.2.4
     6Tested up to: 5.4.0
    77Requires PHP: 5.6
    8 Stable tag: 1.4.6
     8Stable tag: 1.5.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102= 1.4.6 =
    103103* Plugin deactivation flow improvement
     104= 1.5.0 =
     105* Sync options
    104106
    105107== Upgrade Notice ==
  • filerobot-digital-asset-management-and-acceleration/trunk/assets/scripts/core.js

    r2180122 r2294134  
    22const filerobot_message = jQuery('.filerobot__message');
    33const filerobot_test_connection = jQuery('.filerobot__test__connection');
     4const filerobot_sync_files = jQuery('.filerobot__sync__files');
     5const filerobot_sync_files_force = jQuery('.filerobot__sync__files__force');
    46
    57jQuery(function () {
     
    3234        });
    3335
     36    });
     37
     38    filerobot_sync_files.on('click', function () {
     39        console.log("start sync");
     40
     41        const data = {
     42            action: 'filerobot_sync_files'
     43        };
     44
     45        filerobot_loader.hide();
     46
     47        jQuery.ajax({
     48            type: 'POST',
     49            url: ajaxurl,
     50            data: data,
     51            dataType: 'html'
     52        }).done(function (res) {
     53            filerobot_message.show();
     54            filerobot_message.html('<br/>' + res);
     55            filerobot_loader.hide();
     56            jQuery('html,body').animate({scrollTop: 0}, 1000);
     57        });
     58    });
     59
     60    filerobot_sync_files_force.on('click', function () {
     61        console.log("start sync force");
     62
     63        const data = {
     64            filerobot_key: jQuery('input[name=filerobot_key]').val(),
     65            filerobot_secret: jQuery('input[name=filerobot_secret]').val(),
     66            filerobot_endpoint: jQuery('input[name=filerobot_endpoint]').val(),
     67            filerobot_container: jQuery('input[name=filerobot_container]').val(),
     68            action: 'filerobot_sync_files_force'
     69        };
     70
     71        filerobot_sync_files_force.prop('value', 'Wait...');
     72
     73        jQuery.ajax({
     74            type: 'POST',
     75            url: ajaxurl,
     76            data: data,
     77            dataType: 'html'
     78        }).done(function (res) {
     79            filerobot_message.show();
     80            filerobot_message.html('<br/>' + res);
     81            filerobot_loader.hide();
     82            jQuery('html,body').animate({scrollTop: 0}, 1000);
     83            filerobot_sync_files_force.prop('value', 'Force sync');
     84        });
    3485    })
    3586
  • filerobot-digital-asset-management-and-acceleration/trunk/assets/styles/core.css

    r2178538 r2294134  
    285285    color: #ffffff;
    286286}
     287
     288.switch {
     289    position: relative;
     290    display: inline-block;
     291    width: 75px;
     292    height: 34px;
     293}
     294
     295/* Hide default HTML checkbox */
     296.switch input {
     297    opacity: 0;
     298    width: 0;
     299    height: 0;
     300}
     301
     302/* The slider */
     303.slider {
     304    position: absolute;
     305    cursor: pointer;
     306    top: 0;
     307    left: 0;
     308    right: 0;
     309    bottom: 0;
     310    background-color: #ccc;
     311    -webkit-transition: .4s;
     312    transition: .4s;
     313}
     314
     315.slider:before {
     316    position: absolute;
     317    content: "";
     318    height: 26px;
     319    width: 26px;
     320    left: 10px;
     321    bottom: 4px;
     322    background-color: white;
     323    -webkit-transition: .4s;
     324    transition: .4s;
     325}
     326
     327input:checked + .slider {
     328    background-color: #2fb352;
     329}
     330
     331input:focus + .slider {
     332    box-shadow: 0 0 1px #2fb352;
     333}
     334
     335input:checked + .slider:before {
     336    -webkit-transform: translateX(26px);
     337    -ms-transform: translateX(26px);
     338    transform: translateX(26px);
     339}
     340
     341/* Rounded sliders */
     342.slider.round {
     343    border-radius: 34px;
     344}
     345
     346.slider.round:before {
     347    border-radius: 50%;
     348}
     349
Note: See TracChangeset for help on using the changeset viewer.