<feed xmlns='http://www.w3.org/2005/Atom'>
<title>simghost/src, branch master</title>
<subtitle>Simple image hoster written in Haskell</subtitle>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/'/>
<entry>
<title>update stack snapshot</title>
<updated>2022-04-08T12:16:26+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2022-04-08T12:16:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/commit/?id=196bbc9cb713cefc77e97dcbad028967fa68ddee'/>
<id>196bbc9cb713cefc77e97dcbad028967fa68ddee</id>
<content type='text'>
This gives us the fixes versions of cgi and multipart, as well as aeson
2 (which required some code adjustments).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This gives us the fixes versions of cgi and multipart, as well as aeson
2 (which required some code adjustments).
</pre>
</div>
</content>
</entry>
<entry>
<title>rewrite handleUpload</title>
<updated>2020-03-03T13:50:18+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2020-03-03T13:50:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/commit/?id=a440dcbb89f74b607720bb5805390749861f9fe5'/>
<id>a440dcbb89f74b607720bb5805390749861f9fe5</id>
<content type='text'>
This way we avoid the right-drift that we introduced in the first
version, as the error handling and propagation is done in the Maybe
monad.

The downside to this is that we lose some error information: We cannot
show anymore if the authorization failed or something else went wrong,
because in all cases we just bail out with Nothing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This way we avoid the right-drift that we introduced in the first
version, as the error handling and propagation is done in the Maybe
monad.

The downside to this is that we lose some error information: We cannot
show anymore if the authorization failed or something else went wrong,
because in all cases we just bail out with Nothing.
</pre>
</div>
</content>
</entry>
<entry>
<title>reorganize module</title>
<updated>2020-03-03T13:27:37+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2020-03-03T13:24:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/commit/?id=74b373d23d35446d772d6bb2b01c49ca38978236'/>
<id>74b373d23d35446d772d6bb2b01c49ca38978236</id>
<content type='text'>
This switches some definitions around and wraps App in a newtype, in
preparation for more cleanup.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This switches some definitions around and wraps App in a newtype, in
preparation for more cleanup.
</pre>
</div>
</content>
</entry>
<entry>
<title>rewrite imgHostMain</title>
<updated>2020-03-01T17:10:12+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2020-03-01T17:10:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/commit/?id=7f11cf1617aed8930598d7bd908ee1625cbc97f7'/>
<id>7f11cf1617aed8930598d7bd908ee1625cbc97f7</id>
<content type='text'>
The right-drift was not nice to look at, so we're now doing the dispatch
using a small helper method.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The right-drift was not nice to look at, so we're now doing the dispatch
using a small helper method.
</pre>
</div>
</content>
</entry>
<entry>
<title>update HTML landing page</title>
<updated>2020-02-19T01:43:25+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2020-02-19T01:43:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/commit/?id=9a0d1df756483fe865dbbf3b112f1e5158d8bd84'/>
<id>9a0d1df756483fe865dbbf3b112f1e5158d8bd84</id>
<content type='text'>
The original landing page was pretty bad, not just from the looks, but
also from the functionality: In order to paste an image, you had to have
the cursor focussed in the small div.

This edition brings several improvements:

* The general style of the page has been improved by adding some CSS
  styling to adjust the colors and center the content.

* Pasting an image will not work everywhere on the page without
  focussing a specific element. This seems to work because
  document.onpaste fires every time, not just when the element is
  focussed and it even works without contenteditable=true, which removes
  the ugly blinking cursors.

* There is a preview window for pasted images, clearly indicating what
  is going on and which image is going to be pasted.

* Pasting an image will now hide the file chooser.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original landing page was pretty bad, not just from the looks, but
also from the functionality: In order to paste an image, you had to have
the cursor focussed in the small div.

This edition brings several improvements:

* The general style of the page has been improved by adding some CSS
  styling to adjust the colors and center the content.

* Pasting an image will not work everywhere on the page without
  focussing a specific element. This seems to work because
  document.onpaste fires every time, not just when the element is
  focussed and it even works without contenteditable=true, which removes
  the ugly blinking cursors.

* There is a preview window for pasted images, clearly indicating what
  is going on and which image is going to be pasted.

* Pasting an image will now hide the file chooser.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit</title>
<updated>2020-02-18T01:29:48+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2020-02-18T01:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/simghost/commit/?id=63b2ff187e290d8eafd39a902af56a88c6ab53e9'/>
<id>63b2ff187e290d8eafd39a902af56a88c6ab53e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
