not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
6.9 KiB

  1. // Constants
  2. var constant = {};
  3. constant.sugarizerVersion = "1.2.0";
  4. constant.sizeOwner = 100;
  5. constant.sizeJournal = 40;
  6. constant.sizeEmpty = 50;
  7. constant.sizeSettings = 70;
  8. constant.sizeToolbar = 40;
  9. constant.sizeNeighbor = 40;
  10. constant.sizeNewUser = 150;
  11. constant.iconSpacingFactor = 1.1;
  12. constant.ringInitSpaceFactor = 2.2;
  13. constant.ringSpaceFactor = 1.3;
  14. constant.ringAdjustAngleFactor = 3.6;
  15. constant.ringAdjustSizeFactor = 0.9;
  16. constant.ringMinRadiusSize = 108;
  17. constant.initView = -1;
  18. constant.radialView = 0;
  19. constant.listView = 1;
  20. constant.journalView = 2;
  21. constant.neighborhoodView = 3;
  22. constant.viewNames = ['home_view', 'list_view', 'journal_view', 'neighborhood_view'];
  23. constant.journalLocal = 0;
  24. constant.journalRemotePrivate = 1;
  25. constant.journalRemoteShared = 2;
  26. constant.journalRemove = 3;
  27. constant.journalDevice = 4;
  28. constant.journalInitCount = 40;
  29. constant.journalStepCount = 10;
  30. constant.journalScrollLimit = 200;
  31. constant.listInitCount = 30;
  32. constant.listStepCount = 10;
  33. constant.listScrollLimit = 200;
  34. constant.timerUpdateNetwork = 1000;
  35. constant.timerBeforeTutorial = 500;
  36. constant.webAppType = 0; // thinClientType
  37. constant.appType = 1; // clientType
  38. constant.noServerMode = false;
  39. constant.staticInitActivitiesURL = "activities.json";
  40. constant.http = "http://";
  41. constant.https = "https://";
  42. constant.dynamicInitActivitiesURL = "/api/v1/activities/";
  43. constant.serverInformationURL = "/api/";
  44. constant.loginURL = "/auth/login/";
  45. constant.signupURL = "/auth/signup/";
  46. constant.initNetworkURL = "/api/v1/users/";
  47. constant.sendCloudURL = "/api/v1/journal/";
  48. constant.statsURL = "/api/v1/stats/";
  49. constant.filterJournalURL = "/filter/";
  50. constant.filterFieldURL = "/field/";
  51. constant.fieldMetadata = "metadata";
  52. constant.fieldText = "text";
  53. constant.defaultServer = constant.http + "server.sugarizer.org";
  54. constant.minPasswordSize = 4;
  55. constant.syncJournalLimit = 100;
  56. constant.pageJournalSize = 40;
  57. constant.minimumSizeDisplay = 1024;
  58. constant.minStorageSizePercent = 5;
  59. constant.iconSizeStandard = 55;
  60. constant.iconSizeList = 40;
  61. constant.iconSizeFavorite = 20;
  62. constant.iconSizeLargeFavorite = 40;
  63. constant.popupMarginLeft = 5;
  64. constant.popupMarginTop = -50;
  65. constant.timerPopupDuration = 1000;
  66. constant.touchToPopupDuration = 500;
  67. constant.maxPopupHistory = 5;
  68. constant.maxCollisionTry = 20;
  69. constant.wifiUpdateTime = 20000;
  70. constant.maxUserHistory = 3;
  71. constant.statPackageSize = 5;
  72. constant.statMaxLocalSize = 20;
  73. constant.timerBeforeClose = 1000;
  74. constant.emojis = [
  75. {"name": "dog", "value": "1F436", "letter": "a", "category": "animal"},
  76. {"name": "cat", "value": "1F431", "letter": "b", "category": "animal"},
  77. {"name": "cow", "value": "1F42E", "letter": "c", "category": "animal"},
  78. {"name": "horse", "value": "1F434", "letter": "d", "category": "animal"},
  79. {"name": "pig", "value": "1F437", "letter": "e", "category": "animal"},
  80. {"name": "mouse", "value": "1F42D", "letter": "f", "category": "animal"},
  81. {"name": "rabbit", "value": "1F430", "letter": "g", "category": "animal"},
  82. {"name": "bear", "value": "1F43B", "letter": "h", "category": "animal"},
  83. {"name": "chicken", "value": "1F414", "letter": "i", "category": "animal"},
  84. {"name": "fish", "value": "1F41F", "letter": "j", "category": "animal"},
  85. {"name": "smiling", "value": "1F60A", "letter": "k", "category": "emoticon"},
  86. {"name": "winking", "value": "1F609", "letter": "l", "category": "emoticon"},
  87. {"name": "angry", "value": "1F620", "letter": "m", "category": "emoticon"},
  88. {"name": "grinning", "value": "1F600", "letter": "n", "category": "emoticon"},
  89. {"name": "heart-eyes", "value": "1F60D", "letter": "o", "category": "emoticon"},
  90. {"name": "sunglasses", "value": "1F60E", "letter": "p", "category": "emoticon"},
  91. {"name": "pensive", "value": "1F614", "letter": "q", "category": "emoticon"},
  92. {"name": "astonished", "value": "1F632", "letter": "r", "category": "emoticon"},
  93. {"name": "crying", "value": "1F622", "letter": "s", "category": "emoticon"},
  94. {"name": "screaming", "value": "1F631", "letter": "t", "category": "emoticon"},
  95. {"name": "apple", "value": "1F34E", "letter": "u", "category": "food"},
  96. {"name": "banana", "value": "1F34C", "letter": "v", "category": "food"},
  97. {"name": "grapes", "value": "1F347", "letter": "w", "category": "food"},
  98. {"name": "cherry", "value": "1F352", "letter": "x", "category": "food"},
  99. {"name": "strawberry", "value": "1F353", "letter": "y", "category": "food"},
  100. {"name": "hamburger", "value": "1F354", "letter": "z", "category": "food"},
  101. {"name": "pizza", "value": "1F355", "letter": "0", "category": "food"},
  102. {"name": "cake", "value": "1F382", "letter": "1", "category": "food"},
  103. {"name": "cocktail", "value": "1F378", "letter": "2", "category": "food"},
  104. {"name": "coffee", "value": "2615", "letter": "3", "category": "food"},
  105. {"name": "soccer", "value": "26BD", "letter": "4", "category": "sport"},
  106. {"name": "baseball", "value": "26BE", "letter": "5", "category": "sport"},
  107. {"name": "basket", "value": "1F3C0", "letter": "6", "category": "sport"},
  108. {"name": "football", "value": "1F3C8", "letter": "7", "category": "sport"},
  109. {"name": "tennis", "value": "1F3BE", "letter": "8", "category": "sport"},
  110. {"name": "bowling", "value": "1F3B3", "letter": "9", "category": "sport"},
  111. {"name": "golf", "value": "26F3", "letter": "A", "category": "sport"},
  112. {"name": "target", "value": "1F3AF", "letter": "B", "category": "sport"},
  113. {"name": "skying", "value": "1F3BF", "letter": "C", "category": "sport"},
  114. {"name": "video", "value": "1F3AE", "letter": "D", "category": "sport"},
  115. {"name": "car", "value": "1F697", "letter": "E", "category": "travel"},
  116. {"name": "bicycle", "value": "1F6B2", "letter": "F", "category": "travel"},
  117. {"name": "train", "value": "1F685", "letter": "G", "category": "travel"},
  118. {"name": "airplane", "value": "2708", "letter": "H", "category": "travel"},
  119. {"name": "helicopter", "value": "1F681", "letter": "I", "category": "travel"},
  120. {"name": "boat", "value": "1F6A2", "letter": "J", "category": "travel"},
  121. {"name": "sailboat", "value": "26F5", "letter": "K", "category": "travel"},
  122. {"name": "bus", "value": "1F68C", "letter": "L", "category": "travel"},
  123. {"name": "tractor", "value": "1F69C", "letter": "M", "category": "travel"},
  124. {"name": "rocket", "value": "1F680", "letter": "N", "category": "travel"},
  125. {"name": "watch", "value": "231A", "letter": "O", "category": "things"},
  126. {"name": "gift", "value": "1F381", "letter": "P", "category": "things"},
  127. {"name": "trophey", "value": "1F3C6", "letter": "Q", "category": "things"},
  128. {"name": "computer", "value": "1F4BB", "letter": "R", "category": "things"},
  129. {"name": "television", "value": "1F4FA", "letter": "S", "category": "things"},
  130. {"name": "guitar", "value": "1F3B8", "letter": "T", "category": "things"},
  131. {"name": "book", "value": "1F4D6", "letter": "U", "category": "things"},
  132. {"name": "wrench", "value": "1F527", "letter": "V", "category": "things"},
  133. {"name": "telephone", "value": "260E", "letter": "W", "category": "things"},
  134. {"name": "camera", "value": "1F4F7", "letter": "X", "category": "things"}
  135. ]