remetric 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile +6 -0
  4. data/{MIT-LICENSE → LICENSE.txt} +3 -1
  5. data/README.md +49 -0
  6. data/Rakefile +1 -32
  7. data/lib/remetric.rb +43 -6
  8. data/lib/remetric/version.rb +2 -2
  9. data/remetric.gemspec +23 -0
  10. metadata +21 -461
  11. data/README.rdoc +0 -10
  12. data/app/assets/images/remetric/loading_logo.gif +0 -0
  13. data/app/assets/images/remetric/logo.png +0 -0
  14. data/app/assets/javascripts/remetric/app.js.coffee +0 -23
  15. data/app/assets/javascripts/remetric/application.js +0 -16
  16. data/app/assets/javascripts/remetric/dialog.js.coffee +0 -21
  17. data/app/assets/javascripts/remetric/messages.js.coffee +0 -21
  18. data/app/assets/javascripts/remetric/search.js.coffee +0 -8
  19. data/app/assets/javascripts/remetric/window.js.coffee +0 -12
  20. data/app/assets/stylesheets/remetric/app.css.scss +0 -103
  21. data/app/assets/stylesheets/remetric/application.css +0 -16
  22. data/app/assets/stylesheets/remetric/dialog.css.scss +0 -100
  23. data/app/assets/stylesheets/remetric/nav.css.scss +0 -57
  24. data/app/assets/stylesheets/remetric/reset.css +0 -61
  25. data/app/assets/stylesheets/remetric/search.css.scss +0 -31
  26. data/app/assets/stylesheets/remetric/tables.css.scss +0 -25
  27. data/app/controllers/remetric/application_controller.rb +0 -9
  28. data/app/controllers/remetric/dashboard_controller.rb +0 -11
  29. data/app/controllers/remetric/events_controller.rb +0 -42
  30. data/app/controllers/remetric/trackables_controller.rb +0 -91
  31. data/app/models/remetric/event.rb +0 -68
  32. data/app/models/remetric/trackable.rb +0 -30
  33. data/app/views/layouts/remetric/application.html.erb +0 -29
  34. data/app/views/remetric/application/_footer.html.erb +0 -17
  35. data/app/views/remetric/application/_nav.html.erb +0 -21
  36. data/app/views/remetric/dashboard/index.html.erb +0 -1
  37. data/app/views/remetric/dashboard/settings.html.erb +0 -8
  38. data/app/views/remetric/events/_event.html.erb +0 -7
  39. data/app/views/remetric/events/index.html.erb +0 -25
  40. data/app/views/remetric/events/show.html.erb +0 -7
  41. data/app/views/remetric/trackables/_form.html.erb +0 -17
  42. data/app/views/remetric/trackables/_trackable.html.erb +0 -9
  43. data/app/views/remetric/trackables/edit.html.erb +0 -6
  44. data/app/views/remetric/trackables/index.html.erb +0 -68
  45. data/app/views/remetric/trackables/index.js.erb +0 -3
  46. data/app/views/remetric/trackables/new.html.erb +0 -5
  47. data/app/views/remetric/trackables/show.html.erb +0 -7
  48. data/config/routes.rb +0 -12
  49. data/db/migrate/20140412130825_create_remetric_people.rb +0 -8
  50. data/db/migrate/20140412174234_create_remetric_trackables.rb +0 -8
  51. data/lib/remetric/engine.rb +0 -25
  52. data/lib/tasks/remetric_tasks.rake +0 -4
  53. data/test/dummy/README.rdoc +0 -28
  54. data/test/dummy/Rakefile +0 -6
  55. data/test/dummy/app/assets/javascripts/application.js +0 -13
  56. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  57. data/test/dummy/app/assets/stylesheets/scaffold.css +0 -56
  58. data/test/dummy/app/controllers/application_controller.rb +0 -5
  59. data/test/dummy/app/helpers/application_helper.rb +0 -2
  60. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  61. data/test/dummy/bin/bundle +0 -3
  62. data/test/dummy/bin/rails +0 -4
  63. data/test/dummy/bin/rake +0 -4
  64. data/test/dummy/config.ru +0 -4
  65. data/test/dummy/config/application.rb +0 -23
  66. data/test/dummy/config/boot.rb +0 -5
  67. data/test/dummy/config/database.yml +0 -24
  68. data/test/dummy/config/environment.rb +0 -5
  69. data/test/dummy/config/environments/development.rb +0 -34
  70. data/test/dummy/config/environments/production.rb +0 -80
  71. data/test/dummy/config/environments/test.rb +0 -39
  72. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  73. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  74. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  75. data/test/dummy/config/initializers/inflections.rb +0 -16
  76. data/test/dummy/config/initializers/mime_types.rb +0 -4
  77. data/test/dummy/config/initializers/remetric.rb +0 -15
  78. data/test/dummy/config/initializers/session_store.rb +0 -3
  79. data/test/dummy/config/initializers/wrap_parameters.rb +0 -9
  80. data/test/dummy/config/locales/en.yml +0 -23
  81. data/test/dummy/config/mongoid.yml +0 -69
  82. data/test/dummy/config/routes.rb +0 -4
  83. data/test/dummy/config/secrets.yml +0 -22
  84. data/test/dummy/db/schema.rb +0 -20
  85. data/test/dummy/log/development.log +0 -77955
  86. data/test/dummy/log/test.log +0 -479
  87. data/test/dummy/public/404.html +0 -67
  88. data/test/dummy/public/422.html +0 -67
  89. data/test/dummy/public/500.html +0 -66
  90. data/test/dummy/public/favicon.ico +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sass/b3d404bff8ad98818c7006bbb375fc1377b98253/app.css.scssc +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sass/b3d404bff8ad98818c7006bbb375fc1377b98253/dialog.css.scssc +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sass/b3d404bff8ad98818c7006bbb375fc1377b98253/nav.css.scssc +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sass/b3d404bff8ad98818c7006bbb375fc1377b98253/search.css.scssc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sass/b3d404bff8ad98818c7006bbb375fc1377b98253/tables.css.scssc +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sass/b3d404bff8ad98818c7006bbb375fc1377b98253/topbar.css.scssc +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sass/ef6ae779781469a1465ad72c03c0938d2b0957c7/app.css.scssc +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sass/ef6ae779781469a1465ad72c03c0938d2b0957c7/nav.css.scssc +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sass/ef6ae779781469a1465ad72c03c0938d2b0957c7/tables.css.scssc +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/036811149d0b235dc6a5d390b4cb7798 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/06044aa6fe90933931b87690cac756bb +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/06523dcd5742577ca664780dccd6580d +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/06cc1493872f7a7a686e7ceb15dc1edf +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/08489a22fa3cea1f692673a79aeccc4d +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/0d0cd4d3626b8b7af859b848bb261b3b +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/0ff64eb5301cc3a431a373318ef77ba9 +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/10777ee134d29c9933492eeb5f6a9a2e +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/11a53c34e9d924ddcee8311e550e2a6a +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/129284b0ab310e7cd9e25d84f9ee36ce +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/14ff5f14de79dc5534dda36eed0dc845 +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/16bc847779945aa181449f07c9100ce4 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/1bc5ddb997a9674aa1ecf3596bcdea3b +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/1f7d448c7dd65aed702d885795263877 +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/220d17e65184e9dc17578233e30285fc +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/22359219f7d258ed678aa744625a1ff7 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/23666533c8ff01f445bafdb2f1f02f86 +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/27aa9a37df2520f26820676eed4f3700 +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/281c6ce161cccf80f16cdb17ab4418cd +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/29cf8dc04f0a517a0942324f7b779454 +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/2c11af377df23e6b6cdb35d040ce2e11 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/2ca8c93fa70493848ec54ace98c8a74e +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/2d61509baca84dc502058ddd3248ec90 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/2d6d573978d9d81e29432df0ea46d478 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/317da10b37ae905e1542a67d23559e69 +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/32415ecae858572a5f3f19657e9fb686 +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/396258e541c9223b9e7125c90bb3858b +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/399fe27d4c9f18008f13282aebe13bce +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/39f8aac6fdfbd8e63ad64acfff6f11f6 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/3b016f440de7952117708d55661662d6 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/3ca240f453c6ec94f2e9c5a27d7001f8 +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/3e5365e32d57e4ac856f716b1cd3459e +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/3f9ed1aa1e459fc046192c14ed163a6c +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/41444136ce4142d1170281f949577191 +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/42c1ebcb98209b8dd066f44a6f6e91a4 +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/43a4bb43dd1715ec2eb67640a4988b50 +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/45e79781056c40dc5cb1ed347f77706f +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/507aa6d1fad718f18dac9753b23c1134 +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/53e9204c5b6f9c911b53e6e7094c70cf +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/559c497c5bc5a3b0d6424b06c25fd993 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/5e0f4b04d24167f4992c12c5debd3d8c +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/5ed4dfea5ce8c0191e138a49420dac41 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/61ae00e63e21dfb8ebec7b02b5dd422b +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/6690911b74d6cd9a2551a8e7712f5ba4 +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/698af75cb266cf67de8b35c5fbb87424 +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/6d872803bfb95566f660e9798b3cc34c +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/6e15f97a017c405492d9fc87477ad721 +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/6e956f97a9713501d948b2d083a4a020 +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/6febf106bc4ae38f75f0887d1592de37 +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/702c0722c0c5b287d25a402f7ee117f0 +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/7064b9323802e4196822328ae83e9628 +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/71e500b75cfd9b76b02bf67e12b3c833 +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/72419c0eb8026ff0ce7f259890db2503 +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/724b47e2fc60f39379329a90781df725 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/726ba6daceacbfd72d591ee2b20f55d0 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/730529e519077e2969563e5e07f4fc00 +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/741b2378e393e0588e5f82ab58a24082 +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/76f4fb7efdd4f6c2acd738e55ea07d2f +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/7a29d789acb5ef53d4dc3e9a2a6cc762 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/7b6dd538f069c113f1f9c8e76c9db372 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/808bfcd132560482630ba70dc6e282c8 +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/8dfcdf65937789aca525d56adf1a4656 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/9093f4594b2a064c24fc65f610e92e29 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/94b993ea74b11163bd3bd728ae31d051 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/9538978dc1870cad6434d9c702a08d78 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/9b1a83d18767d300d400470a03bc4f7b +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/9b4fb1df1100690f915b3c08dc3b6e12 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/9fe904495c3e56e07f56a2234def4ce3 +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/a095af3c7e60e112ec29d7629c8af830 +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/a14ef177cbf5fcfae6e7eaac56e034b9 +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/a31bbb879540ba0d456b98d902190384 +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/a3e3e63eb8abde2bd1dd81e850cf80e1 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/a52f913105047ed83d060e708c394961 +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/a776b0cf1650a70054f5da91283fecc4 +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/b0785de9897c1eadef94fdaf024915f9 +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/b49c711ecdbc2fff4f119705e2e53e4d +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/bc613cfb0adcb20734431cf9b9d07141 +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/bdae695e1d71988ce570d79394f0247e +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/c195f58c840031e93dcf040048d5386b +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/c2a902f3266b677f365fc3ce5a7bd820 +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/c7bd9cf81453a7911957b783ec6ecf5c +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/c8bb4469accab5fc441d923464873c47 +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/c9ab7f296b30469ef9170c3ab336cdf4 +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/c9bd5507d8142fbe02e5034485314999 +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/cb13c3985fc61edc836f19c9fd5f9a01 +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/cbf388d3208ecbd03a788db6891d2781 +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/cc6c1b77f34a8e580980b31eb35b441b +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/cc8e5fb7cbde151721ea55b7ad2d35dc +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/cca380662516cb1daca88d3f2c9a3b9e +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/d0796c18ca312aaa9f18fcf1091835a6 +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/d15eb2bca16eb0f31c2089c5f397c5e2 +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/da0a32f5a80c68a1464a23861b172ea8 +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/db25052d96407ff539ebf9992cc5ba53 +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/dbef3e25a00efadb8ebc056530ea9c77 +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/dfdd2dcf54d51f737c704e8bb3d74997 +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/e6ca11d406eb8e17f4bd3db3c73117d5 +0 -0
  196. data/test/dummy/tmp/cache/assets/development/sprockets/e8e21ae1f6a7630e209b12d622cb6581 +0 -0
  197. data/test/dummy/tmp/cache/assets/development/sprockets/ecdddb465b19971df1d705261890c12e +0 -0
  198. data/test/dummy/tmp/cache/assets/development/sprockets/eec9cdbbe1ffd8783ec43c910318e77a +0 -0
  199. data/test/dummy/tmp/cache/assets/development/sprockets/ef1ae4e5869278227bd877dc5b9c1ed1 +0 -0
  200. data/test/dummy/tmp/cache/assets/development/sprockets/ef55b424d975f62aa8ace6d8e6d1420b +0 -0
  201. data/test/dummy/tmp/cache/assets/development/sprockets/f58a02ac7bddf274a99d091aff62f179 +0 -0
  202. data/test/dummy/tmp/cache/assets/development/sprockets/f703d7f63b064f4c9363a37b6c8f7102 +0 -0
  203. data/test/dummy/tmp/cache/assets/development/sprockets/fa73f084d9c960b3822e9a670eddd6e9 +0 -0
  204. data/test/dummy/tmp/cache/assets/development/sprockets/fad64d3cc1d38839f623367e9e8bdab7 +0 -0
  205. data/test/dummy/tmp/cache/assets/development/sprockets/ff91cdc7d41ec915a2db3524da4c962f +0 -0
  206. data/test/fixtures/remetric/people.yml +0 -11
  207. data/test/fixtures/remetric/trackables.yml +0 -11
  208. data/test/integration/track_test.rb +0 -13
  209. data/test/models/remetric/event_test.rb +0 -17
  210. data/test/remetric_test.rb +0 -7
  211. data/test/test_helper.rb +0 -15
@@ -1,10 +0,0 @@
1
- = Remetric
2
-
3
- 1. gem 'remetric'
4
- 2. gem "mongoid", '~> 4.0.0.beta1', github: 'mongoid/mongoid'
5
- 3. bundle install
6
- 4. remetric.rb
7
- 5. mongoid.yml
8
-
9
- == Attributes
10
- Defaults to `.attributes`, but uses `remetric_attributes` if available.
@@ -1,23 +0,0 @@
1
- @Remetric ||= {}
2
-
3
- @Remetric.unload = ->
4
- $("#loading").show()
5
-
6
- @Remetric.load = ->
7
- $(window).resize()
8
-
9
- $(".table").on "click", "td", (e) ->
10
- unless $(e.target).is("input[type='checkbox']")
11
- checkbox = $(this).find("input[type='checkbox']")
12
- checkbox.prop "checked", !checkbox.prop("checked")
13
-
14
- $ ->
15
- Remetric.dialog.events()
16
- Remetric.messages.events()
17
- Remetric.search.events()
18
-
19
- $(window).resize ->
20
- Remetric.window()
21
-
22
- document.addEventListener "page:fetch", Remetric.unload
23
- document.addEventListener "page:change", Remetric.load
@@ -1,16 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require turbolinks
16
- //= require_tree .
@@ -1,21 +0,0 @@
1
- @Remetric ||= {}
2
-
3
- @Remetric.dialog =
4
-
5
- events: ->
6
- $(document).on "click", "#dialog_overlay, .close_dialog", ->
7
- # if !$("#send_message:visible").length || confirm "You will lose your current changes. Are you sure you want to continue?"
8
- Remetric.dialog.close()
9
- false
10
-
11
- $(document).on "click", ".open_dialog", ->
12
- dialog = $(this).data("dialog")
13
- Remetric.dialog.open dialog
14
- false
15
-
16
- open: (dialog) ->
17
- $("#dialog_overlay, ##{dialog}").fadeIn 100
18
- Remetric.window()
19
-
20
- close: ->
21
- $("#dialog_overlay, .dialog").fadeOut 100
@@ -1,21 +0,0 @@
1
- @Remetric ||= {}
2
-
3
- @Remetric.messages =
4
-
5
- events: ->
6
- $(document).on "click", ".open_send_message", ->
7
- trackable_ids = []
8
- $(".trackable_checkbox:checked").each ->
9
- trackable_ids.push this.value
10
-
11
- count = trackable_ids.length
12
- count_word = if count == 1 then "Contact" else "Contacts"
13
-
14
- if count == 0
15
- alert "Please choose at least 1 contact."
16
- else
17
- $("#message_trackable_ids").val trackable_ids.join()
18
- $("#to").val "#{count} #{count_word}"
19
- Remetric.dialog.open "send_message"
20
-
21
- false
@@ -1,8 +0,0 @@
1
- @Remetric ||= {}
2
-
3
- @Remetric.search =
4
-
5
- events: ->
6
- $(document).on "submit", "#quick_search", ->
7
- $(this).find(".no_loading").hide()
8
- $(this).find(".loading").show()
@@ -1,12 +0,0 @@
1
- @Remetric ||= {}
2
-
3
- @Remetric.window = ->
4
- if $("#new_message:visible").length
5
- window_height = $(window).height()
6
- top_margin = 100
7
- bottom_margin = 100
8
- to_height = 43
9
- subject_height = 43
10
- h1_height = 52
11
- new_height = window_height - top_margin - bottom_margin - to_height - subject_height - h1_height
12
- $("#message_body").css "height", new_height
@@ -1,103 +0,0 @@
1
- body {
2
- font-family: Helvetica, Arial, Sans Serif;
3
- font-weight: 300;
4
- font-size: 15px;
5
- }
6
-
7
- a {
8
- color: #8F000C;
9
- font-weight: bold;
10
- }
11
-
12
- h1 {
13
- font-size: 32px;
14
- line-height: 44px;
15
- margin-bottom: 20px;
16
- }
17
-
18
- input[type="text"] {
19
- font-family: Helvetica, Arial, Sans Serif;
20
- font-size: 15px;
21
- line-height: 22px;
22
- padding: 5px 10px;
23
- border: 1px solid #ccc;
24
- border-radius: 4px;
25
- outline: none;
26
- resize: none;
27
- }
28
-
29
- button {
30
- font-family: Helvetica, Arial, Sans Serif;
31
- border-radius: 4px;
32
- border: 0;
33
- background: #eee;
34
- color: #777;
35
- font-size: 15px;
36
- line-height: 22px;
37
- font-weight: 300;
38
- padding: 6px 20px;
39
- cursor: pointer;
40
- vertical-align: top;
41
- outline: none;
42
- resize: none;
43
- }
44
-
45
- .clear {
46
- clear: both;
47
- }
48
-
49
- .float_left {
50
- float: left;
51
- }
52
-
53
- .float_right {
54
- float: right;
55
- }
56
-
57
- .align_center {
58
- text-align: center;
59
- }
60
-
61
- .wide_container {
62
- width: 980px;
63
- margin: 0 auto;
64
- padding: 0px 10px;
65
- }
66
-
67
- #yield {
68
- min-height: 600px;
69
-
70
- .nav {
71
- float: right;
72
-
73
- li {
74
- float: left;
75
- margin-left: 5px;
76
-
77
- a {
78
- display: block;
79
- background: #eee;
80
- padding: 10px 20px;
81
- color: #777;
82
- font-weight: 300;
83
- }
84
- }
85
- }
86
- }
87
-
88
- #footer {
89
- background: #eee;
90
- border-top: 1px solid #ccc;
91
- padding: 20px 0px 50px 0px;
92
- font-size: 13px;
93
- color: #777;
94
-
95
- a {
96
- font-weight: 300;
97
- color: inherit;
98
-
99
- &:hover {
100
- color: #8F000C;
101
- }
102
- }
103
- }
@@ -1,16 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require remetric/reset
14
- *= require_tree .
15
- *= require_self
16
- */
@@ -1,100 +0,0 @@
1
- #dialog_overlay {
2
- display: none;
3
- background: #000;
4
- background: rgba(0, 0, 0, 0.2);
5
- z-index: 999;
6
- position: fixed;
7
- top: 0;
8
- left: 0;
9
- bottom: 0;
10
- right: 0;
11
- }
12
-
13
- .dialog {
14
- display: none;
15
- background: #fff;
16
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
17
- z-index: 1000;
18
- position: fixed;
19
- top: 100px;
20
- bottom: 100px;
21
- left: 50%;
22
- width: 640px;
23
- margin-left: -320px;
24
-
25
- h1 {
26
- background: #8F000C;
27
- color: #fff;
28
- font-size: 24px;
29
- line-height: 32px;
30
- padding: 10px 20px;
31
- margin: 0;
32
- box-shadow: inset 0 -7px 7px rgba(0, 0, 0, 0.1);
33
- }
34
-
35
- .close {
36
- float: right;
37
- color: #fff;
38
- font-weight: 300;
39
- font-size: 24px;
40
- line-height: 32px;
41
- padding: 10px 20px;
42
-
43
- &:hover {
44
- background: rgba(255, 255, 255, 0.1);
45
- }
46
- }
47
-
48
- #new_message {
49
- input[type="text"], textarea, button {
50
- font-family: Helvetica Neue, Helvetica, Arial, Sans Serif;
51
- }
52
-
53
- input[type="text"], textarea {
54
- font-size: 18px;
55
- line-height: 24px;
56
- padding: 9px;
57
- border: 0;
58
- margin: 0;
59
- width: 100%;
60
- outline: none;
61
- resize: none;
62
- border-radius: 0;
63
- }
64
-
65
- textarea {
66
- height: 200px;
67
- padding-bottom: 50px;
68
- }
69
-
70
- #message_trackable_ids {
71
- display: none;
72
- }
73
-
74
- input[type="text"] {
75
- padding-left: 100px;
76
- border-bottom: 1px solid #ccc;
77
- }
78
-
79
- button {
80
- position: fixed;
81
- right: 50%;
82
- bottom: 98px;
83
- margin-right: -320px;
84
- font-weight: 300;
85
- border-radius: 0;
86
- }
87
-
88
- label {
89
- position: absolute;
90
- width: 80px;
91
- color: #ccc;
92
- text-align: right;
93
- margin-top: 15px;
94
- font-weight: bold;
95
- font-size: 12px;
96
- line-height: 12px;
97
- text-transform: uppercase;
98
- }
99
- }
100
- }
@@ -1,57 +0,0 @@
1
- .topbar_placeholder {
2
- position: relative !important;
3
- visibility: hidden;
4
- }
5
-
6
- .topbar {
7
- background: #eee;
8
- position: fixed;
9
- top: 0;
10
- left: 0;
11
- right: 0;
12
- border-bottom: 1px solid #ddd;
13
- z-index: 999;
14
- padding: 10px 0px;
15
- margin-bottom: 20px;
16
-
17
- #loading_logo {
18
- display: none;
19
- }
20
-
21
- #loading_logo img, #logo img {
22
- display: inline-block;
23
- margin-right: 39px;
24
- margin-top: 5px;
25
- float: left;
26
- }
27
-
28
- .nav {
29
- float: right;
30
- color: #777;
31
- font-size: 15px;
32
- margin-right: -4px;
33
-
34
- li {
35
- float: left;
36
-
37
- a {
38
- display: inline-block;
39
- padding: 10px 15px;
40
- margin: 0 4px;
41
- border-radius: 4px;
42
- color: #111;
43
- font-weight: 200;
44
-
45
- &.selected {
46
- color: #fff !important;
47
- background: #8F000C !important;
48
- }
49
-
50
- &:hover {
51
- color: #8F000C;
52
- background: #fff;
53
- }
54
- }
55
- }
56
- }
57
- }
@@ -1,61 +0,0 @@
1
- html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
2
- pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd,
3
- q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt,
4
- dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot,
5
- thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption,
6
- footer, header, hgroup, menu, nav, output, ruby, section, summary, time,
7
- mark, audio, video {
8
- margin: 0;
9
- padding: 0;
10
- border: 0;
11
- font-size: 100%;
12
- font: inherit;
13
- vertical-align: baseline;
14
- outline: none
15
- }
16
-
17
- article, aside, details, figcaption, figure, footer, header, hgroup,
18
- menu, nav, section {
19
- display: block
20
- }
21
-
22
- body {
23
- line-height: 1
24
- }
25
-
26
- ol, ul {
27
- list-style: none
28
- }
29
-
30
- blockquote, q {
31
- quotes: none
32
- }
33
-
34
- blockquote:before, blockquote:after, q:before, q:after {
35
- content: '';
36
- content: none
37
- }
38
-
39
- table {
40
- border-collapse: collapse;
41
- border-spacing: 0
42
- }
43
-
44
- a {
45
- text-decoration: none;
46
- color: inherit;
47
- }
48
-
49
- b, strong {
50
- font-weight: 600;
51
- }
52
-
53
- i, em {
54
- font-style: oblique;
55
- }
56
-
57
- *, *:before, *:after {
58
- -moz-box-sizing: border-box;
59
- -webkit-box-sizing: border-box;
60
- box-sizing: border-box
61
- }