From 34e89827ff31efad2f807f601b5eaaa57bc979c8 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Thu, 19 Sep 2024 19:11:07 -0400 Subject: [PATCH 1/2] add external service for nwb.lindi.tar --- web/src/views/FileBrowserView/FileBrowser.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/views/FileBrowserView/FileBrowser.vue b/web/src/views/FileBrowserView/FileBrowser.vue index e9513b43c..76002051e 100644 --- a/web/src/views/FileBrowserView/FileBrowser.vue +++ b/web/src/views/FileBrowserView/FileBrowser.vue @@ -359,6 +359,13 @@ const EXTERNAL_SERVICES = [ endpoint: 'https://neurosift.app?p=/nwb&url=$asset_dandi_url$&st=lindi&dandisetId=$dandiset_id$&dandisetVersion=$dandiset_version$', // eslint-disable-line max-len }, + { + name: 'Neurosift', + regex: /\.nwb.lindi.tar$/, + maxsize: Infinity, + endpoint: 'https://neurosift.app?p=/nwb&url=$asset_dandi_url$&st=lindi&dandisetId=$dandiset_id$&dandisetVersion=$dandiset_version$', // eslint-disable-line max-len + }, + { name: 'Neurosift', regex: /\.avi$/, From 096803e4e6abaa3390c7f82ef7a15e22615cbd5f Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Sat, 21 Sep 2024 07:02:47 -0400 Subject: [PATCH 2/2] neurosift external service regexp --- web/src/views/FileBrowserView/FileBrowser.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/web/src/views/FileBrowserView/FileBrowser.vue b/web/src/views/FileBrowserView/FileBrowser.vue index 76002051e..a18072688 100644 --- a/web/src/views/FileBrowserView/FileBrowser.vue +++ b/web/src/views/FileBrowserView/FileBrowser.vue @@ -354,14 +354,7 @@ const EXTERNAL_SERVICES = [ { name: 'Neurosift', - regex: /\.nwb.lindi.json$/, - maxsize: Infinity, - endpoint: 'https://neurosift.app?p=/nwb&url=$asset_dandi_url$&st=lindi&dandisetId=$dandiset_id$&dandisetVersion=$dandiset_version$', // eslint-disable-line max-len - }, - - { - name: 'Neurosift', - regex: /\.nwb.lindi.tar$/, + regex: /\.nwb\.lindi\.(json|tar)$/, maxsize: Infinity, endpoint: 'https://neurosift.app?p=/nwb&url=$asset_dandi_url$&st=lindi&dandisetId=$dandiset_id$&dandisetVersion=$dandiset_version$', // eslint-disable-line max-len },