1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-27 11:20:18 +01:00
Commit graph

99 commits

Author SHA1 Message Date
9bd1847da5
Set Content-Type of raw paste in DocumentHandler 2021-04-06 10:26:40 +02:00
zneix
7808ccf009
Rewrote key generator tests, fixed vowels
-Tests were not brought up to date with some updates that were done to key generator modules.
-Apparently original creator had no idea that 'y' is a vowel; fixed this issue and reflected changes in actual files.
2020-09-23 01:07:32 +02:00
zneix
7d476a668e
Rewritten postgresql document store
This is experimental as there are couple issues with attemting to set duplicate keys and connecting on startup, but it's working regardless of those issues.\nMaybe I can look into solving those later if needed
2020-09-03 19:24:34 +02:00
zneix
04e1f09fed
Patched POST API bug
It is no longer possible to make a POST request with no body content and make a "ghost key" - which upon requesting returns 404, but it considered as a taken key
2020-09-02 16:18:47 +02:00
zneix
7de68695fe
Replaced all callbacks with promises in document stores 2020-09-02 16:16:54 +02:00
zneix
c165781b18
Rewrote redis storage handler
also removed unnecessary newline in file storage handler
2020-09-01 23:43:54 +02:00
zneix
a4cf027900
Switched to promises in file document store 2020-08-30 03:27:38 +02:00
zneix
b4f42219e5
Added proper documentation 2020-08-29 05:29:39 +02:00
zneix
1efc62a8c5 Rewrote (and fixed) dictionary key generator 2020-08-29 00:40:36 +02:00
zneix
2e2b69c43c Rewrote phonetic key generator 2020-08-29 00:39:07 +02:00
zneix
15b8899629 rewrote file document storage 2020-08-29 00:06:49 +02:00
zneix
e4eeec3d27 Updated eslint rules 2020-08-28 04:39:03 +02:00
zneix
bd5c7f9261 Added mongodb as document store adapter 2020-08-27 00:42:48 +02:00
zneix
f3288c4e39 Made server run async 2020-08-27 00:39:06 +02:00
zneix
c585e3b815 Huge refactor, switched to express 2020-08-26 04:54:58 +02:00
Jacob Parker
b4c666fbcf Add an Amazon S3 document store 2019-06-28 19:25:49 +01:00
John Crepezzi
f3838ab4a8
Merge pull request #251 from seejohnrun/handle-redis-disconnect
Handle redis error and re-establish connection
2018-09-19 10:38:34 -04:00
John Crepezzi
bf2b1c957a Handle redis error and re-establish connection 2018-09-19 10:37:34 -04:00
John Crepezzi
b087ac8dd1 Added charset to raw content type
Closes #230
2018-07-12 14:25:27 -04:00
Jacob Gunther
5f6fefa7a6
Fixed unnecessary logging when document not found 2018-04-30 16:40:28 -05:00
Jacob Gunther
cd3bf26dbe
Use local method for md5 2018-04-16 10:52:53 -05:00
Jacob Gunther
830dc1bc43 Use uploads table 2018-04-15 23:16:39 -05:00
Jacob Gunther
dc0f151a7f Fixed bug in RethinkDB document store and use classes 2018-04-15 23:16:08 -05:00
John Crepezzi
827e7b51b5 Rewrite the memcached client
* Update syntax to ES6
* Use `memcached` instead of `memcache`
* Fix restrictions where expirations weren't pushed forward on GET
* Fix a bug where we were unnecessarily bumping expirations on key search

Closes #201
2018-02-16 09:52:44 -05:00
Jacob Gunther
ff0fccd6c2
Oh noes! I didn't even notice that I had a typo... 2017-12-11 09:50:50 -06:00
Jacob Gunther
cdd0cf3739
Fixed requested changes to RethinkDB handler 2017-12-11 09:27:44 -06:00
PassTheMayo
ba5c6b8d16 Added RethinkDB storage option & fixed config to use proper JSON 2017-12-09 18:34:00 -06:00
John Crepezzi
3b6934e348 Phonetic key generator to es6 and add some tests 2017-10-31 21:10:25 -04:00
John Crepezzi
f161cc33b4 Added tests and converted dictionary key generator to es6 2017-10-31 20:55:59 -04:00
John Crepezzi
e4e025f67e Convert random generator to es6 and add some specs for it directly 2017-10-31 20:40:43 -04:00
John Crepezzi
5939dec185 Added eslint and fixed an issue from #158 2017-06-26 12:19:36 -04:00
John Crepezzi
87b1c76aaf One more 2017-06-26 12:11:19 -04:00
John Crepezzi
4599203bdf A few style nit-picks 2017-06-26 12:10:57 -04:00
Klas af Geijerstam
d66bc9a6c4 Removed unused lines 2017-06-26 18:09:13 +02:00
Klas af Geijerstam
80f0618736 Updated dictionary.js
Now expects a newline separated dictionary, supports both \n and \n\r
2017-06-26 18:03:18 +02:00
Klas af Geijerstam
ac2bceefbb Added missing ) 2017-06-26 17:42:24 +02:00
Klas af Geijerstam
dbf4f6b5dd Removed usage of random-js
Replaced random-js with vanilla JS random
2017-06-26 17:39:32 +02:00
Klas af Geijerstam
8e9205cecc Update dictionary.js 2017-06-26 17:37:04 +02:00
Klas af Geijerstam
e54a860172 Added dictionary.js
A key generator that uses a dictionary to create its keys
2017-06-26 17:17:52 +02:00
John Crepezzi
45e19bc7cc fix indentation 2015-12-27 12:59:59 -05:00
Arun Babu Neelicattu
c92ab077c0 Support authentication for redis store if password provided 2014-11-21 23:17:19 +10:00
lidl
a8d4f3c300 Make table creation comment a one-liner. 2014-06-27 18:40:05 -04:00
John Crepezzi
ab029eae2f Added postgres adapter 2014-06-09 16:50:43 -04:00
John Crepezzi
447d0aae76 PG basis 2014-06-09 14:48:35 -04:00
John Crepezzi
4870158430 Merge branch 'master' of github.com:seejohnrun/haste-server 2014-04-21 14:17:09 -04:00
John Crepezzi
0471b059a0 Support a form-data POST API
Closes #54
2014-04-21 14:16:23 -04:00
JonApps
bda2749879 oops 🍺 2014-03-25 02:23:31 +01:00
JonApps
028aa96b13 phonetic keys can begin with vowel + added missing \'z\' to consontants 2014-03-25 02:20:05 +01:00
John Crepezzi
89909747f1 Don't depend on err.message for redis errors [#49] 2013-11-24 11:54:01 -05:00
John Crepezzi
4b58c8d356 Added more loggin 2012-09-27 11:50:56 -04:00