From 22bf4a76298ba4f0a932cac1264ea51232e71646 Mon Sep 17 00:00:00 2001 From: Jorge Marcos Date: Fri, 4 Feb 2022 00:45:01 +0100 Subject: [PATCH] new freesound result component to replace embedded iframes, reduces http requests by an order of magnitude --- .../src/components/BrowseDisplayPanel.vue | 17 +- .../onsets/src/components/FreesoundResult.vue | 201 ++++++++++++++++++ ...undResults.vue => FreesoundResultList.vue} | 33 +-- 3 files changed, 231 insertions(+), 20 deletions(-) create mode 100644 examples/demos/onsets/src/components/FreesoundResult.vue rename examples/demos/onsets/src/components/{FreesoundResults.vue => FreesoundResultList.vue} (66%) diff --git a/examples/demos/onsets/src/components/BrowseDisplayPanel.vue b/examples/demos/onsets/src/components/BrowseDisplayPanel.vue index 479adcb..5f4c30f 100644 --- a/examples/demos/onsets/src/components/BrowseDisplayPanel.vue +++ b/examples/demos/onsets/src/components/BrowseDisplayPanel.vue @@ -33,7 +33,8 @@ Sorry, Freesound search failed. Try another search term or sound ID, or upload your own sound instead. - + @@ -41,15 +42,16 @@ + + \ No newline at end of file diff --git a/examples/demos/onsets/src/components/FreesoundResults.vue b/examples/demos/onsets/src/components/FreesoundResultList.vue similarity index 66% rename from examples/demos/onsets/src/components/FreesoundResults.vue rename to examples/demos/onsets/src/components/FreesoundResultList.vue index 0d35e19..e024d72 100644 --- a/examples/demos/onsets/src/components/FreesoundResults.vue +++ b/examples/demos/onsets/src/components/FreesoundResultList.vue @@ -1,9 +1,8 @@