diff --git a/swh/web/webapp/assets/webapp/coverage.css b/swh/web/archive_coverage/assets/coverage.css similarity index 97% rename from swh/web/webapp/assets/webapp/coverage.css rename to swh/web/archive_coverage/assets/coverage.css index 9f63e0a4..611761da 100644 --- a/swh/web/webapp/assets/webapp/coverage.css +++ b/swh/web/archive_coverage/assets/coverage.css @@ -1,83 +1,83 @@ /** * Copyright (C) 2021-2022 The Software Heritage developers * See the AUTHORS file at the top-level directory of this distribution * License: GNU Affero General Public License version 3, or any later version * See top-level LICENSE file for more information */ .swh-coverage { padding-top: 0.3rem; border: none; overflow: visible; } .swh-coverage a { text-decoration: none; } .swh-coverage-col { padding-left: 10px; padding-right: 10px; } .swh-coverage-header { padding-top: 0; padding-bottom: 0; } .swh-coverage-logo { display: block; width: 100%; height: 50px; margin-left: auto; margin-right: auto; object-fit: contain; /* polyfill for old browsers, see https://github.com/bfred-it/object-fit-images */ font-family: "object-fit: contain;"; } .swh-coverage-iframe { width: 100%; height: 320px; border: none; } .swh-coverage-chevron { position: absolute; right: 0; } .swh-coverage .card-header .mdi { transition: 0.3s transform ease-in-out; } .swh-coverage .card-header .collapsed .mdi { transform: rotate(90deg); } .swh-coverage-info-body { max-height: 150px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; /* Firefox only */ padding: 0; } .swh-coverage-focus { - border: 2px solid #e20026; + border: 2px solid #e20026 !important; } /* Thin scrollbar for chromium based browsers */ .swh-coverage-info-body::-webkit-scrollbar { width: 4px; } .swh-coverage-info-body::-webkit-scrollbar-track { background: #eff0f1; } .swh-coverage-info-body::-webkit-scrollbar-thumb { background: #909396; } diff --git a/swh/web/archive_coverage/assets/index.js b/swh/web/archive_coverage/assets/index.js new file mode 100644 index 00000000..e05bb0ed --- /dev/null +++ b/swh/web/archive_coverage/assets/index.js @@ -0,0 +1,8 @@ +/** + * Copyright (C) 2022 The Software Heritage developers + * See the AUTHORS file at the top-level directory of this distribution + * License: GNU Affero General Public License version 3, or any later version + * See top-level LICENSE file for more information + */ + +import './coverage.css'; diff --git a/swh/web/archive_coverage/templates/archive-coverage.html b/swh/web/archive_coverage/templates/archive-coverage.html index 1668543f..65dff725 100644 --- a/swh/web/archive_coverage/templates/archive-coverage.html +++ b/swh/web/archive_coverage/templates/archive-coverage.html @@ -1,170 +1,171 @@ {% comment %} Copyright (C) 2015-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% load js_reverse %} {% load static %} {% load render_bundle from webpack_loader %} {% include "includes/favicon.html" %} Software Heritage archive coverage {% render_bundle 'vendors' %} {% render_bundle 'webapp' %} + {% render_bundle 'archive_coverage' %}

A significant amount of source code has already been ingested in the Software Heritage archive. It notably includes the following software origins.

{% for origins_type, origins_data in origins.items %}
{{ origins_type }}

{{ origins_data.info | safe }}

{% for origins in origins_data.origins %}
{% with 'img/logos/'|add:origins.type.lower|add:'.png' as png_logo %} {% endwith %}
{% if "instances" in origins %} {% for instance, visit_types in origins.instances.items %} {% for visit_type, data in visit_types.items %} {% if data.count %} {% endif %} {% endfor %} {% endfor %} {% else %} {% for visit_type, search_url in origins.search_urls.items %} {% endfor %} {% endif %}
instance type count search
{{ instance }} {{ visit_type }} {{ data.count }} {% if data.search_url %} {% endif %}
instance type search
{{ origins.type }} {{ visit_type }} {% if search_url %} {% endif %}
{% endfor %}
{% endfor %}
{% if "swh.web.jslicenses" in SWH_DJANGO_APPS %} JavaScript license information {% endif %} diff --git a/swh/web/webapp/assets/webapp/index.js b/swh/web/webapp/assets/webapp/index.js index 8862ad2a..2d2ce0c7 100644 --- a/swh/web/webapp/assets/webapp/index.js +++ b/swh/web/webapp/assets/webapp/index.js @@ -1,27 +1,26 @@ /** * Copyright (C) 2018-2022 The Software Heritage developers * See the AUTHORS file at the top-level directory of this distribution * License: GNU Affero General Public License version 3, or any later version * See top-level LICENSE file for more information */ // webapp entrypoint bundle centralizing global custom stylesheets // and utility js modules used in all swh-web applications // global swh-web custom stylesheets import './breadcrumbs.css'; -import './coverage.css'; import './webapp.css'; // utility js modules export * from './badges'; export * from './code-highlighting'; export * from './history-counters'; export * from './math-typesetting'; export * from './notebook-rendering'; export * from './pdf-rendering'; export * from './readme-rendering'; export * from './sentry'; export * from './status-widget'; export * from './webapp-utils'; export * from './xss-filtering';