Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #5 #40

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions src/App2.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import { storiesOf } from '@storybook/react';
import React from 'react'
import {
Layout, Menu, Breadcrumb, Button, Dropdown, Icon, message, Pagination, Checkbox, Input, Table, Divider, Tag
} from 'antd';
import 'antd/dist/antd.css';

const { Header, Content, Sider } = Layout;
const MenuItemGroup = Menu.ItemGroup;
const SubMenu = Menu.SubMenu;

const menu2 = (
<Menu>
<Menu.Item key="1"><Icon type="user" />All</Menu.Item>
<Menu.Item key="2"><Icon type="user" />10</Menu.Item>
<Menu.Item key="3"><Icon type="user" />50</Menu.Item>
<Menu.Item key="3"><Icon type="user" />100</Menu.Item>
<Menu.Item key="3"><Icon type="user" />200</Menu.Item>
</Menu>
);

const columns = [{
title: 'Subject',
dataIndex: 'name_1',
render: text => <a href="javascript:;">{text}</a>,
}, {
title: 'Predicate',
dataIndex: 'name_2',
render: text => <a href="javascript:;">{text}</a>,
}, {
title: 'Object',
dataIndex: 'name_3',
render: text => <a href="javascript:;">{text}</a>,
}, {
title: 'Context',
dataIndex: 'name_4',
render: text => <a href="javascript:;">{text}</a>,
}
];

const data = [];
for (let i = 0; i < 100; i++) {
data.push({
key: i,
name_1: `reqs-collection:567Rno8wjrwxiXoozHsFva${i}`,
name_2: `rdf:type${i}`,
name_3: `folders:folder1${i}`,
name_4: `<https://agentlab.ru/expert/rm/expert/reqs-test#>`
});
}

class Explore extends React.Component {
render() {
return (
<Layout>
<Layout >
<Layout style={{ marginLeft: 200, padding: '0 24px 24px' }}>
<Breadcrumb style={{ margin: '16px 0' }}>
<Breadcrumb.Item>Explore</Breadcrumb.Item>
</Breadcrumb>

<Checkbox>Show data types & language tags</Checkbox>

<Content style={{
margin: '100px 100px 100px', overflow: 'initial'
}}>

<Input placeholder="Resource" style={{ marginLeft: 7, right: 100, top: -100, bottom: 0 }} />

<Dropdown overlay={menu2}>
<Button style={{ marginLeft: 8, right: 100, top: -80, bottom: 0 }}>100 <Icon type="down" /></Button>
</Dropdown>

<div >
<Button type="primary" style={{ marginLeft: 8, right: 100, top: -60, bottom: 0 }}>Previous 100</Button>
<Button type="primary" style={{ marginLeft: 8, right: 100, top: -60, bottom: 0 }}>Next 100</Button>
</div>

<Table columns={columns} dataSource={data} />

</Content>
</Layout>
</Layout>
</Layout>
);
}
}

storiesOf('Issue #5', module)
.add('Explore', () => (
<Explore />
))