daydreamer-json commited on
Commit
0ea28f3
1 Parent(s): 25ad6b2

Test build

Browse files
Files changed (2) hide show
  1. index.html +14 -1
  2. script.js +4 -4
index.html CHANGED
@@ -198,7 +198,20 @@
198
  </tbody>
199
  </table>
200
  <h4>Cover Artwork Images</h4>
201
- <div id="trackInfoModal-coverArtLinkDiv">
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  </div>
203
  </div>
204
  <div class="modal-footer">
 
198
  </tbody>
199
  </table>
200
  <h4>Cover Artwork Images</h4>
201
+ <div class="mb-3" id="trackInfoModal-coverArtLinkDiv">
202
+ </div>
203
+ <h3>Debug Area</h3>
204
+ <div class="accordion" id="trackInfoModal-DebugAcd">
205
+ <div class="accordion-item">
206
+ <h2 class="accordion-header">
207
+ <button class="accordion-button collapsed user-select-none" type="button" data-bs-toggle="collapse" data-bs-target="#trackInfoModal-DebugAcdInCollapse">Parsed data output (album)</button>
208
+ </h2>
209
+ <div id="trackInfoModal-DebugAcdInCollapse" class="accordion-collapse collapse" data-bs-parent="#trackInfoModal-DebugAcd">
210
+ <div class="accordion-body">
211
+ <pre class=""><code id="trackInfoModal-DebugAcdOutputEl"></code></pre>
212
+ </div>
213
+ </div>
214
+ </div>
215
  </div>
216
  </div>
217
  <div class="modal-footer">
script.js CHANGED
@@ -42,7 +42,6 @@ window.addEventListener('load', async function(){
42
  await loadRequiredDatabase();
43
  await decryptConfig();
44
  pushToTrackListGroupUi();
45
- loadTrackInfoModal('018d2827-8ae1-7a2d-823e-2557a01e70ca');
46
  });
47
 
48
  document.querySelector('#loadDatabaseTestButton').addEventListener('click', async function() {
@@ -298,7 +297,7 @@ function loadTrackInfoModal (trackUuid) {
298
  });
299
  const bootstrapTooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
300
  const bootstrapTooltipList = [...bootstrapTooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
301
- console.log(trackParsedObject);
302
  const trackInfoModal = new bootstrap.Modal(document.getElementById('trackInfoModal'));
303
  trackInfoModal.show();
304
  }
@@ -363,13 +362,14 @@ async function loadRequiredDatabase () {
363
  });
364
  apiDataMasterDB = await apiConnect({
365
  'method': 'get',
366
- 'url': `https://corsproxy.io/?${encodeURIComponent(`https://hf.co/datasets/DeliberatorArchiver/discography_v2_cdn/resolve/main/db/master.json`)}`,
 
367
  'headers': apiConnectDefaultHeader,
368
  'timeout': internalConfig.network.timeout
369
  });
370
  apiDataConfig = await apiConnect({
371
  'method': 'get',
372
- 'url': `https://corsproxy.io/?${encodeURIComponent(`https://hf.co/spaces/DeliberatorArchiver/discography_v2_cdn_front/resolve/main/config.json`)}`,
373
  'headers': apiConnectDefaultHeader,
374
  'timeout': internalConfig.network.timeout
375
  });
 
42
  await loadRequiredDatabase();
43
  await decryptConfig();
44
  pushToTrackListGroupUi();
 
45
  });
46
 
47
  document.querySelector('#loadDatabaseTestButton').addEventListener('click', async function() {
 
297
  });
298
  const bootstrapTooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
299
  const bootstrapTooltipList = [...bootstrapTooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
300
+ document.getElementById('trackInfoModal-DebugAcdOutputEl').innerHTML = JSON.stringify(albumParsedObject, '', ' ');
301
  const trackInfoModal = new bootstrap.Modal(document.getElementById('trackInfoModal'));
302
  trackInfoModal.show();
303
  }
 
362
  });
363
  apiDataMasterDB = await apiConnect({
364
  'method': 'get',
365
+ // 'url': `https://corsproxy.io/?${encodeURIComponent(`https://hf.co/datasets/DeliberatorArchiver/discography_v2_cdn/resolve/main/db/master.json`)}`,
366
+ 'url': `https://hf.co/datasets/DeliberatorArchiver/discography_v2_cdn/resolve/main/db/master.json`,
367
  'headers': apiConnectDefaultHeader,
368
  'timeout': internalConfig.network.timeout
369
  });
370
  apiDataConfig = await apiConnect({
371
  'method': 'get',
372
+ 'url': `./config.json`,
373
  'headers': apiConnectDefaultHeader,
374
  'timeout': internalConfig.network.timeout
375
  });