File tree Expand file tree Collapse file tree 5 files changed +17
-16
lines changed
Expand file tree Collapse file tree 5 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
1+ <!doctype html>
22< html >
33 < head >
44 < title > WordPress Playground</ title >
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ import workerV2Url from './playground-worker-endpoint-blueprints-v2.ts?worker&ur
3636const origin = new URL ( '/' , ( import . meta || { } ) . url ) . origin ;
3737
3838function getWorkerUrl ( ) : string {
39- const runner = new URL ( document . location . href ) . searchParams . get ( 'blueprints-runner' ) ;
39+ const runner = new URL ( document . location . href ) . searchParams . get (
40+ 'blueprints-runner'
41+ ) ;
4042 const isV2 = runner === 'v2' ;
4143 const selected = isV2 ? workerV2Url : workerV1Url ;
4244 return new URL ( selected , origin ) + '' ;
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { SiteManager } from '../site-manager';
44import { CSSTransition } from 'react-transition-group' ;
55import type { PlaygroundReduxState } from '../../lib/state/redux/store' ;
66import { useAppSelector } from '../../lib/state/redux/store' ;
7- import type { BlueprintV1Declaration } from '@wp-playground/blueprints' ;
87import { useState , useRef } from 'react' ;
98import { acquireOAuthTokenIfNeeded } from '../../github/acquire-oauth-token-if-needed' ;
109import { GithubExportModal } from '../../github/github-export-form' ;
@@ -80,7 +79,7 @@ export function Layout() {
8079 * over other modals (e.g. connect to GitHub). Discuss whether modals should be declared at the
8180 * top level, like here, or contextual to where the "Show modal" button is rendered.
8281 */
83- function Modals ( blueprint : BlueprintV1Declaration ) {
82+ function Modals ( ) {
8483 const query = new URL ( document . location . href ) . searchParams ;
8584
8685 const [ githubExportFiles , setGithubExportFiles ] = useState < any [ ] > ( ) ;
Original file line number Diff line number Diff line change @@ -160,17 +160,12 @@ export const KeepAliveTemporarySitesViewport = () => {
160160 </ div >
161161 </ div >
162162 ) }
163- { ! activeSite && activeSiteSlugIsSet && (
164- // Show a progress bar while the site is being created.
165- // Once the site exists and is being rendered, the iframe
166- // will show its own loading screen ("Preparing WordPress...").
167- < div className = { css . loadingViewport } >
168- < h3 className = { css . loadingCaption } > </ h3 >
169- < div className = { css . progressWrapper } >
170- < div className = { css . progressBar } />
171- </ div >
163+ < div className = { css . loadingViewport } >
164+ < h3 className = { css . loadingCaption } > </ h3 >
165+ < div className = { css . progressWrapper } >
166+ < div className = { css . progressBar } />
172167 </ div >
173- ) }
168+ </ div >
174169 { slugsSeenSoFar . map ( ( slug ) => {
175170 const site = sitesBySlug . get ( slug ) ;
176171 const viewportKey = site
Original file line number Diff line number Diff line change 99 border : 0 ;
1010 margin : 0 ;
1111 padding : 0 ;
12+ background : # fff ;
1213}
1314
1415.loading-viewport {
15- position : relative;
16+ position : absolute;
17+ top : 0 ;
18+ left : 0 ;
19+ right : 0 ;
20+ bottom : 0 ;
1621 width : 100% ;
1722 height : 100% ;
1823 display : flex;
5055 }
5156
5257 .progress-wrapper {
53- background : # 32363a ;
58+ background : # 1e1e1e ;
5459 }
5560}
5661
You can’t perform that action at this time.
0 commit comments