Skip to content

Commit 7bad632

Browse files
Update launch configuration and localization strings; enhance attribute handling in romdetail page (#395)
1 parent c84a29e commit 7bad632

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"program": "${workspaceFolder}/service-host/bin/Debug/net8.0/service-host.dll",
4646
"args": [
4747
"--service",
48-
"MetadataMapDump",
48+
"SignatureIngestor",
4949
"--reportingserver",
5050
"https://localhost:7023"
5151
],

hasheous/wwwroot/localisation/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@
198198
"tosec.b": "Bad Dump",
199199
"tosec.a": "Alternate",
200200
"tosec.!": "Known Verified Dump",
201+
"tosec.categories": "Categories",
202+
"tosec.filetype": "File Type",
201203
"termsofservice": "Terms of Service",
202204
"termsofservicetext": "<p>Hasheous is a free service provided to the community with the aim of fairly satisfying the needs of the community.</p><p>As such, Hasheous has a rate limiter, and caching in place in order to limit the impact to the service (and therefore the cost of hosting) due to heavy users.</p><p>The Hasheous team reserves the right to suspend or block users who:<ul><li>exceed or circumvent these limits and place undue strain on the service</li><li>engage in offensive or abusive activity while using the service</li></ul></p><p>Hasheous is a free service, and as such, the Hasheous team cannot be held responsible for any loss of data, or any other issues that may arise from the use of the service.</p><p>Hasheous does not and will not provide binaries or links to copyrighted material.</p><p>By using Hasheous, you agree to these terms.</p>",
203205
"privacypolicy": "Privacy Policy",

hasheous/wwwroot/pages/romdetail.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,18 @@ fetch('/api/v1.0/Signatures/Rom/ById/' + romId, {
134134
break;
135135

136136
default:
137+
// check if value is an array, if so join with comma
138+
let valueString = '';
139+
if (Array.isArray(value)) {
140+
valueString = value.join(', ');
141+
} else {
142+
valueString = value;
143+
}
144+
137145
attributeArray.push(
138146
{
139147
"attribute": lang.getLang(success.signatureSource.toLowerCase() + "." + key),
140-
"value": value.trim().replace(/(?:\r\n|\r|\n)/g, '<br>').trim()
148+
"value": valueString.trim().replace(/(?:\r\n|\r|\n)/g, '<br>').trim()
141149
});
142150
break;
143151
}

0 commit comments

Comments
 (0)