extend exampleData

This commit is contained in:
Hristo Nedelkov 2023-11-08 02:05:01 +02:00
parent 705e846657
commit fa6b94da4f

View File

@ -38,24 +38,522 @@ const exampleData =
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--config-file",
"description": "Loads the configuration from a TOML file."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
{
"option": "--log-level",
"description": "Sets the log level for process and topics (e.g., DEBUG; TRACE:discv5,libp2p; REQUIRED:none; DISABLED:none) [INFO]."
},
]
const loadMoreItems = (startIndex, stopIndex) => {
// Fetch more items from an API or other data source...
return new Promise(resolve => {
setTimeout(() => {
resolve();
}, 1000);
});
};
type DataType = {
option: string
description: string
}
function Row({ data, index }: { data: DataType, index: number }) {
const { option, description } = data;
function Row({ data, index }: { data: DataType | undefined, index: number }) {
if (!data) {
return <div>Loading...</div>;
}
const { option, description } = data;
return (
<XStack style={{ fontFamily: 'monospace', }}>
<Stack style={{ alignContent: 'flex-start', padding: '0 12px 0 12px ', marginRight: '20px', backgroundColor: '#f5f6f8' }}>