Changeset 2905921
- Timestamp:
- 04/29/2023 12:08:42 AM (3 years ago)
- Location:
- hyper-pwa/trunk
- Files:
-
- 7 edited
-
admin/admin.php (modified) (15 diffs)
-
cfg/cfg.php (modified) (2 diffs)
-
flx/cfg.php (modified) (2 diffs)
-
hyper-pwa.php (modified) (9 diffs)
-
lib/lib.php (modified) (4 diffs)
-
pwa/register.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hyper-pwa/trunk/admin/admin.php
r2903550 r2905921 178 178 'enable' 179 179 ], 180 'supplimental' => 'Provide an offline fallback HTML page. <a href="https://developer s.google.com/web/tools/workbox/guides/advanced-recipes#offline_page_only" target="_blank">More description</a>.'180 'supplimental' => 'Provide an offline fallback HTML page. <a href="https://developer.chrome.com/docs/workbox/managing-fallback-responses/#offline-page-only" target="_blank">More description</a>.' 181 181 ], 182 182 [ … … 193 193 'enable' 194 194 ], 195 'supplimental' => 'Setup Default Handler. <a href="https://developer s.google.com/web/tools/workbox/modules/workbox-routing#set_a_default_handler" target="_blank">More description</a>.'195 'supplimental' => 'Setup Default Handler. <a href="https://developer.chrome.com/docs/workbox/modules/workbox-routing/#set-a-default-handler" target="_blank">More description</a>.' 196 196 ], 197 197 [ … … 208 208 'enable' 209 209 ], 210 'supplimental' => 'Setup Precaching. <a href="https://developer s.google.com/web/tools/workbox/modules/workbox-precaching" target="_blank">More description</a>.'210 'supplimental' => 'Setup Precaching. <a href="https://developer.chrome.com/docs/workbox/modules/workbox-precaching/" target="_blank">More description</a>.' 211 211 ], 212 212 [ … … 217 217 'type' => 'textarea', 218 218 'default' => '', 219 'supplimental' => 'Setup Precaching List. Each URL occupies one line. <a href="https://developer s.google.com/web/tools/workbox/modules/workbox-precaching" target="_blank">More description</a>.'219 'supplimental' => 'Setup Precaching List. Each URL occupies one line. <a href="https://developer.chrome.com/docs/workbox/modules/workbox-precaching/" target="_blank">More description</a>.' 220 220 ], 221 221 [ … … 232 232 'enable' 233 233 ], 234 'supplimental' => 'Setup Periodic Background Sync. <a href="https:// web.dev/periodic-background-sync/" target="_blank">More description</a>.'234 'supplimental' => 'Setup Periodic Background Sync. <a href="https://developer.chrome.com/articles/periodic-background-sync/" target="_blank">More description</a>.' 235 235 ], 236 236 [ … … 241 241 'type' => 'textarea', 242 242 'default' => '', 243 'supplimental' => 'Setup Periodic Background Sync List. Each URL occupies one line. <a href="https:// web.dev/periodic-background-sync/" target="_blank">More description</a>.'243 'supplimental' => 'Setup Periodic Background Sync List. Each URL occupies one line. <a href="https://developer.chrome.com/articles/periodic-background-sync/" target="_blank">More description</a>.' 244 244 ], 245 245 [ … … 256 256 'enable' 257 257 ], 258 'supplimental' => 'Setup Background Sync. <a href="https://developer s.google.com/web/tools/workbox/modules/workbox-background-sync" target="_blank">More description</a>.'258 'supplimental' => 'Setup Background Sync. <a href="https://developer.chrome.com/docs/workbox/modules/workbox-background-sync/" target="_blank">More description</a>.' 259 259 ], 260 260 [ … … 271 271 'enable' 272 272 ], 273 'supplimental' => 'Setup Google Analytics. <a href="https://developer s.google.com/web/tools/workbox/modules/workbox-google-analytics" target="_blank">More description</a>.'273 'supplimental' => 'Setup Google Analytics. <a href="https://developer.chrome.com/docs/workbox/modules/workbox-google-analytics/" target="_blank">More description</a>.' 274 274 ], 275 275 [ … … 286 286 'disable' 287 287 ], 288 'supplimental' => 'Show a prompt banner when the service worker has been updated and is waiting for installation. <a href="https://developer s.google.com/web/tools/workbox/guides/advanced-recipes#offer_a_page_reload_for_users" target="_blank">More description</a>.'288 'supplimental' => 'Show a prompt banner when the service worker has been updated and is waiting for installation. <a href="https://developer.chrome.com/docs/workbox/handling-service-worker-updates/#do-you-need-to-show-a-prompt" target="_blank">More description</a>.' 289 289 ], 290 290 [ … … 301 301 'disable' 302 302 ], 303 'supplimental' => '<strong>Debug Builds:</strong> Come un-minified, have additional logging and performs rigorous assertion checking to make development as easy as possible. <strong>Production Builds:</strong> Are minified with any optional logging and assertions stripped from the build. <a href="https://developer s.google.com/web/tools/workbox/guides/configure-workbox#configure_debug_builds_vs_production_builds" target="_blank">More description</a>.'303 'supplimental' => '<strong>Debug Builds:</strong> Come un-minified, have additional logging and performs rigorous assertion checking to make development as easy as possible. <strong>Production Builds:</strong> Are minified with any optional logging and assertions stripped from the build. <a href="https://developer.chrome.com/docs/workbox/modules/workbox-sw/#force-use-of-debug-or-production-builds" target="_blank">More description</a>.' 304 304 ] 305 305 ]; … … 332 332 private $home_url = ''; 333 333 334 private $time_now = 0; 335 334 336 private $tab = ''; 335 337 … … 341 343 342 344 $this->home_url = home_url(); 345 346 $this->time_now = time(); 343 347 } 344 348 … … 470 474 $register_js_url = HYPER_PWA_REGISTER_JS . '?ver=' . HYPER_PWA_VERSION; 471 475 $service_worker_html_url = HYPER_PWA_SERVICE_WORKER_HTML; 472 $service_worker_js_url = HYPER_PWA_SERVICE_WORKER_JS . '?ver=' . HYPER_PWA_VERSION;473 $manifest_json_url = HYPER_PWA_MANIFEST_JSON . '?ver=' . HYPER_PWA_VERSION;476 $service_worker_js_url = HYPER_PWA_SERVICE_WORKER_JS; 477 $manifest_json_url = HYPER_PWA_MANIFEST_JSON; 474 478 $unregister_js_url = HYPER_PWA_UNREGISTER_JS . '?ver=' . HYPER_PWA_VERSION; 475 479 $offline_html_url = HYPER_PWA_OFFLINE_HTML; … … 492 496 </div> 493 497 <div style="float:right;width:70%;line-height:2em;"> 494 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( $register_js) ? 'Connected' : 'NOT Connected' ) . '</div>495 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( $service_worker_html) ? 'Connected' : 'NOT Connected' ) . '</div>496 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( $service_worker_js) ? 'Connected' : 'NOT Connected' ) . '</div>497 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( $manifest_json) ? 'Connected' : 'NOT Connected' ) . '</div>498 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( $unregister_js) ? 'Connected' : 'NOT Connected' ) . '</div>499 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( $offline_html) ? 'Connected' : 'NOT Connected' ) . '</div>498 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( trim( $register_js ) ) ? 'Connected' : 'NOT Connected' ) . '</div> 499 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( trim( $service_worker_html ) ) ? 'Connected' : 'NOT Connected' ) . '</div> 500 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( trim( $service_worker_js ) ) ? 'Connected' : 'NOT Connected' ) . '</div> 501 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( trim( $manifest_json ) ) ? 'Connected' : 'NOT Connected' ) . '</div> 502 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( trim( $unregister_js ) ) ? 'Connected' : 'NOT Connected' ) . '</div> 503 <div style="padding-left:20px;padding-right:20px;">' . ( !empty( trim( $offline_html ) ) ? 'Connected' : 'NOT Connected' ) . '</div> 500 504 </div> 501 505 <div style="clear: both;"></div> … … 626 630 if ( !empty( $_GET['settings-updated'] ) ) 627 631 { 628 $timestamp = wp_next_scheduled( 'hyper-pwa-cron-hook' );629 wp_unschedule_event( $timestamp, 'hyper-pwa-cron-hook' );630 631 632 $this->retrieve->reset_transient(); 632 633 633 $time_now = time();634 wp_schedule_event( $time_now, HYPER_PWA_SCHEDULE_RECURRENCE, 'hyper-pwa-cron-hook' ); 634 update_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now ); 635 635 636 636 637 echo ' -
hyper-pwa/trunk/cfg/cfg.php
r2904784 r2905921 5 5 } 6 6 7 define( 'HYPER_PWA_VERSION', '2.27.0' ); 7 define( 'HYPER_PWA_VERSION', '2.28.0' ); 8 define( 'HYPER_PWA_VERSION_ID', 'hyper-pwa-version-id' ); 9 10 define( 'HYPER_PWA_TRANSIENT_TIMESTAMP', 'hyper-pwa-transient-timestamp' ); 11 define( 'HYPER_PWA_TRANSIENT_SCHEDULE_RECURRENCE', HOUR_IN_SECONDS ); 12 define( 'HYPER_PWA_TRANSIENT_EXPIRATION', DAY_IN_SECONDS ); 13 14 define( 'HYPER_PWA_PAGE_VIEW', 'hyper-pwa-page-view' ); 15 define( 'HYPER_PWA_PAGE_VIEW_SIZE', 30 ); 16 17 define( 'HYPER_PWA_PAGE_VIEW_TIMESTAMP', 'hyper-pwa-page-view-timestamp' ); 18 define( 'HYPER_PWA_PAGE_VIEW_SCHEDULE_RECURRENCE', WEEK_IN_SECONDS ); 19 define( 'HYPER_PWA_PAGE_VIEW_EXPIRATION', MONTH_IN_SECONDS ); 20 21 define( 'HYPER_PWA_VERBOSE', FALSE ); 8 22 9 23 … … 52 66 define( 'HYPER_PWA_UPDATE_PROMPT', 'hyper-pwa-update-prompt' ); 53 67 define( 'HYPER_PWA_DEBUG', 'hyper-pwa-debug' ); 54 55 56 define( 'HYPER_PWA_SCHEDULE_RECURRENCE', 'daily' );57 58 define( 'HYPER_PWA_TRANSIENT_EXPIRATION', WEEK_IN_SECONDS );59 60 define( 'HYPER_PWA_PAGE_VIEW_COUNT', 'hyper-pwa-page-view-count' );61 define( 'HYPER_PWA_PAGE_VIEW_COUNT_SIZE', 30 );62 define( 'HYPER_PWA_PAGE_VIEW_COUNT_EXPIRATION', WEEK_IN_SECONDS );63 64 65 define( 'HYPER_PWA_VERBOSE', FALSE ); -
hyper-pwa/trunk/flx/cfg.php
r2891861 r2905921 5 5 } 6 6 7 define( 'HYPER_PWA_FLX_PROJECT', 'hyper-pwa-wordpress' ); 7 define( 'HYPER_PWA_FLX_SERVER_1', 'https://flx04.flexplat.com' ); 8 define( 'HYPER_PWA_FLX_SERVER_2', 'https://flx05.flexplat.com' ); 9 define( 'HYPER_PWA_FLX_SERVER_3', 'https://flx06.flexplat.com' ); 8 10 9 11 define( 'HYPER_PWA_FLX_REGISTER_JS_ROUTE', '/api/hyper-pwa/register-js' ); … … 14 16 define( 'HYPER_PWA_FLX_OFFLINE_HTML_ROUTE', '/api/hyper-pwa/offline-html' ); 15 17 16 define( 'HYPER_PWA_FLX_SERVER_1', 'https://flx04.flexplat.com' ); 17 define( 'HYPER_PWA_FLX_SERVER_2', 'https://flx05.flexplat.com' ); 18 define( 'HYPER_PWA_FLX_SERVER_3', 'https://flx06.flexplat.com' ); 18 define( 'HYPER_PWA_FLX_PROJECT', 'hyper-pwa' ); -
hyper-pwa/trunk/hyper-pwa.php
r2904784 r2905921 4 4 Plugin URI: https://github.com/rickey29/hyper-pwa 5 5 Description: Provide custom Manifest and Service Worker, convert WordPress into Progressive Web Apps (PWA). 6 Version: 2.2 7.06 Version: 2.28.0 7 7 Author: Rickey Gu 8 8 Author URI: https://flexplat.com … … 36 36 private $page_url = ''; 37 37 38 private $time_now = 0; 39 38 40 private $other_pwa_plugin_is_active = FALSE; 39 41 … … 51 53 $this->page_url = $parts['scheme'] . '://' . $parts['host'] . add_query_arg( [] ); 52 54 55 $this->time_now = time(); 56 53 57 54 58 require_once ABSPATH . 'wp-admin/includes/plugin.php'; … … 152 156 if ( 'GET' === $_SERVER['REQUEST_METHOD'] ) 153 157 { 154 $this->lib->set_page_view _count( $this->page_url );158 $this->lib->set_page_view( $this->page_url ); 155 159 } 156 160 … … 185 189 186 190 187 $version = get_option( 'hyper-pwa-version' ); 191 $version = get_option( HYPER_PWA_VERSION_ID ); 192 $transient_timestamp = get_option( HYPER_PWA_TRANSIENT_TIMESTAMP ); 193 $page_view_timestamp = get_option( HYPER_PWA_PAGE_VIEW_TIMESTAMP ); 194 188 195 if ( HYPER_PWA_VERSION !== $version ) 189 196 { 190 $timestamp = wp_next_scheduled( 'hyper-pwa-cron-hook' );191 wp_unschedule_event( $timestamp, 'hyper-pwa-cron-hook' );192 193 197 $this->retrieve->reset_transient(); 194 198 195 $time_now = time(); 196 wp_schedule_event( $time_now, HYPER_PWA_SCHEDULE_RECURRENCE, 'hyper-pwa-cron-hook' ); 197 198 update_option( 'hyper-pwa-version', HYPER_PWA_VERSION ); 199 update_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION ); 200 update_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now ); 201 } 202 elseif ( HYPER_PWA_TRANSIENT_SCHEDULE_RECURRENCE <= $this->time_now - $transient_timestamp ) 203 { 204 $this->retrieve->reset_transient(); 205 206 update_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now ); 207 } 208 209 if ( HYPER_PWA_PAGE_VIEW_SCHEDULE_RECURRENCE <= $this->time_now - $page_view_timestamp ) 210 { 211 $this->lib->save_page_view(); 212 213 update_option( HYPER_PWA_PAGE_VIEW_TIMESTAMP, $this->time_now ); 199 214 } 200 215 … … 330 345 $page_type = $this->get_page_type(); 331 346 332 $head = '<link rel="manifest" href="' . $this->home_url . '/' . HYPER_PWA_MANIFEST_JSON . ' ?ver=' . HYPER_PWA_VERSION . '" crossorigin="use-credentials" />347 $head = '<link rel="manifest" href="' . $this->home_url . '/' . HYPER_PWA_MANIFEST_JSON . '" crossorigin="use-credentials" /> 333 348 <meta name="theme-color" content="' . $theme_color . '" /> 334 349 <link rel="apple-touch-icon" href="' . $this->home_url . $icons['icon_192'] . '" /> … … 353 368 <div><button id="hyper-pwa-a2hs-close-button"><svg width="24px" height="24px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"></path><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg></button></div> 354 369 </div> 355 <amp-install-serviceworker src="' . $this->home_url . '/' . HYPER_PWA_SERVICE_WORKER_JS . ' ?ver=' . HYPER_PWA_VERSION . '" data-iframe-src="' . $this->home_url . '/hyper-pwa-service-worker.html" layout="nodisplay"></amp-install-serviceworker>' . "\n";370 <amp-install-serviceworker src="' . $this->home_url . '/' . HYPER_PWA_SERVICE_WORKER_JS . '" data-iframe-src="' . $this->home_url . '/hyper-pwa-service-worker.html" layout="nodisplay"></amp-install-serviceworker>' . "\n"; 356 371 357 372 echo $footer; 358 }359 360 public function cron_hook()361 {362 $this->lib->save_page_view_count();363 364 $this->retrieve->reset_transient();365 373 } 366 374 … … 399 407 public function register_activation() 400 408 { 401 add_option( 'hyper-pwa-version', HYPER_PWA_VERSION ); 402 403 $time_now = time(); 404 setcookie( 'hyper-pwa-admin-tab', '', $time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 405 setcookie( 'hyper-pwa-disable-a2hs', '', $time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 409 add_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION ); 410 add_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now ); 411 add_option( HYPER_PWA_PAGE_VIEW, [] ); 412 add_option( HYPER_PWA_PAGE_VIEW_TIMESTAMP, $this->time_now ); 406 413 407 414 $this->retrieve->reset_transient(); 408 415 409 if ( !wp_next_scheduled( 'hyper-pwa-cron-hook' ) ) 410 { 411 $time_now = time(); 412 wp_schedule_event( $time_now, HYPER_PWA_SCHEDULE_RECURRENCE, 'hyper-pwa-cron-hook' ); 413 } 416 setcookie( 'hyper-pwa-admin-tab', '', $this->time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 417 setcookie( 'hyper-pwa-disable-a2hs', '', $this->time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 414 418 } 415 419 416 420 public function register_deactivation() 417 421 { 418 $timestamp = wp_next_scheduled( 'hyper-pwa-cron-hook');419 wp_unschedule_event( $timestamp, 'hyper-pwa-cron-hook');422 setcookie( 'hyper-pwa-admin-tab', '', $this->time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 423 setcookie( 'hyper-pwa-disable-a2hs', '', $this->time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 420 424 421 425 $this->retrieve->remove_transient(); 422 426 423 $time_now = time(); 424 setcookie( 'hyper-pwa-admin-tab', '', $time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 425 setcookie( 'hyper-pwa-disable-a2hs', '', $time_now - 1, COOKIEPATH, COOKIE_DOMAIN ); 426 427 delete_option( 'hyper-pwa-version' ); 427 delete_option( HYPER_PWA_VERSION_ID ); 428 delete_option( HYPER_PWA_TRANSIENT_TIMESTAMP ); 429 delete_option( HYPER_PWA_PAGE_VIEW ); 430 delete_option( HYPER_PWA_PAGE_VIEW_TIMESTAMP ); 428 431 } 429 432 } … … 455 458 add_action( 'admin_enqueue_scripts', [ $hyper_pwa, 'enqueue_admin_scripts' ] ); 456 459 } 457 add_action( 'hyper-pwa-cron-hook', [ $hyper_pwa, 'cron_hook' ] );458 460 459 461 add_filter( 'script_loader_tag', [ $hyper_pwa, 'script_loader_tag' ], 10, 3 ); -
hyper-pwa/trunk/lib/lib.php
r2903550 r2905921 224 224 else 225 225 { 226 $precaching_list = $this->load_page_view _list();226 $precaching_list = $this->load_page_view(); 227 227 } 228 228 … … 338 338 339 339 340 private function load_page_view _list()341 { 342 $urls = get_transient( HYPER_PWA_PAGE_VIEW _COUNT);340 private function load_page_view() 341 { 342 $urls = get_transient( HYPER_PWA_PAGE_VIEW ); 343 343 $urls = !empty( $urls ) ? $urls : []; 344 344 345 345 arsort( $urls ); 346 $urls = array_slice( $urls, 0, HYPER_PWA_PAGE_VIEW_ COUNT_SIZE );346 $urls = array_slice( $urls, 0, HYPER_PWA_PAGE_VIEW_SIZE ); 347 347 348 348 $urls2 = []; … … 356 356 } 357 357 358 public function set_page_view _count( $page_url )359 { 360 $urls = get_option( HYPER_PWA_PAGE_VIEW _COUNT);358 public function set_page_view( $page_url ) 359 { 360 $urls = get_option( HYPER_PWA_PAGE_VIEW ); 361 361 $urls = !empty( $urls ) ? $urls : []; 362 362 … … 367 367 $urls[$page_url] += 1; 368 368 369 delete_option( HYPER_PWA_PAGE_VIEW _COUNT);370 add_option( HYPER_PWA_PAGE_VIEW _COUNT, $urls, '', 'no');371 } 372 373 public function save_page_view _count()374 { 375 $urls = get_option( HYPER_PWA_PAGE_VIEW _COUNT);369 delete_option( HYPER_PWA_PAGE_VIEW ); 370 add_option( HYPER_PWA_PAGE_VIEW, $urls ); 371 } 372 373 public function save_page_view() 374 { 375 $urls = get_option( HYPER_PWA_PAGE_VIEW ); 376 376 $urls = !empty( $urls ) ? $urls : []; 377 377 378 set_transient( HYPER_PWA_PAGE_VIEW _COUNT, $urls, HYPER_PWA_PAGE_VIEW_COUNT_EXPIRATION );379 380 delete_option( HYPER_PWA_PAGE_VIEW _COUNT);378 set_transient( HYPER_PWA_PAGE_VIEW, $urls, HYPER_PWA_PAGE_VIEW_EXPIRATION ); 379 380 delete_option( HYPER_PWA_PAGE_VIEW ); 381 381 } 382 382 -
hyper-pwa/trunk/pwa/register.php
r2903046 r2905921 47 47 $page .= "\n 48 48 if ('serviceWorker' in navigator) { 49 const wb = new Workbox('/" . HYPER_PWA_SERVICE_WORKER_JS . " ?ver=" . HYPER_PWA_VERSION . "');";49 const wb = new Workbox('/" . HYPER_PWA_SERVICE_WORKER_JS . "');"; 50 50 51 51 $page .= "\n -
hyper-pwa/trunk/readme.txt
r2904784 r2905921 6 6 Tested up to: 6.2 7 7 Requires PHP: 7.2 8 Stable tag: 2.2 7.08 Stable tag: 2.28.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 109 109 110 110 == Changelog == 111 = 2.28.0 112 (Fri., Apr. 28, 2023) 113 * Improvement: Simulate cron job. 114 111 115 = 2.27.0 112 116 (Wed., Apr. 26, 2023)
Note: See TracChangeset
for help on using the changeset viewer.