From 68fa66e1f2007740ed99444a9802d49155e016cf Mon Sep 17 00:00:00 2001 From: Birm Date: Wed, 20 Nov 2024 23:59:57 -0500 Subject: [PATCH 1/4] Create stale_issues.yml --- .github/workflows/stale_issues.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/stale_issues.yml diff --git a/.github/workflows/stale_issues.yml b/.github/workflows/stale_issues.yml new file mode 100644 index 000000000..b46c3d012 --- /dev/null +++ b/.github/workflows/stale_issues.yml @@ -0,0 +1,17 @@ +name: 'Stale Issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + days-before-stale: 30 + days-before-close: 5 + days-before-pr-close: -1 From 3616b6ac7e7e682c3875b631710917de88602f46 Mon Sep 17 00:00:00 2001 From: wavehunter1715 Date: Wed, 25 Dec 2024 02:17:31 +0530 Subject: [PATCH 2/4] Update slide upload instructions and error message --- apps/table.html | 2 +- apps/table.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/table.html b/apps/table.html index ae8075125..ce1aae5c7 100644 --- a/apps/table.html +++ b/apps/table.html @@ -212,7 +212,7 @@

Steps for uploading.

diff --git a/apps/table.js b/apps/table.js index a84ee48aa..cca77f206 100644 --- a/apps/table.js +++ b/apps/table.js @@ -720,7 +720,7 @@ function fileNameChange() { let fDiv = document.createElement('div'); fDiv.classList.add('invalid-feedback'); fDiv.id = 'filename-feedback0'; - fDiv.textContent = fileExtension + ' files are not compatible'; + fDiv.textContent = 'The file name you provided is incompatible. File names should follow this format "filename.ext"'; if (fileNameInput.parent().children().length === 1) { fileNameInput.parent().append(fDiv); } else { From 38a62f34161943e75fb5eaaf8c09135519a0e5b1 Mon Sep 17 00:00:00 2001 From: Chandrika Date: Mon, 6 Jan 2025 01:30:58 +0530 Subject: [PATCH 3/4] Update: Modified file to address all cases --- apps/table.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/table.js b/apps/table.js index cca77f206..68bcc74ce 100644 --- a/apps/table.js +++ b/apps/table.js @@ -714,8 +714,9 @@ function fileNameChange() { const fileName = fileNameInput.val(); let newFileName = fileName.split(' ').join('_'); fileNameInput.val(newFileName); - let fileExtension = newFileName.toLowerCase().split('.').reverse()[0]; - if (!allowedExtensions.includes(fileExtension)) { + let fileParts = newFileName.split('.'); + let fileExtension = fileParts.length > 1 ? fileParts.reverse()[0].toLowerCase() : null; + if (!fileExtension) { fileNameInput.addClass('is-invalid'); let fDiv = document.createElement('div'); fDiv.classList.add('invalid-feedback'); @@ -727,6 +728,18 @@ function fileNameChange() { document.getElementById('filename-feedback0').innerHTML = ''; document.getElementById('filename-feedback0').append(fDiv); } + } else if (!allowedExtensions.includes(fileExtension)) { + fileNameInput.addClass('is-invalid'); + let fDiv = document.createElement('div'); + fDiv.classList.add('invalid-feedback'); + fDiv.id = 'filename-feedback0'; + fDiv.textContent = fileExtension + ' files are not compatible'; + if (fileNameInput.parent().children().length === 1) { + fileNameInput.parent().append(fDiv); + } else { + document.getElementById('filename-feedback0').innerHTML = ''; + document.getElementById('filename-feedback0').append(fDiv); + } } else { fileNameInput.removeClass('is-invalid'); if (fileNameInput.parent().children().length !== 1) { @@ -734,6 +747,8 @@ function fileNameChange() { } } } + + function switchToFile() { $('.urlUploadClass').css('display', 'none'); $('.fileInputClass').css('display', 'block'); From 73764c3bac233a925a23af3ca3d80ce3e849200c Mon Sep 17 00:00:00 2001 From: Chandrika Date: Sat, 25 Jan 2025 19:39:43 +0530 Subject: [PATCH 4/4] Update table.js --- apps/table.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/apps/table.js b/apps/table.js index 68bcc74ce..6ae19530c 100644 --- a/apps/table.js +++ b/apps/table.js @@ -718,16 +718,17 @@ function fileNameChange() { let fileExtension = fileParts.length > 1 ? fileParts.reverse()[0].toLowerCase() : null; if (!fileExtension) { fileNameInput.addClass('is-invalid'); - let fDiv = document.createElement('div'); - fDiv.classList.add('invalid-feedback'); - fDiv.id = 'filename-feedback0'; - fDiv.textContent = 'The file name you provided is incompatible. File names should follow this format "filename.ext"'; - if (fileNameInput.parent().children().length === 1) { - fileNameInput.parent().append(fDiv); - } else { - document.getElementById('filename-feedback0').innerHTML = ''; - document.getElementById('filename-feedback0').append(fDiv); + let fDiv = document.getElementById('filename-feedback0'); + + if (!fDiv) { + fileNameInput.addClass('is-invalid'); + let fDiv = document.createElement('div'); + fDiv.classList.add('invalid-feedback'); + fDiv.id = 'filename-feedback0'; + fDiv.textContent = 'The file name you provided is incompatible. File names should follow this format "filename.ext"'; + fileNameInput.parent().append(fDiv); } + } else if (!allowedExtensions.includes(fileExtension)) { fileNameInput.addClass('is-invalid'); let fDiv = document.createElement('div');