API Docs for: 0.25.0
Show:

File: addon/const/service-links.js

  1. import config from 'ember-get-config';
  2.  
  3. /**
  4. * @module ember-osf
  5. * @submodule const
  6. */
  7.  
  8. /**
  9. * @class service-links
  10. */
  11.  
  12. /**
  13. * Provides some common osf links in a central location
  14. * @property service-links
  15. * @final
  16. * @type {Object}
  17. */
  18.  
  19. const osfUrl = config.OSF.url;
  20. const serviceLinks = {
  21. exploreActivity: `${osfUrl}explore/activity/`,
  22. meetingsHome: `${osfUrl}meetings/`,
  23. myPreprints: `${osfUrl}myprojects/#preprints`,
  24. myProjects: `${osfUrl}myprojects/`,
  25. myQuickFiles: `${osfUrl}quickfiles/`,
  26. osfHome: osfUrl,
  27. osfSupport: `${osfUrl}support/`,
  28. preprintsDiscover: `${osfUrl}preprints/discover/`,
  29. preprintsHome: `${osfUrl}preprints/`,
  30. preprintsSubmit: `${osfUrl}preprints/submit/`,
  31. preprintsSupport: 'https://openscience.zendesk.com/hc/en-us/categories/360001530554-Preprints',
  32. profile: `${osfUrl}profile/`,
  33. registriesDiscover: `${osfUrl}registries/discover/`,
  34. registriesHome: `${osfUrl}registries/`,
  35. registriesSupport: 'https://openscience.zendesk.com/hc/en-us/categories/360001550953-Registrations',
  36. search: `${osfUrl}search/`,
  37. settings: `${osfUrl}settings/`,
  38. settingsNotifications: `${osfUrl}settings/notifications/`,
  39. reviewsHome: `${osfUrl}reviews/`,
  40. institutionsLanding: `${osfUrl}institutions/`,
  41. };
  42.  
  43.  
  44. /**
  45. * @class osf-services
  46. */
  47.  
  48. /**
  49. * Provides list of OSF services and their links
  50. * @property osfServices
  51. * @final
  52. * @type {Array}
  53. */
  54.  
  55. const osfServices = [
  56. {
  57. name: 'HOME',
  58. url: serviceLinks.osfHome,
  59. },
  60. {
  61. name: 'PREPRINTS',
  62. url: serviceLinks.preprintsHome
  63. },
  64. {
  65. name: 'REGISTRIES',
  66. url: serviceLinks.registriesHome
  67. },
  68. {
  69. name: 'MEETINGS',
  70. url: serviceLinks.meetingsHome
  71. },
  72. {
  73. name: 'INSTITUTIONS',
  74. url: serviceLinks.institutionsLanding,
  75. }
  76. ];
  77.  
  78. export {
  79. serviceLinks,
  80. osfServices
  81. };
  82.