- |
- handleSelect(repo.url, rowIndex, isSelecting),
- isDisabled:
- isFetching || repo.status !== 'Valid',
- }}
- />
- |
- {repoExists
- ? repo.name
- : 'Repository with the following url is no longer available:'}
-
- }
- iconPosition="right"
- isInline
- href={repo.url}
- >
- {repo.url}
-
- |
-
- {repoExists ? repo.distribution_arch : '-'}
- |
-
- {repoExists ? repo.distribution_versions : '-'}
- |
-
- {repoExists ? repo.package_count : '-'}
- |
-
- {
+ if (getRepoNameByUrl(a!)! < getRepoNameByUrl(b!)!) {
+ return -1;
+ } else if (
+ getRepoNameByUrl(b!)! < getRepoNameByUrl(a!)!
+ ) {
+ return 1;
+ } else {
+ return 0;
+ }
+ })
+ .slice(computeStart(), computeEnd())
+ .map((repoURL, rowIndex) => {
+ const repo = data?.data?.find(
+ (repo) => repo.url === repoURL
+ );
+
+ if (!repo) {
+ return <>>;
+ }
+
+ const repoExists = repo.name ? true : false;
+ return (
+
+ |
+ handleSelect(
+ repo.url,
+ rowIndex,
+ isSelecting
+ ),
+ isDisabled:
+ isFetching || repo.status !== 'Valid',
+ }}
/>
- |
-
- );
- })}
+
+ {repoExists
+ ? repo.name
+ : 'Repository with the following url is no longer available:'}
+
+ }
+ iconPosition="right"
+ isInline
+ href={repo.url}
+ >
+ {repo.url}
+
+ |
+
+ {repoExists ? repo.distribution_arch : '-'}
+ |
+
+ {repoExists ? repo.distribution_versions : '-'}
+ |
+
+ {repoExists ? repo.package_count : '-'}
+ |
+
+
+ |
+ |
+ );
+ })}