Skip to content

Commit

Permalink
Add column ordering in CSV export through drag and drop #49
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Dec 1, 2020
1 parent d842609 commit d2b6426
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 14 deletions.
6 changes: 6 additions & 0 deletions scancodeio/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

import environ

PROJECT_DIR = Path(__file__).resolve().parent.parent

# Environment

env_file = "/etc/scancodeio/.env"
Expand Down Expand Up @@ -171,6 +173,10 @@

STATIC_ROOT = "/var/www/scancodeio/static/"

STATICFILES_DIRS = [
str(PROJECT_DIR.joinpath("static")),
]

# Third-party apps

CRISPY_TEMPLATE_PACK = "bootstrap3"
Expand Down
1 change: 1 addition & 0 deletions scancodeio/static/html5sortable-0.9.17.min.js

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

15 changes: 15 additions & 0 deletions scancodeio/static/html5sortable-0.9.17.min.js.ABOUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
about_resource: html5sortable-0.9.17.min.js
name: html5sortable
version: 0.9.17
download_url: https://github.com/lukasoppermann/html5sortable/archive/v0.9.17.zip
description: VanillaJS sortable lists and grids using native HTML5 drag and drop API.
license_expression: mit
copyright: Copyright (c) Lukas Oppermann (lukas@vea.re)
attribute: yes
checksum_md5: 5688e2e0019ec0d85c250710be323e6c
checksum_sha1: 29675072fa82e1fb3723586e8c7faabe23b4cd77
package_url: pkg:npm/html5sortable@0.9.17
licenses:
- key: mit
name: MIT License
file: mit.LICENSE
5 changes: 5 additions & 0 deletions scancodeio/static/mit.LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions scanpipe/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
a.cancel-link:active, a.cancel-link:focus, a.cancel-link:hover {
background: #ccc;
}
.text-center {text-align: center}
</style>
{% endblock %}
Loading

0 comments on commit d2b6426

Please sign in to comment.