Skip to content

Commit

Permalink
tweaks to comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Mar 10, 2024
1 parent d25ab9b commit 4923ebd
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
16 changes: 8 additions & 8 deletions assets/js/editor-archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 () {
Expand All @@ -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);
Expand Down Expand Up @@ -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`);
Expand Down Expand Up @@ -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 () {
Expand All @@ -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`);
Expand Down Expand Up @@ -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 () {
Expand All @@ -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 () {
Expand Down
6 changes: 3 additions & 3 deletions assets/js/editor-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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`);
Expand All @@ -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`);
Expand Down
18 changes: 9 additions & 9 deletions assets/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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`);
Expand Down Expand Up @@ -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`);
Expand All @@ -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`);
Expand Down Expand Up @@ -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`);
Expand All @@ -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`);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion public/text/osd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Defacto2</ShortName>
<Description>Search Defacto2 for historical articles, files and digital artefacts on The Scene, underground and online.</Description>
<Description>Search Defacto2 for historical articles, files and digital artifacts on The Scene, underground and online.</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image height="192" width="192" type="image/png">https://defacto2.net/image/layout/favicon-192x192.png</Image>
<Image height="16" width="16" type="image/x-icon">https://defacto2.net/favicon.ico</Image>
Expand Down
8 changes: 4 additions & 4 deletions view/app/artifact_editor.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
aria-labelledby="assetEditorModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
{{/* Modify the file assets for ID */}}
{{/* Modify the assets for ID */}}
<div class="modal-header">
<i class="fal fa-file-alt {{ $faSize }}" title="Modify the record"></i> &nbsp;
<h1 class="modal-title fs-5" id="assetEditorModalLabel">Modify the file assets for ID {{index . "recID"}}</h1><br>
<h1 class="modal-title fs-5" id="assetEditorModalLabel">Modify the assets for ID {{index . "recID"}}</h1><br>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Expand Down Expand Up @@ -149,11 +149,11 @@
{{- /* Artifact metadata editor */}}
<div class="modal fade" id="fileEditorModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="fileEditorModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable">
{{/* Modify the file metadata for ID... */}}
{{/* Modify the metadata for ID... */}}
<div class="modal-content">
<div class="modal-header">
<i class="fal fa-file-alt {{ $faSize }}" title="Modify the record"></i> &nbsp;
<h1 class="modal-title fs-5" id="fileEditorModalLabel">Modify the file metadata for ID {{index . "recID"}}</h1><br>
<h1 class="modal-title fs-5" id="fileEditorModalLabel">Modify the metadata for ID {{index . "recID"}}</h1><br>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body container">
Expand Down

0 comments on commit 4923ebd

Please sign in to comment.