mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
eslint fix
This commit is contained in:
parent
dfaac877fb
commit
fa4d51360b
81 changed files with 741 additions and 972 deletions
|
@ -1,7 +1,8 @@
|
|||
import React, {FC, HTMLAttributes} from 'react';
|
||||
import { Card } from "~/components/containers/Card";
|
||||
import React, { FC, HTMLAttributes } from 'react';
|
||||
import { Card } from '~/components/containers/Card';
|
||||
import * as styles from './styles.scss';
|
||||
import classNames = require("classnames");
|
||||
|
||||
import classNames = require('classnames');
|
||||
|
||||
type IProps = HTMLAttributes<HTMLDivElement> & {
|
||||
is_empty?: boolean;
|
||||
|
@ -14,17 +15,17 @@ const Comment: FC<IProps> = ({
|
|||
className,
|
||||
...props
|
||||
}) => (
|
||||
<Card
|
||||
className={classNames(styles.wrap, className, { is_empty, is_loading })}
|
||||
seamless
|
||||
{...props}
|
||||
>
|
||||
<div className={styles.thumb}>
|
||||
<div className={styles.thumb_image} />
|
||||
</div>
|
||||
<Card
|
||||
className={classNames(styles.wrap, className, { is_empty, is_loading })}
|
||||
seamless
|
||||
{...props}
|
||||
>
|
||||
<div className={styles.thumb}>
|
||||
<div className={styles.thumb_image} />
|
||||
</div>
|
||||
|
||||
<div className={styles.text} />
|
||||
</Card>
|
||||
<div className={styles.text} />
|
||||
</Card>
|
||||
);
|
||||
|
||||
export { Comment };
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, {FC} from 'react';
|
||||
import React, { FC } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
import { Group } from "~/components/containers/Group";
|
||||
import { Filler } from "~/components/containers/Filler";
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
|
||||
interface IProps {
|
||||
title: string;
|
||||
|
@ -19,7 +19,10 @@ const MenuButton: FC<IProps> = ({
|
|||
>
|
||||
<Group horizontal>
|
||||
<div className={styles.icon}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
|
||||
<path fill="none" d="M0 0h24v24H0V0z" />
|
||||
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" />
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<Filler>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import React, { FC } from "react";
|
||||
import { Comment } from "~/components/node/Comment";
|
||||
import React, { FC } from 'react';
|
||||
import { Comment } from '~/components/node/Comment';
|
||||
import * as styles from './styles.scss';
|
||||
import {Group} from "~/components/containers/Group";
|
||||
import { Group } from '~/components/containers/Group';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const NodeNoComments: FC<IProps> = () => (
|
||||
<Group className={styles.wrap}>
|
||||
<Comment is_empty={true} is_loading={false} style={{ height: 94 }} />
|
||||
<Comment is_empty={true} is_loading={false} style={{ height: 104 }} />
|
||||
<Comment is_empty={true} is_loading={false} style={{ height: 100 }} />
|
||||
<Comment is_empty is_loading={false} style={{ height: 94 }} />
|
||||
<Comment is_empty is_loading={false} style={{ height: 104 }} />
|
||||
<Comment is_empty is_loading={false} style={{ height: 100 }} />
|
||||
</Group>
|
||||
);
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
import React, { FC } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
import { Group } from "~/components/containers/Group";
|
||||
import { Filler } from "~/components/containers/Filler";
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const NodePanel: FC<IProps> = () => (
|
||||
<div className={styles.wrap}>
|
||||
<Group horizontal className={styles.panel}>
|
||||
<Filler>
|
||||
<div className={styles.title}>Node title</div>
|
||||
<div className={styles.name}>~author</div>
|
||||
</Filler>
|
||||
</Group>
|
||||
<div className={styles.wrap}>
|
||||
<Group horizontal className={styles.panel}>
|
||||
<Filler>
|
||||
<div className={styles.title}>Node title</div>
|
||||
<div className={styles.name}>~author</div>
|
||||
</Filler>
|
||||
</Group>
|
||||
|
||||
<div className={styles.mark} />
|
||||
</div>
|
||||
<div className={styles.mark} />
|
||||
</div>
|
||||
);
|
||||
|
||||
export { NodePanel };
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, {FC, HTMLAttributes} from 'react';
|
||||
import React, { FC, HTMLAttributes } from 'react';
|
||||
import { range } from 'ramda';
|
||||
import * as styles from './styles.scss';
|
||||
import {Group} from "~/components/containers/Group";
|
||||
import { Group } from '~/components/containers/Group';
|
||||
|
||||
type IProps = HTMLAttributes<HTMLDivElement> & {}
|
||||
|
||||
|
@ -16,7 +16,7 @@ const NodeRelated: FC<IProps> = ({
|
|||
</div>
|
||||
<div className={styles.grid}>
|
||||
{
|
||||
range(1,7).map(el => (<div className={styles.item} key={el} />))
|
||||
range(1, 7).map(el => (<div className={styles.item} key={el} />))
|
||||
}
|
||||
</div>
|
||||
</Group>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import React, { FC } from 'react';
|
||||
import * as styles from './styles.scss';
|
||||
import classNames = require("classnames");
|
||||
import {ITag} from "~/redux/types";
|
||||
import { ITag } from '~/redux/types';
|
||||
|
||||
import classNames = require('classnames');
|
||||
|
||||
interface IProps {
|
||||
title: ITag['title'];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, {FC, HTMLAttributes} from 'react';
|
||||
import {TagField} from "~/components/containers/TagField";
|
||||
import {ITag} from "~/redux/types";
|
||||
import {Tag} from "~/components/node/Tag";
|
||||
import React, { FC, HTMLAttributes } from 'react';
|
||||
import { TagField } from '~/components/containers/TagField';
|
||||
import { ITag } from '~/redux/types';
|
||||
import { Tag } from '~/components/node/Tag';
|
||||
|
||||
type IProps = HTMLAttributes<HTMLDivElement> & {
|
||||
tags: ITag[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue