Commit Graph

45 Commits

Author SHA1 Message Date
Vincent Batts f768d2f9f6
*: bubble the dbhandler up to cli
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-07 13:42:12 -04:00
Vincent Batts 610cd418ca
*: fixes to be working on new abstractions
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-07 13:29:07 -04:00
Vincent Batts efa8ac6511
dbutil: abstract out mongo Handler
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-04-07 11:40:57 -04:00
Vincent Batts adbdffbfb4 client upload works again 2013-10-10 10:31:27 -04:00
Vincent Batts 96a4b57924 client can upload now, but the response body is a whole page, not just
the url
2013-10-09 17:02:38 -04:00
Vincent Batts 5ed865d2e4 setting variable for form parsing byte buffer 2013-10-09 16:00:20 -04:00
Vincent Batts ff0998af4c removing unused things 2013-10-03 23:51:45 -04:00
Vincent Batts 70072f7a59 removing unused init 2013-10-03 23:51:00 -04:00
Vincent Batts 9b2c342375 cleaned up the dbutil initialization 2013-10-03 23:26:01 -04:00
Vincent Batts cebd3acc3c all gfs calls are inside dbutil now 2013-10-03 22:49:57 -04:00
Vincent Batts c737976121 moar pulling back of database calls from the server 2013-10-03 17:04:37 -04:00
Vincent Batts 6e439b0de4 fixing the regex find for extensions 2013-09-20 17:21:26 -04:00
Vincent Batts d4824ad6a2 * more logging on upload failures.
* adding an error page
* trying to fix the tag cloud
2013-09-10 14:51:44 -04:00
Vincent Batts e3548407b2 now we have an /ext/ listing 2013-08-06 11:00:57 -04:00
Vincent Batts 5eab319c6c now images are lower cased, and searching for names is insensitive.
for your mongo db set, run:
db.fs.files.find().forEach(
  function(e) {
    e.filename = e.filename.toLowerCase();
    db.fs.files.save(e);
  }
)
2013-08-06 10:37:58 -04:00
Vincent Batts 83cf991ef9 seperated out the db utilities. Also adding link for "other" views. 2013-08-05 23:51:26 -04:00
Vincent Batts cacdb3aaa5 major cleanup of config handling 2013-08-05 23:06:05 -04:00
Vincent Batts 2e7fe1a454 /k/ shows a tagcloud now 2013-08-05 20:29:16 -04:00
Vincent Batts 06185db73b adding javascript loading to the page. moar caching headers. 2013-08-05 19:27:07 -04:00
Vincent Batts f54091db6e adding back the path matches for other assets 2013-08-05 18:44:38 -04:00
Vincent Batts 338cce6561 Revert "defaulting /assests switch to just look in the directory"
This reverts commit 81a51e78c9.

that is too much access for now
2013-08-05 18:43:10 -04:00
Vincent Batts 81a51e78c9 defaulting /assests switch to just look in the directory 2013-08-05 18:39:52 -04:00
Vincent Batts 931990614b Merge branch 'assets'
Conflicts:
	server.go
2013-08-05 18:30:50 -04:00
Vincent Batts 6fb572915f referrence the new CSS asset 2013-08-05 18:15:06 -04:00
Vincent Batts a3ba8b3afd cache-control for css 2013-08-05 16:14:37 -04:00
Vincent Batts 1e2c4bf3a3 using an outside favicon 2013-07-03 11:21:56 -04:00
Vincent Batts 921fee9529 using github.com/vbatts/go-httplog for HTTP logging 2013-06-18 15:16:52 -04:00
Vincent Batts 1ed6696abf move the request logger out to the Utility 2013-06-17 23:03:59 -04:00
Vincent Batts 6683ae4498 Issue #4 Now there is a link and flow to deleting images, not just
through REST
2013-06-04 16:44:31 -04:00
Vincent Batts ae688c93a9 separating out more code 2013-05-10 15:03:54 -04:00
Vincent Batts 240c5bb67d sort '/all' by upload time 2013-05-09 12:53:28 -04:00
Vincent Batts c62df15429 ZOMG, just ironed out the '/v/' page, to handle embedding video with
html5 tag
2013-05-09 12:36:49 -04:00
Vincent Batts 967daf48b2 moved types out to a package 2013-05-09 12:13:46 -04:00
Vincent Batts b5fe6fec95 now Urlie will work around name collisions 2013-05-09 10:01:13 -04:00
Vincent Batts 8aa7278da8 beginning to move sub functions into there own import paths 2013-05-09 09:41:06 -04:00
Vincent Batts 75ee3c520c getting the embedded image view ironed out a bit more
Also, getting the randomize hash name worked out, to avoid file name
collisions.
2013-05-09 09:36:21 -04:00
Vincent Batts 4fbbcd622d * including a navbar link for '/all'
* building out a framed view page for images, to embed the image in
* now having the upload and urlie, do a redirect to a /v/... page
2013-05-08 14:28:49 -04:00
Vincent Batts 9a5ded48a6 running go fmt 2013-03-27 16:30:24 -04:00
Vincent Batts 51ff306fd9 Revert "my rand helper wasn't helping"
This reverts commit 84e5af9fc2.
2013-02-13 22:30:04 -05:00
Vincent Batts 84e5af9fc2 my rand helper wasn't helping 2013-02-13 16:42:30 -05:00
Vincent Batts e7ec9528d0 ERMEHGERD: upload and from url both work, and redirect straight to the
new image
2013-02-12 11:04:48 -05:00
Vincent Batts 7e970f5dfd layouts: more formating, and working towards a better look
assets: embedding stylesheets for formating
2013-02-12 10:21:25 -05:00
Vincent Batts 8c7adeb56c multipart form! it actually uploads now. 2013-02-11 18:05:43 -05:00
Vincent Batts 683b4465e1 many updates, and cleanup, but the /upload form is not quite working yet 2013-02-11 14:27:38 -05:00
Vincent Batts c616327fc6 cleanup: more spreading out of files 2013-02-08 23:52:40 -05:00