react-feather#Key JavaScript Examples
The following examples show how to use
react-feather#Key.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: 3.9.0.jsx From vertx-web-site.github.io with Apache License 2.0 | 5 votes |
categories = [
{
id: "core",
name: "Core",
icon: <Box />
},
{
id: "web",
name: "Web",
icon: <Globe />
},
{
id: "databases",
name: "Databases",
icon: <Database />
},
{
id: "reactive",
name: "Reactive",
icon: <Feather />
},
{
id: "microservices",
name: "Microservices",
icon: <Search />
},
{
id: "mqtt",
name: "MQTT",
icon: <Inbox />
},
{
id: "authentication-and-authorization",
name: "Authentication and authorization",
icon: <Key />
},
{
id: "messaging",
name: "Messaging",
icon: <Send />
},
{
id: "integration",
name: "Integration",
icon: <Inbox />
},
{
id: "event-bus-bridges",
name: "Event bus bridges",
icon: <Share2 />
},
{
id: "devops",
name: "DevOps",
icon: <Terminal />
},
{
id: "testing",
name: "Testing",
icon: <CheckCircle />
},
{
id: "clustering",
name: "Clustering",
icon: <Grid />
},
{
id: "services",
name: "Services",
icon: <PhoneCall />
}
]
Example #2
Source File: MindMaps.js From hivemind with Apache License 2.0 | 4 votes |
MindMaps = ({ data }) => {
if (data.length) {
const columns = [
{
dataField: 'title',
text: 'Title',
sort: true,
filter: textFilter(),
formatter: (cell, row) => (
<Link href="/mmaps/[id]" as={`/mmaps/${row.id}`}>
<a>{cell}</a>
</Link>
),
},
{
dataField: 'access',
text: 'Access',
sort: true,
filter: textFilter(),
formatter: (cell) => {
let output
switch (cell) {
case 'admin':
output = (
<span className={'text-success'}>
<Key /> {cell}
</span>
)
break
case 'write':
output = (
<span className={'text-primary'}>
<Edit3 /> {cell}
</span>
)
break
case 'read':
output = (
<span className={'text-secondary'}>
<Eye /> {cell}
</span>
)
break
}
return output
},
},
// {
// dataField: 'ops',
// sort: false,
// text: ''
// },
]
const rows = data.map((entry) => {
return {
id: entry.mindmap._key,
access: entry.access.access,
title: entry.mindmap.name,
// ops: getOps(entry),
}
})
return (
<BootstrapTable
bootstrap4
keyField="id"
data={rows}
columns={columns}
hover
condensed
filter={filterFactory()}
defaultSorted={[{ dataField: 'title', order: 'asc' }]}
defaultSortDirection={'asc'}
pagination={pagination}
/>
)
}
return <p>No mind maps found. Try creating one.</p>
}