Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

54 строки
850 B

  1. define([
  2. ], function (
  3. ) {
  4. var empty = [];
  5. var regular = ['1.0', '1.2', '1.6'];
  6. var mtx = [
  7. ['10.0', '10.1', '10.2', '10.3', '10.4'],
  8. ['11.0', '11.1', '11.2', '11.3', '11.4']
  9. ];
  10. var pA = [];
  11. var pB = [];
  12. var pC = [];
  13. var pD = [];
  14. mtx.forEach(function (m) {
  15. m.forEach(function (s, i) {
  16. var has = [pD];
  17. if (i <= 2)
  18. has.push(pC);
  19. if (i <= 1)
  20. has.push(pB);
  21. if (i == 0)
  22. has.push(pA);
  23. has.forEach(function (h) {
  24. h.push(s);
  25. });
  26. });
  27. });
  28. return [
  29. //Regular Player
  30. empty.concat(...regular), [],
  31. [],
  32. [],
  33. [],
  34. //Moderator
  35. empty.concat(...regular),
  36. //Patron Level 1
  37. empty.concat(...regular, ...pA),
  38. //Patron Level 2
  39. empty.concat(...regular, ...pB),
  40. //Patron Level 3
  41. empty.concat(...regular, ...pC),
  42. //Patron Level 4
  43. empty.concat(...regular, ...pD),
  44. //Admin
  45. ['*']
  46. ];
  47. });