-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: tdruez <tdruez@nexb.com>
- Loading branch information
Showing
15 changed files
with
325 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
product_portfolio/templates/product_portfolio/import_manifests_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{% extends "bootstrap_base.html" %} | ||
{% load i18n static crispy_forms_tags %} | ||
{% load inject_preserved_filters from dje_tags %} | ||
|
||
{% block page_title %}{% trans "Import Packages from manifests" %}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="header"> | ||
<div class="header-body"> | ||
<div class="row align-items-center"> | ||
<div class="col"> | ||
<div class="header-pretitle"> | ||
<a href="{% inject_preserved_filters 'product_portfolio:product_list' %}">{% trans "Products" %}</a> | ||
/ {{ object.get_absolute_link }} | ||
</div> | ||
<h1 class="header-title"> | ||
{% trans "Import Packages from manifests" %} | ||
</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% include 'includes/messages_alert.html' %} | ||
|
||
<div class="alert alert-success"> | ||
<div> | ||
Supports resolving packages for: | ||
<ul class="mt-2"> | ||
<li><strong>Python</strong>: requirements.txt and setup.py manifest files.</li> | ||
</ul> | ||
</div> | ||
<strong>Multiple Manifests:</strong> | ||
You can provide multiple Manifests by packaging them into a <strong>zip archive</strong>. | ||
DejaCode will handle and process them accordingly. | ||
</div> | ||
|
||
<div class="alert alert-primary" role="alert"> | ||
When you upload your <strong>Manifest file to DejaCode</strong>, | ||
the following process will occur: | ||
<ul class="mb-0 mt-2"> | ||
<li> | ||
<strong>Submission to ScanCode.io</strong> | ||
Your Manifest file will be submitted to ScanCode.io for thorough scan inspection. | ||
</li> | ||
<li> | ||
<strong>Package Discovery</strong> | ||
ScanCode.io will identify and discover packages within your Manifest. | ||
</li> | ||
<li> | ||
<strong>Package Importation</strong> | ||
DejaCode will retrieve the discovered packages from ScanCode.io and import them into its system. | ||
</li> | ||
<li> | ||
<strong>Package Assignment</strong> | ||
The imported packages will be assigned to the corresponding product within DejaCode. | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-8"> | ||
{{ form.errors }} | ||
{% crispy form %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block javascripts %} | ||
<script> | ||
$(document).ready(function () { | ||
$('form#import-manifest-form').on('submit', function () { | ||
NEXB.displayOverlay("Load Packages from Manifest..."); | ||
}) | ||
}); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.