Commit Graph

70 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 3832ca749f
README.adoc: circumvent an issue with libasciidoc 2022-05-01 18:18:31 +02:00
Přemysl Eric Janouch f37c194ab8
Bump Go modules to 1.17 2021-08-19 05:35:58 +02:00
Přemysl Eric Janouch 269e6514df
Add support for printing on red/black tapes
My QL-800 refuses to print black only on a red/black tape.

I really don't like the added `rb` function parameter.
It would be best to be able to recognize such tapes, however
nothing of the sort is documented in official Brother documentation.

makeBitmapData{,RB} also look like they could be simplified further.
2021-06-10 02:37:14 +02:00
Přemysl Eric Janouch 9734cdd16e
bdf: make it possible to set the drawing colour
Intended for red and black tapes.
2021-06-09 23:18:06 +02:00
Přemysl Eric Janouch 8215b59834
Update dependencies
Somehow we have got rid of a lot of indirect nonsense.
2021-06-08 03:44:07 +02:00
Přemysl Eric Janouch 6fc00ba3dd
Name change 2020-10-10 14:19:35 +02:00
Přemysl Eric Janouch 93b29a5346
sklad: close the DB FD once finished reading
Fixes a resource leak.
2020-10-10 14:18:22 +02:00
Přemysl Eric Janouch 696ea89530
label-tool: respect font ascent and descent
Also try to load the values from the BDF font file.
2019-04-26 11:40:43 +02:00
Přemysl Eric Janouch e56482d73f
label-tool: send pages as UTF-8 2019-04-25 21:54:58 +02:00
Přemysl Eric Janouch 2f47b3f5da
label-tool: make it possible to print free form text
Also commit the label subpackage that we forgot to.
2019-04-25 21:54:57 +02:00
Přemysl Eric Janouch 154f3147e3
label-tool: allow choosing from multiple fonts 2019-04-25 20:35:00 +02:00
Přemysl Eric Janouch 5cef6b240a
bdf-preview: style corrections 2019-04-25 19:59:43 +02:00
Přemysl Eric Janouch 81927e9017
sklad: proper validations on container update 2019-04-22 13:56:08 +02:00
Přemysl Eric Janouch 88560a8fbf
sklad: prefill form with last values on error
Since the browser's back button cannot be used because of our
fascist caching policy.
2019-04-22 13:55:07 +02:00
Přemysl Eric Janouch 301d035425
sklad: use Request.URL when self-redirecting 2019-04-22 11:43:37 +02:00
Přemysl Eric Janouch 04e66d7888
sklad: redirect to GET on successful DB changes 2019-04-22 10:14:28 +02:00
Přemysl Eric Janouch 7d2ca09d1b
sklad: show the context when deleting containers
Do not try to show the deleted container.
2019-04-22 10:09:08 +02:00
Přemysl Eric Janouch 4ad4bcf9e7
sklad: fix index update when changing parent 2019-04-19 13:46:05 +02:00
Přemysl Eric Janouch 2d1e01a1a2
sklad: make it possible to update the parent 2019-04-19 13:40:47 +02:00
Přemysl Eric Janouch 1bd7a9d735
sklad: always try to shut down cleanly 2019-04-19 12:26:27 +02:00
Přemysl Eric Janouch 6c6cec6298
sklad: highlight matches in the search 2019-04-18 05:59:13 +02:00
Přemysl Eric Janouch cbf8678681
sklad: make containers always link to self 2019-04-18 05:34:01 +02:00
Přemysl Eric Janouch 0936963aaf
Avoid DB data races from different goroutines 2019-04-16 19:53:50 +02:00
Přemysl Eric Janouch e4ae5d0001
Add a LICENSE file 2019-04-16 11:33:50 +02:00
Přemysl Eric Janouch 21d01f4c4b
sklad: clean up templates 2019-04-16 03:56:53 +02:00
Přemysl Eric Janouch 885d161cf5
README.adoc: add a representative picture 2019-04-16 00:09:01 +02:00
Přemysl Eric Janouch a4a399b812
sklad: prevent creating container cycles 2019-04-16 00:07:00 +02:00
Přemysl Eric Janouch 2bd4f5921c
sklad: open label printing in a new window/tab 2019-04-15 23:31:13 +02:00
Přemysl Eric Janouch 1713bd1f06
sklad: link to container in print confirmation 2019-04-15 10:54:27 +02:00
Přemysl Eric Janouch f8bb344aab
sklad: use textarea placeholder also for editing 2019-04-15 10:54:27 +02:00
Přemysl Eric Janouch 0b32fa576f
sklad: show whole container descriptions 2019-04-15 10:54:27 +02:00
Přemysl Eric Janouch 82c6c34ea5
sklad: trim spaces from user-supplied attributes 2019-04-15 03:57:53 +02:00
Přemysl Eric Janouch 5b7113905e
sklad: support running under a prefix 2019-04-15 03:45:41 +02:00
Přemysl Eric Janouch dc0536c011
sklad: breadcrumbs for all containers 2019-04-15 02:57:04 +02:00
Přemysl Eric Janouch 37b7edb2ef
sklad: create, update, remove 2019-04-15 02:40:55 +02:00
Přemysl Eric Janouch 608ba10eec
sklad: show the number of members of each series 2019-04-14 23:19:25 +02:00
Přemysl Eric Janouch 8d9b6f75d0
Add README.adoc 2019-04-14 22:55:51 +02:00
Přemysl Eric Janouch 1331f3b564
Move commands under cmd/ 2019-04-14 22:30:40 +02:00
Přemysl Eric Janouch 7d9410c6b3
sklad: remove obsolete comment 2019-04-14 21:39:03 +02:00
Přemysl Eric Janouch 32ad36a287
label-tool: unindent template 2019-04-14 21:38:26 +02:00
Přemysl Eric Janouch 412efcb1ae
Flush input buffers on printer initialization
Seems to be necessary, not sure why.
2019-04-14 21:34:56 +02:00
Přemysl Eric Janouch 39e2c5b76d
sklad: don't post-login redirect to POST requests 2019-04-14 21:25:55 +02:00
Přemysl Eric Janouch ea45784554
sklad: import label printing capability from label-tool 2019-04-14 21:25:21 +02:00
Přemysl Eric Janouch 4dade55387
sklad: implement search 2019-04-14 20:29:18 +02:00
Přemysl Eric Janouch 3d98454543
sklad: cleanup, add comment
Child containers now show a linear list of subcontainers.
2019-04-14 19:48:32 +02:00
Přemysl Eric Janouch fbb76679f3
sklad: autofocus desirable input fields 2019-04-14 10:31:32 +02:00
Přemysl Eric Janouch e003427f9f
sklad: preliminary web interface
Only exposing most read operations thus far.
2019-04-14 10:17:02 +02:00
Přemysl Eric Janouch 7eb84cd937
sklad: styling, add a basic view for containers 2019-04-14 01:05:05 +02:00
Přemysl Eric Janouch bcfb9fbc2b
sklad: implement login and logout
So far there are no other pages, and nothing links to the logout.
2019-04-13 23:54:24 +02:00
Přemysl Eric Janouch f5790dbff9
sklad: write timestamps to the DB log 2019-04-13 22:48:51 +02:00