You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by em...@apache.org on 2022/01/04 05:24:48 UTC

[incubator-age-viewer] branch main updated: Remove unused component.

This is an automated email from the ASF dual-hosted git repository.

emotionbug pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-age-viewer.git


The following commit(s) were added to refs/heads/main by this push:
     new 11c2a99  Remove unused component.
11c2a99 is described below

commit 11c2a993ae2f1ba076d32198307faec7892729d1
Author: Alex Kwak <ta...@kakao.com>
AuthorDate: Tue Jan 4 14:24:38 2022 +0900

    Remove unused component.
---
 .../components/sidebar/containers/SidebarAbout.js  | 31 --------
 .../components/sidebar/presentations/Sidebar.jsx   |  4 -
 .../sidebar/presentations/SidebarAbout.jsx         | 92 ----------------------
 frontend/src/features/menu/MenuSlice.js            |  4 +-
 4 files changed, 2 insertions(+), 129 deletions(-)

diff --git a/frontend/src/components/sidebar/containers/SidebarAbout.js b/frontend/src/components/sidebar/containers/SidebarAbout.js
deleted file mode 100644
index 64dca56..0000000
--- a/frontend/src/components/sidebar/containers/SidebarAbout.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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 { connect } from 'react-redux';
-import SidebarAbout from '../presentations/SidebarAbout';
-
-const mapStateToProps = (state) => ({
-  releaseDate: state.setting.releaseDate,
-  version: state.setting.version,
-  license: state.setting.license,
-});
-
-const mapDispatchToProps = { };
-
-export default connect(mapStateToProps, mapDispatchToProps)(SidebarAbout);
diff --git a/frontend/src/components/sidebar/presentations/Sidebar.jsx b/frontend/src/components/sidebar/presentations/Sidebar.jsx
index a7c5771..ccb6d02 100644
--- a/frontend/src/components/sidebar/presentations/Sidebar.jsx
+++ b/frontend/src/components/sidebar/presentations/Sidebar.jsx
@@ -21,7 +21,6 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import SidebarHome from '../containers/SidebarHome';
 import SidebarSetting from '../containers/SidebarSetting';
-import SidebarAbout from '../containers/SidebarAbout';
 
 const Sidebar = ({ activeMenuName, isActive }) => (
   <div id="sidebar" className={isActive ? ' active ' : 'inactive'}>
@@ -32,9 +31,6 @@ const Sidebar = ({ activeMenuName, isActive }) => (
       <div className={`tab-pane fade${activeMenuName === 'setting' ? ' active show ' : ''}`} role="tabpanel" aria-labelledby="side-setting-tab">
         <SidebarSetting />
       </div>
-      <div className={`tab-pane fade${activeMenuName === 'about' ? ' active show ' : ''}`} role="tabpanel" aria-labelledby="side-about-tab">
-        <SidebarAbout />
-      </div>
     </div>
   </div>
 );
diff --git a/frontend/src/components/sidebar/presentations/SidebarAbout.jsx b/frontend/src/components/sidebar/presentations/SidebarAbout.jsx
deleted file mode 100644
index 7253ac4..0000000
--- a/frontend/src/components/sidebar/presentations/SidebarAbout.jsx
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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';
-import PropTypes from 'prop-types';
-import { ColoredLine, SubLabelLeft, SubLabelRight } from './SidebarComponents';
-
-const SidebarAbout = ({ releaseDate, version, license }) => (
-  <div className="sidebar-setting">
-    <div className="sidebar sidebar-header">
-      <h4>About AGViewer</h4>
-    </div>
-    <div className="sidebar sidebar-body">
-      <div className="form-group">
-        <b>Made by Bitnine</b>
-        <ColoredLine />
-        <SubLabelLeft
-          label={(
-            <span>
-              Visit us at
-              <a target="_blank" rel="noopener noreferrer" href="http://bitnine.net"> Bitnine!</a>
-            </span>
-)}
-          classes="py-1"
-        />
-      </div>
-      <div className="form-group pt-4">
-        <b>Current AGViewer Version</b>
-        <ColoredLine />
-        <div>
-          <h6>
-            <div style={{ display: 'flex', flexWrap: 'wrap' }}>
-              <SubLabelRight label="AGViewer :" classes="col-sm-6" />
-              <SubLabelLeft label={version} classes="col-sm-6" />
-            </div>
-            <div style={{ display: 'flex', flexWrap: 'wrap' }}>
-              <SubLabelRight label="Released at :" classes="col-sm-6" />
-              <SubLabelLeft label={releaseDate} classes="col-sm-6" />
-            </div>
-            <div style={{ display: 'flex', flexWrap: 'wrap' }}>
-              <SubLabelRight label="License :" classes="col-sm-6" />
-              <SubLabelLeft label={license} classes="col-sm-6" />
-            </div>
-          </h6>
-        </div>
-      </div>
-      <div className="form-group pt-4">
-        <b>You Have Feedback for us?</b>
-        <ColoredLine />
-        <div style={{ display: 'flex', flexWrap: 'wrap' }}>
-          <SubLabelLeft
-            label={(
-              <span>
-                Leave your feedback at
-                <a target="_blank" rel="noopener noreferrer" href="https://github.com/bitnine-oss/AGViewer/issues"> Here!</a>
-                {' '}
-                <br />
-                Your feedback help us provide you better experience!
-              </span>
-)}
-            classes="py-1"
-          />
-        </div>
-      </div>
-
-    </div>
-  </div>
-);
-
-SidebarAbout.propTypes = {
-  releaseDate: PropTypes.string.isRequired,
-  version: PropTypes.string.isRequired,
-  license: PropTypes.string.isRequired,
-};
-
-export default SidebarAbout;
diff --git a/frontend/src/features/menu/MenuSlice.js b/frontend/src/features/menu/MenuSlice.js
index 7b99a3c..a59769e 100644
--- a/frontend/src/features/menu/MenuSlice.js
+++ b/frontend/src/features/menu/MenuSlice.js
@@ -19,12 +19,12 @@
 
 /* eslint-disable no-param-reassign */
 import { createSlice } from '@reduxjs/toolkit';
-import { faCog, faHome, faInfoCircle } from '@fortawesome/free-solid-svg-icons';
+import { faCog, faHome } from '@fortawesome/free-solid-svg-icons';
 
 const MenuSlice = createSlice({
   name: 'navigator',
   initialState: {
-    menuList: [['home', faHome], ['setting', faCog], ['about', faInfoCircle]],
+    menuList: [['home', faHome], ['setting', faCog]],
     activeMenu: 'home',
     isActive: true,
   },