PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / 1.8.0
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution v1.8.0
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / Performance / Admin / package / preload / components / progress / preloading-progress.js

preloading-progress.js in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution 1.8.0, at src/Performance/Admin/package/preload/components/progress/preloading-progress.js

38 lines 828 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import { __, sprintf } from '@wordpress/i18n';
5 import { ProgressBar } from '@wordpress/components';
6
7 /**
8 * @param {PreloadState} preloadStatus
9 */
10 export default function PreloadingProgress( { preloadStatus } ) {
11 const { isPreloading, source, progressPercent } = preloadStatus;
12
13 if (!isPreloading) {
14 return null;
15 }
16
17 return (
18 <div className="preloading-progress">
19 <p>
20 {source
21 ? sprintf(
22 /* translators: %s: The source of what initiated or canceled the preloader. */
23 __('Preloading via %s in progress', 'solid-performance'),
24 source,
25 )
26 : __('Starting preloader', 'solid-performance')}
27 <span className="dots"/>
28 </p>
29 <div>
30 <ProgressBar
31 value={progressPercent}
32 className="preload-progress-bar"
33 />
34 </div>
35 </div>
36 );
37 };
38