Skip to content

Commit

Permalink
Merge pull request #102 from ligangty/rm-rx-bootstrap
Browse files Browse the repository at this point in the history
Move top container to Main
  • Loading branch information
ligangty authored Nov 27, 2023
2 parents 44d8c89 + 7fe117c commit 5f1cec1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 31 deletions.
44 changes: 21 additions & 23 deletions src/main/webui/src/app/components/content/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,30 @@ import HostedEdit from './hosted/HostedEdit.jsx';

const Home = () => <React.Fragment>Welcome! Make a selection from the menu above to proceed.</React.Fragment>;

export const Main = () => <div>
export const Main = () => <div className="container-fluid">
{
// browseCompatible
}
<React.Fragment>
<Routes>
<Route path="*" element={<Home />} />
<Route exact path="/remote/:packageType" element={<RemoteList />} />
<Route exact path="/hosted/:packageType" element={<HostedList />} />
<Route exact path="/group/:packageType" element={<GroupList />} />
<Routes>
<Route path="*" element={<Home />} />
<Route exact path="/remote/:packageType" element={<RemoteList />} />
<Route exact path="/hosted/:packageType" element={<HostedList />} />
<Route exact path="/group/:packageType" element={<GroupList />} />

<Route path="/remote/:packageType/view/:name" element={<RemoteView />} />
<Route path="/hosted/:packageType/view/:name" element={<HostedView />} />
<Route path="/group/:packageType/view/:name" element={<GroupView />} />
<Route path="/remote/:packageType/view/:name" element={<RemoteView />} />
<Route path="/hosted/:packageType/view/:name" element={<HostedView />} />
<Route path="/group/:packageType/view/:name" element={<GroupView />} />

<Route exact path="/remote/new" element={<RemoteEdit />} />
<Route exact path={"/hosted/new"} element={<HostedEdit />} />
<Route exact path={"/group/new"} element={<GroupEdit />} />
<Route path="/remote/:packageType/edit/:name" element={<RemoteEdit />} />
<Route path="/hosted/:packageType/edit/:name" element={<HostedEdit />} />
<Route path="/group/:packageType/edit/:name" element={<GroupEdit />} />
{
// <Route exact path={["/nfc", "/nfc/view/all", "/nfc/view/:packageType/:type/:name"]} element={} />
//
// <Route exact path={"/logout"} element={} />
}
</Routes>
</React.Fragment>
<Route exact path="/remote/new" element={<RemoteEdit />} />
<Route exact path={"/hosted/new"} element={<HostedEdit />} />
<Route exact path={"/group/new"} element={<GroupEdit />} />
<Route path="/remote/:packageType/edit/:name" element={<RemoteEdit />} />
<Route path="/hosted/:packageType/edit/:name" element={<HostedEdit />} />
<Route path="/group/:packageType/edit/:name" element={<GroupEdit />} />
{
// <Route exact path={["/nfc", "/nfc/view/all", "/nfc/view/:packageType/:type/:name"]} element={} />
//
// <Route exact path={"/logout"} element={} />
}
</Routes>
</div>;
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,12 @@ export default function RemoteEdit() {
};

return (
<div className="container-fluid">

<React.Fragment>
<div className="control-panel">
<EditControlPanel mode={mode} store={store} />
</div>

<div className="content-panel">

<div className="fieldset-caption">Basics</div>
<div className="fieldset">
<div className="detail-field">
Expand Down Expand Up @@ -340,7 +338,7 @@ export default function RemoteEdit() {
{
// <ViewJsonDebugger enableDebug={enableDebug} storeJson={storeJson} rawJson={rawJson}
}
</div>
</React.Fragment>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function RemoteList() {
const listing = state.listing;
const disMap = state.disabledMap;
return (
<div className="container-fluid">
<React.Fragment>
<ListControl
type="remote"
legends={options}
Expand All @@ -98,6 +98,6 @@ export default function RemoteList() {
</div>
}
<ListJsonDebugger enableDebug={state.enableDebug} jsonObj={state.listing} />
</div>
</React.Fragment>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function RemoteView() {
const store = state.store;
if(!Utils.isEmptyObj(store)) {
return (
<div className="container-fluid">
<React.Fragment>
<div className="control-panel">
<ControlPanel store={store} />
</div>
Expand All @@ -221,7 +221,7 @@ export default function RemoteView() {
{
// <ViewJsonDebugger enableDebug={false} storeJson={store} rawJson={raw} />
}
</div>
</React.Fragment>
);
}
return null;
Expand Down

0 comments on commit 5f1cec1

Please sign in to comment.