diff --git a/airlock/static/assets/activity.js b/airlock/static/assets/activity.js deleted file mode 100644 index 2eb2e375..00000000 --- a/airlock/static/assets/activity.js +++ /dev/null @@ -1 +0,0 @@ -window.initCustomTable(10); diff --git a/airlock/static/assets/datatable-loader.js b/airlock/static/assets/datatable-loader.js deleted file mode 100644 index d6ac3262..00000000 --- a/airlock/static/assets/datatable-loader.js +++ /dev/null @@ -1,41 +0,0 @@ -var observer = new MutationObserver((mutations, obs) => { - const sorterButton = document.querySelector( - "button.datatable-sorter" - ); - const paginationEl = document.querySelector("#pagination-nav") - if (sorterButton) { - document.querySelector("#airlock-table p.spinner").style.display = "none"; - document.querySelector("#airlock-table table.datatable").style.display = "table"; - // If we have paginationEl, display it - // The upstream code hides the pagination until the page numbers have been populated - if (paginationEl !== null) { - document.querySelector("#pagination-nav").classList.remove("hidden") - }; - obs.disconnect(); - clearTimeout(); - return; - } -}); - -observer.observe(document, { - childList: true, - subtree: true, -}); - -// If the datatable hasn't loaded within 5 seconds, it's likely something's gone -// wrong; unhide the table to show the non-datatable table -// Also hide the datatable sort icons as they'll be unformatted without the -// datatable, and they won't work anyway -setTimeout(() => { - const sorterButton = document.querySelector( - "button.datatable-sorter" - ); - if (!sorterButton) { - document.querySelector("#airlock-table p.spinner").style.display = "none"; - document.querySelector("#airlock-table table.datatable").style.display = "table"; - const sortIcons = document.getElementsByClassName("sort-icon"); - for (let i = 0; i < sortIcons.length; i++) { - sortIcons.item(i).style.display = "none";; - } - } -}, 5000); diff --git a/airlock/static/assets/datatable.css b/airlock/static/assets/datatable.css deleted file mode 100644 index 9842177a..00000000 --- a/airlock/static/assets/datatable.css +++ /dev/null @@ -1,26 +0,0 @@ -.datatable thead { - position: sticky; - top: 0; - text-align: left; - background-color: rgba(248, 250, 252); -} - -#customTable.datatable-table th:first-child, -#customTable.datatable-table td:first-child { - padding-inline-start: 1.25rem; -} - -#customTable.datatable-table th:first-child button, -#customTable.datatable-table td:first-child button { - padding-inline-start: 0; -} - -#customTable.datatable-table th:last-child, -#customTable.datatable-table td:last-child { - padding-inline-end: 1.25rem; -} - -#customTable.datatable-table th:last-child button, -#customTable.datatable-table td:last-child button { - padding-inline-end: 0; -} diff --git a/airlock/static/assets/file_browser/dir.css b/airlock/static/assets/file_browser/dir.css deleted file mode 100644 index 903a8056..00000000 --- a/airlock/static/assets/file_browser/dir.css +++ /dev/null @@ -1,14 +0,0 @@ -#customTable thead { -position: sticky; -top: 0; -text-align: left; -background-color: rgba(248,250,252); -} - -#customTable td.name a.directory { -background-image: url(/static/folder.png); -background-repeat: no-repeat; -background-size: 1.4rem; -background-position: left -0.2rem top 0; -padding-left: 1.1rem; -}