Skip to content

Commit

Permalink
Embedded license preview when uploading a package through UI (#6807)
Browse files Browse the repository at this point in the history
* Simple license expression preview.

* License file display MVP.

* extra lines fix for license file display

* Proper license file label

* Style changes for license file display.

Some node-related changes that will happen sooner or later.

* License file display in uploads picked up from the past.

* Inverted the logic if the method

* feedback addressed.

* Linkified license expression display.

* Removed try/catch around license access code

* Using <p> for license expression display
  • Loading branch information
agr authored Jan 11, 2019
1 parent f5699cb commit 06e5747
Show file tree
Hide file tree
Showing 10 changed files with 566 additions and 441 deletions.
7 changes: 7 additions & 0 deletions src/Bootstrap/dist/css/bootstrap-theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Bootstrap/dist/js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2018 Twitter, Inc.
* Copyright 2011-2019 Twitter, Inc.
* Licensed under the MIT license
*/

Expand Down
3 changes: 2 additions & 1 deletion src/Bootstrap/less/theme/base.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//== Theme Variables
@panel-footer-color: @navbar-inverse-color;
@default-margin-bottom: 24px;

//== Theme Definition
html, body {
Expand All @@ -11,7 +12,7 @@ body {
display: table;

h1, h2, h3, p {
margin-bottom: 24px;
margin-bottom: @default-margin-bottom;
}

h2, h3 {
Expand Down
9 changes: 9 additions & 0 deletions src/Bootstrap/less/theme/page-upload.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@
#browse-for-package-button {
margin: 0;
}

pre.license-file-contents {
white-space: pre-wrap;
word-break: normal;
}

.custom-license-container {
margin-bottom: @default-margin-bottom;
}
}
Loading

0 comments on commit 06e5747

Please sign in to comment.