mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
rename AdminLayout to DebugLayout in the debug package
This commit is contained in:
parent
45e5e19861
commit
be42d6740f
4 changed files with 19 additions and 19 deletions
|
@ -1,10 +0,0 @@
|
|||
import React from 'react';
|
||||
import { Components, registerComponent } from 'meteor/vulcan:lib';
|
||||
|
||||
const adminStyles = {
|
||||
padding: '20px'
|
||||
};
|
||||
|
||||
const AdminLayout = props => <div className="admin-layout" style={adminStyles}>{props.children}</div>;
|
||||
|
||||
registerComponent('AdminLayout', AdminLayout);
|
10
packages/vulcan-debug/lib/components/DebugLayout.jsx
Normal file
10
packages/vulcan-debug/lib/components/DebugLayout.jsx
Normal file
|
@ -0,0 +1,10 @@
|
|||
import React from 'react';
|
||||
import { Components, registerComponent } from 'meteor/vulcan:lib';
|
||||
|
||||
const debugStyles = {
|
||||
padding: '20px'
|
||||
};
|
||||
|
||||
const DebugLayout = props => <div className="debug-layout" style={debugStyles}>{props.children}</div>;
|
||||
|
||||
registerComponent('DebugLayout', DebugLayout);
|
|
@ -1,4 +1,4 @@
|
|||
import '../components/AdminLayout.jsx';
|
||||
import '../components/DebugLayout.jsx';
|
||||
|
||||
import '../components/Emails.jsx';
|
||||
import '../components/Groups.jsx';
|
||||
|
|
|
@ -2,13 +2,13 @@ import { addRoute, getDynamicComponent } from 'meteor/vulcan:lib';
|
|||
|
||||
addRoute([
|
||||
// {name: 'cheatsheet', path: '/cheatsheet', component: import('./components/Cheatsheet.jsx')},
|
||||
{ name: 'debug', path: '/debug', componentName: 'DebugDashboard', layoutName: 'AdminLayout' },
|
||||
{ name: 'debugGroups', path: '/debug/groups', component: () => getDynamicComponent(import('../components/Groups.jsx')), layoutName: 'AdminLayout' },
|
||||
{ name: 'debugSettings', path: '/debug/settings', componentName: 'Settings', layoutName: 'AdminLayout' },
|
||||
{ name: 'debugCallbacks', path: '/debug/callbacks', componentName: 'Callbacks', layoutName: 'AdminLayout' },
|
||||
{ name: 'debug', path: '/debug', componentName: 'DebugDashboard', layoutName: 'DebugLayout' },
|
||||
{ name: 'debugGroups', path: '/debug/groups', component: () => getDynamicComponent(import('../components/Groups.jsx')), layoutName: 'DebugLayout' },
|
||||
{ name: 'debugSettings', path: '/debug/settings', componentName: 'Settings', layoutName: 'DebugLayout' },
|
||||
{ name: 'debugCallbacks', path: '/debug/callbacks', componentName: 'Callbacks', layoutName: 'DebugLayout' },
|
||||
// {name: 'emails', path: '/emails', component: () => getDynamicComponent(import('./components/Emails.jsx'))},
|
||||
{ name: 'debugEmails', path: '/debug/emails', componentName: 'Emails', layoutName: 'AdminLayout' },
|
||||
{ name: 'debugRoutes', path: '/debug/routes', componentName: 'Routes', layoutName: 'AdminLayout' },
|
||||
{ name: 'debugComponents', path: '/debug/components', componentName: 'Components', layoutName: 'AdminLayout' },
|
||||
{ name: 'debugI18n', path: '/debug/i18n', componentName: 'I18n', layoutName: 'AdminLayout' },
|
||||
{ name: 'debugEmails', path: '/debug/emails', componentName: 'Emails', layoutName: 'DebugLayout' },
|
||||
{ name: 'debugRoutes', path: '/debug/routes', componentName: 'Routes', layoutName: 'DebugLayout' },
|
||||
{ name: 'debugComponents', path: '/debug/components', componentName: 'Components', layoutName: 'DebugLayout' },
|
||||
{ name: 'debugI18n', path: '/debug/i18n', componentName: 'I18n', layoutName: 'DebugLayout' },
|
||||
]);
|
||||
|
|
Loading…
Add table
Reference in a new issue