Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.23 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////////////////
  2. // //
  3. // This is a generated file. You can view the original //
  4. // source in your browser if your browser supports source maps. //
  5. // Source maps are supported by all recent versions of Chrome, Safari, //
  6. // and Firefox, and by Internet Explorer 11. //
  7. // //
  8. //////////////////////////////////////////////////////////////////////////
  9.  
  10.  
  11. (function () {
  12.  
  13. /* Imports */
  14. var Meteor = Package.meteor.Meteor;
  15. var Redux = Package['widget.lib'].Redux;
  16. var ReactRedux = Package['widget.lib'].ReactRedux;
  17. var ReduxDevTools = Package['widget.lib'].ReduxDevTools;
  18. var ReactReduxDevTools = Package['widget.lib'].ReactReduxDevTools;
  19. var ReactReduxThunk = Package['widget.lib'].ReactReduxThunk;
  20. var Provider = Package['widget.lib'].Provider;
  21. var DevTools = Package['widget.lib'].DevTools;
  22. var DebugPanel = Package['widget.lib'].DebugPanel;
  23. var LogMonitor = Package['widget.lib'].LogMonitor;
  24. var connect = Package['widget.lib'].connect;
  25. var ReactIntl = Package['widget.lib'].ReactIntl;
  26. var IntlMixin = Package['widget.lib'].IntlMixin;
  27. var objectAssign = Package['maxharris9:object-assign'].objectAssign;
  28. var trackViewer = Package['skinnygeek1010:flux-helpers'].trackViewer;
  29. var trackCollection = Package['skinnygeek1010:flux-helpers'].trackCollection;
  30. var React = Package['react-runtime'].React;
  31. var ReactDOM = Package['react-runtime'].ReactDOM;
  32. var ReactMeteorData = Package['react-meteor-data'].ReactMeteorData;
  33. var babelHelpers = Package['babel-runtime'].babelHelpers;
  34.  
  35. /* Package-scope variables */
  36. var HelppierApp;
  37.  
  38. (function(){
  39.  
  40. //////////////////////////////////////////////////////////////////////////////////////////////////////
  41. // //
  42. // packages/base/client/HelppierApp/actions/actions.jsx //
  43. // //
  44. //////////////////////////////////////////////////////////////////////////////////////////////////////
  45. //
  46. // action creators are functions that take a param and return //
  47. // an 'action' that is consumed by a reducer. This may seem like //
  48. // unneeded boilerplate but it's **really** nice to have a file //
  49. // with *all* possible ways to mutate the state of the app. //
  50. //
  51. HelppierApp.Actions = {}; // 6
  52. //
  53. // Hash that contains action names. //
  54. HelppierApp.Actions.CONST = {}; // 9
  55. //
  56. console.log("[App] init actions."); // 11
  57. //////////////////////////////////////////////////////////////////////////////////////////////////////
  58.  
  59. }).call(this);
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. (function(){
  67.  
  68. //////////////////////////////////////////////////////////////////////////////////////////////////////
  69. // //
  70. // packages/base/client/HelppierApp/actions/_start.jsx //
  71. // //
  72. //////////////////////////////////////////////////////////////////////////////////////////////////////
  73. //
  74. /** //
  75. * @summary Create main app object that will be used throughout the application. //
  76. * @locus client side //
  77. @instancename HelppierApp //
  78. */ //
  79. HelppierApp = {}; // 6
  80. HelppierApp.State = {}; // 7
  81. //////////////////////////////////////////////////////////////////////////////////////////////////////
  82.  
  83. }).call(this);
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. (function(){
  91.  
  92. //////////////////////////////////////////////////////////////////////////////////////////////////////
  93. // //
  94. // packages/base/client/HelppierApp/components/components.jsx //
  95. // //
  96. //////////////////////////////////////////////////////////////////////////////////////////////////////
  97. //
  98. HelppierApp.Components = {}; // 1
  99. HelppierApp.ComponentsNames = {}; // 2
  100. //////////////////////////////////////////////////////////////////////////////////////////////////////
  101.  
  102. }).call(this);
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109. (function(){
  110.  
  111. //////////////////////////////////////////////////////////////////////////////////////////////////////
  112. // //
  113. // packages/base/client/HelppierApp/properties/properties.jsx //
  114. // //
  115. //////////////////////////////////////////////////////////////////////////////////////////////////////
  116. //
  117. HelppierApp.Properties = {}; // 1
  118. //////////////////////////////////////////////////////////////////////////////////////////////////////
  119.  
  120. }).call(this);
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. (function(){
  128.  
  129. //////////////////////////////////////////////////////////////////////////////////////////////////////
  130. // //
  131. // packages/base/client/HelppierApp/reducers/reducers.jsx //
  132. // //
  133. //////////////////////////////////////////////////////////////////////////////////////////////////////
  134. //
  135. HelppierApp.Reducers = {}; // 1
  136. HelppierApp.Reducers.mapping = {}; // 2
  137. //
  138. // helper to *copy* old state and merge new data with it //
  139. HelppierApp.Reducers.merge = function (oldState, newState) { // 5
  140. return _.extend({}, oldState, newState); // 6
  141. }; //
  142. //////////////////////////////////////////////////////////////////////////////////////////////////////
  143.  
  144. }).call(this);
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151. (function(){
  152.  
  153. //////////////////////////////////////////////////////////////////////////////////////////////////////
  154. // //
  155. // packages/base/client/HelppierApp/roles/roles.jsx //
  156. // //
  157. //////////////////////////////////////////////////////////////////////////////////////////////////////
  158. //
  159. HelppierApp.Roles = {}; // 1
  160. //////////////////////////////////////////////////////////////////////////////////////////////////////
  161.  
  162. }).call(this);
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. (function(){
  170.  
  171. //////////////////////////////////////////////////////////////////////////////////////////////////////
  172. // //
  173. // packages/base/client/HelppierApp/start/_startOLD.jsx //
  174. // //
  175. //////////////////////////////////////////////////////////////////////////////////////////////////////
  176. //
  177. /** //
  178. * @summary Create main app object that will be used throughout the application. //
  179. * @locus client side //
  180. @instancename HelppierApp //
  181. */ //
  182. HelppierApp = {}; // 6
  183. HelppierApp.State = {}; // 7
  184. //////////////////////////////////////////////////////////////////////////////////////////////////////
  185.  
  186. }).call(this);
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193. (function(){
  194.  
  195. //////////////////////////////////////////////////////////////////////////////////////////////////////
  196. // //
  197. // packages/base/client/HelppierApp/storage/astorage.jsx //
  198. // //
  199. //////////////////////////////////////////////////////////////////////////////////////////////////////
  200. //
  201. // Storage Singleton. //
  202. HelppierApp.Storage = { // 2
  203. getPrefix: function () { // 3
  204. var storagePrefix = "Helppier."; // 4
  205. return storagePrefix; // 5
  206. }, //
  207. getStorage: function () { // 7
  208. return localStorage; // 8
  209. }, //
  210. get: function (key) { // 10
  211. return HelppierApp.Storage.getStorage().getItem(key); // 11
  212. }, //
  213. set: function (key, value) { // 13
  214. // TODO: Validate if key is in the 'CONST' object. //
  215. return HelppierApp.Storage.getStorage().setItem(key, value); // 15
  216. }, //
  217. resetKeys: function () { // 17
  218. var storagePrefix = HelppierApp.Storage.getPrefix(); // 18
  219. // TODO: Iterate 'CONST' //
  220. HelppierApp.Storage.getStorage().removeItem(HelppierApp.Storage.CONST.USER_KEY); // 20
  221. HelppierApp.Storage.getStorage().removeItem(HelppierApp.Storage.CONST.LOGIN_TOKEN_KEY); // 21
  222. HelppierApp.Storage.getStorage().removeItem(HelppierApp.Storage.CONST.LOGIN_TOKEN_EXPIRES_KEY);
  223. } //
  224. }; //
  225. //
  226. HelppierApp.Storage.CONST = { // 26
  227. USER_KEY: HelppierApp.Storage.getPrefix() + "Meteor.userId", // 27
  228. LOGIN_TOKEN_KEY: HelppierApp.Storage.getPrefix() + "Meteor.loginToken", // 28
  229. LOGIN_TOKEN_EXPIRES_KEY: HelppierApp.Storage.getPrefix() + "Meteor.loginTokenExpires" // 29
  230. }; //
  231. //////////////////////////////////////////////////////////////////////////////////////////////////////
  232.  
  233. }).call(this);
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240. (function(){
  241.  
  242. //////////////////////////////////////////////////////////////////////////////////////////////////////
  243. // //
  244. // packages/base/client/HelppierApp/tools/tools.jsx //
  245. // //
  246. //////////////////////////////////////////////////////////////////////////////////////////////////////
  247. //
  248. // Tools hash where all tools neeed to register. //
  249. // every tool needs to have a name, an entry point for the toolbox and the feature area. //
  250. var toolsHash = []; // 3
  251. //
  252. // Tools Singleton object. //
  253. HelppierApp.Tools = { // 6
  254. getAll: function () { // 7
  255. return toolsHash; // 8
  256. }, //
  257. get: function (name) { // 10
  258. var index = this.getIndex(name); // 11
  259. if (index > -1) { // 12
  260. return toolsHash[index]; // 13
  261. } //
  262. return null; // 15
  263. }, //
  264. getIndex: function (name) { // 17
  265. return toolsHash.findIndex(function (x) { // 18
  266. return x.getName() === name; //
  267. }); //
  268. }, //
  269. add: function (tool) { // 20
  270. var name = tool.getName(); // 21
  271. if (typeof name == "undefined" || name == null) {} // 22
  272. // TODO: send error //
  273. //
  274. // TODO: Do the same for the other mandatory fields. //
  275. // TODO: dispatch 'add tool' action. //
  276. toolsHash.push(tool); // 27
  277. }, //
  278. remove: function (name) { // 29
  279. // TODO: dispatch 'remove tool' action. //
  280. var index = this.getIndex(name); // 31
  281. if (index > -1) { // 32
  282. delete toolsHash[name]; // 33
  283. } //
  284. } //
  285. }; //
  286. //////////////////////////////////////////////////////////////////////////////////////////////////////
  287.  
  288. }).call(this);
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295. (function(){
  296.  
  297. //////////////////////////////////////////////////////////////////////////////////////////////////////
  298. // //
  299. // packages/base/client/HelppierApp/translation/_start.jsx //
  300. // //
  301. //////////////////////////////////////////////////////////////////////////////////////////////////////
  302. //
  303. HelppierApp.Translations = {}; // 1
  304. //////////////////////////////////////////////////////////////////////////////////////////////////////
  305.  
  306. }).call(this);
  307.  
  308.  
  309. /* Exports */
  310. if (typeof Package === 'undefined') Package = {};
  311. Package.base = {
  312. HelppierApp: HelppierApp
  313. };
  314.  
  315. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement