PluginProbe
Timeline – Tell Your Story Through Events and Milestones / trunk
Timeline – Tell Your Story Through Events and Milestones vtrunk
2.0.3 trunk 1.0.0 1.0.2 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.2
b-timeline / admin / admin.js

admin.js in Timeline – Tell Your Story Through Events and Milestones trunk, at admin/admin.js

15 lines 469 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { createRoot } from 'react-dom/client';
2
3 import './admin.scss';
4 import App from './Components/App';
5 import { dashboardInfo } from './utils/data';
6
7 document.addEventListener('DOMContentLoaded', () => {
8 const dashboardEl = document.getElementById('bptlAdminDashboardWrapper');
9 const info = JSON.parse(dashboardEl.dataset.info);
10
11 createRoot(dashboardEl).render(<App {...dashboardInfo(info)} />);
12
13 dashboardEl.removeAttribute('data-info');
14 });
15