Skip to content

Commit

Permalink
Merge pull request #318 from City-of-Helsinki/UHF-10713
Browse files Browse the repository at this point in the history
UHF-10713: Remove calls to composer version endpoint
  • Loading branch information
hyrsky authored Dec 17, 2024
2 parents 67b7a94 + f433a37 commit a0d89ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 87 deletions.
1 change: 0 additions & 1 deletion dist/js/debug-item-composer.min.js

This file was deleted.

7 changes: 0 additions & 7 deletions hdbt_admin.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ updating-news-auto-toggle:
dependencies:
- core/once

debug-item-composer:
js:
dist/js/debug-item-composer.min.js: {}
version: 1.x
dependencies:
- core/drupalSettings

global-styling:
version: 1.x
css:
Expand Down
73 changes: 0 additions & 73 deletions src/js/debug-item-composer.js

This file was deleted.

11 changes: 5 additions & 6 deletions templates/module/helfi_debug/debug-item--composer.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
* - data: An array of data returned by your plugin's collect() method.
*/
#}
{{ attach_library('hdbt_admin/debug-item-composer') }}

{{ id }} {{ label }}
<h2>{{ label }}</h2>

<table style="width:auto;">
<thead>
<tr>
<th>Package</th>
<th>Version</th>
<th>Updated</th>
<th>Timestamp</th>
<th>Releases</th>
<th>Latest</th>
</tr>
</thead>
<tbody>
Expand All @@ -41,7 +37,6 @@
<td>
{{ package.version }}
</td>
<td data-since="{{ package.time }}">Loading..</td>
<td>
{{ package.time }}
</td>
Expand All @@ -57,3 +52,7 @@
{% endfor %}
</tbody>
</table>

<p>
View outdated composer packages with: <code>composer show "drupal/helfi_*" "drupal/hdbt*" --outdated</code>
</p>

0 comments on commit a0d89ce

Please sign in to comment.