diff --git a/components/annotorious-annotator/line-parser.js b/components/annotorious-annotator/line-parser.js index 8fca5500..2899df47 100644 --- a/components/annotorious-annotator/line-parser.js +++ b/components/annotorious-annotator/line-parser.js @@ -164,6 +164,10 @@ class AnnotoriousAnnotator extends HTMLElement { cursor: pointer; width: 100%; margin-top: 1em; + display: block; + text-align: center; + text-decoration: none; + border: none; } #saveBtn[disabled], #createColumnsBtn[disabled], #deleteAllBtn[disabled] { background-color: gray; @@ -269,7 +273,7 @@ class AnnotoriousAnnotator extends HTMLElement { - + Manage Columns diff --git a/components/classroom/groups/package-lock.json b/components/classroom/groups/package-lock.json index c7e32ede..08928c53 100644 --- a/components/classroom/groups/package-lock.json +++ b/components/classroom/groups/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "license": "Apache-2.0", "devDependencies": { "@babel/preset-env": "^7.25.7", "babel-jest": "^29.7.0", diff --git a/components/copy-existing-project/index.js b/components/copy-existing-project/index.js index 3ce06971..1fc50d22 100644 --- a/components/copy-existing-project/index.js +++ b/components/copy-existing-project/index.js @@ -142,12 +142,10 @@ class CopyExistingProject extends HTMLElement { const projectTitle = document.createElement('span') projectTitle.textContent = data.label - const manageButton = document.createElement('button') + const manageButton = document.createElement('a') manageButton.className = 'manage-btn' manageButton.textContent = 'Manage' - manageButton.onclick = () => { - window.location.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` - } + manageButton.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` projectInfo.appendChild(projectTitle) projectInfo.appendChild(manageButton) diff --git a/components/copy-project-with-customization/index.js b/components/copy-project-with-customization/index.js index 5f18b36c..420457e0 100644 --- a/components/copy-project-with-customization/index.js +++ b/components/copy-project-with-customization/index.js @@ -477,12 +477,10 @@ class CopyExistingProjectWithCustomizations extends HTMLElement { const projectTitle = document.createElement('span') projectTitle.textContent = data.label - const manageButton = document.createElement('button') + const manageButton = document.createElement('a') manageButton.className = 'manage-btn' manageButton.textContent = 'Manage' - manageButton.onclick = () => { - window.location.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` - } + manageButton.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` projectInfo.appendChild(projectTitle) projectInfo.appendChild(manageButton) diff --git a/components/copy-project-with-group-member/index.js b/components/copy-project-with-group-member/index.js index 9c518611..804f3811 100644 --- a/components/copy-project-with-group-member/index.js +++ b/components/copy-project-with-group-member/index.js @@ -143,12 +143,10 @@ class CopyProjectWithGroupMember extends HTMLElement { const projectTitle = document.createElement('span') projectTitle.textContent = data.label - const manageButton = document.createElement('button') + const manageButton = document.createElement('a') manageButton.className = 'manage-btn' manageButton.textContent = 'Manage' - manageButton.onclick = () => { - window.location.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` - } + manageButton.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` projectInfo.appendChild(projectTitle) projectInfo.appendChild(manageButton) diff --git a/components/copy-project-without-annotations/index.js b/components/copy-project-without-annotations/index.js index 08f7e33f..6717e81c 100644 --- a/components/copy-project-without-annotations/index.js +++ b/components/copy-project-without-annotations/index.js @@ -142,12 +142,10 @@ class CopyExistingProjectWithoutAnnotations extends HTMLElement { const projectTitle = document.createElement('span') projectTitle.textContent = data.label - const manageButton = document.createElement('button') + const manageButton = document.createElement('a') manageButton.className = 'manage-btn' manageButton.textContent = 'Manage' - manageButton.onclick = () => { - window.location.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` - } + manageButton.href = `${TPEN.BASEURL}/project/manage?projectID=${data._id}` projectInfo.appendChild(projectTitle) projectInfo.appendChild(manageButton) diff --git a/components/import-image/index.js b/components/import-image/index.js index bb127c75..5bf6710c 100644 --- a/components/import-image/index.js +++ b/components/import-image/index.js @@ -182,12 +182,10 @@ class ImageImporter extends HTMLElement { const pageTitle = document.createElement('span') pageTitle.textContent = project.label || 'Untitled Page' - const manageButton = document.createElement('button') + const manageButton = document.createElement('a') manageButton.className = 'manage-btn' manageButton.textContent = 'Manage' - manageButton.onclick = () => { - window.location.href = `${TPEN.BASEURL}/project/manage?projectID=${project._id}` - } + manageButton.href = `${TPEN.BASEURL}/project/manage?projectID=${project._id}` pageInfo.appendChild(pageTitle) pageInfo.appendChild(manageButton) diff --git a/components/import-project/index.js b/components/import-project/index.js index 3a5b549a..575e532c 100644 --- a/components/import-project/index.js +++ b/components/import-project/index.js @@ -133,12 +133,10 @@ class ProjectImporter extends HTMLElement { const projectTitle = document.createElement('span') projectTitle.textContent = project.label - const manageButton = document.createElement('button') + const manageButton = document.createElement('a') manageButton.className = 'manage-btn' manageButton.textContent = 'Manage' - manageButton.onclick = () => { - window.location.href = `${TPEN.BASEURL}/project/manage?projectID=${project._id}` - } + manageButton.href = `${TPEN.BASEURL}/project/manage?projectID=${project._id}` projectInfo.appendChild(projectTitle) projectInfo.appendChild(manageButton) diff --git a/components/user-profile/userStats.js b/components/user-profile/userStats.js index 8253b295..070f6040 100644 --- a/components/user-profile/userStats.js +++ b/components/user-profile/userStats.js @@ -473,7 +473,9 @@ class UserStats extends HTMLElement {