Commit Graph

69 Commits (master)

Author SHA1 Message Date
Nick Krichevsky 429d2c44f5 Update packr2 2019-04-07 23:38:36 -04:00
Nick Krichevsky 101723b6d5 Add ability to POST clumps 2019-03-31 14:21:22 -04:00
Nick Krichevsky 87f144cf61 Fix bug where executor wasn't used in updatePaste 2019-03-31 13:37:25 -04:00
Nick Krichevsky fbf4d90477 Add close method to Clumper 2019-03-31 10:33:44 -04:00
Nick Krichevsky b477aed8a1 Add test for CreatePastes 2019-03-31 09:53:41 -04:00
Nick Krichevsky f91320814d Add ability to create multiple pastes at once 2019-03-31 09:04:32 -04:00
Nick Krichevsky 0ecec16539 Update npm lockfile 2019-03-31 09:03:57 -04:00
Nick Krichevsky 2afc801859 Add Clumper structure 2019-03-26 20:58:09 -04:00
Nick Krichevsky d88bf493de Add ClumpRepository with implementations 2019-03-18 22:41:19 -04:00
Nick Krichevsky 19b591e48b Add executor interface 2019-03-18 22:33:37 -04:00
Nick Krichevsky 7ce90c3673 Update Paste to allow for clumps 2019-03-18 19:52:48 -04:00
Nick Krichevsky 9cec9fd3e1 Update usages of Title to use Filename 2019-03-17 18:05:54 -04:00
Nick Krichevsky ba367555e1 Add clump migration 2019-03-17 18:02:35 -04:00
Nick Krichevsky bd1392b22b Clarify paste tests 2019-03-17 17:43:24 -04:00
Nick Krichevsky 65765a3da2 Add node_modules to gitignore 2019-03-17 17:41:37 -04:00
Nick Krichevsky 58bfe7729c Add route to get paste
Needs an actual template - it's totally XSS vulnerable at the moment
2019-03-17 17:40:47 -04:00
Nick Krichevsky f9b7eebc17 Add Pipe function to paster 2019-03-17 14:10:04 -04:00
Nick Krichevsky a224fe15c0 Update deps 2019-03-17 14:09:34 -04:00
Nick Krichevsky 4de3ee1280 Properly assert not called 2019-03-17 14:07:55 -04:00
Nick Krichevsky 0158f7e1ed Truncate files on Write 2019-03-16 19:04:40 -04:00
Nick Krichevsky edc451f9c6 Improve Read tests for paster 2019-03-16 18:08:30 -04:00
Nick Krichevsky 85556339ab Don't doubly convert UUID when making a paste 2019-03-16 17:03:34 -04:00
Nick Krichevsky 3a666483e2 Make the index page a bit prettier 2019-03-16 16:45:16 -04:00
Nick Krichevsky dcf4846111 Fix bug where make build would create circular symlink 2019-03-16 16:29:13 -04:00
Nick Krichevsky 4aed8bc1e8 Add basic index page 2019-03-16 16:19:17 -04:00
Nick Krichevsky e92bf8f1db Use New instead of NewBox for static assets 2019-03-16 16:07:39 -04:00
Nick Krichevsky 4990fe87c2 Add Makefile 2019-03-16 15:46:24 -04:00
Nick Krichevsky 25adce2b0a Add bootstrap 2019-03-16 15:46:19 -04:00
Nick Krichevsky 4263faf7ab Add ability to serve static files 2019-03-16 15:45:27 -04:00
Nick Krichevsky 22720ab00b Remove packr files 2019-03-16 14:15:41 -04:00
Nick Krichevsky 0659768beb Add environment flag to config 2019-03-15 00:36:00 -04:00
Nick Krichevsky e92aaf4284 Return UUID on response 2019-03-10 15:36:03 -04:00
Nick Krichevsky f7988e1162 Add logging to paste route 2019-03-10 15:35:38 -04:00
Nick Krichevsky ea7de5e172 Add logging functions to webserver 2019-03-10 15:35:12 -04:00
Nick Krichevsky e05751d269 Add logger to webserver 2019-03-10 15:09:42 -04:00
Nick Krichevsky b7cf249bfb Add a log handler 2019-03-10 14:53:26 -04:00
Nick Krichevsky 5d61fad70d Move paste handler into its own package 2019-03-10 00:38:12 -05:00
Nick Krichevsky ef4699ed8b Add ability to put pastes via route 2019-03-10 00:38:12 -05:00
Nick Krichevsky 24923ae1e4 Fix bug where pq does not support LastInsertID 2019-03-10 00:08:48 -05:00
Nick Krichevsky c72589bb7b Fix segfault when reading/writing from paster 2019-03-10 00:05:29 -05:00
Nick Krichevsky 9e329458d6 Add tests for PasteService 2019-03-09 23:31:26 -05:00
Nick Krichevsky 5c7d1c7da7 Add tests for paster 2019-03-09 23:31:18 -05:00
Nick Krichevsky af658da26b Make paste file a ReadWriteSeekCloser 2019-03-09 22:30:33 -05:00
Nick Krichevsky dddd9bbe8e Add paste service with ability to create paste 2019-03-09 22:27:07 -05:00
Nick Krichevsky 6b58d28547 Make PutPaste return a paste 2019-03-09 22:26:37 -05:00
Nick Krichevsky b3be292f79 Add wire for repository 2019-03-09 22:26:29 -05:00
Nick Krichevsky 355dd34669 Connect to database in main 2019-03-08 22:43:55 -05:00
Nick Krichevsky 044d4fdd1b Make repository reflect Config changes by adding a Connect method 2019-03-08 22:43:55 -05:00
Nick Krichevsky 187b84f76f Pass config to webserver by DI 2019-03-08 21:39:46 -05:00
Nick Krichevsky 17a7bccc1d Split config loading into its own function 2019-03-08 21:36:55 -05:00