<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/slcl/page.c, branch thumbnail</title>
<subtitle>Small and lightweight cloud storage written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/slcl/atom?h=thumbnail</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/slcl/atom?h=thumbnail'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/'/>
<updated>2023-07-11T11:30:17+00:00</updated>
<entry>
<title>WIP thumbnail code</title>
<updated>2023-07-11T11:30:17+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-08T01:24:32+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=aae26c510dd8a1228848d75c33a07eb992f8dd2a'/>
<id>urn:sha1:aae26c510dd8a1228848d75c33a07eb992f8dd2a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Limit amount of search results</title>
<updated>2023-07-11T11:27:49+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-11T11:11:50+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=38f3f82a77ed4782a9c4e1b4e5a6d9d4c71390a2'/>
<id>urn:sha1:38f3f82a77ed4782a9c4e1b4e5a6d9d4c71390a2</id>
<content type='text'>
When a user enters a search term that is too generic, slcl would
generate a long list of search results, where this generation could have
a big impact on the server performance and its available resources.

Therefore, it is reasonable to limit the number of search results to an
arbitrary limit, so that users are forced to enter a more specific
search term in order to achieve more relevant results.
</content>
</entry>
<entry>
<title>Allow admins to define their own stylesheet</title>
<updated>2023-07-10T23:49:12+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-10T23:20:39+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=e79e955d93e24a192c9bf94181294d0797e9fded'/>
<id>urn:sha1:e79e955d93e24a192c9bf94181294d0797e9fded</id>
<content type='text'>
slcl used to provide a hardcoded stylesheet. However, it would be
desirable for some admins to provide a custom stylesheet without having
to rebuild the application.

Now, slcl creates a default stylesheet, namely style.css, into the
target directory, that can be later modified by admins.

While this might contradict the suckless philosophy a bit, hopefully
some admins might find this new feature useful.
</content>
</entry>
<entry>
<title>page.c: Allow add_element to hide checkboxes</title>
<updated>2023-07-09T03:54:56+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-09T03:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=4236c7fc3a7c7ef9f79b045cfd99c6575b16f7b1'/>
<id>urn:sha1:4236c7fc3a7c7ef9f79b045cfd99c6575b16f7b1</id>
<content type='text'>
Since removing files or directories is currently not an option in
searches, it is better to leave checkboxes out to avoid confusion.
</content>
</entry>
<entry>
<title>page.c: Remove back button from searches</title>
<updated>2023-07-09T03:54:56+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-09T03:18:31+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=55f0efb8ab0ee62b3a6e729fca0e86465b75964b'/>
<id>urn:sha1:55f0efb8ab0ee62b3a6e729fca0e86465b75964b</id>
<content type='text'>
- The back button would not return to the previous directory, but to the
user root directory.
- While this could have been solved easily (e.g.: by inserting the
referrer directory into the form), it would have implied extra and
unneeded complexity.
</content>
</entry>
<entry>
<title>Implement file/directory removal</title>
<updated>2023-07-08T01:08:07+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-07T22:54:59+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=0822a982ef3b085dc109ec373ff537974503eb04'/>
<id>urn:sha1:0822a982ef3b085dc109ec373ff537974503eb04</id>
<content type='text'>
The following workflow has been implemented:

- A new checkbox for each object inside a directory is shown.
- When one or more objects are selected, the user submits a request
through a HTML5 form.
- Then, slcl will ask the user for confirmation, listing the selected
objects, while reminding the user about the effects.
- The user confirms the selection.
- slcl removes the selected objects. All objects from non-empty
directories are removed, too.
- Finally, slcl redirects the user to the directory the request was
made from.
</content>
</entry>
<entry>
<title>page.c: Return HTTP_STATUS_OK on successful page_search</title>
<updated>2023-07-07T22:52:53+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-07-07T22:52:53+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=8bff49d9c8c5842ee1a0cd423035dd53728bf11c'/>
<id>urn:sha1:8bff49d9c8c5842ee1a0cd423035dd53728bf11c</id>
<content type='text'>
This was probably a copy-paste issue when implementing page_search based
on page_quota_exceeded.
</content>
</entry>
<entry>
<title>Implement search</title>
<updated>2023-06-06T01:52:16+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-06T01:49:36+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=5a6c92d69bbb307ca09ac2ecbad54df4f2394bea'/>
<id>urn:sha1:5a6c92d69bbb307ca09ac2ecbad54df4f2394bea</id>
<content type='text'>
This new feature adds a HTML form on each directory listing that allows
to search files recursively, starting from the current user directory.
Wildcard patterns are also allowed.
</content>
</entry>
<entry>
<title>page.c: Apply minor fixes and improvements to stylesheet</title>
<updated>2023-06-06T01:48:36+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-06T01:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=c4a3d54ac9f28d4690a88d9abcc262e6ffb9e381'/>
<id>urn:sha1:c4a3d54ac9f28d4690a88d9abcc262e6ffb9e381</id>
<content type='text'>
- Rules applying to body already apply to input.
- input already had a "margin: auto" rule.
- Missing whitespace on "margin:auto" rule.
</content>
</entry>
<entry>
<title>page.c: Call page_not_found on ENOTDIR</title>
<updated>2023-06-06T00:22:28+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-06-06T00:22:28+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=3102e0da4bd1bcaf4e3e0aeb554a6efa87436e5d'/>
<id>urn:sha1:3102e0da4bd1bcaf4e3e0aeb554a6efa87436e5d</id>
<content type='text'>
ENOTDIR is another non-fatal errno value that can be returned by
stat(2).
</content>
</entry>
</feed>
