Skip to content

Commit

Permalink
Separate folder for icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nes-si committed Dec 7, 2019
1 parent 1304a64 commit c211f6d
Show file tree
Hide file tree
Showing 23 changed files with 18 additions and 18 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions src/components/elements/DropdownControl/DropdownControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import InputControl from 'components/elements/InputControl/InputControl';

import styles from './DropdownControl.sss';

import ImageIconTriangularArrow from 'assets/images/icon-triangular-arrow.svg';
import ImageArrowDownFull from 'assets/images/arrow-down-full.svg';
import ImageArrows from 'assets/images/arrows.svg';


Expand Down Expand Up @@ -102,7 +102,7 @@ export default class DropdownControl extends Component {
'arrow-rotated': this.state.listVis
});

let icon = <InlineSVG styleName={arrowClasses} src={ImageIconTriangularArrow} />;
let icon = <InlineSVG styleName={arrowClasses} src={ImageArrowDownFull} />;
if (type === 'big')
icon = <InlineSVG styleName="arrows" src={ImageArrows} />;

Expand Down
2 changes: 1 addition & 1 deletion src/components/elements/IconsComponent/IconsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import React from 'react';
import InlineSVG from 'svg-inline-react';

export default props =>
<InlineSVG src={require(`assets/images/${props.icon}.svg`)} />;
<InlineSVG src={require(`assets/images/icons/${props.icon}.svg`)} />;
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import InputControl from "components/elements/InputControl/InputControl";

import styles from '../ContentEdit.sss';

import ImageIconDelete from 'assets/images/icon-delete.svg';
import ImageIconDelete from 'assets/images/icons/delete.svg';


const AUTOSAVE_TIMEOUT = 2000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as ftps from 'models/ModelData';

import styles from '../ContentEdit.sss';

import ImageLink from 'assets/images/link.svg';
import ImageIconLink from 'assets/images/icons/link.svg';


@CSSModules(styles, {allowMultiple: true})
Expand Down Expand Up @@ -204,7 +204,7 @@ export default class ContentString extends ContentBase {
<div styleName="field-title">
{this.field.name}
<div styleName="link" onClick={this.onShowWysiwygModal}>
<InlineSVG styleName="link-icon" src={ImageLink}/>
<InlineSVG styleName="link-icon" src={ImageIconLink}/>
</div>
</div>
);
Expand All @@ -214,7 +214,7 @@ export default class ContentString extends ContentBase {
<div styleName="field-title">
{this.field.name}
<div styleName="link" onClick={this.onShowMarkdownModal}>
<InlineSVG styleName="link-icon" src={ImageLink}/>
<InlineSVG styleName="link-icon" src={ImageIconLink}/>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/mainArea/content/ContentList/ContentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import styles from './ContentList.sss';

import ImageEye from './eye.png';
import ImageEyeGray from './eye-gray.png';
import ImageIconEdit from 'assets/images/icon-edit.svg';
import ImageIconDelete from 'assets/images/icon-delete.svg';
import ImageIconEdit from 'assets/images/icons/edit.svg';
import ImageIconDelete from 'assets/images/icons/delete.svg';


const allStatuses = [STATUS_DRAFT, STATUS_PUBLISHED, STATUS_UPDATED, STATUS_ARCHIVED];
Expand Down
2 changes: 1 addition & 1 deletion src/components/mainArea/models/Model/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {ModelFieldData} from 'models/ModelData';

import styles from './Model.sss';

import ImageIconDelete from 'assets/images/icon-delete.svg';
import ImageIconDelete from 'assets/images/icons/delete.svg';


const DragHandle = SortableHandle(({color}) =>
Expand Down
2 changes: 1 addition & 1 deletion src/components/mainArea/models/ModelsList/ModelsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {ALERT_TYPE_CONFIRM, ALERT_TYPE_ALERT} from 'components/modals/AlertModal

import styles from './ModelsList.sss';

import ImageIconDelete from 'assets/images/icon-delete.svg';
import ImageIconDelete from 'assets/images/icons/delete.svg';


@CSSModules(styles, {allowMultiple: true})
Expand Down
6 changes: 3 additions & 3 deletions src/components/sidebar/Sites/Sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ALERT_TYPE_CONFIRM, ALERT_TYPE_ALERT} from "components/modals/AlertModal
import styles from './Sites.sss';

import ImageHammer from 'assets/images/hammer.svg';
import ImageLink from 'assets/images/link.svg';
import ImageIconLink from 'assets/images/icons/link.svg';


@CSSModules(styles, {allowMultiple: true})
Expand Down Expand Up @@ -96,11 +96,11 @@ export default class Sites extends Component {
<a href={site.domain}
target="_blank"
styleName="link">
<InlineSVG src={ImageLink}/>
<InlineSVG src={ImageIconLink}/>
</a>
:
<div styleName="link-disabled">
<InlineSVG src={ImageLink}/>
<InlineSVG src={ImageIconLink}/>
</div>
}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {toggleSidebar} from 'ducks/nav';

import styles from './Header.sss';

import ImageSidebar from 'assets/images/sidebar.svg';
import ImageIconSidebar from 'assets/images/icons/sidebar.svg';


@CSSModules(styles, {allowMultiple: true})
Expand All @@ -27,7 +27,7 @@ export class Header extends Component {
return (
<div styleName="header">
<div styleName="sidebar-icon" onClick={toggleSidebar}>
<InlineSVG src={ImageSidebar} />
<InlineSVG src={ImageIconSidebar} />
</div>
<Menu siteNameId={nameId}
isSidebarOpened={nav.isSidebarVisible}
Expand Down
4 changes: 2 additions & 2 deletions src/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ html(lang="en")
title Chisel
meta(name="description" content="Parse CMS")
meta(name="viewport" content="width=device-width, initial-scale=1")
link(rel="apple-touch-icon" sizes="180x180" href="/assets/images/icons/apple-touch-icon.png")
link(rel="icon" type="image/png" sizes="512x512" href="/assets/images/icons/logo512.png")
link(rel="apple-touch-icon" sizes="180x180" href="/assets/images/logo/apple-touch-icon.png")
link(rel="icon" type="image/png" sizes="512x512" href="/assets/images/logo/logo512.png")
link(rel="icon" type="image/x-icon" href="/favicon.ico")
link(rel="manifest" href="/manifest.json")
script(defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js")
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit c211f6d

Please sign in to comment.