PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / AutoLaunch / auto-launch.js

auto-launch.js in Extendify 3.2.1, at src/AutoLaunch/auto-launch.js

19 lines 743 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { handleDesign } from '@auto-launch/fetchers/get-design';
2 import { applyDesign, chooseLogo } from '@auto-launch/functions/design';
3 import { LaunchPage } from '@auto-launch/LaunchPage';
4 import { chooseTemplates } from '@auto-launch/templates';
5 import { createRoot } from '@wordpress/element';
6 import '@auto-launch/auto-launch.css';
7
8 requestAnimationFrame(async () => {
9 const launch = document.getElementById('extendify-auto-launch-page');
10 if (!launch) return;
11 // Before the first paint, or the partner's own colours show and then swap.
12 const design = await handleDesign();
13 chooseTemplates(design.templates);
14 chooseLogo(design.logo);
15 applyDesign(launch, design);
16 const root = createRoot(launch);
17 root.render(<LaunchPage />);
18 });
19