TagSpaces is an offline, open source, document manager with tagging support
added text logo
Ilian Sapundshiev1f93fd6d5156
diff --git a/app/components/CustomLogo.js b/app/components/CustomLogo.jsnew file mode 100644index 000000000..a6d863e64--- /dev/null+++ b/app/components/CustomLogo.js@@ -0,0 +1,48 @@+/**+ * TagSpaces - universal file and folder organizer+ * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License (version 3) as+ * published by the Free Software Foundation.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ *+ * @flow+ */++import React, { Component } from 'react';+import { connect } from 'react-redux';+import { bindActionCreators } from 'redux';+import IconButton from '@material-ui/core/IconButton';+import { Pro } from '../pro';+import TextLogoIcon from '../assets/images/text-logo.svg';+import { actions as AppActions } from '../reducers/app';++class CustomLogo extends Component {+ render() {+ return (+ <IconButton+ style={{ height: 50, padding: 0, marginBottom: 15 }}+ data-tid="aboutTagSpaces"+ onClick={this.props.toggleAboutDialog}+ >+ <img style={{ height: 40 }} src={Pro ? Pro.TextLogoIcon : TextLogoIcon} alt="TagSpaces Logo" />+ </IconButton>+ );+ }+}++function mapActionCreatorsToProps(dispatch) {+ return bindActionCreators({+ toggleAboutDialog: AppActions.toggleAboutDialog,+ }, dispatch);+}++export default connect(undefined, mapActionCreatorsToProps)(CustomLogo);diff --git a/app/components/LocationManager.js b/app/components/LocationManager.jsindex 4aef6ff93..b26dd6b3e 100644--- a/app/components/LocationManager.js+++ b/app/components/LocationManager.js@@ -53,6 +53,7 @@ import CreateLocationDialog from './dialogs/CreateLocationDialog';import ConfirmDialog from './dialogs/ConfirmDialog';import SelectDirectoryDialog from './dialogs/SelectDirectoryDialog';import CreateDirectoryDialog from './dialogs/CreateDirectoryDialog';+import CustomLogo from './CustomLogo';import {actions as LocationActions,getLocations,@@ -610,6 +611,7 @@ class LocationManager extends React.Component<Props, State> {const classes = this.props.classes;return (<div className={classes.panel} style={this.props.style}>+ <CustomLogo /><div className={classes.toolbar}><Typography className={classes.panelTitle} type="subtitle1">{i18n.t('core:locationManager')}diff --git a/app/components/Search.js b/app/components/Search.jsindex 592a2a21f..6842837ce 100644--- a/app/components/Search.js+++ b/app/components/Search.js@@ -43,6 +43,7 @@ import Select from '@material-ui/core/Select';import FormControl from '@material-ui/core/FormControl';import FormHelperText from '@material-ui/core/FormHelperText';import TagsSelect from './TagsSelect';+import CustomLogo from './CustomLogo';import { actions as AppActions, getIndexedEntriesCount, isIndexing, getDirectoryPath } from '../reducers/app';import { getMaxSearchResults } from '../reducers/settings';import styles from './SidePanels.css';@@ -139,6 +140,7 @@ class Search extends React.Component<Props, State> {const { classes, indexing, indexedEntriesCount } = this.props;return (<div className={classes.panel} style={this.props.style}>+ <CustomLogo /><div className={classes.toolbar}><Typography className={classes.panelTitle}>{i18n.t('searchTitle')}diff --git a/app/components/TagLibrary.js b/app/components/TagLibrary.jsindex 126fede59..584df2994 100644--- a/app/components/TagLibrary.js+++ b/app/components/TagLibrary.js@@ -51,6 +51,7 @@ import CreateTagsDialog from './dialogs/CreateTagsDialog';import EditTagGroupDialog from './dialogs/EditTagGroupDialog';import TagGroupContainer from './TagGroupContainer';import TagMenu from './menus/TagMenu';+import CustomLogo from './CustomLogo';import TagLibraryMenu from './menus/TagLibraryMenu';import {type TagGroup,@@ -277,6 +278,7 @@ class TagLibrary extends React.Component<Props, State> {return (<div className={classes.panel} style={this.props.style}>+ <CustomLogo /><div className={classes.toolbar}><Typography className={classes.panelTitle} type="subtitle1">{i18n.t('core:tagLibrary')}diff --git a/app/components/VerticalNavigation.js b/app/components/VerticalNavigation.jsindex 85734d474..adabc0699 100644--- a/app/components/VerticalNavigation.js+++ b/app/components/VerticalNavigation.js@@ -277,7 +277,7 @@ class VerticalNavigation extends React.Component<Props, State> {<IconButtonclassName={style.verticalNavButton}onClick={this.props.toggleAboutDialog}- style={{ ...this.styles.button, marginBottom: 20 }}+ style={{ ...this.styles.button, marginTop: 10, marginBottom: 10 }}title={i18n.t('core:aboutTitle')}data-tid="aboutTagSpaces">