IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20 rindas
767B

  1. import arvadosTypeName from 'arvados-type-name';
  2. function urlForObject(item) {
  3. let objectType = arvadosTypeName(item.uuid.split('-')[1]);
  4. if (objectType === 'user')
  5. return ('/browse/' + item.uuid);
  6. else if (objectType === 'group' && item.group_class === 'project')
  7. return ('/browse/' + item.uuid);
  8. else if (objectType === 'container_request')
  9. return ('/process/' + item.uuid);
  10. else if (objectType === 'workflow')
  11. return ('https://wb.arkau.roche.com/workflows/' + item.uuid);
  12. else if (objectType === 'collection')
  13. return ('https://wb.arkau.roche.com/collections/' + item.uuid);
  14. else if (objectType === 'container')
  15. return ('https://wb.arkau.roche.com/containers/' + item.uuid);
  16. }
  17. export default urlForObject;