Changeset 2294134
- Timestamp:
- 04/29/2020 06:59:44 AM (6 years ago)
- Location:
- filerobot-digital-asset-management-and-acceleration/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
assets/scripts/core.js (modified) (2 diffs)
-
assets/styles/core.css (modified) (1 diff)
-
filerobot_class.php (modified) (previous)
-
filerobot_class_filesystem.php (modified) (previous)
-
filerobot_settings_page.php (modified) (previous)
-
loader.php (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
filerobot-digital-asset-management-and-acceleration/trunk/README.txt
r2181633 r2294134 4 4 Tags: CDN, speed, storage, image resizing, image, SEO, resize, fast, compression, optimize 5 5 Requires at least: 4.8 6 Tested up to: 5. 2.46 Tested up to: 5.4.0 7 7 Requires PHP: 5.6 8 Stable tag: 1. 4.68 Stable tag: 1.5.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 102 102 = 1.4.6 = 103 103 * Plugin deactivation flow improvement 104 = 1.5.0 = 105 * Sync options 104 106 105 107 == Upgrade Notice == -
filerobot-digital-asset-management-and-acceleration/trunk/assets/scripts/core.js
r2180122 r2294134 2 2 const filerobot_message = jQuery('.filerobot__message'); 3 3 const filerobot_test_connection = jQuery('.filerobot__test__connection'); 4 const filerobot_sync_files = jQuery('.filerobot__sync__files'); 5 const filerobot_sync_files_force = jQuery('.filerobot__sync__files__force'); 4 6 5 7 jQuery(function () { … … 32 34 }); 33 35 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 }); 34 85 }) 35 86 -
filerobot-digital-asset-management-and-acceleration/trunk/assets/styles/core.css
r2178538 r2294134 285 285 color: #ffffff; 286 286 } 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 327 input:checked + .slider { 328 background-color: #2fb352; 329 } 330 331 input:focus + .slider { 332 box-shadow: 0 0 1px #2fb352; 333 } 334 335 input: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.