www_params.js 727 B

12345678910111213141516171819202122
  1. const params = {
  2. // Set this to true to enable the staff list
  3. SHOW_STAFF_LIST: false,
  4. // This function will be used to get the url for a student's photo. Set this to null to disable
  5. // the photo display entirely.
  6. get_photo_url: username => {
  7. const photo_root = [catsoop.url_root, catsoop.course, 'student_picture'].join('/');
  8. return `${photo_root}?username=${username}`;
  9. },
  10. // This function will be used to get the url for audio files. Set this to null to disable
  11. // audio entirely.
  12. get_audio_url: filename => {
  13. const audio_root = [catsoop.plugins.queue.url_root, 'audio'].join('/');
  14. return `${audio_root}/${filename}`;
  15. },
  16. };
  17. module.exports = params;