Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eLabFTW integration
Browse files Browse the repository at this point in the history
kysrpex committed Dec 12, 2024
1 parent f8f5976 commit af772b8
Showing 4 changed files with 956 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/src/utils/upload-payload.js
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ export const URI_PREFIXES = [
"drs://",
"invenio://",
"zenodo://",
"elabftw://",
];

export function isUrl(content) {
8 changes: 8 additions & 0 deletions lib/galaxy/config/sample/file_sources_conf.yml.sample
Original file line number Diff line number Diff line change
@@ -238,3 +238,11 @@
access_token: ${user.preferences['onedata|access_token']}
onezone_domain: ${user.preferences['onedata|onezone_domain']}
disable_tls_certificate_validation: ${user.preferences['onedata|disable_tls_certificate_validation']}

- type: elabftw
id: elabftw
label: eLabFTW
doc: Import/export files from an eLabFTW instance.
api_key: ${user.user_vault.read_secret('preferences/elabftw/api_key')}
writable: true
endpoint: ${user.preferences['elabftw|endpoint']}
14 changes: 14 additions & 0 deletions lib/galaxy/config/sample/user_preferences_extra_conf.yml.sample
Original file line number Diff line number Diff line change
@@ -153,3 +153,17 @@ preferences:
type: boolean
required: False
value: False

# Used in file_sources_conf.yml
elabftw:
description: Your eLabFTW Integration Settings
inputs:
- name: api_key
label: API key
type: secret
store: vault # Requires setting up vault_config_file in your galaxy.yml
required: True
- name: endpoint
label: URL of the eLabFTW instance you want to access
type: text
required: True
933 changes: 933 additions & 0 deletions lib/galaxy/files/sources/elabftw.py

Large diffs are not rendered by default.

0 comments on commit af772b8

Please sign in to comment.