]> Slayer Assistant Repositories - slayer.unlishema.org/.git/commitdiff
Fixed a couple bugs in the CORS test
authorunlishema <unlishema@jtryba.com>
Thu, 18 Sep 2025 16:41:02 +0000 (12:41 -0400)
committerunlishema <unlishema@jtryba.com>
Thu, 18 Sep 2025 16:41:02 +0000 (12:41 -0400)
dist/dev.html
dist/pages/data/version.json
src/dev.html
src/pages/data/version.json

index 821f53e3975bf34435b57665ce039003c7c2aed1..7078c07deacbfec7df58491d353301c5684acfbc 100644 (file)
                         for (const key of keys)
                             option.value += `'${key}',`;
                         option.value = option.value.slice(0, -1); // Remove trailing comma
-                        option.value += `).where('${keys[0]}', '${item[keys[0]]}').run()`;
+                        option.value += `).where('${keys[0]}', '${item[keys[0]].replaceAll("'", "\\'")}').run()`;
 
                         option.textContent = keys ? item[keys[0]] : "No KEYS";
                         document.getElementById("itemSelect").appendChild(option);
                     if (i > 0) continue; // Only display the first item by default
 
                     for (const key of keys)
-                        extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${item[key] || 'N/A'}</p>`;
+                        extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${!(key in item) ? 'false' : (item[key] === '' ? 'true' : item[key])}</p>`;
+
                 }
 
                 rawDataElement.innerHTML = `<pre>${JSON.stringify(itemData, null, 2)}</pre>`;
index ef08071e86aee2f86d51b7fe281fb567b1b4425f..1529d43b7f0e263bf122b19804c03a250e8753e9 100644 (file)
@@ -1,3 +1,3 @@
 {
-  "version": "0.0.32"
+  "version": "0.0.33"
 }
\ No newline at end of file
index 821f53e3975bf34435b57665ce039003c7c2aed1..7078c07deacbfec7df58491d353301c5684acfbc 100644 (file)
                         for (const key of keys)
                             option.value += `'${key}',`;
                         option.value = option.value.slice(0, -1); // Remove trailing comma
-                        option.value += `).where('${keys[0]}', '${item[keys[0]]}').run()`;
+                        option.value += `).where('${keys[0]}', '${item[keys[0]].replaceAll("'", "\\'")}').run()`;
 
                         option.textContent = keys ? item[keys[0]] : "No KEYS";
                         document.getElementById("itemSelect").appendChild(option);
                     if (i > 0) continue; // Only display the first item by default
 
                     for (const key of keys)
-                        extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${item[key] || 'N/A'}</p>`;
+                        extractedDataElement.innerHTML += `<p><strong>${key}:</strong> ${!(key in item) ? 'false' : (item[key] === '' ? 'true' : item[key])}</p>`;
+
                 }
 
                 rawDataElement.innerHTML = `<pre>${JSON.stringify(itemData, null, 2)}</pre>`;
index ef08071e86aee2f86d51b7fe281fb567b1b4425f..1529d43b7f0e263bf122b19804c03a250e8753e9 100644 (file)
@@ -1,3 +1,3 @@
 {
-  "version": "0.0.32"
+  "version": "0.0.33"
 }
\ No newline at end of file