From 4923ebd513a73f28ef3452ae50939c8ad7eac015 Mon Sep 17 00:00:00 2001 From: Ben Garrett Date: Mon, 11 Mar 2024 08:56:00 +1100 Subject: [PATCH] tweaks to comments. --- assets/js/editor-archive.js | 16 ++++++++-------- assets/js/editor-assets.js | 6 +++--- assets/js/editor.js | 18 +++++++++--------- public/text/osd.xml | 2 +- view/app/artifact_editor.tmpl | 8 ++++---- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/assets/js/editor-archive.js b/assets/js/editor-archive.js index 10924a6e..fc987cdd 100644 --- a/assets/js/editor-archive.js +++ b/assets/js/editor-archive.js @@ -23,7 +23,7 @@ return; } - // Modify the file assets, readme in archive + // Modify the assets, readme in archive const readmeCP = document.getElementById(`edCopyMe`); if (readmeCP == null) { console.info( @@ -71,7 +71,7 @@ return; }); }); - // Modify the file assets, readme in archive reset + // Modify the assets, readme in archive reset document .getElementById(`edCopyMeReset`) .addEventListener(`click`, function () { @@ -83,7 +83,7 @@ document.getElementById(`edCopyMeList`).classList.remove(err); }); - // Modify the file assets, record readme hide/show + // Modify the assets, record readme hide/show const readmeHide = document.getElementById(`edHideMe`); if (readmeHide.checked == true) { document.getElementById(`edHideMeLabel`).classList.add(danger); @@ -119,7 +119,7 @@ }); }); - // Modify the file assets, preview in archive + // Modify the assets, preview in archive const previewValue = document.getElementById(`edCopyPreview`); const previewList = document.getElementById(`edCopyPreviewList`); const previewB = document.getElementById(`edCopyPreviewBtn`); @@ -167,7 +167,7 @@ return; }); }); - // Modify the file assets, preview in archive reset + // Modify the assets, preview in archive reset document .getElementById(`edCopyPreviewReset`) .addEventListener(`click`, function () { @@ -178,7 +178,7 @@ previewList.classList.remove(err); }); - // Modify the file assets, ansilove preview in archive + // Modify the assets, ansilove preview in archive const ansiloveValue = document.getElementById(`edAnsiLove`); const ansiloveList = document.getElementById(`edAnsiLoveList`); const ansiloveB = document.getElementById(`edAnsiLoveBtn`); @@ -224,7 +224,7 @@ return; }); }); - // Modify the file assets, ansilove preview in archive reset + // Modify the assets, ansilove preview in archive reset document .getElementById(`edAnsiLoveReset`) .addEventListener(`click`, function () { @@ -235,7 +235,7 @@ ansiloveList.classList.remove(err); }); - // Modify the file metadata, delete readme asset + // Modify the metadata, delete readme asset const readmeDel = document.getElementById(`edBtnRead`) readmeDel.disabled = false; readmeDel.addEventListener(`click`, function () { diff --git a/assets/js/editor-assets.js b/assets/js/editor-assets.js index 85e03210..825eb68f 100644 --- a/assets/js/editor-assets.js +++ b/assets/js/editor-assets.js @@ -21,7 +21,7 @@ return; } - // Modify the file metadata, delete images asset + // Modify the metadata, delete images asset document .getElementById(`edBtnImgs`) .addEventListener(`click`, function (event) { @@ -56,7 +56,7 @@ /// ============== /// TODO: below - // Modify the file assets, file artifact preview upload + // Modify the assets, file artifact preview upload const previewUp = document.getElementById(`edUploadPreview`); const previewUpB = document.getElementById(`edUploadPreviewBtn`); const previewUpR = document.getElementById(`edUploadPreviewReset`); @@ -82,7 +82,7 @@ previewUp.classList.remove(ok); }); - // Modify the file assets, file artifact replacement upload + // Modify the assets, file replacement upload const artifact = document.getElementById(`edUploadArtifact`); const artifactB = document.getElementById(`edUploadArtifactBtn`); const artifactR = document.getElementById(`edUploadArtifactReset`); diff --git a/assets/js/editor.js b/assets/js/editor.js index 4f0355ab..ec2daf51 100644 --- a/assets/js/editor.js +++ b/assets/js/editor.js @@ -22,7 +22,7 @@ return; } - // Modify the file metadata, File artifact is online and public + // Modify the metadata, Artifact is online and public const elm0 = document.getElementById(`recordOnline`); const label0 = document.getElementById(`recordOnlineLabel`); if (elm0 == null) { @@ -65,7 +65,7 @@ }); } - // Modify the file metadata, Title + // Modify the metadata, Title const elm1 = document.getElementById(`recordTitle`); if (elm1 == null) { console.info(`the record title is not present`); @@ -174,7 +174,7 @@ }); } - // Modify the file metadata, use last modification button + // Modify the metadata, use last modification button const elm3 = document.getElementById(`recordLMBtn`); if (elm3 == null) { console.info(`the last modification button is not present`); @@ -197,7 +197,7 @@ }); } - // Modify the file metadata, Year, month, day of release, save button + // Modify the metadata, Year, month, day of release, save button const saveYMD = document.getElementById(`recordYMDSave`); if (saveYMD == null) { console.info(`the record ymd save button is not present`); @@ -233,7 +233,7 @@ }); } - // Modify the file metadata, Year, month, day of release, reset button + // Modify the metadata, Year, month, day of release, reset button const elm4 = document.getElementById(`recordYMDReset`); if (elm4 == null || saveYMD == null) { console.info(`the record ymd reset button is not present or usable`); @@ -255,7 +255,7 @@ }); } - // Modify the file metadata, Year, month, day of release + // Modify the metadata, Year, month, day of release const year = document.getElementById(`recordYear`); if (year == null || saveYMD == null) { console.info(`the record year is not present or usable`); @@ -606,7 +606,7 @@ filename.classList.remove(err); }); - // Modify the file metadata, Platform + // Modify the metadata, Platform const platform = document.getElementById(`recordPlatform`); platform.addEventListener(`change`, function (event) { platform.classList.remove(err); @@ -643,7 +643,7 @@ platformTagInfo(value, tag.value); } - // Modify the file metadata, Tag + // Modify the metadata, Tag const tag = document.getElementById(`recordTag`); tag.addEventListener(`change`, function (event) { const value = event.target.value; @@ -712,7 +712,7 @@ }); } - // Modify the file metadata, Reset Platform and Tag + // Modify the metadata, Reset Platform and Tag document .getElementById(`recTagsReset`) .addEventListener(`click`, function () { diff --git a/public/text/osd.xml b/public/text/osd.xml index 063e828d..7e7a168c 100644 --- a/public/text/osd.xml +++ b/public/text/osd.xml @@ -2,7 +2,7 @@ Defacto2 - Search Defacto2 for historical articles, files and digital artefacts on The Scene, underground and online. + Search Defacto2 for historical articles, files and digital artifacts on The Scene, underground and online. UTF-8 https://defacto2.net/image/layout/favicon-192x192.png https://defacto2.net/favicon.ico diff --git a/view/app/artifact_editor.tmpl b/view/app/artifact_editor.tmpl index 313b7e24..c5a388e8 100644 --- a/view/app/artifact_editor.tmpl +++ b/view/app/artifact_editor.tmpl @@ -13,10 +13,10 @@ aria-labelledby="assetEditorModalLabel" aria-hidden="true">