Permalink
Browse files

first version

  • Loading branch information...
JohnMcLear committed Jan 24, 2013
0 parents commit 31927f47133c0f2d451c6b78be8b54ec2d262ad2
Showing with 29,793 additions and 0 deletions.
  1. +1 −0 .ep_initialized
  2. +10 −0 README.md
  3. +11 −0 ep.json
  4. +39 −0 index.js
  5. +2 −0 node_modules/log4js/.npmignore
  6. +11 −0 node_modules/log4js/.project
  7. +4 −0 node_modules/log4js/.travis.yml
  8. +140 −0 node_modules/log4js/README.md
  9. +57 −0 node_modules/log4js/build/report/style.out
  10. +14 −0 node_modules/log4js/example-connect-logger.js
  11. +45 −0 node_modules/log4js/example-socket.js
  12. +58 −0 node_modules/log4js/example.js
  13. +19 −0 node_modules/log4js/fromreadme.js
  14. +20 −0 node_modules/log4js/lib/appenders/console.js
  15. +49 −0 node_modules/log4js/lib/appenders/dateFile.js
  16. +75 −0 node_modules/log4js/lib/appenders/file.js
  17. +93 −0 node_modules/log4js/lib/appenders/gelf.js
  18. +75 −0 node_modules/log4js/lib/appenders/hookio.js
  19. +20 −0 node_modules/log4js/lib/appenders/logLevelFilter.js
  20. +129 −0 node_modules/log4js/lib/appenders/multiprocess.js
  21. +134 −0 node_modules/log4js/lib/appenders/multiprocess.js~
  22. +75 −0 node_modules/log4js/lib/appenders/smtp.js
  23. +168 −0 node_modules/log4js/lib/connect-logger.js
  24. +60 −0 node_modules/log4js/lib/date_format.js
  25. +272 −0 node_modules/log4js/lib/layouts.js
  26. +67 −0 node_modules/log4js/lib/levels.js
  27. +319 −0 node_modules/log4js/lib/log4js.js
  28. +7 −0 node_modules/log4js/lib/log4js.json
  29. +78 −0 node_modules/log4js/lib/logger.js
  30. +99 −0 node_modules/log4js/lib/streams/BaseRollingFileStream.js
  31. +77 −0 node_modules/log4js/lib/streams/BufferedWriteStream.js
  32. +89 −0 node_modules/log4js/lib/streams/DateRollingFileStream.js
  33. +110 −0 node_modules/log4js/lib/streams/RollingFileStream.js
  34. +3 −0 node_modules/log4js/lib/streams/index.js
  35. +27 −0 node_modules/log4js/log-rolling.js
  36. +37 −0 node_modules/log4js/memory-test.js
  37. +45 −0 node_modules/log4js/multiprocess-stress.js
  38. +9 −0 node_modules/log4js/node_modules/async/.gitmodules
  39. +19 −0 node_modules/log4js/node_modules/async/LICENSE
  40. +21 −0 node_modules/log4js/node_modules/async/Makefile
  41. +1,009 −0 node_modules/log4js/node_modules/async/README.md
  42. +70 −0 node_modules/log4js/node_modules/async/deps/nodeunit.css
  43. +1,966 −0 node_modules/log4js/node_modules/async/deps/nodeunit.js
  44. +1 −0 node_modules/log4js/node_modules/async/dist/async.min.js
  45. +3 −0 node_modules/log4js/node_modules/async/index.js
  46. +690 −0 node_modules/log4js/node_modules/async/lib/async.js
  47. +4 −0 node_modules/log4js/node_modules/async/nodelint.cfg
  48. +26 −0 node_modules/log4js/node_modules/async/package.json
  49. +1,577 −0 node_modules/log4js/node_modules/async/test/test-async.js
  50. +24 −0 node_modules/log4js/node_modules/async/test/test.html
  51. +46 −0 node_modules/log4js/package.json
  52. +37 −0 node_modules/log4js/package.json~
  53. +89 −0 node_modules/log4js/perf.js
  54. +131 −0 node_modules/log4js/test/configuration-test.js
  55. +126 −0 node_modules/log4js/test/configureNoLevels-test.js
  56. +128 −0 node_modules/log4js/test/connect-logger-test.js
  57. +98 −0 node_modules/log4js/test/dateFileAppender-test.js
  58. +23 −0 node_modules/log4js/test/date_format-test.js
  59. +173 −0 node_modules/log4js/test/fileAppender-test.js
  60. +138 −0 node_modules/log4js/test/gelfAppender-test.js
  61. +85 −0 node_modules/log4js/test/global-log-level-test.js
  62. +101 −0 node_modules/log4js/test/hookioAppender-test.js
  63. +251 −0 node_modules/log4js/test/layouts-test.js
  64. +210 −0 node_modules/log4js/test/levels-test.js
  65. +68 −0 node_modules/log4js/test/log-abspath-test.js
  66. +16 −0 node_modules/log4js/test/log4js.json
  67. +69 −0 node_modules/log4js/test/logLevelFilter-test.js
  68. +578 −0 node_modules/log4js/test/logging-test.js
  69. +242 −0 node_modules/log4js/test/multiprocess-test.js
  70. +260 −0 node_modules/log4js/test/nolog-test.js
  71. +79 −0 node_modules/log4js/test/setLevel-asymmetry-test.js
  72. +168 −0 node_modules/log4js/test/smtpAppender-test.js
  73. +123 −0 node_modules/log4js/test/streams/DateRollingFileStream-test.js
  74. +130 −0 node_modules/log4js/test/streams/bufferedStream-test.js
  75. +126 −0 node_modules/log4js/test/streams/rollingFileStream-test.js
  76. 0 node_modules/log4js/test/streams/test-rolling-file-stream
  77. +1 −0 node_modules/log4js/test/streams/test-rolling-file-stream-write-less
  78. +2 −0 node_modules/log4js/test/streams/test-rolling-file-stream-write-more
  79. +5 −0 node_modules/log4js/test/streams/test-rolling-file-stream-write-more.1
  80. 0 node_modules/log4js/test/test-rolling-file-stream
  81. +1 −0 node_modules/log4js/test/test-rolling-file-stream-write
  82. +1 −0 node_modules/log4js/test/test-rolling-file-stream-write-less
  83. +2 −0 node_modules/log4js/test/test-rolling-file-stream-write-more
  84. +5 −0 node_modules/log4js/test/test-rolling-file-stream-write-more.1
  85. +17 −0 node_modules/log4js/test/with-dateFile.json
  86. +10 −0 node_modules/log4js/test/with-log-rolling.json
  87. +28 −0 node_modules/log4js/test/with-logLevelFilter.json
  88. +2 −0 node_modules/regexp-quote/README
  89. +27 −0 node_modules/regexp-quote/package.json
  90. +3 −0 node_modules/regexp-quote/regexp-quote.js
  91. +8 −0 node_modules/regexp-quote/test.js
  92. +4 −0 node_modules/ueberDB/.npmignore
  93. +53 −0 node_modules/ueberDB/CONTRIBUTING.md
  94. +558 −0 node_modules/ueberDB/CacheAndBufferLayer.js
  95. +210 −0 node_modules/ueberDB/CloneAndAtomicLayer.js
  96. +202 −0 node_modules/ueberDB/LICENSE
  97. +71 −0 node_modules/ueberDB/README.md
  98. +368 −0 node_modules/ueberDB/benchmark.js
  99. +106 −0 node_modules/ueberDB/caseSensitiveTest.js
  100. +153 −0 node_modules/ueberDB/couch_db.js
  101. +7 −0 node_modules/ueberDB/defaultTestSettings.js
  102. +79 −0 node_modules/ueberDB/dirty_db.js
  103. +88 −0 node_modules/ueberDB/findKeysTest.js
  104. +105 −0 node_modules/ueberDB/leveldb_db.js
  105. +183 −0 node_modules/ueberDB/mongodb_db.js
  106. +205 −0 node_modules/ueberDB/mysql_db.js
  107. +9 −0 node_modules/ueberDB/node_modules/async/.gitmodules
  108. +19 −0 node_modules/ueberDB/node_modules/async/LICENSE
  109. +21 −0 node_modules/ueberDB/node_modules/async/Makefile
  110. +1,009 −0 node_modules/ueberDB/node_modules/async/README.md
  111. +70 −0 node_modules/ueberDB/node_modules/async/deps/nodeunit.css
  112. +1,966 −0 node_modules/ueberDB/node_modules/async/deps/nodeunit.js
  113. +1 −0 node_modules/ueberDB/node_modules/async/dist/async.min.js
  114. +3 −0 node_modules/ueberDB/node_modules/async/index.js
  115. +690 −0 node_modules/ueberDB/node_modules/async/lib/async.js
  116. +4 −0 node_modules/ueberDB/node_modules/async/nodelint.cfg
  117. +27 −0 node_modules/ueberDB/node_modules/async/package.json
  118. +1,577 −0 node_modules/ueberDB/node_modules/async/test/test-async.js
  119. +24 −0 node_modules/ueberDB/node_modules/async/test/test.html
  120. +40 −0 node_modules/ueberDB/node_modules/channels/README.md
  121. +32 −0 node_modules/ueberDB/node_modules/channels/benchmark.js
  122. +54 −0 node_modules/ueberDB/node_modules/channels/channels.js
  123. +18 −0 node_modules/ueberDB/node_modules/channels/package.json
  124. +2 −0 node_modules/ueberDB/node_modules/dirty/.npmignore
  125. +19 −0 node_modules/ueberDB/node_modules/dirty/LICENSE.txt
  126. +19 −0 node_modules/ueberDB/node_modules/dirty/Makefile
  127. +108 −0 node_modules/ueberDB/node_modules/dirty/README.md
  128. +23 −0 node_modules/ueberDB/node_modules/dirty/benchmark/dirty/for-each.js
  129. +23 −0 node_modules/ueberDB/node_modules/dirty/benchmark/dirty/get.js
  130. +30 −0 node_modules/ueberDB/node_modules/dirty/benchmark/dirty/load.js
  131. +25 −0 node_modules/ueberDB/node_modules/dirty/benchmark/dirty/set-drain-256-bytes-per-doc.js
  132. +25 −0 node_modules/ueberDB/node_modules/dirty/benchmark/dirty/set-drain.js
  133. +18 −0 node_modules/ueberDB/node_modules/dirty/benchmark/dirty/set.js
  134. +22 −0 node_modules/ueberDB/node_modules/dirty/benchmark/php/array-get.php
  135. +16 −0 node_modules/ueberDB/node_modules/dirty/benchmark/php/array-push.php
  136. +16 −0 node_modules/ueberDB/node_modules/dirty/benchmark/php/array-set.php
  137. +22 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/array-filter.js
  138. +21 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/array-get.js
  139. +21 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/array-loop.js
  140. +15 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/array-push.js
  141. +15 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/array-set.js
  142. +21 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/object-get.js
  143. +21 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/object-loop-with-object-keys.js
  144. +21 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/object-loop.js
  145. +15 −0 node_modules/ueberDB/node_modules/dirty/benchmark/v8/object-set.js
  146. +19 −0 node_modules/ueberDB/node_modules/dirty/example/bob.js
  147. +1 −0 node_modules/ueberDB/node_modules/dirty/index.js
  148. +220 −0 node_modules/ueberDB/node_modules/dirty/lib/dirty/dirty.js
  149. +1 −0 node_modules/ueberDB/node_modules/dirty/lib/dirty/index.js
  150. +17 −0 node_modules/ueberDB/node_modules/dirty/package.json
  151. +17 −0 node_modules/ueberDB/node_modules/dirty/test/common.js
  152. +13 −0 node_modules/ueberDB/node_modules/dirty/test/nostore/test-load-event.js
  153. +13 −0 node_modules/ueberDB/node_modules/dirty/test/nostore/test-set-callback.js
  154. +330 −0 node_modules/ueberDB/node_modules/dirty/test/simple/test-dirty.js
  155. +12 −0 node_modules/ueberDB/node_modules/dirty/test/system/test-flush.js
  156. +15 −0 node_modules/ueberDB/node_modules/dirty/test/system/test-for-each.js
  157. +29 −0 node_modules/ueberDB/node_modules/dirty/test/system/test-load.js
  158. +8 −0 node_modules/ueberDB/node_modules/dirty/test/system/test-size.js
  159. 0 node_modules/ueberDB/node_modules/dirty/test/tmp/.empty
  160. +4 −0 node_modules/ueberDB/node_modules/mysql/.npmignore
  161. +4 −0 node_modules/ueberDB/node_modules/mysql/.travis.yml
  162. +19 −0 node_modules/ueberDB/node_modules/mysql/License
  163. +13 −0 node_modules/ueberDB/node_modules/mysql/Makefile
  164. +290 −0 node_modules/ueberDB/node_modules/mysql/Readme.md
  165. +42 −0 node_modules/ueberDB/node_modules/mysql/benchmark/node-mysql/insert.js
  166. +40 −0 node_modules/ueberDB/node_modules/mysql/benchmark/node-mysql/select.js
  167. +40 −0 node_modules/ueberDB/node_modules/mysql/benchmark/php/insert-select.php
  168. +4 −0 node_modules/ueberDB/node_modules/mysql/fake_server.js
  169. +1 −0 node_modules/ueberDB/node_modules/mysql/index.js
  170. +3 −0 node_modules/ueberDB/node_modules/mysql/killandsteal.sh
  171. +164 −0 node_modules/ueberDB/node_modules/mysql/lib/auth.js
  172. +454 −0 node_modules/ueberDB/node_modules/mysql/lib/client.js
  173. +673 −0 node_modules/ueberDB/node_modules/mysql/lib/constants.js
  174. +18 −0 node_modules/ueberDB/node_modules/mysql/lib/mysql.js
  175. +79 −0 node_modules/ueberDB/node_modules/mysql/lib/outgoing_packet.js
  176. +650 −0 node_modules/ueberDB/node_modules/mysql/lib/parser.js
  177. +140 −0 node_modules/ueberDB/node_modules/mysql/lib/query.js
  178. +191 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/README.markdown
  179. +9 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/examples/chain.js
  180. +7 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/examples/map.js
  181. +253 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/index.js
  182. +1 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/.npmignore
  183. +3 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/.travis.yml
  184. +24 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/LICENSE
  185. +258 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/README.markdown
  186. +16 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/examples/json.js
  187. +15 −0 ..._modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/examples/leaves.js
  188. +8 −0 ...odules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/examples/negative.js
  189. +10 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/examples/scrub.js
  190. +38 −0 ...dules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/examples/stringify.js
  191. +9 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/fail.js
  192. +310 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/index.js
  193. +45 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/package.json
  194. +117 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/circular.js
  195. +37 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/date.js
  196. +240 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/equal.js
  197. +11 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/error.js
  198. +15 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/has.js
  199. +17 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/instance.js
  200. +43 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/interface.js
  201. +49 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/json.js
  202. +31 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/keys.js
  203. +22 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/leaves.js
  204. +96 −0 ...ules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/lib/deep_equal.js
  205. +300 −0 ..._modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/mutability.js
  206. +21 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/negative.js
  207. +11 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/obj.js
  208. +37 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/siblings.js
  209. +44 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/stop.js
  210. +36 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/stringify.js
  211. +36 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/subexpr.js
  212. +56 −0 ..._modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/test/super_deep.js
  213. +22 −0 ..._modules/ueberDB/node_modules/mysql/node_modules/hashish/node_modules/traverse/testling/leaves.js
  214. +39 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/package.json
  215. +250 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/test/hash.js
  216. +69 −0 node_modules/ueberDB/node_modules/mysql/node_modules/hashish/test/property.js
  217. +34 −0 node_modules/ueberDB/node_modules/mysql/package.json
  218. +23 −0 node_modules/ueberDB/node_modules/mysql/test/common.js
  219. +8 −0 node_modules/ueberDB/node_modules/mysql/test/config.template.js
  220. +54 −0 node_modules/ueberDB/node_modules/mysql/test/fixture/columnia.sql
  221. +127 −0 node_modules/ueberDB/node_modules/mysql/test/fixture/libmysql_password.c
  222. +11 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Client/commands/test-ping.js
  223. +10 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Client/commands/test-statistics.js
  224. +13 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Client/commands/test-useDatabase.js
  225. +11 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Client/connection/test-automatic-connect.js
  226. +24 −0 ...erDB/node_modules/mysql/test/integration/Client/connection/test-automatic-reconnect-on-timeout.js
  227. +24 −0 ..._modules/ueberDB/node_modules/mysql/test/integration/Client/connection/test-bad-credentials.js.js
  228. +25 −0 ...node_modules/mysql/test/integration/Client/connection/test-connection-errors-go-to-callback.js.js
  229. +27 −0 .../ueberDB/node_modules/mysql/test/integration/Client/connection/test-reconnect-closed-client.js.js
  230. +17 −0 ...erDB/node_modules/mysql/test/integration/Query/errors/test-should-delegate-to-client-if-needed.js
  231. +18 −0 ..._modules/ueberDB/node_modules/mysql/test/integration/Query/errors/test-should-emit-error-event.js
  232. +37 −0 .../node_modules/mysql/test/integration/Query/errors/test-should-not-leave-client-in-broken-state.js
  233. +16 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/errors/test-should-raise-callback.js
  234. +36 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/misc/test-column-ordering.js
  235. +14 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/results/test-empty-string.js
  236. +43 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/results/test-long-fields.js
  237. +15 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/results/test-null-value.js
  238. +51 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/results/test-real-world-usage.js
  239. +16 −0 node_modules/ueberDB/node_modules/mysql/test/integration/Query/results/test-virtual-fields.js
  240. +1 −0 node_modules/ueberDB/node_modules/mysql/test/run.js
  241. +25 −0 node_modules/ueberDB/node_modules/mysql/test/unit/legacy/common.js
  242. +118 −0 node_modules/ueberDB/node_modules/mysql/test/unit/legacy/test-auth.js
  243. +95 −0 node_modules/ueberDB/node_modules/mysql/test/unit/legacy/test-client.js
  244. +134 −0 node_modules/ueberDB/node_modules/mysql/test/unit/legacy/test-outgoing-packet.js
  245. +387 −0 node_modules/ueberDB/node_modules/mysql/test/unit/legacy/test-parser.js
  246. +68 −0 node_modules/ueberDB/node_modules/mysql/test/unit/legacy/test-query.js
  247. +33 −0 node_modules/ueberDB/node_modules/mysql/test/unit/test-client.js
  248. +10 −0 node_modules/ueberDB/node_modules/mysql/test/unit/test-mysql.js
  249. +48 −0 node_modules/ueberDB/node_modules/mysql/tool/pcap-mysql.js
  250. +1 −0 node_modules/ueberDB/node_modules/node-redis/.npmignore
  251. +364 −0 node_modules/ueberDB/node_modules/node-redis/index.js
  252. +24 −0 node_modules/ueberDB/node_modules/node-redis/package.json
  253. +356 −0 node_modules/ueberDB/node_modules/node-redis/parser.js
  254. +427 −0 node_modules/ueberDB/node_modules/node-redis/tags
  255. +89 −0 node_modules/ueberDB/node_modules/node-redis/test/main.js
  256. +91 −0 node_modules/ueberDB/node_modules/node-redis/utils.js
  257. +35 −0 node_modules/ueberDB/package.json
  258. +205 −0 node_modules/ueberDB/postgres_db.js
  259. +137 −0 node_modules/ueberDB/randomAccessTest.js
  260. +85 −0 node_modules/ueberDB/redis_db.js
  261. +126 −0 node_modules/ueberDB/sqlite_db.js
  262. 0 node_modules/ueberDB/var/.placeholder
  263. +25 −0 package.json
  264. +28 −0 templates/letters.ejs
  265. +59 −0 templates/pads.html
@@ -0,0 +1 @@
+done
@@ -0,0 +1,10 @@
+ep_adminpads
+===========
+
+Plugin for etherpad lite for admins to list, search and delete pads. The route is `admin/pads`
+
+# Limitations
+
+Requires ueberDB >= 0.1.9 (release is in progress: https://github.com/Pita/ueberDB/pull/18)
+and etherpad lite >= 1.2.4 (pull request is pending: https://github.com/ether/etherpad-lite/pull/1342).
+
11 ep.json
@@ -0,0 +1,11 @@
+{
+ "parts": [
+ {
+ "name": "ep_list_pads",
+ "hooks": {
+ "expressCreateServer" : "ep_list_pads/index:registerRoute",
+ "eejsBlock_indexWrapper": "ep_list_pads/index"
+ }
+ }
+ ]
+}
@@ -0,0 +1,39 @@
+var eejs = require('ep_etherpad-lite/node/eejs')
+ , padManager = require('ep_etherpad-lite/node/db/PadManager')
+ , log4js = require('log4js')
+ , logger = log4js.getLogger("plugin:ep_list_pads");
+
+exports.eejsBlock_indexWrapper = function (hook_name, args, cb) {
+ args.content = args.content + eejs.require("ep_list_pads/templates/letters.ejs");
+ return cb();
+}
+
+exports.registerRoute = function (hook_name, args, cb) {
+ args.app.get('/list/:letter(*)', function(req, res) {
+ var letter = req.params.letter;
+
+ var pads=padManager.listAllPads().padIDs
+ , data={
+ progress : 1
+ , message: "Search done."
+ , query: letter
+ , total: pads.length
+ }
+ , maxResult=0
+ , result=[]
+ ;
+
+ pads.forEach(function(padID){
+ if(padID[0] == letter || padID[0] == letter.toUpperCase()){
+ result.push(padID);
+ }
+ });
+
+ var render_args = {
+ errors: [],
+ pads: result,
+ letter: letter
+ };
+ res.send( eejs.require("ep_list_pads/templates/pads.html", render_args) );
+ });
+};

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 31927f4

Please sign in to comment.