@ant-design/icons#LineOutlined JavaScript Examples
The following examples show how to use
@ant-design/icons#LineOutlined.
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: tasks.js From hashcat.launcher with MIT License | 4 votes |
reBuildData() {
var data = [
{
key: "Idle",
title: "Idle",
selectable: false,
icon: <LineOutlined />,
children: []
},
{
key: "Queued",
title: "Queued",
selectable: false,
icon: <ClockCircleOutlined />,
children: []
},
{
key: "In Progress",
title: "In Progress",
selectable: false,
icon: <FireOutlined />,
children: []
},
{
key: "Finished",
title: "Finished",
selectable: false,
icon: <CheckCircleOutlined />,
children: []
}
];
Object.values(TasksStats.tasks).forEach(task => {
var category;
switch (task.process.status) {
case PROCESS_STATUS_NOTSTARTED:
if (task.priority >= 0)
category = data[1];
else
category = data[0];
break;
case PROCESS_STATUS_RUNNING:
category = data[2];
break;
case PROCESS_STATUS_FINISHED:
category = data[3];
break;
default:
category = data[0];
message.warning("unrecognized process status");
}
category.children.push({
key: task.id,
title: (
task.stats.hasOwnProperty("progress") ? (
task.id + " (" + Math.trunc((task.stats["progress"][0] / task.stats["progress"][1])*100) + "%)"
) : (
task.id
)
),
icon: (
task.stats.hasOwnProperty("status") ? (
HASHCAT_STATUS_BADGE_WARNING.indexOf(task.stats["status"]) > -1 ? (
<Badge status="warning" />
) : HASHCAT_STATUS_BADGE_PROCESSING.indexOf(task.stats["status"]) > -1 ? (
<Badge status="processing" />
) : HASHCAT_STATUS_BADGE_ERROR.indexOf(task.stats["status"]) > -1 ? (
<Badge status="error" />
) : HASHCAT_STATUS_BADGE_SUCCESS.indexOf(task.stats["status"]) > -1 ? (
<Badge status="success" />
) : HASHCAT_STATUS_BADGE_PINK.indexOf(task.stats["status"]) > -1 ? (
<Badge color="pink" />
) : HASHCAT_STATUS_BADGE_YELLOW.indexOf(task.stats["status"]) > -1 ? (
<Badge color="yellow" />
) : (
<Badge status="default" />
)
) : (
<Badge color="#b7b7b7" />
)
),
});
});
for (let i = 0; i < data.length; i++) {
data[i].title = data[i].title + " (" + data[i].children.length + ")";
}
this.setState({
data: data
});
}