Skip to content

Commit

Permalink
Merge pull request #104 from ligangty/2.0-refactor
Browse files Browse the repository at this point in the history
Add mock components for addons
  • Loading branch information
ligangty authored Nov 27, 2023
2 parents b8c5478 + 2d77c8a commit 5a805f0
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/webui/src/app/components/content/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import GroupView from './group/GroupView.jsx';
import RemoteEdit from './remote/RemoteEdit.jsx';
import GroupEdit from './group/GroupEdit.jsx';
import HostedEdit from './hosted/HostedEdit.jsx';
import NFC from './addons/NFC.jsx';
import CacheDelete from './addons/CacheDelete.jsx';

// const browseCompatible=`<!--[if lt IE 7]>
// <p className="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
Expand Down Expand Up @@ -54,8 +56,12 @@ export const Main = () => <div className="container-fluid">
<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 path="/nfc" element={<NFC />} />
<Route path="/nfc/view/all" element={<NFC />} />
<Route path="/cache/delete" element={<CacheDelete />} />
{
// <Route exact path={["/nfc", "/nfc/view/all", "/nfc/view/:packageType/:type/:name"]} element={} />
// <Route exact path={["/nfc/view/:packageType/:type/:name"]} element={} />
//
// <Route exact path={"/logout"} element={} />
}
Expand Down
21 changes: 21 additions & 0 deletions src/main/webui/src/app/components/content/addons/CacheDelete.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-ui-service)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import React from 'react';

export default function CacheDelete() {
return <div>This is not implemented yet!</div>;
}
21 changes: 21 additions & 0 deletions src/main/webui/src/app/components/content/addons/NFC.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-ui-service)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import React from 'react';

export default function NFC() {
return <div>This is not implemented yet!</div>;
}

0 comments on commit 5a805f0

Please sign in to comment.