Skip to content

Commit

Permalink
Merge pull request #163 from Aletheia-Data/feature/issue-23-listing-u…
Browse files Browse the repository at this point in the history
…ploaded-files

listing uploaded files
  • Loading branch information
aletheiadata authored Nov 15, 2022
2 parents 2933e00 + f691fb8 commit 1772271
Show file tree
Hide file tree
Showing 15 changed files with 1,712 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "App-Aletheia-data",
"version": "2.0.1",
"version": "2.1.0",
"homepage": "/",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

&:disabled {
width: auto;
width: 100%;
min-width: 50%;
}

Expand Down
12 changes: 5 additions & 7 deletions src/_start/partials/components/TypeStats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ const TypeStats: React.FC<Props> = ({ className, innerPadding = "" }) => {
</div>
</th>
<td className="ps-0">
<a className="text-gray-800 fw-bolder text-hover-primary fs-6">
<Link to={`/format/${format.key}`} className="text-gray-800 fw-bolder text-hover-primary fs-6">
{format.key.toUpperCase()}
</a>
</Link>
<span className="text-muted fw-bold d-block mt-1">
Archivos en formato {format.key}
</span>
Expand Down Expand Up @@ -436,19 +436,17 @@ const TypeStats: React.FC<Props> = ({ className, innerPadding = "" }) => {
</div>
</OverlayTrigger>
</td>
{/**
* <td className="text-end pe-0">
<td className="text-end pe-0">
<Link
to={`#`}
className="disabled btn btn-icon btn-bg-light btn-active-color-primary btn-sm"
to={`/format/${format.key}`}
className=" btn btn-icon btn-bg-light btn-active-color-primary btn-sm"
>
<Ktsvg
path="/media/icons/duotone/Navigation/Arrow-right.svg"
className="svg-icon-4"
/>
</Link>
</td>
*/}
</tr>
);
})}
Expand Down
17 changes: 16 additions & 1 deletion src/_start/partials/widgets/engage/EngageWidget3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ const EngageWidget3: React.FC<Props> = ({
lastRecord = type === 'single' ? records : records[0];
url = type === 'single' ? records?.url || records?.website : '';
break;
case 'csv':
case 'pdf':
case 'xls':
case 'xlsx':
case 'other':
case 'ods':
title = (entity).toUpperCase();
desc = `Esta seccion contiene todos los documentos en formato ${(entity).toUpperCase()}`;
connection = data?.alexandriasConnection?.groupBy?.id;
countTotal = connection.length;
countSrc = countTotal > 0 ? connection[0].connection.aggregate.count : 0;
entityCount = connection.length;
records = data.alexandrias;
lastRecord = records ? records[0] : 0;
break;
}

return (
Expand Down Expand Up @@ -175,7 +190,7 @@ const EngageWidget3: React.FC<Props> = ({
<td className="text-dark pe-0">{countTotal === 100 ? '+100' : countTotal}</td>
</tr>
{
entity !== 'cat' &&
url && entity !== 'cat' &&
<tr>
<td className="text-gray-600 ps-0">URL</td>
<td className="text-dark pe-0">
Expand Down
Loading

0 comments on commit 1772271

Please sign in to comment.